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

Issue 1514073002: Oilpan: always limit persisted plugin disposal to PluginViews instances. (Closed)

Created:
5 years ago by sof
Modified:
5 years ago
Reviewers:
oilpan-reviews, dcheng
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Oilpan: always limit persisted plugin disposal to PluginViews instances. With Oilpan enabled, the plugin element needs to synchronously inform its 'persisted' plugin widget that it is slated for destruction and call its dispose() method. This is needed so as to have that plugin unregister in a timely fashion (without waiting on the next GC.) This disposal step is only needed for PluginView widgets; it is indeed harmful to call it for a FrameView widget should it be disposed while being in the middle of performing a full layout. R=dcheng BUG=568383 Committed: https://crrev.com/b6ec75dd3ddc303d703afbc0fd3a3a9b12663d0f Cr-Commit-Position: refs/heads/master@{#364690}

Patch Set 1 #

Total comments: 4

Patch Set 2 : add asserts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp View 1 2 chunks +10 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1514073002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1514073002/1
5 years ago (2015-12-10 12:27:42 UTC) #2
sof
please take a look. This is the minimal incremental change needed, i think. However, i'll ...
5 years ago (2015-12-10 12:50:58 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-10 13:41:21 UTC) #7
dcheng
https://codereview.chromium.org/1514073002/diff/1/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp File third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp (right): https://codereview.chromium.org/1514073002/diff/1/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp#newcode98 third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp:98: m_persistedPluginWidget->dispose(); Is the only other possible case here that ...
5 years ago (2015-12-11 07:47:10 UTC) #8
sof
https://codereview.chromium.org/1514073002/diff/1/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp File third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp (right): https://codereview.chromium.org/1514073002/diff/1/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp#newcode98 third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp:98: m_persistedPluginWidget->dispose(); On 2015/12/11 07:47:09, dcheng wrote: > Is the ...
5 years ago (2015-12-11 08:01:18 UTC) #9
sof
It _looks like_ scaling back (but not removing completely) the use of widget disposal is ...
5 years ago (2015-12-11 08:04:30 UTC) #10
dcheng
lgtm https://codereview.chromium.org/1514073002/diff/1/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp File third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp (right): https://codereview.chromium.org/1514073002/diff/1/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp#newcode98 third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp:98: m_persistedPluginWidget->dispose(); On 2015/12/11 at 08:01:18, sof wrote: > ...
5 years ago (2015-12-11 08:11:22 UTC) #11
sof
thanks, asserts added in both places.
5 years ago (2015-12-11 10:07:50 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1514073002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1514073002/20001
5 years ago (2015-12-11 10:08:17 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-11 13:35:16 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1514073002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1514073002/20001
5 years ago (2015-12-11 13:38:37 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-11 13:43:01 UTC) #22
commit-bot: I haz the power
5 years ago (2015-12-11 13:43:47 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b6ec75dd3ddc303d703afbc0fd3a3a9b12663d0f
Cr-Commit-Position: refs/heads/master@{#364690}

Powered by Google App Engine
This is Rietveld 408576698