polydev icon indicating copy to clipboard operation
polydev copied to clipboard

Doesn't work on chrome:// WebUI

Open mgiuffrida opened this issue 8 years ago • 2 comments

On chrome://settings and other WebUI which use Polymer elements, the Polymer tab only displays a "Custom Element Profile" card with a "REFRESH" button; clicking the Refresh button does nothing.

From the extension:

polymer-panel connected Port {sender: Object}
background.js:23 from polymer-panel Object {messageType: "tab-id", tabId: 23} Port {sender: Object}
background.js:25 polymer-page tab-id 23
background.js:23 from polymer-panel Object {messageType: "get-element-stats", tabId: 23} Port {sender: Object}
extensions::uncaught_exception_handler:8 Error in event handler for (unknown): TypeError: Cannot read property 'postMessage' of undefined
    at chrome-extension://mmpfaamodhhlbadloaibpocmcomledcg/src/background.js:37:13handler @ extensions::uncaught_exception_handler:8exports.handle @ extensions::uncaught_exception_handler:100EventImpl.dispatch_ @ extensions::event_bindings:376EventImpl.dispatch @ extensions::event_bindings:393target.(anonymous function) @ extensions::SafeBuiltins:19publicClass.(anonymous function) @ extensions::utils:94dispatchOnMessage @ extensions::messaging:310
background.js:44 element-zones.onConnect Port {sender: Object} 25

mgiuffrida avatar Sep 11 '15 19:09 mgiuffrida

IIRC, extension don't run on chrome:// urls for security reasons.

ebidel avatar Sep 11 '15 19:09 ebidel

perhaps with --disable-web-security it would?

paulirish avatar Sep 11 '15 20:09 paulirish