Closed Bug 1656858 Opened 5 years ago Closed 5 years ago

Assertion failure: focusedWindow (BrowsingContext should always have a window here.) when session-restoring on a debug build

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P2)

defect

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- fixed
firefox79 --- wontfix
firefox80 blocking fixed
firefox81 + fixed

People

(Reporter: emilio, Assigned: hsivonen)

References

Details

(Keywords: crash, regression, topcrash)

Crash Data

Attachments

(1 file)

Just session-restoring, switching focused windows with Alt+Tab back to my terminal, then switching back to firefox and pressing Enter to restore the session.

https://pernos.co/debug/4hvguMmzHQ9ClucfTwEjRg/index.html is a pernosco session with this assert hit locally.

Flags: needinfo?(hsivonen)

This looks very similar to bug 1653904, though here we assert at least.

See Also: → 1653904

Yeah, this is basically the debug-build version of the crash in bug 1653904.

Assignee: nobody → hsivonen
Status: NEW → ASSIGNED
Flags: needinfo?(hsivonen)

Hi Henri, can we dupe bug 1653904 to this then?

Flags: needinfo?(hsivonen)

Yes, it looks like a duplicate of this one.

Flags: needinfo?(hsivonen)
Crash Signature: [@ nsFocusManager::SetFocusInner]
Severity: -- → S3
Priority: -- → P2
Pushed by hsivonen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f212f223bee3 Obtain principals differently in the parent process in SetFocusInner(). r=farre
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch

Please request beta uplift when you get a chance.

Flags: needinfo?(hsivonen)

Comment on attachment 9167669 [details]
Bug 1656858 - Obtain principals differently in the parent process in SetFocusInner().

Beta/Release Uplift Approval Request

  • User impact if declined: Causes some crashes, presumably especially at session restore time. (Verified in Nightly in the sense of crash reports stopping, not by manual testing.)
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Should be low risk, because this performs the same operation on principals as before but merely obtains them in a different way in the parent process.
  • String changes made/needed: None

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Causes some crashes. Not sure when, considering that crashes seemed to increase in 80 presumably due to other code changed to trigger this more often.
  • User impact if declined: Crashes.
  • Fix Landed on Version: 81
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Should be low risk, because this performs the same operation on principals as before but merely obtains them in a different way in the parent process.
  • String or UUID changes made by this patch: None
Flags: needinfo?(hsivonen)
Attachment #9167669 - Flags: approval-mozilla-esr78?
Attachment #9167669 - Flags: approval-mozilla-beta?

Comment on attachment 9167669 [details]
Bug 1656858 - Obtain principals differently in the parent process in SetFocusInner().

topcrash fix, approved for 80.0b5

Attachment #9167669 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Comment on attachment 9167669 [details]
Bug 1656858 - Obtain principals differently in the parent process in SetFocusInner().

Approved for 78.2esr.

Attachment #9167669 - Flags: approval-mozilla-esr78? → approval-mozilla-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: