Bug 161397

Summary: [[Delete]] should throw for cross-origin Window / Location objects
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, darin, ggaren, rniwa, sam
Priority: P2 Keywords: WebExposed
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Chris Dumez 2016-08-30 13:26:39 PDT
[[Delete]] should throw for cross-origin Window / Location objects:
- https://github.com/whatwg/html/pull/1728

Firefox and Chrome already throw.
Comment 1 Chris Dumez 2016-08-30 14:47:11 PDT
Created attachment 287433 [details]
Patch
Comment 2 Chris Dumez 2016-08-30 14:51:06 PDT
Corresponding spec bug:
https://github.com/whatwg/html/issues/1726

This is because the spec would cause us to throw only in strict mode, however, Firefox / Chrome throw in non-strict mode as well.

This is being addressed via:
https://github.com/whatwg/html/pull/1728
Comment 3 WebKit Commit Bot 2016-08-30 15:26:31 PDT
Comment on attachment 287433 [details]
Patch

Clearing flags on attachment: 287433

Committed r205200: <http://trac.webkit.org/changeset/205200>
Comment 4 WebKit Commit Bot 2016-08-30 15:26:39 PDT
All reviewed patches have been landed.  Closing bug.