{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/positron/issues/83","repository_url":"https://api.github.com/repos/mozilla/positron","labels_url":"https://api.github.com/repos/mozilla/positron/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/positron/issues/83/comments","events_url":"https://api.github.com/repos/mozilla/positron/issues/83/events","html_url":"https://github.com/mozilla/positron/issues/83","id":159279896,"number":83,"title":"BrowserWindow document body empty in Inspector devtool","user":{"login":"mykmelez","id":305455,"avatar_url":"https://avatars0.githubusercontent.com/u/305455?v=4","gravatar_id":"","url":"https://api.github.com/users/mykmelez","html_url":"https://github.com/mykmelez","followers_url":"https://api.github.com/users/mykmelez/followers","following_url":"https://api.github.com/users/mykmelez/following{/other_user}","gists_url":"https://api.github.com/users/mykmelez/gists{/gist_id}","starred_url":"https://api.github.com/users/mykmelez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mykmelez/subscriptions","organizations_url":"https://api.github.com/users/mykmelez/orgs","repos_url":"https://api.github.com/users/mykmelez/repos","events_url":"https://api.github.com/users/mykmelez/events{/privacy}","received_events_url":"https://api.github.com/users/mykmelez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-08T21:41:35Z","updated_at":"2018-03-21T18:18:47Z","closed_at":null,"author_association":"OWNER","body":"Giving a BrowserWindow the system principal, which I did on the webview-branch (since merged to master), causes the BrowserWindow document body to appear empty in the Inspector devtool's tree view, when I open the Inspector for a given BrowserWindow. And opening the Inspector triggers these errors in the console:\n\n> Error writing response to: childrenprotocol.js:1058\n> TypeError: 'get contentDocument' called on an object that does not implement interface HTMLObjectElement.\n> Stack trace:\n> get numChildren@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/inspector.js:352:1\n> exports.NodeActor<.form@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/inspector.js:262:7\n> types.addActorType/type<.write@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/protocol.js:294:44\n> types.addArrayType/<.write/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/protocol.js:199:40\n> types.addArrayType/<.write@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/protocol.js:199:24\n> types.addDictType/<.write@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/protocol.js:233:23\n> RetVal<.write@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/protocol.js:529:12\n> Response<.write/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/protocol.js:682:16\n> Response<.write@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/protocol.js:680:23\n> generateRequestHandlers/</handler/sendReturn@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/protocol.js:1056:24\n> Handler.prototype.process@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/Promise-backend.js:937:23\n> this.PromiseWalker.walkerLoop@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/Promise-backend.js:816:7\n> Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/Promise-backend.js:747:11\n> this.PromiseWalker.schedulePromise@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/Promise-backend.js:779:7\n> Promise.prototype.then@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/Promise-backend.js:454:5\n> generateRequestHandlers/</handler/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/protocol.js:1076:18\n> Actor<._queueResponse@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/protocol.js:920:20\n> generateRequestHandlers/</handler@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/protocol.js:1075:9\n> DSC_onPacket@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/main.js:1648:15\n> LocalDebuggerTransport.prototype.send/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/transport/transport.js:568:13\n> exports.makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:101:14\n> exports.makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:101:14\n> protocol.js:907\n> Protocol error (unknownError): 'get contentDocument' called on an object that does not implement interface HTMLObjectElement.Promise-backend.js:940\n\n@jryans Perhaps Inspector is not designed to support chrome HTML documents? Or maybe the way we give the system principal to the BrowserWindow document, which isn't at a chrome: URL, is the culprit?\n"},"comment":{"url":"https://api.github.com/repos/mozilla/positron/issues/comments/375046228","html_url":"https://github.com/mozilla/positron/issues/83#issuecomment-375046228","issue_url":"https://api.github.com/repos/mozilla/positron/issues/83","id":375046228,"user":{"login":"jryans","id":279572,"avatar_url":"https://avatars3.githubusercontent.com/u/279572?v=4","gravatar_id":"","url":"https://api.github.com/users/jryans","html_url":"https://github.com/jryans","followers_url":"https://api.github.com/users/jryans/followers","following_url":"https://api.github.com/users/jryans/following{/other_user}","gists_url":"https://api.github.com/users/jryans/gists{/gist_id}","starred_url":"https://api.github.com/users/jryans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jryans/subscriptions","organizations_url":"https://api.github.com/users/jryans/orgs","repos_url":"https://api.github.com/users/jryans/repos","events_url":"https://api.github.com/users/jryans/events{/privacy}","received_events_url":"https://api.github.com/users/jryans/received_events","type":"User","site_admin":false},"created_at":"2018-03-21T18:18:47Z","updated_at":"2018-03-21T18:18:47Z","author_association":"MEMBER","body":"For issues with Firefox like this, I would suggest reporting them over here:\r\n\r\nhttps://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&component=Developer Tools\r\n\r\nIf you have more details on what you were doing or how to reproduce, that would help a lot!"}}
{"actor":{"display_login":"jryans"}}