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

Issue 2609003004: [Reland] Maintain HostZoom connection per-frame on browser side (Closed)

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

Description

[Reland] Maintain HostZoom connection per-frame on browser side This CL is a reland of https://codereview.chromium.org/2581143002. That CL was reverted due to a failing layouttest. Investigation revealed that the layouttest itself was busted, and that test has now been removed (see the discussion on crbug.com/673065 for details). Original CL description: 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%. TBR=jochen Review-Url: https://codereview.chromium.org/2609003004 Cr-Commit-Position: refs/heads/master@{#441629} Committed: https://chromium.googlesource.com/chromium/src/+/e7aa3298381a03045a4a6dc6379990275dbfb247

Patch Set 1 #

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 chunk +2 lines, -1 line 0 comments Download
M content/browser/host_zoom_map_observer.cc View 1 chunk +19 lines, -6 lines 0 comments Download
M content/browser/zoom_browsertest.cc View 2 chunks +68 lines, -1 line 0 comments Download
A content/test/data/page_with_iframe_and_link.html View 1 chunk +31 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 16 (10 generated)
blundell
3 years, 11 months ago (2017-01-03 12:55:34 UTC) #6
wjmaclean
On 2017/01/03 12:55:34, blundell wrote: lgtm, to land after the offending layout test is gone.
3 years, 11 months ago (2017-01-03 19:49:38 UTC) #7
blundell
TBR=jochen for //content/browser/zoom_browsertest.cc as this is an unchanged reland of an earlier CL
3 years, 11 months ago (2017-01-05 10:59:51 UTC) #10
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/2609003004/1
3 years, 11 months ago (2017-01-05 11:00:11 UTC) #12
jochen (gone - plz use gerrit)
lgtm
3 years, 11 months ago (2017-01-05 12:00:49 UTC) #13
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 12:39:26 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/e7aa3298381a03045a4a6dc63799...

Powered by Google App Engine
This is Rietveld 408576698