Closed Bug 1338845 Opened 8 years ago Closed 8 years ago

window.open does not open window from contextMenu item

Categories

(WebExtensions :: Untriaged, defect)

51 Branch
x86_64
Windows 10
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1282021

People

(Reporter: bugs, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.37 Safari/537.36 Steps to reproduce: 1. Implement an add-on that uses the window.open() call from within a contextMenu item callback. Example: http://codepen.io/anon/pen/EZGjQK 2. Click the item from within a regular page Actual results: The google.com window does NOT open (call returns null). The example.com window does open. Expected results: The google.com window should have opened. --- I don't believe having browser.windows.create is a valid workaround as I cannot set window features using this.
OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64
This behavior does not occur in Chrome. Chrome opens both windows as expected.
Summary: window.open returns null from contextMenu item → window.open does not open window from contextMenu item
Component: Untriaged → WebExtensions: Untriaged
Product: Firefox → Toolkit
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.