New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 726743 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows , Mac
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Select dropdowns do not work within an iframe within extensions

Reported by lukestan...@gmail.com, May 26 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

Steps to reproduce the problem:
1. Clone this repo: https://github.com/LukeStanbery89/iframe-extension
2. Load it up in Chrome as an extension in developer mode.
3. Try to use the select dropdown. 

What is the expected behavior?
The select should dropdown to expose the possible selection values.

What went wrong?
The select fails to dropdown. You can still click on it to give it focus and use the alphanumeric keys to make a selection, but you cannot make a selection using only the cursor.

Did this work before? N/A 

Chrome version: 58.0.3029.110  Channel: stable
OS Version: OS X 10.12.5
Flash Version:
 
Screen Shot 2017-05-25 at 11.42.48 AM.png
26.0 KB View Download

Comment 1 by lgrey@chromium.org, May 26 2017

Components: -UI Platform>Extensions
Confirmed that the same issue does NOT occur in Firefox.
Screen Shot 2017-05-30 at 9.07.50 AM.png
57.9 KB View Download
Cc: ligim...@chromium.org
Labels: Needs-Triage-M58 Needs-Bisect
Tested on Windows and Linux as well. Same problem occurs.

Comment 5 by hdodda@chromium.org, May 31 2017

Cc: hdodda@chromium.org
Labels: Needs-Feedback
Tested the issue on mac os 10.12.5 using chrome M58 #58.0.3029.110 and followed below steps :

1. Loaded the given zip extension in chrome 
2. Clicked on the extension icon and found a popup with dropdown volvo and tried to clicked on t and no dropdown opened.

Attached screencast for reference.

@lukestanbery89-- Could you please check attached screencast and confirm us if we had missed any steps in reproducing the issue or please provide us a video explaining the issue , that would help us in triaging the issue better.

Thanks!
726743.mp4
3.0 MB View Download
@hdodda

No missed steps. You replicated the issue perfectly. As you can see, the dropdown does not open.

Thanks.
Project Member

Comment 7 by sheriffbot@chromium.org, May 31 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "hdodda@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Type-Bug -Pri-2 -Needs-Bisect hasbisect-per-revision M-60 OS-Windows Pri-1 Type-Bug-Regression
Owner: nasko@chromium.org
Status: Assigned (was: Unconfirmed)
Tested the issue on windows 7 , mac os 10.12.4 a using chrome M58 #58.0.3029.110 and M60 #60.0.3117.0 and issue is reproduced.

This is a regression issue broken in M55.

Using the per-revision bisect providing the bisect results,
Good build: 54.0.2840.0 (Revision: 414607).
Bad build: 55.0.2842.0 (Revision: 414942).

You are probably looking for a change made after 414878 (known good), but no later than 414879 (first known bad).

CHANGELOG URL:

The script might not always return single CL as suspectas some perf builds might get missing due to failure.

 https://chromium.googlesource.com/chromium/src/+log/5d6411a1a10652b1a3d9ced8d744f7e427918805..d8f0aefde00132b06bd97cb17555f2ec89a0c203

From the CL above, assigning the issue to the concern owner 

@nasko- Could you please check whether this is caused with respect to your change, if not please help us in assigning it to the right owner.

Review-Url: https://codereview.chromium.org/2285883002

Thanks!

Comment 9 by nasko@chromium.org, Jun 1 2017

Cc: creis@chromium.org nasko@chromium.org
Components: Internals>Sandbox>SiteIsolation
Owner: kenrb@chromium.org
#c8, it definitely can be the change you pointed, but it merely enables isolation of extensions, so not the root cause.

kenrb@, can you take a stab at investigating this one?
Looking.
Status: Started (was: Assigned)
I have a tentative patch uploaded for review.
Project Member

Comment 12 by bugdroid1@chromium.org, Jun 2 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/e4f9108cb1e95e813387cf0b7eca98992530fdb1

commit e4f9108cb1e95e813387cf0b7eca98992530fdb1
Author: kenrb <kenrb@chromium.org>
Date: Fri Jun 02 20:32:08 2017

Propagate auto-resize viewport values to OOPIF processes

RenderWidgetHostViewChildFrame currently gets its visible viewport size
from the top-level RenderWidgetHostView, which typically comes from the
platform window. However, when the top-level frame has auto-resize
enabled, internally it sets its own visible viewport, and this
information not available to OOPIF children. This causes issues
in particular for extension popups which have window sizes of (0, 0)
and rely on auto-resize to modify the viewport in Blink.

This patch causes the WebContents to store the auto-resize value
reported by the top-level frame and make it available to OOPIF
RenderWidgetHostViews. They, in turn, allow an auto-resize size to
override the windows size when determining their visible viewport.

BUG= 726743 
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation

Review-Url: https://codereview.chromium.org/2914013004
Cr-Commit-Position: refs/heads/master@{#476772}

[modify] https://crrev.com/e4f9108cb1e95e813387cf0b7eca98992530fdb1/content/browser/frame_host/render_widget_host_view_child_frame.cc
[modify] https://crrev.com/e4f9108cb1e95e813387cf0b7eca98992530fdb1/content/browser/frame_host/render_widget_host_view_child_frame_browsertest.cc
[modify] https://crrev.com/e4f9108cb1e95e813387cf0b7eca98992530fdb1/content/browser/renderer_host/render_view_host_impl.cc
[modify] https://crrev.com/e4f9108cb1e95e813387cf0b7eca98992530fdb1/content/browser/renderer_host/render_widget_host_delegate.cc
[modify] https://crrev.com/e4f9108cb1e95e813387cf0b7eca98992530fdb1/content/browser/renderer_host/render_widget_host_delegate.h
[modify] https://crrev.com/e4f9108cb1e95e813387cf0b7eca98992530fdb1/content/browser/web_contents/web_contents_impl.cc
[modify] https://crrev.com/e4f9108cb1e95e813387cf0b7eca98992530fdb1/content/browser/web_contents/web_contents_impl.h

Labels: -Needs-Triage-M58
Status: Fixed (was: Started)
Labels: Merge-Request-60
Project Member

Comment 15 by sheriffbot@chromium.org, Jun 6 2017

Labels: -Merge-Request-60 Hotlist-Merge-Approved Merge-Approved-60
Your change meets the bar and is auto-approved for M60. Please go ahead and merge the CL to branch 3112 manually. Please contact milestone owner if you have questions.
Owners: amineer@(Android), cmasso@(iOS), josafat@(ChromeOS), bustamante@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Thanks for the fix. 

Please confirm whether the fix is verified in canary. If yes, merge to 3112 branch ASAP.
I can no longer reproduce the issue on Windows Canary, will merge shortly.
Tested it myself in Canary v61.0.3122.0 for Mac and can confirm that the issue is resolved. Eagerly awaiting the stable release.

Thanks, folks!
Project Member

Comment 19 by bugdroid1@chromium.org, Jun 6 2017

Labels: -merge-approved-60 merge-merged-3112
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/aac33a6085f198ec79b3ea1c293392a3c0d2098f

commit aac33a6085f198ec79b3ea1c293392a3c0d2098f
Author: Ken Buchanan <kenrb@chromium.org>
Date: Tue Jun 06 20:10:38 2017

Propagate auto-resize viewport values to OOPIF processes

RenderWidgetHostViewChildFrame currently gets its visible viewport size
from the top-level RenderWidgetHostView, which typically comes from the
platform window. However, when the top-level frame has auto-resize
enabled, internally it sets its own visible viewport, and this
information not available to OOPIF children. This causes issues
in particular for extension popups which have window sizes of (0, 0)
and rely on auto-resize to modify the viewport in Blink.

This patch causes the WebContents to store the auto-resize value
reported by the top-level frame and make it available to OOPIF
RenderWidgetHostViews. They, in turn, allow an auto-resize size to
override the windows size when determining their visible viewport.

BUG= 726743 
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation

Review-Url: https://codereview.chromium.org/2914013004
Cr-Original-Commit-Position: refs/heads/master@{#476772}
Review-Url: https://codereview.chromium.org/2928643003 .
Cr-Commit-Position: refs/branch-heads/3112@{#202}
Cr-Branched-From: b6460e24cf59f429d69de255538d0fc7a425ccf9-refs/heads/master@{#474897}

[modify] https://crrev.com/aac33a6085f198ec79b3ea1c293392a3c0d2098f/content/browser/frame_host/render_widget_host_view_child_frame.cc
[modify] https://crrev.com/aac33a6085f198ec79b3ea1c293392a3c0d2098f/content/browser/frame_host/render_widget_host_view_child_frame_browsertest.cc
[modify] https://crrev.com/aac33a6085f198ec79b3ea1c293392a3c0d2098f/content/browser/renderer_host/render_view_host_impl.cc
[modify] https://crrev.com/aac33a6085f198ec79b3ea1c293392a3c0d2098f/content/browser/renderer_host/render_widget_host_delegate.cc
[modify] https://crrev.com/aac33a6085f198ec79b3ea1c293392a3c0d2098f/content/browser/renderer_host/render_widget_host_delegate.h
[modify] https://crrev.com/aac33a6085f198ec79b3ea1c293392a3c0d2098f/content/browser/web_contents/web_contents_impl.cc
[modify] https://crrev.com/aac33a6085f198ec79b3ea1c293392a3c0d2098f/content/browser/web_contents/web_contents_impl.h

Labels: TE-Verified-M60 TE-Verified-60.0.3112.24
Verified the issue on windows 10, Mac 10.12.4 and Ubuntu 14.04 using chrome beta version #60.0.3112.24 as per comment #0

Observed that select dropdown worked to expose the possible selection values. Hence, the fix is working as expected.

Attaching screen cast for reference.
Hence, adding the verified labels.

Thanks...!!
726743.mp4
555 KB View Download

Sign in to add a comment