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

Issue 1473913003: Restore original WebView SurfaceId after showing interstitial. (Closed)

Created:
5 years ago by wjmaclean
Modified:
5 years ago
Reviewers:
kenrb, Charlie Reis, jbauman
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Restore original WebView SurfaceId after showing interstitial. When interstitials are shown using InterstitialPage with a WebView guest, the interstitial creates a new RenderWidgetHostViewGuest but uses it with the existing BrowserPlugin in the embedder's renderer. The new RenderWidgetHostViewGuest creates a new surface and instructs the BrowserPlugin to use it, but when the interstitial goes away, RenderWidgetHostViewGuest::Show() currently fails to restore the original surface, causing the interstitial's content to continue to display in place of the desired content. Resizing and other operations force creation of a new surface, but otherwise we need to restore the original; this CL modifies Show() to do this. BUG=407048 Committed: https://crrev.com/890a88b9e6d266f3e422f335239f85a9aa2ded42 Cr-Commit-Position: refs/heads/master@{#365024}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Create new sequence when re-showing a surface for WebView. #

Patch Set 3 : Add clarifying comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -1 line) Patch
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 2 1 chunk +15 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (12 generated)
wjmaclean
kenrb@ - Could you please do an initial review of this?
5 years ago (2015-11-25 19:14:29 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1473913003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1473913003/1
5 years ago (2015-11-25 19:14:50 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-25 21:13:52 UTC) #7
kenrb
https://codereview.chromium.org/1473913003/diff/1/content/browser/frame_host/render_widget_host_view_guest.cc File content/browser/frame_host/render_widget_host_view_guest.cc (right): https://codereview.chromium.org/1473913003/diff/1/content/browser/frame_host/render_widget_host_view_guest.cc#newcode103 content/browser/frame_host/render_widget_host_view_guest.cc:103: surface_sequence_); I wonder if it might be safer to ...
5 years ago (2015-11-25 21:44:03 UTC) #8
wjmaclean
jbauman@ - do you have any thoughts on kenrb@'s concerns below? When I decided to ...
5 years ago (2015-11-25 21:50:17 UTC) #10
jbauman
On 2015/11/25 21:44:03, kenrb wrote: > https://codereview.chromium.org/1473913003/diff/1/content/browser/frame_host/render_widget_host_view_guest.cc > File content/browser/frame_host/render_widget_host_view_guest.cc (right): > > https://codereview.chromium.org/1473913003/diff/1/content/browser/frame_host/render_widget_host_view_guest.cc#newcode103 > ...
5 years ago (2015-11-30 22:32:31 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1473913003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1473913003/20001
5 years ago (2015-12-10 18:28:12 UTC) #13
wjmaclean
Thanks jbauman@, I hadn't realised that the sequence couldn't be reused - creating a new ...
5 years ago (2015-12-10 18:28:49 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-10 19:55:49 UTC) #16
jbauman
lgtm
5 years ago (2015-12-10 23:46:42 UTC) #17
kenrb
lgtm
5 years ago (2015-12-11 21:57:29 UTC) #18
wjmaclean
creis@ - take a look at a small CL please?
5 years ago (2015-12-11 22:00:29 UTC) #20
Charlie Reis
I don't really follow this at all, but I'll defer to jbauman and kenrb and ...
5 years ago (2015-12-11 22:26:49 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1473913003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1473913003/40001
5 years ago (2015-12-14 14:05:25 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-14 15:22:08 UTC) #26
commit-bot: I haz the power
5 years ago (2015-12-14 15:22:53 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/890a88b9e6d266f3e422f335239f85a9aa2ded42
Cr-Commit-Position: refs/heads/master@{#365024}

Powered by Google App Engine
This is Rietveld 408576698