Bug 161486

Summary: Object.preventExtensions() should throw cross-origin
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, cdumez, cgarcia, commit-queue, esprehn+autocc, ggaren, keith_miller, kondapallykalyan, mark.lam, msaboff, rniwa, saam, sam
Priority: P2 Keywords: WebExposed
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=161554
Attachments:
Description Flags
Patch
none
Patch none

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.