Changeset 206233 in webkit
- Timestamp:
- Sep 21, 2016 1:47:00 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r206221 r206233 1 2016-09-21 Chris Dumez <cdumez@apple.com> 2 3 Fix enumeration of properties cross origin 4 https://bugs.webkit.org/show_bug.cgi?id=162328 5 6 Reviewed by Darin Adler. 7 8 Rebaseline W3C test now that one more check is passing. 9 10 * web-platform-tests/html/browsers/origin/cross-origin-objects/cross-origin-objects-expected.txt: 11 1 12 2016-09-21 Chris Dumez <cdumez@apple.com> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/origin/cross-origin-objects/cross-origin-objects-expected.txt
r206221 r206233 12 12 PASS [[Delete]] Should throw on cross-origin objects 13 13 PASS [[DefineOwnProperty]] Should throw for cross-origin objects 14 FAIL [[Enumerate]] should return an empty iterator assert_unreached: Shouldn't have been able to enumerate href on cross-origin Location Reached unreachable code 14 PASS [[Enumerate]] should return an empty iterator 15 15 PASS [[OwnPropertyKeys]] should return all properties from cross-origin objects 16 16 PASS A and B jointly observe the same identity for cross-origin Window and Location -
trunk/Source/WebCore/ChangeLog
r206231 r206233 1 2016-09-21 Chris Dumez <cdumez@apple.com> 2 3 Fix enumeration of properties cross origin 4 https://bugs.webkit.org/show_bug.cgi?id=162328 5 6 Reviewed by Darin Adler. 7 8 All cross origin properties for Window / Location are supposed to be not enumerable: 9 - https://html.spec.whatwg.org/#crossorigingetownpropertyhelper-(-o,-p-) 10 11 Therefore, there should be no properties to iterate on for cross origin Window / 12 Location objects. 13 14 No new tests, rebaselined existing test. 15 16 * bindings/js/JSDOMWindowCustom.cpp: 17 (WebCore::JSDOMWindow::getOwnPropertyNames): 18 * bindings/js/JSLocationCustom.cpp: 19 (WebCore::JSLocation::getOwnPropertyNames): 20 1 21 2016-09-21 Alex Christensen <achristensen@webkit.org> 2 22 -
trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp
r206221 r206233 340 340 JSDOMWindow* thisObject = jsCast<JSDOMWindow*>(object); 341 341 if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->wrapped(), DoNotReportSecurityError)) { 342 addCrossOriginWindowPropertyNames(*exec, propertyNames); 342 if (mode.includeDontEnumProperties()) 343 addCrossOriginWindowPropertyNames(*exec, propertyNames); 343 344 return; 344 345 } -
trunk/Source/WebCore/bindings/js/JSLocationCustom.cpp
r206221 r206233 129 129 JSLocation* thisObject = jsCast<JSLocation*>(object); 130 130 if (!BindingSecurity::shouldAllowAccessToFrame(exec, thisObject->wrapped().frame(), DoNotReportSecurityError)) { 131 addCrossOriginLocationPropertyNames(*exec, propertyNames); 131 if (mode.includeDontEnumProperties()) 132 addCrossOriginLocationPropertyNames(*exec, propertyNames); 132 133 return; 133 134 }
Note: See TracChangeset
for help on using the changeset viewer.