Changeset 284745 in webkit
- Timestamp:
- Oct 23, 2021 9:35:34 AM (9 months ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/dom/DOMTokenList-supports-expected.txt (modified) (1 diff)
-
LayoutTests/fast/dom/DOMTokenList-supports.html (modified) (5 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/rellist-feature-detection-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLAnchorElement.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r284741 r284745 1 2021-10-23 Chris Dumez <cdumez@apple.com> 2 3 anchor.relList.supports("opener") should return true 4 https://bugs.webkit.org/show_bug.cgi?id=232182 5 6 Reviewed by Darin Adler. 7 8 Add layout test coverage. 9 10 * fast/dom/DOMTokenList-supports-expected.txt: 11 * fast/dom/DOMTokenList-supports.html: 12 1 13 2021-10-22 Jean-Yves Avenard <jya@apple.com> 2 14 -
trunk/LayoutTests/fast/dom/DOMTokenList-supports-expected.txt
r207840 r284745 8 8 * HTMLLinkElement.relList 9 9 PASS link.relList.__proto__ is DOMTokenList.prototype 10 PASS link.relList.supports( linkRelSupportedValues[i]) is true11 PASS link.relList.supports( linkRelSupportedValues[i].toUpperCase()) is true12 PASS link.relList.supports( linkRelSupportedValues[i]) is true13 PASS link.relList.supports( linkRelSupportedValues[i].toUpperCase()) is true14 PASS link.relList.supports( linkRelSupportedValues[i]) is true15 PASS link.relList.supports( linkRelSupportedValues[i].toUpperCase()) is true16 PASS link.relList.supports( linkRelSupportedValues[i]) is true17 PASS link.relList.supports( linkRelSupportedValues[i].toUpperCase()) is true10 PASS link.relList.supports('alternate') is true 11 PASS link.relList.supports('ALTERNATE') is true 12 PASS link.relList.supports('dns-prefetch') is true 13 PASS link.relList.supports('DNS-PREFETCH') is true 14 PASS link.relList.supports('icon') is true 15 PASS link.relList.supports('ICON') is true 16 PASS link.relList.supports('stylesheet') is true 17 PASS link.relList.supports('STYLESHEET') is true 18 18 PASS link.relList.supports('unsupported') is false 19 19 20 20 * HTMLAnchorElement.relList 21 21 PASS anchor.relList.__proto__ is DOMTokenList.prototype 22 PASS anchor.relList.supports(anchorRelSupportedValues[i]) is true 23 PASS anchor.relList.supports(anchorRelSupportedValues[i].toUpperCase()) is true 24 PASS anchor.relList.supports(anchorRelSupportedValues[i]) is true 25 PASS anchor.relList.supports(anchorRelSupportedValues[i].toUpperCase()) is true 22 PASS anchor.relList.supports('noreferrer') is true 23 PASS anchor.relList.supports('NOREFERRER') is true 24 PASS anchor.relList.supports('noopener') is true 25 PASS anchor.relList.supports('NOOPENER') is true 26 PASS anchor.relList.supports('opener') is true 27 PASS anchor.relList.supports('OPENER') is true 26 28 PASS anchor.relList.supports('unsupported') is false 27 29 28 30 * HTMLAreaElement.relList 29 31 PASS area.relList.__proto__ is DOMTokenList.prototype 30 PASS area.relList.supports( areaRelSupportedValues[i]) is true31 PASS area.relList.supports( areaRelSupportedValues[i].toUpperCase()) is true32 PASS area.relList.supports( areaRelSupportedValues[i]) is true33 PASS area.relList.supports( areaRelSupportedValues[i].toUpperCase()) is true32 PASS area.relList.supports('noreferrer') is true 33 PASS area.relList.supports('NOREFERRER') is true 34 PASS area.relList.supports('noopener') is true 35 PASS area.relList.supports('NOOPENER') is true 34 36 PASS area.relList.supports('unsupported') is false 35 37 36 38 * HTMLIFrameElement.sandbox 37 39 PASS iframe.sandbox.__proto__ is DOMTokenList.prototype 38 PASS iframe.sandbox.supports( iframeSandboxSupportedValues[i]) is true39 PASS iframe.sandbox.supports( iframeSandboxSupportedValues[i].toUpperCase()) is true40 PASS iframe.sandbox.supports( iframeSandboxSupportedValues[i]) is true41 PASS iframe.sandbox.supports( iframeSandboxSupportedValues[i].toUpperCase()) is true42 PASS iframe.sandbox.supports( iframeSandboxSupportedValues[i]) is true43 PASS iframe.sandbox.supports( iframeSandboxSupportedValues[i].toUpperCase()) is true44 PASS iframe.sandbox.supports( iframeSandboxSupportedValues[i]) is true45 PASS iframe.sandbox.supports( iframeSandboxSupportedValues[i].toUpperCase()) is true46 PASS iframe.sandbox.supports( iframeSandboxSupportedValues[i]) is true47 PASS iframe.sandbox.supports( iframeSandboxSupportedValues[i].toUpperCase()) is true48 PASS iframe.sandbox.supports( iframeSandboxSupportedValues[i]) is true49 PASS iframe.sandbox.supports( iframeSandboxSupportedValues[i].toUpperCase()) is true40 PASS iframe.sandbox.supports('allow-forms') is true 41 PASS iframe.sandbox.supports('ALLOW-FORMS') is true 42 PASS iframe.sandbox.supports('allow-same-origin') is true 43 PASS iframe.sandbox.supports('ALLOW-SAME-ORIGIN') is true 44 PASS iframe.sandbox.supports('allow-scripts') is true 45 PASS iframe.sandbox.supports('ALLOW-SCRIPTS') is true 46 PASS iframe.sandbox.supports('allow-top-navigation') is true 47 PASS iframe.sandbox.supports('ALLOW-TOP-NAVIGATION') is true 48 PASS iframe.sandbox.supports('allow-pointer-lock') is true 49 PASS iframe.sandbox.supports('ALLOW-POINTER-LOCK') is true 50 PASS iframe.sandbox.supports('allow-popups') is true 51 PASS iframe.sandbox.supports('ALLOW-POPUPS') is true 50 52 PASS iframe.sandbox.supports('unsupported') is false 51 53 -
trunk/LayoutTests/fast/dom/DOMTokenList-supports.html
r207840 r284745 14 14 var linkRelSupportedValues = ["alternate", "dns-prefetch", "icon", "stylesheet"]; 15 15 for (var i = 0; i < linkRelSupportedValues.length; i++) { 16 shouldBeTrue("link.relList.supports( linkRelSupportedValues[i])");17 shouldBeTrue("link.relList.supports( linkRelSupportedValues[i].toUpperCase())");16 shouldBeTrue("link.relList.supports('" + linkRelSupportedValues[i] + "')"); 17 shouldBeTrue("link.relList.supports('" + linkRelSupportedValues[i].toUpperCase() + "')"); 18 18 } 19 19 shouldBeFalse("link.relList.supports('unsupported')"); … … 23 23 var anchor = document.createElement("a"); 24 24 shouldBe("anchor.relList.__proto__", "DOMTokenList.prototype"); 25 var anchorRelSupportedValues = ["noreferrer", "noopener" ];25 var anchorRelSupportedValues = ["noreferrer", "noopener", "opener"]; 26 26 for (var i = 0; i < anchorRelSupportedValues.length; i++) { 27 shouldBeTrue("anchor.relList.supports( anchorRelSupportedValues[i])");28 shouldBeTrue("anchor.relList.supports( anchorRelSupportedValues[i].toUpperCase())");27 shouldBeTrue("anchor.relList.supports('" + anchorRelSupportedValues[i] + "')"); 28 shouldBeTrue("anchor.relList.supports('" + anchorRelSupportedValues[i].toUpperCase() + "')"); 29 29 } 30 30 shouldBeFalse("anchor.relList.supports('unsupported')"); … … 36 36 var areaRelSupportedValues = ["noreferrer", "noopener"]; 37 37 for (var i = 0; i < areaRelSupportedValues.length; i++) { 38 shouldBeTrue("area.relList.supports( areaRelSupportedValues[i])");39 shouldBeTrue("area.relList.supports( areaRelSupportedValues[i].toUpperCase())");38 shouldBeTrue("area.relList.supports('" + areaRelSupportedValues[i] + "')"); 39 shouldBeTrue("area.relList.supports('" + areaRelSupportedValues[i].toUpperCase() + "')"); 40 40 } 41 41 shouldBeFalse("area.relList.supports('unsupported')"); … … 47 47 var iframeSandboxSupportedValues = ["allow-forms", "allow-same-origin", "allow-scripts", "allow-top-navigation", "allow-pointer-lock", "allow-popups"]; 48 48 for (var i = 0; i < iframeSandboxSupportedValues.length; i++) { 49 shouldBeTrue("iframe.sandbox.supports( iframeSandboxSupportedValues[i])");50 shouldBeTrue("iframe.sandbox.supports( iframeSandboxSupportedValues[i].toUpperCase())");49 shouldBeTrue("iframe.sandbox.supports('" + iframeSandboxSupportedValues[i] + "')"); 50 shouldBeTrue("iframe.sandbox.supports('" + iframeSandboxSupportedValues[i].toUpperCase() + "')"); 51 51 } 52 52 shouldBeFalse("iframe.sandbox.supports('unsupported')"); … … 69 69 var dropzoneSupportedValues = ["copy", "move", "link"]; 70 70 for (var i = 0; i < dropzoneSupportedValues.length; i++) { 71 shouldBeTrue("link.dropzone.supports( dropzoneSupportedValues[i])");72 shouldBeTrue("link.dropzone.supports( dropzoneSupportedValues[i].toUpperCase())");71 shouldBeTrue("link.dropzone.supports('" + dropzoneSupportedValues[i] + "')"); 72 shouldBeTrue("link.dropzone.supports('" + dropzoneSupportedValues[i].toUpperCase() + "')"); 73 73 } 74 74 shouldBeFalse("link.dropzone.supports('unsupported')"); -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/rellist-feature-detection-expected.txt
r249886 r284745 1 1 2 2 FAIL Make sure that relList based feature detection is working for <link> assert_true: tag = LINK, link type = modulepreload must be supported expected true got false 3 FAIL Make sure that relList based feature detection is working for <a> assert_true: tag = A, link type = opener must be supported expected true got false 4 FAIL Make sure that relList based feature detection is working for <area> assert_true: tag = AREA, link type = opener must be supported expected true got false 3 PASS Make sure that relList based feature detection is working for <a> 4 PASS Make sure that relList based feature detection is working for <area> 5 5 FAIL Make sure that relList based feature detection is working for <form> undefined is not an object (evaluating 'element.relList.contains') 6 6 -
trunk/Source/WebCore/ChangeLog
r284744 r284745 1 2021-10-23 Chris Dumez <cdumez@apple.com> 2 3 anchor.relList.supports("opener") should return true 4 https://bugs.webkit.org/show_bug.cgi?id=232182 5 6 Reviewed by Darin Adler. 7 8 anchor.relList.supports("opener") should return true since we support "opener" on 9 anchor elements. 10 11 No new tests, updated existing test. 12 13 * html/HTMLAnchorElement.cpp: 14 (WebCore::HTMLAnchorElement::relList): 15 1 16 2021-10-23 Alan Bujtas <zalan@apple.com> 2 17 -
trunk/Source/WebCore/html/HTMLAnchorElement.cpp
r284730 r284745 322 322 return true; 323 323 #endif 324 return equalIgnoringASCIICase(token, "noreferrer") || equalIgnoringASCIICase(token, "noopener") ;324 return equalIgnoringASCIICase(token, "noreferrer") || equalIgnoringASCIICase(token, "noopener") || equalIgnoringASCIICase(token, "opener"); 325 325 }); 326 326 }
Note: See TracChangeset
for help on using the changeset viewer.