Bug 161486 - Object.preventExtensions() should throw cross-origin
Summary: Object.preventExtensions() should throw cross-origin
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: WebExposed
Depends on:
Blocks:
 
Reported: 2016-09-01 08:57 PDT by Chris Dumez
Modified: 2016-09-02 19:03 PDT (History)
13 users (show)

See Also:


Attachments
Patch (13.07 KB, patch)
2016-09-01 09:13 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (12.86 KB, patch)
2016-09-02 11:29 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2016-09-01 08:57:58 PDT
Object.preventExtensions() should throw cross-origin:
- https://html.spec.whatwg.org/#windowproxy-preventextensions
- https://html.spec.whatwg.org/#location-preventextensions
- http://www.ecma-international.org/ecma-262/6.0/#sec-object.preventextensions

Firefox and Chrome both throw in the cross-origin case.
Comment 1 Chris Dumez 2016-09-01 09:13:18 PDT
Created attachment 287619 [details]
Patch
Comment 2 Chris Dumez 2016-09-02 11:29:21 PDT
Created attachment 287788 [details]
Patch
Comment 3 Geoffrey Garen 2016-09-02 11:40:01 PDT
Comment on attachment 287788 [details]
Patch

r=me
Comment 4 WebKit Commit Bot 2016-09-02 12:12:07 PDT
Comment on attachment 287788 [details]
Patch

Clearing flags on attachment: 287788

Committed r205359: <http://trac.webkit.org/changeset/205359>
Comment 5 WebKit Commit Bot 2016-09-02 12:12:13 PDT
All reviewed patches have been landed.  Closing bug.