mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
310c05b97a
177 changed files with 514 additions and 4888 deletions
|
|
@ -569,11 +569,9 @@ WebConsoleActor.prototype =
|
|||
|
||||
let startedListeners = [];
|
||||
let window = !this.parentActor.isRootActor ? this.window : null;
|
||||
let appId = null;
|
||||
let messageManager = null;
|
||||
|
||||
if (this._parentIsContentActor) {
|
||||
appId = this.parentActor.docShell.appId;
|
||||
messageManager = this.parentActor.messageManager;
|
||||
}
|
||||
|
||||
|
|
@ -604,16 +602,16 @@ WebConsoleActor.prototype =
|
|||
// Create a StackTraceCollector that's going to be shared both by the
|
||||
// NetworkMonitorChild (getting messages about requests from parent) and
|
||||
// by the NetworkMonitor that directly watches service workers requests.
|
||||
this.stackTraceCollector = new StackTraceCollector({ window, appId });
|
||||
this.stackTraceCollector = new StackTraceCollector({ window });
|
||||
this.stackTraceCollector.init();
|
||||
|
||||
let processBoundary = Services.appinfo.processType !=
|
||||
Ci.nsIXULRuntime.PROCESS_TYPE_DEFAULT;
|
||||
if ((appId || messageManager) && processBoundary) {
|
||||
if (messageManager && processBoundary) {
|
||||
// Start a network monitor in the parent process to listen to
|
||||
// most requests than happen in parent
|
||||
this.networkMonitor =
|
||||
new NetworkMonitorChild(appId, this.parentActor.outerWindowID,
|
||||
new NetworkMonitorChild(this.parentActor.outerWindowID,
|
||||
messageManager, this.conn, this);
|
||||
this.networkMonitor.init();
|
||||
// Spawn also one in the child to listen to service workers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue