You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

1. May 2010, 22:32:08

gibson

Posts: 381

[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:
  1. Open this URL: http://www.fairnie.co.uk/Fairnie_Arts/Steve_Music_Techno_Twins.html
  2. Click on the link "Technostalgia & Casualtease Albums". This link opens in a new tab.
  3. Ctrl+Tab back to the previous page.
  4. 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.lol It gets annoying after a short while though.

Opera 10.53 b3381 on Windows XP SP3.

gibson

1. May 2010, 23:55:59

jonaswan2

Posts: 369

That is quite annoying. Confirmed / Windows XP SP3 Opera 10.52

2. May 2010, 03:44:51

WOW! That is strange. And it happens in 10.10 TOO! File a bug report...?

Here's what I did encounter:

Case 1:
  1. Open this URL: http://www.fairnie.co.uk/Fairnie_Arts/Steve_Music_Techno_Twins.html
  2. Click on the link "Technostalgia & Casualtease Albums". This link opens in a new tab.
  3. Ctrl+Tab back to the previous page.
  4. 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:
  1. Open this URL: http://www.fairnie.co.uk/Fairnie_Arts/Steve_Music_Techno_Twins.html
  2. Click on the link "Technostalgia & Casualtease Albums". This link opens in a new tab.
  3. Press Ctrl+W to close the tab.
  4. Press Ctrl+Tab... or even F5 (refresh page)!

= the link opened in step 2 is opened again in new tab.


JUST MAD! bigeyes faint

2. May 2010, 05:02:12

Moderator

sgunhouse

Volunteer

Posts: 66755

Note that using the mouse to go back to the original page has the same effect. Some sort of defective Javascript then.

2. May 2010, 17:19:46

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.

2. May 2010, 20:24:26

Sateth

Posts: 10

Works well under Chrome, this is not a website issue. But a browser one.

Opera 6330 / Linux

3. May 2010, 06:46:37

Moderator

sgunhouse

Volunteer

Posts: 66755

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.

6. May 2010, 14:18:43

gibson

Posts: 381

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

6. May 2010, 17:23:47

Moderator

sgunhouse

Volunteer

Posts: 66755

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.)

8. May 2010, 09:53:48

gibson

Posts: 381

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)