Closed Bug 1951592 Opened 7 months ago Closed 7 months ago

Initial about:blank with fragment doesn't have events and entries disabled

Categories

(Core :: DOM: Navigation, defect)

defect

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: farre, Assigned: farre)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

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)
mozilla::dom::LocationBase::SetURI(nsIURI*, nsIPrincipal&, mozilla::ErrorResult&, bool) (dom/base/LocationBase.cpp:162)
mozilla::dom::LocationBase::SetHrefWithBase(nsTSubstring<char> const&, nsIURI*, nsIPrincipal&, bool, mozilla::ErrorResult&) (dom/base/LocationBase.cpp:251)
mozilla::dom::LocationBase::DoSetHref(nsTSubstring<char> const&, nsIPrincipal&, bool, mozilla::ErrorResult&) (dom/base/LocationBase.cpp:202)
mozilla::dom::LocationBase::SetHref(nsTSubstring<char> const&, nsIPrincipal&, mozilla::ErrorResult&) (dom/base/LocationBase.cpp:194)
mozilla::dom::Location_Binding::set_href(JSContext*, JS::Handle<JSObject*>, void*, JSJitSetterCallArgs) (dom/bindings/LocationBinding.cpp:125)
mozilla::dom::binding_detail::GenericSetter<mozilla::dom::binding_detail::CrossOriginThisPolicy>(JSContext*, unsigned int, JS::Value*) (dom/bindings/BindingUtils.cpp:3250)
...

/navigation-api/currententrychange-event/navigate-from-initial-about-blank-same-doc.html

No longer depends on: 1950897
Summary: Crash in mozilla::dom::NavigationHistoryEntry::Key() → Crash in mozilla::dom::NavigationHistoryEntry::Key() (about:blank with #fragment)

This particular crash in NavigationHistoryEntry::Key() is due to initial about:blank with a fragment not being considered to have entries and events disabled.

Summary: Crash in mozilla::dom::NavigationHistoryEntry::Key() (about:blank with #fragment) → Crash in mozilla::dom::NavigationHistoryEntry::Key()
Severity: -- → S3
Summary: Crash in mozilla::dom::NavigationHistoryEntry::Key() → Initial about:blank with fragment doesn't have events and entries disabled
Assignee: nobody → afarre
Status: NEW → ASSIGNED
Pushed by afarre@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d576d0044707 Initial about:blank with fragment should have entries disabled. r=avandolder
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: