Closed Bug 895812 Opened 11 years ago Closed 10 years ago

sandbox iframe with allow-popups results in 0x80004005 when trying to window.open in a nested iframe

Categories

(Core :: DOM: Core & HTML, defect)

22 Branch
x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 766282

People

(Reporter: jochem.blok, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:22.0) Gecko/20100101 Firefox/22.0 (Beta/Release)
Build ID: 20130618035212

Steps to reproduce:

I made a HTML5 page with a iframe which is sandboxed with options allow-same-origin allow-scripts allow-popups allow-forms. In this iframe another iframe is loaded. In that iframe a window.open event is called. This call results in a error NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMJSWindow.open]


Actual results:

No pop-up was shown, I got an error: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMJSWindow.open]


Expected results:

The popup had to be showed, because allow-popups is allowed in the sandbox attribute of the upper iframe.
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Attachment #778383 - Attachment mime type: application/octet-stream → application/zip
Independently reproduced on Ubuntu 12.04 LTS with Firefox 24.0 (although simply trying to open another page in a new tab, not in a popup). Are there any plans to address this issue?
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: