Closed Bug 2013932 Opened 9 months ago Closed 9 months ago

nsDocShell::CreateInitialDocumentViewer should pass aCheckPermitUnload = false to viewer creation

Categories

(Core :: DOM: Navigation, task)

task

Tracking

()

RESOLVED FIXED
149 Branch
Tracking Status
firefox149 --- fixed

People

(Reporter: vhilla, Assigned: vhilla)

References

Details

Attachments

(1 external file)

See https://phabricator.services.mozilla.com/D281438#9750565.

When creating the initial viewer, there should be no viewer beforehand. We should consider

  • Turning the assert for !mDocumentViewer in CreateInitialDocumentViewer into a diagnostic assert
  • Asserting mInitialized in CreateAboutBlankDocumentViewer
  • Passing false as aCheckPermitUnload argument to CreateAboutBlankDocumentViewer
  • Maybe also asserting mInitialized && mDocumentViewer in DoURILoad.

I don't think we ever have a viewer already in CreateInitialDocumentViewer but it could happen in some edge case / race.

See Also: → sync-about-blank

(In reply to Vincent Hilla [:vhilla] from comment #0)

See https://phabricator.services.mozilla.com/D281438#9750565.

  • Maybe also asserting mInitialized && mDocumentViewer in DoURILoad.

Bug 2013289 tells us that we reach DoURILoad without viewer.

Assignee: nobody → vhilla
Attachment #9543605 - Attachment description: WIP: Bug 2013932 - Be more strict about requiring a viewer. r=#dom-core → Bug 2013932 - Be more strict about when docshell has a viewer and is initialized. r=#dom-core
Pushed by vhilla@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/0c8d0fd09335 https://hg.mozilla.org/integration/autoland/rev/ef5d383f2f1f Be more strict about when docshell has a viewer and is initialized. r=dom-core,smaug
Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
QA Whiteboard: [qa-triage-done-c150/b149]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: