|
|
Created:
4 years, 3 months ago by Nate Chapin Modified:
4 years, 3 months ago Reviewers:
tommycli CC:
chromium-reviews Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionDelete ReplayReceivedData, make WebViewPlugin not a WebFrameClient
* WebViewPlugin only needs to be a WebFrameClient in order
to create a WebFrame, and to listen to didClearWindowObject.
Create a new private helper class to do this.
* WebViewPlugin::didReceiveResponse() no longer overrides
both WebFrameClient and WebPlugin, and will never receive
WebPlugin calllbacks. Make WebPlugin's resource load
callbacks NOTREACHED().
* ReplayReceivedData() only has one live clause, which is
to transfer focus state from the placeholder plugin to the
live plugin. RestoreTitleText() is similar. Expose
accessors for focus and title state, and use them in
LoadablePlaceholderPlugin, which is the only consumer of
that state.
BUG=
Committed: https://crrev.com/8e1badd5fbc054cf4ffc9303e8cb0aa22ce55ca6
Cr-Commit-Position: refs/heads/master@{#419837}
Patch Set 1 #Patch Set 2 : drop WebFrameClient subclassing #Patch Set 3 : helper class WebFrameClient #Patch Set 4 : move some logic to LoadablePluginPLaceholder #Patch Set 5 : style #Patch Set 6 : one more tweak #Patch Set 7 : PluginWebFrameClient::plugin_ should be private #
Messages
Total messages: 33 (26 generated)
The CQ bit was checked by japhet@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by japhet@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by japhet@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by japhet@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by japhet@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by japhet@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Delete ReplayReceivedData BUG= ========== to ========== Delete ReplayReceivedData, make WebViewPlugin not a WebFrameClient * WebViewPlugin only needs to be a WebFrameClient in order to create a WebFrame, and to listen to didClearWindowObject. Create a new private helper class to do this. * WebViewPlugin::didReceiveResponse() no longer overrides both WebFrameClient and WebPlugin, and will never receive WebPlugin calllbacks. Make WebPlugin's resource load callbacks NOTREACHED(). * ReplayReceivedData() only has one live clause, which is to transfer focus state from the placeholder plugin to the live plugin. RestoreTitleText() is similar. Expose accessors for focus and title state, and use them in LoadablePlaceholderPlugin, which is the only consumer of that state. BUG= ==========
japhet@chromium.org changed reviewers: + tommycli@chromium.org
Post crbug.com/641028 cleanup, PTAL :)
whoa cool. lgtm As I understand it, the didFinishLoading and didFailLoading(error) were dead code that you've now marked with NOTREACHED() right?
On 2016/09/20 17:51:59, tommycli wrote: > whoa cool. lgtm > > As I understand it, the didFinishLoading and didFailLoading(error) were dead > code that you've now marked with NOTREACHED() right? Correct. FWIW, I took a brief look just now at also moving the WebViewClient and RenderViewObserver inheritance to PluginWebFrameClient, but that gets substantially messier.
The CQ bit was checked by japhet@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from tommycli@chromium.org Link to the patchset: https://codereview.chromium.org/2344023002/#ps120001 (title: "PluginWebFrameClient::plugin_ should be private")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/09/20 17:58:56, Nate Chapin wrote: > On 2016/09/20 17:51:59, tommycli wrote: > > whoa cool. lgtm > > > > As I understand it, the didFinishLoading and didFailLoading(error) were dead > > code that you've now marked with NOTREACHED() right? > > Correct. > > FWIW, I took a brief look just now at also moving the WebViewClient and > RenderViewObserver inheritance to PluginWebFrameClient, but that gets > substantially messier. Cool, thanks for the cleanup.
Message was sent while issue was closed.
Description was changed from ========== Delete ReplayReceivedData, make WebViewPlugin not a WebFrameClient * WebViewPlugin only needs to be a WebFrameClient in order to create a WebFrame, and to listen to didClearWindowObject. Create a new private helper class to do this. * WebViewPlugin::didReceiveResponse() no longer overrides both WebFrameClient and WebPlugin, and will never receive WebPlugin calllbacks. Make WebPlugin's resource load callbacks NOTREACHED(). * ReplayReceivedData() only has one live clause, which is to transfer focus state from the placeholder plugin to the live plugin. RestoreTitleText() is similar. Expose accessors for focus and title state, and use them in LoadablePlaceholderPlugin, which is the only consumer of that state. BUG= ========== to ========== Delete ReplayReceivedData, make WebViewPlugin not a WebFrameClient * WebViewPlugin only needs to be a WebFrameClient in order to create a WebFrame, and to listen to didClearWindowObject. Create a new private helper class to do this. * WebViewPlugin::didReceiveResponse() no longer overrides both WebFrameClient and WebPlugin, and will never receive WebPlugin calllbacks. Make WebPlugin's resource load callbacks NOTREACHED(). * ReplayReceivedData() only has one live clause, which is to transfer focus state from the placeholder plugin to the live plugin. RestoreTitleText() is similar. Expose accessors for focus and title state, and use them in LoadablePlaceholderPlugin, which is the only consumer of that state. BUG= ==========
Message was sent while issue was closed.
Committed patchset #7 (id:120001)
Message was sent while issue was closed.
Description was changed from ========== Delete ReplayReceivedData, make WebViewPlugin not a WebFrameClient * WebViewPlugin only needs to be a WebFrameClient in order to create a WebFrame, and to listen to didClearWindowObject. Create a new private helper class to do this. * WebViewPlugin::didReceiveResponse() no longer overrides both WebFrameClient and WebPlugin, and will never receive WebPlugin calllbacks. Make WebPlugin's resource load callbacks NOTREACHED(). * ReplayReceivedData() only has one live clause, which is to transfer focus state from the placeholder plugin to the live plugin. RestoreTitleText() is similar. Expose accessors for focus and title state, and use them in LoadablePlaceholderPlugin, which is the only consumer of that state. BUG= ========== to ========== Delete ReplayReceivedData, make WebViewPlugin not a WebFrameClient * WebViewPlugin only needs to be a WebFrameClient in order to create a WebFrame, and to listen to didClearWindowObject. Create a new private helper class to do this. * WebViewPlugin::didReceiveResponse() no longer overrides both WebFrameClient and WebPlugin, and will never receive WebPlugin calllbacks. Make WebPlugin's resource load callbacks NOTREACHED(). * ReplayReceivedData() only has one live clause, which is to transfer focus state from the placeholder plugin to the live plugin. RestoreTitleText() is similar. Expose accessors for focus and title state, and use them in LoadablePlaceholderPlugin, which is the only consumer of that state. BUG= Committed: https://crrev.com/8e1badd5fbc054cf4ffc9303e8cb0aa22ce55ca6 Cr-Commit-Position: refs/heads/master@{#419837} ==========
Message was sent while issue was closed.
Patchset 7 (id:??) landed as https://crrev.com/8e1badd5fbc054cf4ffc9303e8cb0aa22ce55ca6 Cr-Commit-Position: refs/heads/master@{#419837} |