commit | f1eb79c5305e19ceee013af158dd853e80e9d312 | [log] [tgz] |
---|---|---|
author | Matt Falkenhagen <falken@chromium.org> | Fri Feb 16 07:25:55 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Feb 16 07:25:55 2018 |
tree | ade7dbb2b4abd2265ed5409ec4bb202a5c93cdfc | |
parent | f73729069287840409d64ecd95667febf658388e [diff] |
service worker: Disallow interception for EMBED and OBJECT requests. This matches the service worker specification and Firefox. This change itself is probably not enough to skip all EMBED/OBJECT requests, as some requests get initiated by PepperURLLoaderHost or MimeHandlerViewContainer. In implementor concerns: https://w3c.github.io/ServiceWorker/#implementer-concerns "Plug-ins should not load via service workers. As plug-ins may get their security origins from their own urls, the embedding service worker cannot handle it. For this reason, the Handle Fetch algorithm makes the potential-navigation-or-subresource request (whose context is either <embed> or <object>) immediately fallback to the network without dispatching fetch event." In Handle Fetch: https://w3c.github.io/ServiceWorker/#handle-fetch "If request is a potential-navigation-or-subresource request, then: Return null." R=kinuko, yhirano Bug: 771933 Change-Id: Ia04ae8dec8c968de6a73dca088aa88a67b21718a Reviewed-on: https://chromium-review.googlesource.com/923445 Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Matt Falkenhagen <falken@chromium.org> Cr-Commit-Position: refs/heads/master@{#537245}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .