mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 21:55:31 +00:00
Bug 1341089 - devtools.network.onNavigated should be fired when the target page has been navigated. r=kmag
MozReview-Commit-ID: I8HHraSZFGq --HG-- extra : rebase_source : 3785cf99cb168b94d4f67574dfc35ace7d910a42
This commit is contained in:
parent
110957e903
commit
0db343d655
@ -21,11 +21,11 @@ extensions.registerSchemaAPI("devtools.network", "devtools_parent", (context) =>
|
||||
|
||||
let targetPromise = getDevToolsTargetForContext(context);
|
||||
targetPromise.then(target => {
|
||||
target.on("will-navigate", listener);
|
||||
target.on("navigate", listener);
|
||||
});
|
||||
return () => {
|
||||
targetPromise.then(target => {
|
||||
target.off("will-navigate", listener);
|
||||
target.off("navigate", listener);
|
||||
});
|
||||
};
|
||||
}).api(),
|
||||
|
Loading…
Reference in New Issue
Block a user