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:
Luca Greco 2017-02-20 18:47:37 +01:00
parent 110957e903
commit 0db343d655

View File

@ -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(),