This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13894 - window.open() doesn't check for trusted events the way HTMLAnchorElement.click() does. We should probably move the check into the "rules for choosing a browsing context" algorithm.
Summary: window.open() doesn't check for trusted events the way HTMLAnchorElement.clic...
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-24 23:15 UTC by contributor
Modified: 2013-04-15 19:04 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2011-08-24 23:15:18 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/complete.html
Multipage: http://www.whatwg.org/C#noopener
Complete: http://www.whatwg.org/c#noopener

Comment:
window.open() doesn't check for trusted events the way
HTMLAnchorElement.click() does. We should probably move the check into the
"rules for choosing a browsing context" algorithm.

Posted from: 2620:0:1000:137d:fa1e:dfff:fedd:ce8d by ian@hixie.ch
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_5_8) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/15.0.849.1 Safari/535.1
Comment 1 Ian 'Hixie' Hickson 2011-10-13 00:41:27 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter's comments.
Comment 2 contributor 2011-10-13 00:41:43 UTC
Checked in as WHATWG revision r6679.
Check-in comment: window.open() should block popups too.
http://html5.org/tools/web-apps-tracker?from=6678&to=6679
Comment 3 Ian 'Hixie' Hickson 2013-04-15 19:04:04 UTC
Woops, forgot to fix <area> as well when fixing this. See bug 21654.