mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1321096 - Extract TabActor into its own module to prevent loading it in the parent process. r=jryans
MozReview-Commit-ID: 6QyXMaPeEDH --HG-- rename : devtools/server/actors/webbrowser.js => devtools/server/actors/tab.js extra : rebase_source : a3bb3a3986e995308522f8ead91dfa109b04af60
This commit is contained in:
parent
8c271ab910
commit
314fdfcaa9
@ -116,6 +116,7 @@ devtools/server/actors/**
|
||||
!devtools/server/actors/layout.js
|
||||
!devtools/server/actors/string.js
|
||||
!devtools/server/actors/styles.js
|
||||
!devtools/server/actors/tab.js
|
||||
!devtools/server/actors/webbrowser.js
|
||||
!devtools/server/actors/webextension.js
|
||||
!devtools/server/actors/webextension-inspected-window.js
|
||||
|
@ -5,12 +5,12 @@
|
||||
"use strict";
|
||||
|
||||
var { Cr } = require("chrome");
|
||||
var { TabActor } = require("devtools/server/actors/webbrowser");
|
||||
var { TabActor } = require("devtools/server/actors/tab");
|
||||
|
||||
/**
|
||||
* Tab actor for documents living in a child process.
|
||||
*
|
||||
* Depends on TabActor, defined in webbrowser.js.
|
||||
* Depends on TabActor, defined in tab.js.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -7,7 +7,7 @@
|
||||
const { Ci } = require("chrome");
|
||||
const Services = require("Services");
|
||||
const { DebuggerServer } = require("../main");
|
||||
const { getChildDocShells, TabActor } = require("./webbrowser");
|
||||
const { getChildDocShells, TabActor } = require("./tab");
|
||||
const makeDebugger = require("./utils/make-debugger");
|
||||
|
||||
/**
|
||||
|
@ -59,6 +59,7 @@ DevToolsModules(
|
||||
'styleeditor.js',
|
||||
'styles.js',
|
||||
'stylesheets.js',
|
||||
'tab.js',
|
||||
'timeline.js',
|
||||
'webaudio.js',
|
||||
'webbrowser.js',
|
||||
|
1669
devtools/server/actors/tab.js
Normal file
1669
devtools/server/actors/tab.js
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -83,7 +83,7 @@ Those are the actors exposed by the root actors which are meant to track the
|
||||
lifetime of a given context: tab, app, process, add-on, or worker. It also
|
||||
allows to fetch the tab-scoped actors connected to this context. Actors like
|
||||
console, inspector, thread (for debugger), styleinspector, etc. Most of them
|
||||
inherit from TabActor (defined in webbrowser.js) which is document centric. It
|
||||
inherit from TabActor (defined in tab.js) which is document centric. It
|
||||
automatically tracks the lifetime of the targeted document, but it also tracks
|
||||
its iframes and allows switching the context to one of its iframes. For
|
||||
historical reasons, these actors also handle creating the ThreadActor, used to
|
||||
|
Loading…
Reference in New Issue
Block a user