Closed Bug 1525585 Opened 5 years ago Closed 5 years ago

Middle click on Instagram videos will open a new tab with "javascript:;"

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 672618
Tracking Status
firefox65 --- affected
firefox66 --- affected
firefox67 --- affected
firefox68 --- affected
firefox69 --- affected

People

(Reporter: tbabos, Unassigned)

Details

Attachments

(2 files)

[Affected versions]
67.0a1
66.0b5
65

[Affected platforms]
Windows 7/8/10 x64 x32
Mac OS 10.14

[Steps to reproduce]

  1. Go to https://www.instagram.com/p/BrnkuBXBxJM/
  2. Middle click on the video

[Expected result]
Nothing should happen as the videos on Instagram can't be opened in a new tab. - Chrome has this behavior

[Actual result]
A new tab is opened with "javascript:;"

[Regression - Range]:
Doesn't seem to be a regression or a recent one as it can be reproduced back to FX 47.

Product: Tech Evangelism → Web Compatibility

This doesn't seem like a site issue, but rather something that should be fixed in Firefox (or closed if this is expected behavior).

Instagram is wrapping the video in an anchor tag that points to "javascript:;", and we're opening a new tab for the user when they middle click.

<a class="QvAa1 " href="javascript:;" role="button" target=""><span class="jNBsH">Control</span></a>

For the following data URI:

data:text/html, <a href="javascript:console.log('hi');">middle click on me (js URL)</a> <br> <a href="">middle click on me (empty href)</a> <br> <a href="https://example.com">middle click on me</a>

Middle clicking on the first opens a new tab to the javascript URL (but does nothing in CHrome).
The second, with an empty href, does nothing (but in Chrome, opens "about:blank#blocked".
The third works as expected in both browsers.

I'm not sure where the best place is for this bug, but Firefox General seems like a good place to start.

Component: Desktop → General
Product: Web Compatibility → Firefox

I believe this belongs under Document Navigation.

Component: General → Document Navigation
Product: Firefox → Core
Component: Document Navigation → Tabbed Browser
Product: Core → Firefox
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: