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

Issue 1414783002: Don't keep the lazy background page alive after a view with a Pepper plugin is closed (Closed)

Created:
5 years, 2 months ago by emaxx
Modified:
5 years, 2 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't keep the lazy background page alive after a view with a Pepper plugin is closed. A ref counting mechanism was added in https://codereview.chromium.org/1117023002/ to keep event/background pages from being unloaded if they had a plugin on them. However, plugins in app windows created from the background page are still counted in this ref counting. And if a plugin is embedded in an app window for a chrome app, and the window is closed without removing the plugin first, the browser message was never delivered to update the ref count. The fix is to trigger the ref counter change only for for the NaCl instances attached to the background pages. BUG=521053 Committed: https://crrev.com/e3baba1f5a1c747382c5623364503ac451fb6ddb Cr-Commit-Position: refs/heads/master@{#354899}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -18 lines) Patch
M chrome/browser/extensions/lazy_background_page_apitest.cc View 2 chunks +34 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/extension_web_contents_observer.cc View 2 chunks +17 lines, -10 lines 0 comments Download
M ppapi/tests/extensions/extensions.gyp View 1 chunk +21 lines, -0 lines 0 comments Download
A + ppapi/tests/extensions/popup/background.js View 1 chunk +2 lines, -6 lines 0 comments Download
A ppapi/tests/extensions/popup/manifest.json View 1 chunk +10 lines, -0 lines 0 comments Download
A + ppapi/tests/extensions/popup/module.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
A ppapi/tests/extensions/popup/popup.html View 1 chunk +11 lines, -0 lines 0 comments Download
A + ppapi/tests/extensions/popup/popup.js View 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
emaxx
rockot@chromium.org: Please review changes in chrome/browser/*, extensions/browser/* bbudge@chromium.org: Please review changes in ppapi/*, chrome/chrome_tests.gypi
5 years, 2 months ago (2015-10-19 19:38:01 UTC) #2
Ken Rockot(use gerrit already)
extensions lgtm
5 years, 2 months ago (2015-10-19 22:02:53 UTC) #3
bbudge
I don't understand how the test works. Where do you test that the background page ...
5 years, 2 months ago (2015-10-19 22:09:54 UTC) #4
emaxx
On 2015/10/19 22:09:54, bbudge wrote: > I don't understand how the test works. Where do ...
5 years, 2 months ago (2015-10-19 22:13:40 UTC) #5
bbudge
Thanks LGTM
5 years, 2 months ago (2015-10-19 22:33:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414783002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414783002/1
5 years, 2 months ago (2015-10-19 22:39:51 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 2 months ago (2015-10-19 22:45:07 UTC) #9
commit-bot: I haz the power
5 years, 2 months ago (2015-10-19 22:46:31 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/e3baba1f5a1c747382c5623364503ac451fb6ddb
Cr-Commit-Position: refs/heads/master@{#354899}

Powered by Google App Engine
This is Rietveld 408576698