Closed Bug 961798 Opened 11 years ago Closed 11 years ago

reconfigure: TypeError: this.window is null in BrowserTabActor.prototype._setJavascriptEnabled @ devtools/server/actors/webbrowser.js : 807

Categories

(DevTools :: Framework, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 29

People

(Reporter: msucan, Assigned: lpy)

Details

(Whiteboard: [good first bug][mentor=past@mozilla.com][lang=js])

Attachments

(1 file, 1 obsolete file)

I get the following exception when I quit the browser: onPacket threw an exception: Error: Server did not specify an actor, dropping packet: {"error":"unknownError","message":"error occurred while processing 'reconfigure: TypeError: this.window is null\nStack: BrowserTabActor.prototype._setJavascriptEnabled@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/mihai/src/mozilla/fx-team/toolkit/devtools/server//main.js -> resource://gre/modules/devtools/server/actors/webbrowser.js:807\nBrowserTabActor.prototype._toggleJsOrCache@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/mihai/src/mozilla/fx-team/toolkit/devtools/server//main.js -> resource://gre/modules/devtools/server/actors/webbrowser.js:775\nBrowserTabActor.prototype.onReconfigure@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/mihai/src/mozilla/fx-team/toolkit/devtools/server//main.js -> resource://gre/modules/devtools/server/actors/webbrowser.js:761\nDSC_onPacket@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/mihai/src/mozilla/fx-team/toolkit/devtools/server//main.js:1018\nLDT_send/<@resource://gre/modules/devtools/dbg-client.jsm -> resource://gre/modules/devtools/server/transport.js:258\nmakeInfallible/<@resource://gre/modules/devtools/DevToolsUtils.jsm -> resource://gre/modules/devtools/DevToolsUtils.js:76\n"} Stack: DebuggerClient.prototype.onPacket/<@resource://gre/modules/devtools/dbg-client.jsm:674 resolve@resource://gre/modules/commonjs/sdk/core/promise.js:118 then@resource://gre/modules/commonjs/sdk/core/promise.js:43 then@resource://gre/modules/commonjs/sdk/core/promise.js:153 DebuggerClient.prototype.onPacket@resource://gre/modules/devtools/dbg-client.jsm:723 LDT_send/<@resource://gre/modules/devtools/dbg-client.jsm -> resource://gre/modules/devtools/server/transport.js:258 makeInfallible/<@resource://gre/modules/devtools/DevToolsUtils.jsm -> resource://gre/modules/devtools/DevToolsUtils.js:76 STR: 1. open the devtools for any tab. 2. switch to the options panel. 3. ctrl-q (quit the browser). 4. see the exception in the terminal. You might need devtools.debugger.log=true. The options panel does not need to be active. You can switch to any other tab after that. The only requirement for the exception to occur is that you have switched to it at least once.
So we just need to add: if (this.window) { ... }
Yep, good first bug. If someone picks it up before Mike returns from PTO, I can mentor them.
Whiteboard: [good first bug][mentor=mratcliffe@mozilla.com][lang=js]
I would like to take this bug. But I am not sure what I should do if |!this.window|. Just do nothing?
Assignee: nobody → pylaurent1314
Yes, that's right. If there is no usable way to get to the docshell, then both methods should do nothing.
Attached patch bug961798.patch (obsolete) — Splinter Review
Thank you past :)
Attachment #8363058 - Flags: review?(mratcliffe)
You need to give _setCacheEnabled the same treatment.
Attached patch bug961798.patchSplinter Review
Thanks.
Attachment #8363058 - Attachment is obsolete: true
Attachment #8363058 - Flags: review?(mratcliffe)
Attachment #8363066 - Flags: review?(mratcliffe)
Comment on attachment 8363066 [details] [diff] [review] bug961798.patch Review of attachment 8363066 [details] [diff] [review]: ----------------------------------------------------------------- I'll take it, as Mike is on holiday.
Attachment #8363066 - Flags: review?(mratcliffe) → review+
Status: NEW → ASSIGNED
Whiteboard: [good first bug][mentor=mratcliffe@mozilla.com][lang=js] → [good first bug][mentor=past@mozilla.com][lang=js][fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [good first bug][mentor=past@mozilla.com][lang=js][fixed-in-fx-team] → [good first bug][mentor=past@mozilla.com][lang=js]
Target Milestone: --- → Firefox 29
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: