Changeset 290899 in webkit
- Timestamp:
- Mar 7, 2022, 11:21:15 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 10 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/resources/resource-files.json (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-is-popup-condition.html (modified) (4 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/support/w3c-import.log (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/support/windowFeature-values-target.html (added)
-
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/w3c-import.log (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-noopener.html (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-windowfeatures-values-expected.txt (added)
-
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-windowfeatures-values.html (added)
-
LayoutTests/tests-options.json (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/page/WindowFeatures.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r290891 r290899 1 2022-03-07 Chris Dumez <cdumez@apple.com> 2 3 Make "true" count as truthy in window.open()'s boolean features 4 https://bugs.webkit.org/show_bug.cgi?id=237530 5 6 Reviewed by Alex Christensen. 7 8 * tests-options.json: 9 1 10 2022-03-07 Chris Dumez <cdumez@apple.com> 2 11 -
trunk/LayoutTests/imported/w3c/ChangeLog
r290898 r290899 1 2022-03-07 Chris Dumez <cdumez@apple.com> 2 3 Make "true" count as truthy in window.open()'s boolean features 4 https://bugs.webkit.org/show_bug.cgi?id=237530 5 6 Reviewed by Alex Christensen. 7 8 Import WPT test coverage. 9 10 * resources/resource-files.json: 11 * web-platform-tests/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-is-popup-condition.html: 12 * web-platform-tests/html/browsers/the-window-object/support/w3c-import.log: 13 * web-platform-tests/html/browsers/the-window-object/support/windowFeature-values-target.html: Added. 14 * web-platform-tests/html/browsers/the-window-object/w3c-import.log: 15 * web-platform-tests/html/browsers/the-window-object/window-open-noopener.html: 16 * web-platform-tests/html/browsers/the-window-object/window-open-windowfeatures-values-expected.txt: Added. 17 * web-platform-tests/html/browsers/the-window-object/window-open-windowfeatures-values.html: Added. 18 1 19 2022-03-07 Antoine Quint <graouts@webkit.org> 2 20 -
trunk/LayoutTests/imported/w3c/resources/resource-files.json
r290774 r290899 2239 2239 "web-platform-tests/html/browsers/the-window-object/support/sizing-target.html", 2240 2240 "web-platform-tests/html/browsers/the-window-object/support/window-open-popup-target.html", 2241 "web-platform-tests/html/browsers/the-window-object/support/windowFeature-values-target.html", 2241 2242 "web-platform-tests/html/browsers/windows/browsing-context-names/001-1.html", 2242 2243 "web-platform-tests/html/browsers/windows/browsing-context-names/002-1.html", -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-is-popup-condition.html
r287846 r290899 27 27 ["popup", false], 28 28 ["popup=1", false], 29 ["popup=true", false], 29 30 ["popup=0", true], 30 31 … … 32 33 ["location", false], 33 34 ["location=yes", false], 35 ["location=true", false], 34 36 ["location=no", false], 35 37 36 38 ["toolbar", false], 37 39 ["toolbar=yes", false], 40 ["toolbar=true", false], 38 41 ["toolbar=no", false], 39 42 40 43 ["menubar", false], 41 44 ["menubar=yes", false], 45 ["menubar=true", false], 42 46 ["menubar=no", false], 43 47 44 48 ["resizable", false], 45 49 ["resizable=yes", false], 50 ["resizable=true", false], 46 51 ["resizable=no", false], 47 52 ], … … 49 54 ["scrollbars", false], 50 55 ["scrollbars=yes", false], 56 ["scrollbars=true", false], 51 57 ["scrollbars=no", false], 52 58 53 59 ["status", false], 54 60 ["status=yes", false], 61 ["status=true", false], 55 62 ["status=no", false], 56 63 57 64 ["titlebar", false], 58 65 ["titlebar=yes", false], 66 ["titlebar=true", false], 59 67 ["titlebar=no", false], 60 68 61 69 ["close", false], 62 70 ["close=yes", false], 71 ["close=true", false], 63 72 ["close=no", false], 64 73 65 74 ["minimizable", false], 66 75 ["minimizable=yes", false], 76 ["minimizable=true", false], 67 77 ["minimizable=no", false], 68 78 69 79 ["personalbar", false], 70 80 ["personalbar=yes", false], 81 ["personalbar=true", false], 71 82 ["personalbar=no", false], 72 83 ], … … 114 125 // The explicit popup feature has priority than others. 115 126 ["popup=1,location,toolbar,menubar,resizable,scrollbars,status", false], 127 ["popup=yes,location,toolbar,menubar,resizable,scrollbars,status", false], 128 ["popup=true,location,toolbar,menubar,resizable,scrollbars,status", false], 116 129 ["popup=0,location,toolbar,menubar,resizable,scrollbars", true], 117 130 ], -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/support/w3c-import.log
r287846 r290899 22 22 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/support/sizing-target.html 23 23 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/support/window-open-popup-target.html 24 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/support/windowFeature-values-target.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/w3c-import.log
r287846 r290899 39 39 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-noreferrer.html 40 40 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-popup-behavior.html 41 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-windowfeatures-values.html 41 42 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-opener-unconfigurable.window.js 42 43 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-properties.https.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-noopener.html
r249123 r290899 18 18 { testDescription: "noopener=1 means the same as noopener", 19 19 secondWindowFeatureString: "noopener=1", 20 shouldReturnWindow: false }, 21 { testDescription: "noopener=true means the same as noopener", 22 secondWindowFeatureString: "noopener=true", 20 23 shouldReturnWindow: false }, 21 24 { testDescription: "noopener=0 means lack of noopener", -
trunk/LayoutTests/tests-options.json
r289558 r290899 2550 2550 "slow" 2551 2551 ], 2552 "imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-windowfeatures-values.html": [ 2553 "slow" 2554 ], 2552 2555 "imported/w3c/web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/opener-setter.html": [ 2553 2556 "slow" -
trunk/Source/WebCore/ChangeLog
r290898 r290899 1 2022-03-07 Chris Dumez <cdumez@apple.com> 2 3 Make "true" count as truthy in window.open()'s boolean features 4 https://bugs.webkit.org/show_bug.cgi?id=237530 5 6 Reviewed by Alex Christensen. 7 8 Make "true" count as truthy in window.open()'s boolean features, as per: 9 - https://github.com/whatwg/html/pull/7425 10 11 Test: imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-windowfeatures-values.html 12 13 * page/WindowFeatures.cpp: 14 (WebCore::setWindowFeature): 15 1 16 2022-03-07 Antoine Quint <graouts@webkit.org> 2 17 -
trunk/Source/WebCore/page/WindowFeatures.cpp
r284857 r290899 131 131 // Listing a key with no value is shorthand for key=yes 132 132 int numericValue; 133 if (value.isEmpty() || equalLettersIgnoringASCIICase(value, "yes") )133 if (value.isEmpty() || equalLettersIgnoringASCIICase(value, "yes") || equalLettersIgnoringASCIICase(value, "true")) 134 134 numericValue = 1; 135 135 else
Note:
See TracChangeset
for help on using the changeset viewer.