mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1073584 - timeline.js: support root actor. r=pbrosset
This commit is contained in:
parent
f4b757cbb2
commit
17db3086d4
@ -116,7 +116,15 @@ let TimelineActor = exports.TimelineActor = protocol.ActorClass({
|
||||
* @return {Array}
|
||||
*/
|
||||
get docShells() {
|
||||
let docShellsEnum = this.tabActor.originalDocShell.getDocShellEnumerator(
|
||||
let originalDocShell;
|
||||
|
||||
if (this.tabActor.isRootActor) {
|
||||
originalDocShell = this.tabActor.docShell;
|
||||
} else {
|
||||
originalDocShell = this.tabActor.originalDocShell;
|
||||
}
|
||||
|
||||
let docShellsEnum = originalDocShell.getDocShellEnumerator(
|
||||
Ci.nsIDocShellTreeItem.typeAll,
|
||||
Ci.nsIDocShell.ENUMERATE_FORWARDS
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user