Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(767)

Issue 2729523003: Fix transfers for data URLs with plugin mime types. (Closed)

Created:
3 years, 9 months ago by alexmos
Modified:
3 years, 9 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix transfers for data URLs with plugin mime types. Typically, when a local frame navigates to a data URL, the request is serviced in the renderer without going up to the browser process. However, this isn't true for some data URLs, such as those with plugin mime types. Those go up to the browser, where they stalled due to conflicting logic that first decided that a transfer is needed, marked the current RFH as transferring, but then decided that a process transfer isn't allowed and kept the load in the current RFH. When the process transfer is prevented by CanSubframeSwapProcess, the load will always stay in the current RFH. This CL tries to recognize scenarios where this happens for transfers that also starts in the current RFH, so that we can avoid calling Transfer() for the current RFH unnecessarily. BUG=697513 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2729523003 Cr-Commit-Position: refs/heads/master@{#455821} Committed: https://chromium.googlesource.com/chromium/src/+/71e8d307789f1cf492f4803bdceab898e8105a47

Patch Set 1 #

Patch Set 2 : Fix test expectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -17 lines) Patch
M content/browser/frame_host/render_frame_host_manager.cc View 3 chunks +23 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/site-per-process View 1 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 18 (14 generated)
alexmos
Hey Charlie -- no rush on this, but this is one attempt to fix the ...
3 years, 9 months ago (2017-03-02 21:58:56 UTC) #12
Charlie Reis
Whew, that's pretty subtle. I think it's ok, especially if we can remove this once ...
3 years, 9 months ago (2017-03-08 22:04:13 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2729523003/20001
3 years, 9 months ago (2017-03-09 17:35:01 UTC) #15
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 19:08:59 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/71e8d307789f1cf492f4803bdcea...

Powered by Google App Engine
This is Rietveld 408576698