New issue
Advanced search Search tips

Issue 640620 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 3
Type: Compat



Sign in to add a comment

sandbox attribute makes window.open() behavior inconsistent

Reported by bzbar...@mit.edu, Aug 24 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:51.0) Gecko/20100101 Firefox/51.0

Example URL:

Steps to reproduce the problem:
1. Load https://bug1295839.bmoattachments.org/attachment.cgi?id=8782242
2. Click the "TEST" button to open a popup window.
3. Reload the page loaded in step 1.
4. Click the "TEST" button again and observe that the already-opened window is reused for the load.
5. Close the popup.
6. Load https://bug1295839.bmoattachments.org/attachment.cgi?id=8784376
7. Click the "TEST" button to open a popup window.
8. Reload the page loaded in step 6.
9. Click the "TEST" button again and observe that a new popup is opened.

What is the expected behavior?
Step 9 and step 4 should have consistent behavior per spec and sanity.

What went wrong?
For some reason the sandbox attribute is making Chrome reuse a popup when it wouldn't reuse it otherwise.

Does it occur on multiple sites: N/A

Is it a problem with a plugin? N/A 

Did this work before? N/A 

Does this work in other browsers? Yes 

Chrome version: 54.0.2837.0 (Official Build) dev (64-bit)  Channel: n/a
OS Version: OS X 10.10
Flash Version: 

Gecko is inconsistent in the opposite direction here.  Safari is consistent between the two cases: never reuses the popup.
 
Components: Blink

Comment 2 by tkent@chromium.org, Aug 24 2016

Components: -Blink Blink>SecurityFeature Blink>WindowDialog
Summary: sandbox attribute makes window.open() behavior inconsistent (was: Chrome's implementation of "familar with" from the HTML spec is weirdly inconsistent)

Comment 3 by mkwst@chromium.org, Feb 23 2017

Labels: -Pri-2 Sandbox OS-Android OS-Chrome OS-Linux OS-Windows Pri-3
Status: Available (was: Unconfirmed)

Comment 4 by est...@chromium.org, Nov 10 2017

Labels: Hotlist-EnamelAndFriendsFixIt

Comment 5 by est...@chromium.org, Feb 18 2018

Labels: -Hotlist-EnamelAndFriendsFixIt

Sign in to add a comment