mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 06:45:42 +00:00
Bug 1142623 - Prevent enabling Debugger in Browser Toolbox during its startup. r=past
This commit is contained in:
parent
f923ac05b0
commit
a47fb132fe
@ -1413,13 +1413,11 @@ TabActor.prototype = {
|
||||
|
||||
// TODO bug 997119: move that code to ThreadActor by listening to window-ready
|
||||
let threadActor = this.threadActor;
|
||||
if (isTopLevel) {
|
||||
if (isTopLevel && threadActor.state != "detached") {
|
||||
this.sources.reset({ sourceMaps: true });
|
||||
threadActor.clearDebuggees();
|
||||
if (threadActor.dbg) {
|
||||
threadActor.dbg.enabled = true;
|
||||
threadActor.maybePauseOnExceptions();
|
||||
}
|
||||
// Update the global no matter if the debugger is on or off,
|
||||
// otherwise the global will be wrong when enabled later.
|
||||
threadActor.global = window;
|
||||
|
Loading…
Reference in New Issue
Block a user