[
https://issues.apache.org/jira/browse/CB-3319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13648119#comment-13648119
]
unbug commented on CB-3319:
---------------------------
Yes,Mueller,I added a comment and it works,but I am not sure what gonna happend
since Canary got it's own window.CSS property,everything seems fine by now.Do
you mind to take a over look of the whole weinre client?As you say,maybe some
of the JS files really dont necessary to load.Thanks.
web/weinre/client/InspectorBackendImpl.amd.js
comment line 27
intfNames = ["ApplicationCache", "BrowserDebugger", "CSS", "Console",
"DOM", "DOMStorage", "Database", "Debugger", "InjectedScript", "Inspector",
"Network", "Profiler", "Runtime"];
_results = [];
for (_i = 0, _len = intfNames.length; _i < _len; _i++) {
intfName = intfNames[_i];
proxy = Weinre.messageDispatcher.createProxy(intfName);
if (window[intfName]) {
//throw new Ex(arguments, "backend interface '" + intfName + "' already
created");//commented
}
> [weinre] Chrome is setting window properties which now breaks Weinre
> --------------------------------------------------------------------
>
> Key: CB-3319
> URL: https://issues.apache.org/jira/browse/CB-3319
> Project: Apache Cordova
> Issue Type: Bug
> Components: weinre
> Reporter: Matt Gaunt
> Labels: weinre
>
> The weinre page cannot be displayed in Chrome, an exception is thrown in
> 'InspectorBackendImpl.amd.js' on line 27. This happens across the
> debug.phonegap.com page, the node package as well as some of the test builds.
> intfNames = ["ApplicationCache", "BrowserDebugger", "CSS", "Console", "DOM",
> "DOMStorage", "Database", "Debugger", "InjectedScript", "Inspector",
> "Network", "Profiler", "Runtime"];
> _results = [];
> for (_i = 0, _len = intfNames.length; _i < _len; _i++) {
> intfName = intfNames[_i];
> proxy = Weinre.messageDispatcher.createProxy(intfName);
> if (window[intfName]) {
> throw new Ex(arguments, "backend interface '" + intfName + "' already
> created");
> Uncaught #<Ex>
> }
> Chrome is actually setting a 'CSS' interface on the window object. Could
> these be prefixed for the weinre proxy names?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira