Skip to content

Commit

Permalink
Bug 1741808 - [devtools] Fix increased failures on browser_toolbox_ba…
Browse files Browse the repository at this point in the history
…ckward_forward_navigation.js when EFT is enabled. r=ochameau.

Differential Revision: https://phabricator.services.mozilla.com/D131475
  • Loading branch information
nchevobbe committed Nov 18, 2021
1 parent 2ced36b commit 879b191
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions devtools/client/inspector/markup/markup.js
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,7 @@ MarkupView.prototype = {
_onResourceAvailable: async function(resources) {
for (const resource of resources) {
if (
!this.resourceCommand ||
resource.resourceType !== this.resourceCommand.TYPES.ROOT_NODE ||
resource.isDestroyed()
) {
Expand Down
2 changes: 1 addition & 1 deletion devtools/client/inspector/shared/walker-event-listener.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class WalkerEventListener {
const inspectorFront = await targetFront.getFront("inspector");
// In case of multiple fast navigations, the front may already be destroyed,
// in such scenario bail out and ignore this short lived target.
if (inspectorFront.isDestroyed()) {
if (inspectorFront.isDestroyed() || !this._listenerMap) {
return;
}
const { walker } = inspectorFront;
Expand Down

0 comments on commit 879b191

Please sign in to comment.