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

Issue 296983017: WebViewPlugin: Apply Prefs to WebSettings before creating a WebLocalFrame (Closed)

Created:
6 years, 7 months ago by danakj
Modified:
6 years, 7 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, enne (OOO), piman, bokan, jbroman
Visibility:
Public.

Description

WebViewPlugin: Apply Prefs to WebSettings before creating WebLocalFrame If we create a WebLocalFrame and then set blink's settings, the frame gets an inconsistent view of the settings when they change out from underneath it. Concretely, this leads to us doing WebViewImpl::setRootGraphicsLayer(A) with pinch virtual viewport disabled (the default in WebSettings), when we attach the document to the tree, then we apply the prefs to enable pinch virtual viewport, and later setRootGraphicsLayer(NULL) to detach the document. This causes a crash because the viewport code expects a matching attach before the detach. With this CL, https://codereview.chromium.org/261143003 is able to pass on the print preview and prerender browser tests. R=bauerb@chromium.org BUG=376531, 361729 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272628

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -8 lines) Patch
M components/plugins/renderer/webview_plugin.h View 2 chunks +1 line, -2 lines 0 comments Download
M components/plugins/renderer/webview_plugin.cc View 2 chunks +8 lines, -6 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
danakj
6 years, 7 months ago (2014-05-23 18:55:04 UTC) #1
Bernhard Bauer
LGTM! You have a typo in your description though; it took me a while to ...
6 years, 7 months ago (2014-05-23 18:59:11 UTC) #2
danakj
On 2014/05/23 18:59:11, Bernhard Bauer wrote: > LGTM! You have a typo in your description ...
6 years, 7 months ago (2014-05-23 18:59:51 UTC) #3
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 7 months ago (2014-05-23 18:59:55 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/296983017/1
6 years, 7 months ago (2014-05-23 19:01:34 UTC) #5
danakj
+jbroman fyi
6 years, 7 months ago (2014-05-23 19:10:26 UTC) #6
commit-bot: I haz the power
6 years, 7 months ago (2014-05-23 22:59:46 UTC) #7
Message was sent while issue was closed.
Change committed as 272628

Powered by Google App Engine
This is Rietveld 408576698