Fix MimeHandlerView plugin loading for data: URLs
commit96cd5860a98bab78d22feb5d77866b466f45a982
authorraymes <raymes@chromium.org>
Thu, 23 Apr 2015 01:44:00 +0000 (22 18:44 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 23 Apr 2015 01:44:06 +0000 (23 01:44 +0000)
treeaa2a4b751af1b1c8b6cc89db342961ccb5198b8e
parent466ca18c8a7f5506b3675079e113f262e327f83e
Fix MimeHandlerView plugin loading for data: URLs

MimeHandlerView plugins are passed access to the URL data by intercepting
the stream (in buffered_resource_handler.cc). This means that all URL
requests for these plugins need to go via the browser, otherwise they
won't be correctly intercepted. WebURLRequests for data: URLs have a fast
path for being loaded in the renderer which cannot be taken in the case
of loading these URLs.

BUG=477866

Review URL: https://codereview.chromium.org/1091253004

Cr-Commit-Position: refs/heads/master@{#326421}
chrome/test/data/extensions/api_test/mime_handler_view/embedded.html [deleted file]
chrome/test/data/extensions/api_test/mime_handler_view/index.html [new file with mode: 0644]
chrome/test/data/extensions/api_test/mime_handler_view/index.js [moved from chrome/test/data/extensions/api_test/mime_handler_view/embedded.js with 89% similarity]
chrome/test/data/extensions/api_test/mime_handler_view/manifest.json
chrome/test/data/extensions/api_test/mime_handler_view/test_embedded_data_url_embed.html [new file with mode: 0644]
chrome/test/data/extensions/api_test/mime_handler_view/test_embedded_data_url_object.html [new file with mode: 0644]
content/child/web_url_loader_impl.cc
extensions/browser/guest_view/mime_handler_view/mime_handler_view_browsertest.cc