зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1700734 [wpt PR 28223] - Disable NavigatorPluginsEmpty feature, a=testonly
Automatic update from web-platform-tests Disable NavigatorPluginsEmpty feature This feature was enabled by default [1] to check web compat, and after M90 went to Beta, a number of issues were raised ([2],[3]). As a result, this feature is being disabled. This will likely need to be merged back to M90 Beta. This CL removes the WPT that tests for empty arrays, and reinstates the prior layout test which enforces non-empty arrays. [1] https://chromium-review.googlesource.com/c/chromium/src/+/2629990 [2] b/183094994 [3] crbug.com/1191639 Bug: 1164635, 1191639 Change-Id: Ieed5de8ece2332b5b830e9e295c9163e21e9c4a0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2783393 Reviewed-by: Joey Arhar <jarhar@chromium.org> Auto-Submit: Mason Freed <masonf@chromium.org> Commit-Queue: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/master@{#866271} -- wpt-commits: 5ca713723d4b7b4c552df6359f359f692efc610e wpt-pr: 28223
This commit is contained in:
Родитель
9269a2b489
Коммит
7e6138c9a4
|
@ -1,24 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset=utf-8>
|
||||
<title>Test for empty plugins and mimeTypes arrays</title>
|
||||
<link rel='author' href='mailto:masonf@chromium.org'>
|
||||
<link rel='help' href='https://github.com/whatwg/html/issues/6003'>
|
||||
<script src='/resources/testharness.js'></script>
|
||||
<script src='/resources/testharnessreport.js'></script>
|
||||
|
||||
<script>
|
||||
test(function () {
|
||||
assert_equals(navigator.plugins.length, 0, "Plugins array must be empty");
|
||||
assert_equals(navigator.mimeTypes.length, 0, "mimeTypes array must be empty");
|
||||
navigator.plugins.refresh();
|
||||
assert_equals(navigator.plugins.length, 0, "Plugins array must be empty, even after refresh()");
|
||||
assert_equals(navigator.mimeTypes.length, 0, "mimeTypes array must be empty, even after refresh()");
|
||||
}, "Tests that navigator.plugins and mimeTypes both return empty arrays.");
|
||||
|
||||
test(() => {
|
||||
const arrayIterator = Array.prototype[Symbol.iterator];
|
||||
assert_equals(navigator.plugins[Symbol.iterator], arrayIterator, "plugins array must provide @@iterator");
|
||||
assert_equals(navigator.mimeTypes[Symbol.iterator], arrayIterator, "mimeTypes array must provide @@iterator");
|
||||
assert_equals(Plugin.prototype[Symbol.iterator], arrayIterator, "Plugin must provide @@iterator");
|
||||
}, "@@iterator must exist");
|
||||
</script>
|
Загрузка…
Ссылка в новой задаче