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:
,
May 31 2016
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.
,
May 31 2016
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.
,
Jun 14 2016
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?
,
Jul 29 2016
Closing per lack of feedback.
,
Aug 2 2016
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 |
|||
Comment 1 by eostroukhov@chromium.org
, May 27 2016Labels: OS-All
Owner: dgozman@chromium.org
Status: Assigned (was: Unconfirmed)