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

Issue 2028873002: Fix event page process cleanup when running in --isolate-extensions mode. (Closed)

Created:
4 years, 6 months ago by nasko
Modified:
4 years, 6 months ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix event page process cleanup when running in --isolate-extensions mode. With --isolate-extensions, navigations can start in one RenderFrameHost and complete in another. This was not possible to happen with extensions related RenderFrameHosts in the past, so the code wasn't able to handle it. This CL refactors the OnNetworkRequest(Started|Stopped) to use the navigation request id as the stable identifier instead of the associated RenderFrameHost. BUG=612668 Committed: https://crrev.com/c25500369dd9a7f49d2b7d276556b2e22ba840c8 Cr-Commit-Position: refs/heads/master@{#397328}

Patch Set 1 #

Patch Set 2 : Cleanup empty lines and formatting. #

Total comments: 6

Patch Set 3 : Map request to ExtensionHost instead of extension id. #

Patch Set 4 : Better version of the same idea. #

Total comments: 4

Patch Set 5 : Rebase. #

Patch Set 6 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -15 lines) Patch
M chrome/browser/extensions/lazy_background_page_apitest.cc View 1 2 3 chunks +38 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/api_test/lazy_background_page/event_page_with_web_iframe/event_page.html View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/lazy_background_page/event_page_with_web_iframe/manifest.json View 1 chunk +12 lines, -0 lines 0 comments Download
M extensions/browser/process_manager.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/process_manager.cc View 1 2 3 4 5 1 chunk +25 lines, -12 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
nasko
Hey Devlin, Can you review this CL for me? It fixes the issue with event ...
4 years, 6 months ago (2016-05-31 22:23:50 UTC) #2
Devlin
https://codereview.chromium.org/2028873002/diff/20001/chrome/browser/extensions/lazy_background_page_apitest.cc File chrome/browser/extensions/lazy_background_page_apitest.cc (right): https://codereview.chromium.org/2028873002/diff/20001/chrome/browser/extensions/lazy_background_page_apitest.cc#newcode692 chrome/browser/extensions/lazy_background_page_apitest.cc:692: EventProcessCleanup) { This almost seems like a test that ...
4 years, 6 months ago (2016-05-31 22:45:30 UTC) #3
nasko
https://codereview.chromium.org/2028873002/diff/20001/chrome/browser/extensions/lazy_background_page_apitest.cc File chrome/browser/extensions/lazy_background_page_apitest.cc (right): https://codereview.chromium.org/2028873002/diff/20001/chrome/browser/extensions/lazy_background_page_apitest.cc#newcode692 chrome/browser/extensions/lazy_background_page_apitest.cc:692: EventProcessCleanup) { On 2016/05/31 22:45:30, Devlin wrote: > This ...
4 years, 6 months ago (2016-06-01 21:22:19 UTC) #4
Devlin
lgtm https://codereview.chromium.org/2028873002/diff/60001/chrome/test/data/extensions/api_test/lazy_background_page/event_page_with_web_iframe/event_page.html File chrome/test/data/extensions/api_test/lazy_background_page/event_page_with_web_iframe/event_page.html (right): https://codereview.chromium.org/2028873002/diff/60001/chrome/test/data/extensions/api_test/lazy_background_page/event_page_with_web_iframe/event_page.html#newcode1 chrome/test/data/extensions/api_test/lazy_background_page/event_page_with_web_iframe/event_page.html:1: <!DOCTYPE html> nitty nit: I prefer not to ...
4 years, 6 months ago (2016-06-01 21:39:03 UTC) #5
nasko
https://codereview.chromium.org/2028873002/diff/60001/chrome/test/data/extensions/api_test/lazy_background_page/event_page_with_web_iframe/event_page.html File chrome/test/data/extensions/api_test/lazy_background_page/event_page_with_web_iframe/event_page.html (right): https://codereview.chromium.org/2028873002/diff/60001/chrome/test/data/extensions/api_test/lazy_background_page/event_page_with_web_iframe/event_page.html#newcode1 chrome/test/data/extensions/api_test/lazy_background_page/event_page_with_web_iframe/event_page.html:1: <!DOCTYPE html> On 2016/06/01 21:39:02, Devlin wrote: > nitty ...
4 years, 6 months ago (2016-06-01 23:17:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2028873002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2028873002/100001
4 years, 6 months ago (2016-06-01 23:19:19 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/231901)
4 years, 6 months ago (2016-06-02 04:05:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2028873002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2028873002/100001
4 years, 6 months ago (2016-06-02 06:22:23 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-02 07:26:05 UTC) #14
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/c25500369dd9a7f49d2b7d276556b2e22ba840c8 Cr-Commit-Position: refs/heads/master@{#397328}
4 years, 6 months ago (2016-06-02 07:27:49 UTC) #16
nasko
4 years, 6 months ago (2016-06-06 23:42:55 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/2044643003/ by nasko@chromium.org.

The reason for reverting is: Speculative revert of this CL to check if it is the
root cause of https://crbug.com/616989..

Powered by Google App Engine
This is Rietveld 408576698