Open Bug 1950897 Opened 1 year ago Updated 1 year ago

Crash in mozilla::dom::NavigationHistoryEntry::Key()

Categories

(Core :: DOM: Navigation, defect)

defect

Tracking

()

People

(Reporter: farre, Unassigned)

References

(Blocks 1 open bug)

Details

mozilla::UniquePtr<mozilla::dom::SessionHistoryInfo, mozilla::DefaultDelete<mozilla::dom::SessionHistoryInfo> >::get() const (mfbt/UniquePtr.h:287)
mozilla::UniquePtr<mozilla::dom::SessionHistoryInfo, mozilla::DefaultDelete<mozilla::dom::SessionHistoryInfo> >::operator->() const (mfbt/UniquePtr.h:282)
mozilla::dom::NavigationHistoryEntry::Key() const (dom/navigation/NavigationHistoryEntry.cpp:134)
mozilla::dom::Navigation::UpdateEntriesForSameDocumentNavigation(mozilla::dom::SessionHistoryInfo*, mozilla::dom::NavigationType) (dom/navigation/Navigation.cpp:182)
nsDocShell::HandleSameDocumentNavigation(nsDocShellLoadState*, SameDocumentNavigationState&, bool&) (docshell/base/nsDocShell.cpp:9074)
nsDocShell::InternalLoad(nsDocShellLoadState*, mozilla::Maybe<unsigned int>) (docshell/base/nsDocShell.cpp:9322)
nsDocShell::LoadURI(nsDocShellLoadState*, bool, bool) (docshell/base/nsDocShell.cpp:855)
nsDocShell::LoadURI(nsDocShellLoadState*, bool) (docshell/base/nsDocShell.cpp:686)
mozilla::dom::BrowsingContext::LoadURI(nsDocShellLoadState*, bool) (docshell/base/BrowsingContext.cpp:2009)
...

There are different ways of getting into BrowsingContext::LoadURI causing the top of this crash (setting location.href, calling window.open, etc).

/navigation-api/navigate-event/cross-window/location-samedocument-crossorigin-sameorigindomain.sub.html
/navigation-api/navigate-event/cross-window/location-samedocument-crossorigin.html
/navigation-api/navigate-event/cross-window/location-samedocument-sameorigin.html
/navigation-api/navigate-event/cross-window/open-samedocument-crossorigin-sameorigindomain.sub.html
/navigation-api/navigate-event/cross-window/open-samedocument-crossorigin.html
/navigation-api/navigate-event/cross-window/open-samedocument-sameorigin.html
/navigation-api/navigate-event/navigate-iframe-location.html
/navigation-api/navigate-event/navigate-window-open.html
/navigation-api/navigate-event/replaceState-in-unload-then-remove-iframe.html

This is actually turning out to be several bugs crashing here. Will update accordingly.

Summary: Crash in navigation-api/navigate-event/cross-window/location-samedocument-crossorigin.html → Crash in mozilla::dom::NavigationHistoryEntry::Key()
Severity: -- → S3
Blocks: 1951592
No longer blocks: 1951592
Depends on: 1952913
See Also: → 1949062
You need to log in before you can comment on or make changes to this bug.