Closed Bug 1720376 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 29652 - Hard-code the list of plugins and mimetypes in navigator

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
93 Branch
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/29559

Bug: 1164635
Change-Id: I7c52af5b918768d8b4c4a9faa409fb4e6b72ecc2

Reviewed-on: https://chromium-review.googlesource.com/3017890
WPT-Export-Revision: 4e7b5fe1d929425a547f1968582fc632cb16af9e

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

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
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.