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)
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)
1.84 KB,
patch
|
past
:
review+
|
Details | Diff | Splinter Review |
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.
Comment 1•11 years ago
|
||
So we just need to add:
if (this.window) {
...
}
Comment 2•11 years ago
|
||
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]
Assignee | ||
Comment 3•11 years ago
|
||
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
Comment 4•11 years ago
|
||
Yes, that's right. If there is no usable way to get to the docshell, then both methods should do nothing.
Assignee | ||
Comment 5•11 years ago
|
||
Thank you past :)
Attachment #8363058 -
Flags: review?(mratcliffe)
Comment 6•11 years ago
|
||
You need to give _setCacheEnabled the same treatment.
Assignee | ||
Comment 7•11 years ago
|
||
Thanks.
Attachment #8363058 -
Attachment is obsolete: true
Attachment #8363058 -
Flags: review?(mratcliffe)
Attachment #8363066 -
Flags: review?(mratcliffe)
Comment 8•11 years ago
|
||
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+
Comment 9•11 years ago
|
||
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]
Comment 10•11 years ago
|
||
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
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•