You need to be logged in to post in the forums. If you do not have an account, please sign up first.
[10.53 b3381] Funny navigation behavior
Hi,I discovered a fantastically funny behavior just now. On a certain page, any Ctrl key sequence open a new tab.
How to reproduce:
- Open this URL: http://www.fairnie.co.uk/Fairnie_Arts/Steve_Music_Techno_Twins.html
- Click on the link "Technostalgia & Casualtease Albums". This link opens in a new tab.
- Ctrl+Tab back to the previous page.
- Press Ctrl+anything, e.g. Ctrl+T or Ctrl+W or Ctrl+Tab.
In the last step, the tab opened in step 2 always reopens in another new tab. The actual meaning of the Ctrl key sequence is ignored.
Well, I thought it was funny, but I've already had two beers.
It gets annoying after a short while though.Opera 10.53 b3381 on Windows XP SP3.
gibson
WOW! That is strange. And it happens in 10.10 TOO! File a bug report...?
Here's what I did encounter:
Case 1:
= the link opened in step 2 is opened again in new tab.. if you continue looping steps 3-4, more and more tabs are opened.
Case 2:
= the link opened in step 2 is opened again in new tab.
JUST MAD!
Here's what I did encounter:
Case 1:
- Open this URL: http://www.fairnie.co.uk/Fairnie_Arts/Steve_Music_Techno_Twins.html
- Click on the link "Technostalgia & Casualtease Albums". This link opens in a new tab.
- Ctrl+Tab back to the previous page.
- Press Ctrl+W... or even F5 (refresh page)!
= the link opened in step 2 is opened again in new tab.. if you continue looping steps 3-4, more and more tabs are opened.
Case 2:
- Open this URL: http://www.fairnie.co.uk/Fairnie_Arts/Steve_Music_Techno_Twins.html
- Click on the link "Technostalgia & Casualtease Albums". This link opens in a new tab.
- Press Ctrl+W to close the tab.
- Press Ctrl+Tab... or even F5 (refresh page)!
= the link opened in step 2 is opened again in new tab.
JUST MAD!
Opera 10.10, debugged 10.63, showstopper bugs: Open in background tabs focus order problem (MDI) Tab focus order is lost after restart Minimized tabs get maximized after restart
Originally posted by sgunhouse:
Some sort of defective Javascript then.
Or rather defective Opera? How can JS affect e.g. Opera's page refresh (F5) feature?! Possible attack vector?
It seems that the link in the step 2 is in an image map and there's an "onkeypress" event which tries to open the links in a new window (window.open) but Opera forces it into a tab. This is confirmed by looking at the "closed tabs" where a "window 1" entry has appeared.
This maybe far fetched but, could it be that the action (what ever it is) in the step 4 is directed to that "closed window" (not really sure how that could happen though) and therefore somehow Opera opens new tabs? I don't know, hard to say when black-box testing. It's strange nevertheless and really should be investigated and fixed.
Opera 10.10, debugged 10.63, showstopper bugs: Open in background tabs focus order problem (MDI) Tab focus order is lost after restart Minimized tabs get maximized after restart
Disable javascript and try it again.
The script is detecting any keypress (including cursor keys) and opening the link. With the script disabled - well, of course with javascript disabled the link opens in the same page (unless you shift-click), but also you don't get the other problem.
The script is detecting any keypress (including cursor keys) and opening the link. With the script disabled - well, of course with javascript disabled the link opens in the same page (unless you shift-click), but also you don't get the other problem.
Okay, so it's probably horrible UI robbery. No unintended behavior, no security issue? Then fine by me.
I really hate those sites where I get a JavaScript pop-up when I right-click with the mouse. (I think they want me to not select a potential "view source" menu.) Because this happens with mouse gestures as well. (Luckily, the JavaScript pop-ups are modular, so the gesture still works.)
gibson
I really hate those sites where I get a JavaScript pop-up when I right-click with the mouse. (I think they want me to not select a potential "view source" menu.) Because this happens with mouse gestures as well. (Luckily, the JavaScript pop-ups are modular, so the gesture still works.)
gibson
I can't tell what's "intended" ... I doubt that was exactly what they were trying for, but it is something they did. Certainly no security issue ... but as it does block Ctrl-Tab I might like the developers to do something with it. (That is, it's an accessibility issue.)
Originally posted by sgunhouse:
Certainly no security issue ... but as it does block Ctrl-Tab I might like the developers to do something with it. (That is, it's an accessibility issue.)
Thanks for putting it this way. I filed it as DSK-298128 with the title "Accessibility: Site's JavaScript hinders key control of Opera". Let's see what the Opera UI developers think of it.
gibson
Forums » Opera for Windows/Mac/Linux » Beta testing (including snapshots and previews)