[wpt-sync] Sync PR 29652 - Hard-code the list of plugins and mimetypes in navigator
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox93 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 29652 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/29652
Details from upstream follow.
b'Mason Freed <masonf@chromium.org>' wrote:
Hard-code the list of plugins and mimetypes in navigator
See [1] for a previous attempt to completely empty the navigator.plugins
and navigator.mimeTypes APIs. That caused site breakage due to sites
scanning for a PDF reader. This new attempt is discussed in [2], and
involves the hard-coding of a list of PDF viewers and mime types. The
list will be empty if the user setting to download PDFs instead of
viewing them (chrome://settings/content/pdfDocuments) is enabled.Tests were copied mostly verbatim from [3], thanks @domenic.
I2S:
https://groups.google.com/a/chromium.org/g/blink-dev/c/bbxAGu90LgM[1] https://chromium-review.googlesource.com/c/chromium/src/+/2783393
[2] https://github.com/whatwg/html/pull/6738
[3] https://github.com/web-platform-tests/wpt/pull/29559Bug: 1164635
Change-Id: I7c52af5b918768d8b4c4a9faa409fb4e6b72ecc2Reviewed-on: https://chromium-review.googlesource.com/3017890
WPT-Export-Revision: 4e7b5fe1d929425a547f1968582fc632cb16af9e
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=440225e608c546d6ba41d6e24dd32b4ea3d2c699
Assignee | ||
Comment 2•3 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=d21cc25c6ebd8ebfb58a1e764e5f2d2c61da37e8
Assignee | ||
Comment 3•3 years ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 3 subtests
Status Summary
Firefox
OK : 1
PASS: 2
FAIL: 1
Chrome
OK : 1
FAIL: 3
Safari
OK : 1
FAIL: 3
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
/html/webappapis/system-state-and-capabilities/the-navigator-object/plugins-and-mimetypes.html
navigator.pdfViewerEnabled exists: FAIL (Chrome: FAIL, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6a3ef4ed252d [wpt PR 29652] - Hard-code the list of plugins and mimetypes in navigator, a=testonly https://hg.mozilla.org/integration/autoland/rev/e9c390ae896a [wpt PR 29652] - Update wpt metadata, a=testonly
Comment 5•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6a3ef4ed252d
https://hg.mozilla.org/mozilla-central/rev/e9c390ae896a
Description
•