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

Issue 642760 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

chrome.extension.getViews() does not return a view embedded within <extensionview>

Project Member Reported by sheretov@chromium.org, Aug 31 2016

Issue description

Version: M53 Beta - 53.0.2785.80
OS: OSX, likely others.

What steps will reproduce the problem?
(1) Open chrome://cast page. Notice the <extensionview> element with an embedded "chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/cast_setup/index.html#devices" page.

(2) Inspect the extension page: be sure to got through chrome://inspect/#pages. Select the chrome-extension:// page listed under the chrome://cast/#devices page.

(3) In the JS console of the extension page, run the following code:
chrome.extension.getViews().map(view => view.window.location.href)

What is the expected output?
["chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/cast_setup/index.html#devices", "chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/_generated_background_page.html"]

What do you see instead?
["chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/_generated_background_page.html"]


Some notes:

(1) This works correctly when "chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/cast_setup/index.html#devices" is opened in its own tab, instead of the inside the extensionview.

(2) The page inside the <extensionview> is not completely cut off from the rest of the extension: chrome.runtime.sendMessage works for communicating with the event page.
 
Screen Shot 2016-08-31 at 8.04.46 AM.png
65.9 KB View Download
Cc: rdevlin....@chromium.org
Status: Assigned (was: Untriaged)
Assigning to lazyboy@ per original report and +cc rdevlin.cronin@ for extensions.
Cc: lazyboy@chromium.org
Owner: wjmaclean@chromium.org
To be clear, this never worked, right?

Assigning to James who works on guestview related stuff these days. I'm speculating that we might need to include extensionview frame in ExtensionFrameHelper::GetExtensionFrames() somehow.
Cc: wjmaclean@chromium.org
Owner: paulmeyer@chromium.org
Paul, this seems like it could be related to https://bugs.chromium.org/p/chromium/issues/detail?id=634168

Is this another manifestation of the same bug?
No, I believe that is unrelated.
Components: Platform>Extensions Platform>Apps>BrowserTag
Owner: wjmaclean@chromium.org
Status: Untriaged (was: Assigned)
Status: Assigned (was: Untriaged)

Sign in to add a comment