Backed out 3 changesets (bug 1660268) for failures on browser_ext_devtools_network_targetSwitch.js. CLOSED TREE
Backed out changeset 749fda4e5eb1 (bug 1660268) Backed out changeset 9d4c305f6b88 (bug 1660268) Backed out changeset 7ec118209790 (bug 1660268)
This commit is contained in:
@@ -119,22 +119,20 @@ class ChangesView {
|
||||
);
|
||||
}
|
||||
|
||||
onResourceAvailable(resources) {
|
||||
for (const resource of resources) {
|
||||
if (resource.resourceType === this.resourceWatcher.TYPES.CSS_CHANGE) {
|
||||
this.onAddChange(resource);
|
||||
continue;
|
||||
}
|
||||
onResourceAvailable({ resource }) {
|
||||
if (resource.resourceType === this.resourceWatcher.TYPES.CSS_CHANGE) {
|
||||
this.onAddChange(resource);
|
||||
return;
|
||||
}
|
||||
|
||||
if (resource.name === "dom-loading" && resource.targetFront.isTopLevel) {
|
||||
// will-navigate doesn't work when we navigate to a new process,
|
||||
// and for now, onTargetAvailable/onTargetDestroyed doesn't fire on navigation and
|
||||
// only when navigating to another process.
|
||||
// So we fallback on DOCUMENT_EVENTS to be notified when we navigate. When we
|
||||
// navigate within the same process as well as when we navigate to a new process.
|
||||
// (We would probably revisit that in bug 1632141)
|
||||
this.onClearChanges();
|
||||
}
|
||||
if (resource.name === "dom-loading" && resource.targetFront.isTopLevel) {
|
||||
// will-navigate doesn't work when we navigate to a new process,
|
||||
// and for now, onTargetAvailable/onTargetDestroyed doesn't fire on navigation and
|
||||
// only when navigating to another process.
|
||||
// So we fallback on DOCUMENT_EVENTS to be notified when we navigate. When we
|
||||
// navigate within the same process as well as when we navigate to a new process.
|
||||
// (We would probably revisit that in bug 1632141)
|
||||
this.onClearChanges();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user