New issue
Advanced search Search tips

Issue 615462 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Jul 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , All
Pri: 2
Type: Bug



Sign in to add a comment

Remote inspecting fails with "Uncaught TypeError: Cannot read property 'addExtensions' of undefined"

Reported by lquinn@blackberry.com, May 27 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36

Steps to reproduce the problem:
1. Connect Android device to Linux PC by USB.
2. Load Chrome (or Chrome Beta or Chrome Unstable) on Linux.
3. Go to chrome://inspect/#devices.
4. Click the "inspect" link to inspect an open page on the Android device.

What is the expected behavior?
I used to be able to inspect Chrome on Android using Chrome on Linux. If I use Chrome on Windows, then it works.

What went wrong?
When clicking the "inspect" link, a new window opens with "chrome-devtools://devtools/remote/serve_rev/..." in the title bar, but the window is otherwise blank.

If I use DevTools to inspect that blank window, it shows the following in the console:

Uncaught TypeError: Cannot read property 'addExtensions' of undefined

The source link points to this code from devtools.js:

    addExtensions: function(extensions)
    {
        // Support for legacy front-ends (<M41).
        if (window["WebInspector"].addExtensions)
            window["WebInspector"].addExtensions(extensions);
        else
            this._dispatchOnInspectorFrontendAPI("addExtensions", [extensions]);
    }

Should that if statement be the following instead?

        if (window["WebInspector"] && window["WebInspector"].addExtensions)

Did this work before? Yes It worked a few weeks ago, but I don't have version details.

Chrome version: 51.0.2704.63  Channel: beta
OS Version: 
Flash Version:
 
Components: -Platform>DevTools Platform>DevTools>Mobile
Labels: OS-All
Owner: dgozman@chromium.org
Status: Assigned (was: Unconfirmed)
Labels: Needs-Feedback
Are there any other errors? The one about addExtensions should just make devtools extensions malfunction, not the DevTools itself.

Also, what's the Chrome on Android version? Could you please paste the url of DevTools? You can do that by typing window.location.href in DevTools for DevTools.
There are no other errors in the console, just a warning that "/deep/ combinator is deprecated."

The URL is chrome-devtools://devtools/remote/serve_rev/@ca0c868149b9d1bbe7b0bbd28051475f4afc284d/inspector.html?&remoteFrontend=true&dockSide=undocked

For the Chrome on Android version, I've tried using Chrome 50.0.2661.89, Chrome Beta 51.0.2704.61, and Chrome Dev 52.0.2743.8.
Hmm... Didn't repro for me using stable or ToT desktop Chrome, with 51.0.2704.81 mobile version.
Maybe something is messed up in appcache? Could you please go to chrome://appcache-internals, remove all items under chrome-devtools://devtools and try again?
Status: WontFix (was: Assigned)
Closing per lack of feedback.
The problem still happens for me using Chrome 52.0.2743.82, Chrome Beta 52.0.2743.82, and Chrome Unstable 53.0.2785.30 on Ubuntu Linux 14.04. Removing everything in chrome://appcache-internals doesn't change anything.

Sign in to add a comment