Changeset 243638 in webkit
- Timestamp:
- Mar 28, 2019, 7:34:56 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/dom/HTMLObjectElement/object-as-frame-expected.txt (modified) (1 diff)
-
LayoutTests/fast/dom/HTMLObjectElement/object-as-frame.html (modified) (3 diffs)
-
LayoutTests/fast/dom/plugin-attributes-enumeration-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/accessing-other-browsing-contexts/indexed-browsing-contexts-03-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-object-element/object-attributes-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLObjectElement.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r243637 r243638 1 2019-03-28 Chris Dumez <cdumez@apple.com> 2 3 Support <object>.contentWindow 4 https://bugs.webkit.org/show_bug.cgi?id=195562 5 6 Reviewed by Sam Weinig. 7 8 Update existing test to extend test coverage. 9 10 * fast/dom/HTMLObjectElement/object-as-frame-expected.txt: 11 * fast/dom/HTMLObjectElement/object-as-frame.html: 12 1 13 2019-03-28 Myles C. Maxfield <mmaxfield@apple.com> 2 14 -
trunk/LayoutTests/fast/dom/HTMLObjectElement/object-as-frame-expected.txt
r30635 r243638 1 1 PASS window.frames.length is 2 2 2 PASS window.frames[0].frameElement.name is "frame" 3 PASS window.frames[0].frameElement.contentWindow is window.frames[0].frameElement.contentDocument.defaultView 4 PASS window.frames[0].frameElement.contentWindow.document is window.frames[0].frameElement.contentDocument 3 5 PASS window.frames[1].frameElement.name is "obj" 6 PASS window.frames[1].frameElement.contentWindow is window.frames[1].frameElement.contentDocument.defaultView 7 PASS window.frames[1].frameElement.contentWindow.document is window.frames[1].frameElement.contentDocument 4 8 Loading 'data:text/html,Updated contents of iframe' in iframe... 5 9 Loading 'data:text/html,Updated contents of object' in object... 6 10 PASS window.frames[0].location.toString() is "data:text/html,Updated contents of iframe" 7 11 PASS window.frames[1].location.toString() is "data:text/html,Updated contents of object" 12 PASS successfullyParsed is true 13 14 TEST COMPLETE 8 15 -
trunk/LayoutTests/fast/dom/HTMLObjectElement/object-as-frame.html
r189164 r243638 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">1 <!DOCTYPE html> 2 2 <html> 3 3 <head> 4 <script src="../../../resources/js-test -pre.js"></script>4 <script src="../../../resources/js-test.js"></script> 5 5 <script> 6 6 7 if (window.testRunner) { 8 testRunner.dumpAsText(); 9 testRunner.waitUntilDone(); 10 } 7 jsTestIsAsync = true; 11 8 12 9 var updatedFrameURL = "data:text/html,Updated contents of iframe"; … … 17 14 shouldBe("window.frames.length", "2"); 18 15 shouldBe("window.frames[0].frameElement.name", '"frame"'); 16 shouldBe("window.frames[0].frameElement.contentWindow", "window.frames[0].frameElement.contentDocument.defaultView"); 17 shouldBe("window.frames[0].frameElement.contentWindow.document", "window.frames[0].frameElement.contentDocument"); 19 18 shouldBe("window.frames[1].frameElement.name", '"obj"'); 19 shouldBe("window.frames[1].frameElement.contentWindow", "window.frames[1].frameElement.contentDocument.defaultView"); 20 shouldBe("window.frames[1].frameElement.contentWindow.document", "window.frames[1].frameElement.contentDocument"); 20 21 21 22 document.getElementsByName('frame')[0].onload = handleLoad; … … 38 39 shouldBe("window.frames[0].location.toString()", '"' + updatedFrameURL + '"'); 39 40 shouldBe("window.frames[1].location.toString()", '"' + updatedObjectURL + '"'); 40 if (window.testRunner) { 41 testRunner.notifyDone(); 42 } 41 42 finishJSTest(); 43 43 } 44 44 </script> -
trunk/LayoutTests/fast/dom/plugin-attributes-enumeration-expected.txt
r192132 r243638 12 12 codeType 13 13 contentDocument 14 contentWindow 14 15 data 15 16 declare -
trunk/LayoutTests/imported/w3c/ChangeLog
r243634 r243638 1 2019-03-28 Chris Dumez <cdumez@apple.com> 2 3 Support <object>.contentWindow 4 https://bugs.webkit.org/show_bug.cgi?id=195562 5 6 Reviewed by Sam Weinig. 7 8 Rebaseline WPT tests now that more checks are passing or failing later on. 9 10 * web-platform-tests/html/browsers/the-window-object/accessing-other-browsing-contexts/indexed-browsing-contexts-03-expected.txt: 11 * web-platform-tests/html/dom/interfaces-expected.txt: 12 * web-platform-tests/html/semantics/embedded-content/the-object-element/object-attributes-expected.txt: 13 1 14 2019-03-28 Chris Dumez <cdumez@apple.com> 2 15 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/accessing-other-browsing-contexts/indexed-browsing-contexts-03-expected.txt
r204844 r243638 1 1 2 FAIL Indexed child browsing contexts assert_equals: The first child browsing context's container should be the object element. expected (undefined) undefined but got (object)object "[object Window]"2 FAIL Indexed child browsing contexts assert_equals: The first child browsing context's container should be the object element. expected null but got object "[object Window]" 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt
r243620 r243638 1339 1339 PASS HTMLObjectElement interface: attribute height 1340 1340 PASS HTMLObjectElement interface: attribute contentDocument 1341 FAIL HTMLObjectElement interface: attribute contentWindow assert_true: The prototype object must have a property "contentWindow" expected true got false 1341 PASS HTMLObjectElement interface: attribute contentWindow 1342 1342 PASS HTMLObjectElement interface: operation getSVGDocument() 1343 1343 PASS HTMLObjectElement interface: attribute willValidate … … 1368 1368 PASS HTMLObjectElement interface: document.createElement("object") must inherit property "height" with the proper type 1369 1369 PASS HTMLObjectElement interface: document.createElement("object") must inherit property "contentDocument" with the proper type 1370 FAIL HTMLObjectElement interface: document.createElement("object") must inherit property "contentWindow" with the proper type assert_inherits: property "contentWindow" not found in prototype chain 1370 PASS HTMLObjectElement interface: document.createElement("object") must inherit property "contentWindow" with the proper type 1371 1371 PASS HTMLObjectElement interface: document.createElement("object") must inherit property "getSVGDocument()" with the proper type 1372 1372 PASS HTMLObjectElement interface: document.createElement("object") must inherit property "willValidate" with the proper type -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-object-element/object-attributes-expected.txt
r204090 r243638 1 1 2 FAIL object.contentWindow undefined is not an object (evaluating 'obj1.contentWindow.name')2 FAIL object.contentWindow assert_equals: The contentWindow's name of the object element should be 'o1'. expected "o1" but got "o" 3 3 FAIL object.width assert_equals: The width should be 100px. expected "100px" but got "auto" 4 4 FAIL object.height assert_equals: The height should be 50px. expected "50px" but got "auto" -
trunk/Source/WebCore/ChangeLog
r243637 r243638 1 2019-03-28 Chris Dumez <cdumez@apple.com> 2 3 Support <object>.contentWindow 4 https://bugs.webkit.org/show_bug.cgi?id=195562 5 6 Reviewed by Sam Weinig. 7 8 Support <object>.contentWindow as per: 9 - https://html.spec.whatwg.org/multipage/iframe-embed-object.html#dom-object-contentwindow 10 11 No new tests, updated / rebaselined existing tests. 12 13 * html/HTMLObjectElement.idl: 14 1 15 2019-03-28 Myles C. Maxfield <mmaxfield@apple.com> 2 16 -
trunk/Source/WebCore/html/HTMLObjectElement.idl
r238748 r243638 47 47 48 48 [CheckSecurityForNode] readonly attribute Document contentDocument; 49 readonly attribute WindowProxy contentWindow; 49 50 50 51 [CheckSecurityForNode, MayThrowException] Document getSVGDocument();
Note:
See TracChangeset
for help on using the changeset viewer.