Skip to content

Commit

Permalink
browser(firefox): ignore WebProgress events coming from workers (#4380)
Browse files Browse the repository at this point in the history
Somehow, we get WebProgress state changes when worker is loaded
with a blob url. This messes up frame navigation detection.

Luckily, it's easy to filter out non-document state changes.
  • Loading branch information
dgozman authored Nov 9, 2020
1 parent f7eb845 commit ae738c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browser_patches/firefox/BUILD_NUMBER
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1204
Changed: dgozman@gmail.com Fri Nov 6 14:37:05 PST 2020
1205
Changed: dgozman@gmail.com Sun Nov 8 07:09:21 PST 2020
6 changes: 6 additions & 0 deletions browser_patches/firefox/juggler/content/FrameTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,12 @@ class FrameTree {
return;
}

if (!channel.isDocument) {
// Somehow, we can get worker requests here,
// while we are only interested in frame documents.
return;
}

const isStart = flag & Ci.nsIWebProgressListener.STATE_START;
const isTransferring = flag & Ci.nsIWebProgressListener.STATE_TRANSFERRING;
const isStop = flag & Ci.nsIWebProgressListener.STATE_STOP;
Expand Down

0 comments on commit ae738c1

Please sign in to comment.