Commit d8a0f63d authored by Olli Pettay's avatar Olli Pettay
Browse files

Bug 1661835 - DocShell::Initialize may change the state of nsFrameLoader, r=kmag a=RyanVM

This is a guess fix based on possible reason for the crash.
Use of AutoScriptBlocker would be one option too, but better to return as early as possible.

Differential Revision:
parent fced83a6
......@@ -2185,6 +2185,8 @@ nsresult nsFrameLoader::MaybeCreateDocShell() {
// If we are an in-process browser, we want to set up our session history.
if (mIsTopLevelContent && mOwnerContent->IsXULElement(nsGkAtoms::browser) &&
!mOwnerContent->HasAttr(kNameSpaceID_None, nsGkAtoms::disablehistory)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment