Strict site isolation: Cross-site iframe scaling does not get updated with parent window
Reported by
alvinhoc...@gmail.com,
Jan 18 2018
|
||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.99 Safari/537.36 Steps to reproduce the problem: 1. Have two monitors with different DPI scaling 2. Enable strict site isolation on chrome://flags/#enable-site-per-process 3. Visit https://www.reddit.com/domain/youtube.com/ and expand one of the videos 4. Move the window containing the page to another monitor What is the expected behavior? What went wrong? The scaling of the video (iframe) does not get updated. Did this work before? N/A Chrome version: 64.0.3282.99 Channel: beta OS Version: 10.0 Flash Version: This does not happen with strict site isolation disabled.
,
Jan 18 2018
,
Jan 18 2018
+fsamuel@ I believe the pathways that propagate device scale factor to OOPIFs changed as part of the new viz surface sync work.
,
Jan 18 2018
Is this possibly related to https://bugs.chromium.org/p/chromium/issues/detail?id=778443 ?
,
Jan 18 2018
,
Jan 18 2018
Oddly enough this works fine for <webview> but is broken for OOPIFs on this page. I'm not yet sure why but I do suspect this is a surface sync bug. Assigning myself to it.
,
Jan 18 2018
I've verified that device scale factor does get propagated correctly from parent to child and a new LocalSurfaceId is allocated on the way done. This bug seems specific to using zoom for device scale factor. --enable-use-zoom-for-dsf=false makes the problem go away. I'm continuing to investigate.
,
Jan 22 2018
OK, I honestly have no idea what's going on but I verified this happens even if I disable surface sync via --disable-features="SurfaceSynchronization" so I'm passing this along to a DSF expert: oshima@.
,
Jan 23 2018
We found a bug & a fix. Looking into how we can test this now.
,
Jan 30 2018
That's great! Any updates on the test?
,
Feb 2 2018
CL under review https://chromium-review.googlesource.com/c/chromium/src/+/882301
,
Feb 6 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/3c07b33798715fee176f564bc53a341489b02956 commit 3c07b33798715fee176f564bc53a341489b02956 Author: Mitsuru Oshima <oshima@chromium.org> Date: Tue Feb 06 04:56:50 2018 Update the scale of the RenderWidget for ooip frame when dsf changes BUG= 803442 TEST=Covered by unittest. Also tested manually. Change-Id: I1b77c6d589596f66ed1bc9135d6be26318df872a Reviewed-on: https://chromium-review.googlesource.com/882301 Commit-Queue: Mitsuru Oshima <oshima@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Reviewed-by: Fady Samuel <fsamuel@chromium.org> Reviewed-by: Charlie Reis <creis@chromium.org> Cr-Commit-Position: refs/heads/master@{#534627} [modify] https://crrev.com/3c07b33798715fee176f564bc53a341489b02956/content/browser/site_per_process_browsertest.cc [modify] https://crrev.com/3c07b33798715fee176f564bc53a341489b02956/content/renderer/render_view_impl.cc [modify] https://crrev.com/3c07b33798715fee176f564bc53a341489b02956/content/renderer/render_view_impl.h [modify] https://crrev.com/3c07b33798715fee176f564bc53a341489b02956/content/renderer/render_widget.cc [modify] https://crrev.com/3c07b33798715fee176f564bc53a341489b02956/content/renderer/render_widget.h [modify] https://crrev.com/3c07b33798715fee176f564bc53a341489b02956/content/test/BUILD.gn [modify] https://crrev.com/3c07b33798715fee176f564bc53a341489b02956/ui/aura/test/test_screen.cc
,
Feb 6 2018
,
Feb 6 2018
Issue 807112 has been merged into this issue.
,
Feb 15 2018
oshima@, how risky is this change for merging back in M65?
,
Feb 20 2018
I made this change soon after branch cut, so the risk should be low. I could cherry pick cleanly and it seems to be working (I built and tested the build on branch) Do you want to merge to 65?
,
Feb 21 2018
The CL looks fine to merge for me, however it does move code around and I wonder if other merges would be impacted. Since it has been on canary for a while, I support merging it in M65.
,
Feb 21 2018
Forgot to add proper label, doing so now.
,
Feb 21 2018
This bug requires manual review: We are only 12 days from stable. Please contact the milestone owner if you have questions. Owners: cmasso@(Android), cmasso@(iOS), bhthompson@(ChromeOS), govind@(Desktop) For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Feb 21 2018
Rejecting merge to M65 per offline chat with nasko@ as we're very close to M65 stable promotion to minimize the risk. Thank you. |
||||||||||||
►
Sign in to add a comment |
||||||||||||
Comment 1 by f...@opera.com
, Jan 18 2018