Closed Bug 1813341 Opened 2 years ago Closed 2 years ago

TypeError: topBrowsingContext is null

Categories

(DevTools :: General, defect, P2)

defect

Tracking

(firefox111 fixed)

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: kernp25, Assigned: kernp25)

Details

Attachments

(3 files)

Attached video firefox_I9D1byOQ0e.mp4

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0

Steps to reproduce:

It seems it has something to do with auto tab unloading.

I'm using this add-on:
https://addons.mozilla.org/firefox/addon/tab-unloader-we/

Assignee: nobody → kernp25
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Severity: -- → S3
Priority: -- → P2

I'm able to reproduce this exception when unloading a tab with devtools currently opened.

Do you get these exception following the same steps, or is there more being broken?

If you follow the same steps, then you current patch makes sense. Otherwise we might want to investigate more.

Flags: needinfo?(kernp25)

Yes! I get the same error when following your steps. This makes sense because sometimes I leave the dev tools open in some tabs and the auto-unloading triggered this bug.

Flags: needinfo?(kernp25)
Attached image firefox_9Etq27ZD26.png

I also see this error. But can't reproduce it now.

(In reply to kernp25 from comment #4)

Created attachment 9315449 [details]
firefox_9Etq27ZD26.png

I also see this error. But can't reproduce it now.

I tested on Firefox 109.0 (64-Bit).

Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5caac5585da4 Check topBrowsingContext is not null before using it. r=ochameau
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: