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

Issue 1284403003: Persist plugins over reattach. (Closed)

Created:
5 years, 4 months ago by dsinclair
Modified:
5 years, 3 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, dglazkov+blink
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Persist plugins over reattach. Currently we have logic to allow plugins to opt-in to persisting when detached. This CL updates the logic to always persist when we are doing a reattach. This allows us to remember the state of things like Flash files as we reattach the DOM nodes. The original persist CL (r196024) was reverted because it caused timeouts for: Reason: breaks the following browser_tests: WebViewTest.EmbedderVisibilityChanged, WebViewTest.GuestVisibilityChanged, WebViewTest.Shim_TestResizeWebviewWithDisplayNoneResizesContent and the following extensions_browsertests: WebViewAPITest.EmbedderVisibilityChanged WebViewAPITest.GuestVisibilityChanged This Cl removes the call to widget->dispose() in the HTMLPluginElement::attach call which fixes this issue. BUG=370459 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201401

Patch Set 1 #

Patch Set 2 : Remove dispose call. #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : Review cleanup #

Patch Set 5 : Rebase to master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -12 lines) Patch
M Source/core/html/HTMLPlugInElement.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/HTMLPlugInElement.cpp View 1 2 3 4 3 chunks +20 lines, -2 lines 0 comments Download
M Source/platform/Widget.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/web/WebPluginContainerImpl.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/web/WebPluginContainerImpl.cpp View 1 2 3 4 3 chunks +7 lines, -8 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
dsinclair
PTAL. The first patchset is the original CL, the second patchset is the change from ...
5 years, 4 months ago (2015-08-17 16:56:36 UTC) #2
dsinclair
5 years, 4 months ago (2015-08-18 13:38:51 UTC) #4
eae
LGTM
5 years, 4 months ago (2015-08-18 16:05:41 UTC) #5
dsinclair
esprehn@ for Source/web OWNERS
5 years, 4 months ago (2015-08-18 16:16:18 UTC) #6
esprehn
This will leak the plugin if we do a lazyReattach and then you remove the ...
5 years, 4 months ago (2015-08-18 16:29:20 UTC) #7
dsinclair
On 2015/08/18 16:29:20, esprehn wrote: > This will leak the plugin if we do a ...
5 years, 4 months ago (2015-08-19 14:47:15 UTC) #8
esprehn
https://codereview.chromium.org/1284403003/diff/40001/Source/core/html/HTMLPlugInElement.cpp File Source/core/html/HTMLPlugInElement.cpp (right): https://codereview.chromium.org/1284403003/diff/40001/Source/core/html/HTMLPlugInElement.cpp#newcode166 Source/core/html/HTMLPlugInElement.cpp:166: if (!layoutObject()) { I think this wants || useFallbackContent() ...
5 years, 4 months ago (2015-08-19 23:47:52 UTC) #9
dsinclair
https://codereview.chromium.org/1284403003/diff/40001/Source/core/html/HTMLPlugInElement.cpp File Source/core/html/HTMLPlugInElement.cpp (right): https://codereview.chromium.org/1284403003/diff/40001/Source/core/html/HTMLPlugInElement.cpp#newcode166 Source/core/html/HTMLPlugInElement.cpp:166: if (!layoutObject()) { On 2015/08/19 23:47:52, esprehn wrote: > ...
5 years, 4 months ago (2015-08-20 14:31:37 UTC) #10
dsinclair
ping.
5 years, 4 months ago (2015-08-25 15:15:39 UTC) #11
esprehn
lgtm
5 years, 3 months ago (2015-08-28 12:54:58 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1284403003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1284403003/80001
5 years, 3 months ago (2015-08-28 12:55:02 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://src.chromium.org/viewvc/blink?view=rev&revision=201401
5 years, 3 months ago (2015-08-28 14:04:40 UTC) #16
philipj_slow
Sweet! This should unblock https://code.google.com/p/chromium/issues/detail?id=240576, do you intend to look reviving that effort at that ...
5 years, 3 months ago (2015-08-31 14:23:31 UTC) #17
dsinclair
5 years, 3 months ago (2015-08-31 14:29:45 UTC) #18
Message was sent while issue was closed.
On 2015/08/31 14:23:31, philipj wrote:
> Sweet! This should unblock
> https://code.google.com/p/chromium/issues/detail?id=240576, do you intend to
> look reviving that effort at that as well?

Yes. I have an old CL https://codereview.chromium.org/1139033006/ that I'm going
to try to update. But, I want to let this one sit for a week or so to see if any
security issues or other problems pop up again.

Powered by Google App Engine
This is Rietveld 408576698