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

Issue 2581143002: Maintain HostZoom connection per-frame on browser side (Closed)

Created:
4 years ago by blundell
Modified:
4 years ago
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Maintain HostZoom connection per-frame on browser side HostZoomMapObserver is a per-WebContents class, while the HostZoom Mojo connection is per-frame. Before this CL, HostZoomMapObserver was maintaining one HostZoom connection and rebinding it every time a new RenderFrame was created. This meant that HostZoomMapObserver was continually losing connections to existing frames. This CL changes HostZoomMapObserver to maintain one connection per-RenderFrame in a map indexed by the corresponding RenderFrameHost. BUG=673065 TEST=Visit news.ycombinator.com and increase the zoom level to 175%. Click the top link. Hit back: news.ycombinator.com should still be zoomed to 175%.

Patch Set 1 #

Patch Set 2 : Handle unittest #

Total comments: 4

Patch Set 3 : Rebase #

Patch Set 4 : Response to reviews #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -8 lines) Patch
M content/browser/host_zoom_map_observer.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/host_zoom_map_observer.cc View 1 2 3 1 chunk +19 lines, -6 lines 0 comments Download
M content/browser/iframe_zoom_browsertest.cc View 1 2 3 2 chunks +68 lines, -1 line 0 comments Download
A content/test/data/page_with_iframe_and_link.html View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (25 generated)
blundell
The Android telemetry failures look unrelated.
4 years ago (2016-12-16 14:18:46 UTC) #10
wjmaclean
I'm ok with this generally, though it needs a non-manual test. Presumably examples in site_isolation_browsertest ...
4 years ago (2016-12-16 14:45:35 UTC) #11
ncarter (slow)
https://codereview.chromium.org/2581143002/diff/20001/content/browser/host_zoom_map_observer.cc File content/browser/host_zoom_map_observer.cc (right): https://codereview.chromium.org/2581143002/diff/20001/content/browser/host_zoom_map_observer.cc#newcode56 content/browser/host_zoom_map_observer.cc:56: // key here. On 2016/12/16 14:45:35, wjmaclean wrote: > ...
4 years ago (2016-12-16 18:21:12 UTC) #13
blundell
Thanks! Test added. https://codereview.chromium.org/2581143002/diff/20001/content/browser/host_zoom_map_observer.cc File content/browser/host_zoom_map_observer.cc (right): https://codereview.chromium.org/2581143002/diff/20001/content/browser/host_zoom_map_observer.cc#newcode56 content/browser/host_zoom_map_observer.cc:56: // key here. On 2016/12/16 18:21:12, ...
4 years ago (2016-12-19 17:03:14 UTC) #24
ncarter (slow)
https://codereview.chromium.org/2581143002/diff/20001/content/browser/host_zoom_map_observer.cc File content/browser/host_zoom_map_observer.cc (right): https://codereview.chromium.org/2581143002/diff/20001/content/browser/host_zoom_map_observer.cc#newcode56 content/browser/host_zoom_map_observer.cc:56: // key here. On 2016/12/19 17:03:14, blundell wrote: > ...
4 years ago (2016-12-19 19:21:16 UTC) #25
blundell
On 2016/12/19 19:21:16, ncarter wrote: > https://codereview.chromium.org/2581143002/diff/20001/content/browser/host_zoom_map_observer.cc > File content/browser/host_zoom_map_observer.cc (right): > > https://codereview.chromium.org/2581143002/diff/20001/content/browser/host_zoom_map_observer.cc#newcode56 > ...
4 years ago (2016-12-19 20:27:22 UTC) #26
ncarter (slow)
lgtm
4 years ago (2016-12-20 00:17:25 UTC) #27
blundell
wjmaclean@, I'll wait for your review as well. Thanks!
4 years ago (2016-12-20 06:51:39 UTC) #28
wjmaclean
On 2016/12/20 06:51:39, blundell wrote: > wjmaclean@, I'll wait for your review as well. Thanks! ...
4 years ago (2016-12-20 14:31:37 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2581143002/100001
4 years ago (2016-12-20 14:36:04 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years ago (2016-12-20 14:41:42 UTC) #34
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/8e24b7d133424fb221891601d6254b7df58188d5 Cr-Commit-Position: refs/heads/master@{#439800}
4 years ago (2016-12-20 14:45:34 UTC) #36
blundell
A revert of this CL (patchset #4 id:100001) has been created in https://codereview.chromium.org/2595603002/ by blundell@chromium.org. ...
4 years ago (2016-12-20 15:53:48 UTC) #37
wjmaclean
4 years ago (2016-12-20 16:23:10 UTC) #38
Message was sent while issue was closed.
On 2016/12/20 15:53:48, blundell wrote:
> A revert of this CL (patchset #4 id:100001) has been created in
> https://codereview.chromium.org/2595603002/ by mailto:blundell@chromium.org.
> 
> The reason for reverting is: Seems to cause problems on Mac:
> 
>
https://luci-logdog.appspot.com/v/?s=chromium%2Fbb%2Fchromium.webkit%2FWebKit....

Also showing up on WebKit Linux Trusty:
(https://build.chromium.org/p/chromium.webkit/waterfall?builder=WebKit%20Linux...)

fast/css/preserve-user-specified-zoom-level-on-reload.html

Powered by Google App Engine
This is Rietveld 408576698