Closed Bug 1949062 Opened 1 year ago Closed 1 year ago

Crash in [@ mozilla::dom::NavigationHistoryEntry::Key]

Categories

(Core :: DOM: Navigation, defect)

Unspecified
Windows 11
defect

Tracking

()

RESOLVED DUPLICATE of bug 1979080
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox135 --- unaffected
firefox136 --- unaffected
firefox137 --- wontfix
firefox138 --- disabled

People

(Reporter: aryx, Unassigned)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: crash, regression)

Crash Data

52 crashes from 3-8 installs of Firefox 137.0a1 on Windows and Ubuntu

Crash report: https://crash-stats.mozilla.org/report/index/3d8c551c-5bcc-48ae-b16d-086a70250218

Reason:

EXCEPTION_ACCESS_VIOLATION_READ

Top 10 frames:

0  xul.dll  mozilla::UniquePtr<mozilla::dom::SessionHistoryInfo, mozilla::DefaultDelete<m...  mfbt/UniquePtr.h:287
0  xul.dll  mozilla::UniquePtr<mozilla::dom::SessionHistoryInfo, mozilla::DefaultDelete<m...  mfbt/UniquePtr.h:282
0  xul.dll  mozilla::dom::NavigationHistoryEntry::Key() const  dom/navigation/NavigationHistoryEntry.cpp:134
0  xul.dll  mozilla::dom::Navigation::UpdateEntriesForSameDocumentNavigation(mozilla::dom...  dom/navigation/Navigation.cpp:182
1  xul.dll  nsDocShell::UpdateURLAndHistory(mozilla::dom::Document*, nsIURI*, nsIStructur...  docshell/base/nsDocShell.cpp:11594
2  xul.dll  mozilla::dom::Document::Open(mozilla::dom::Optional<nsTSubstring<char16_t> > ...  dom/base/Document.cpp:10152
3  xul.dll  mozilla::dom::Document_Binding::open(JSContext*, JS::Handle<JSObject*>, void*...  dom/bindings/DocumentBinding.cpp:3724
4  xul.dll  mozilla::dom::binding_detail::GenericMethod<mozilla::dom::binding_detail::Nor...  dom/bindings/BindingUtils.cpp:3302
5  xul.dll  CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::...  js/src/vm/Interpreter.cpp:494
5  xul.dll  js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstru...  js/src/vm/Interpreter.cpp:590
Flags: needinfo?(avandolder)

Set release status flags based on info from the regressing bug 1890747

FWIW, the CSS-Tricks page is a live page where you can experience this issue (related to the cookie consent management widget).

Sebastian

This is likely related to the similar test crashes in bug 1950897.

Flags: needinfo?(avandolder)
See Also: → 1950897

Also, since we're seeing this when nsDocShell::UpdateURLAndHistory calls Navigation::UpdateEntriesForSameDocumentNavigation we can be sure that someone has turned on dom.navigation.webidl.enabled, because you can't get a Navigation object from Window without having that turned on.

Severity: -- → S3

Marking disabled since dom.navigation.webidl.enabled is set to false by default

The bug is linked to a topcrash signature, which matches the following criterion:

  • Top 10 desktop browser crashes on nightly

:sefeng, could you consider increasing the severity of this top-crash bug?

For more information, please visit BugBot documentation.

Flags: needinfo?(sefeng)
Keywords: topcrash

remain this as S3 given the feature is disabled at the moment.

Flags: needinfo?(sefeng)

Based on the topcrash criteria, the crash signature linked to this bug is not a topcrash signature anymore.

For more information, please visit BugBot documentation.

Keywords: topcrash
See Also: → 1978184
Duplicate of this bug: 1978184
See Also: 1978184 →

Copying crash signatures from duplicate bugs.

Crash Signature: [@ mozilla::dom::NavigationHistoryEntry::Key] → [@ mozilla::dom::NavigationHistoryEntry::Key] [@ std::unique_ptr<T>::operator->]
Blocks: navigation-api-bugs
No longer blocks: navigation-api
Crash Signature: [@ mozilla::dom::NavigationHistoryEntry::Key] [@ std::unique_ptr<T>::operator->] → [@ mozilla::dom::NavigationHistoryEntry::Key] [@ std::unique_ptr<T>::operator->]

Having tested this with mozregression using the URL in the previous comment, it looks like this crash already got fixed by the change in bug 1979080. I also checked other pages where this crash previously occurred and they don't crash anymore using current Nightly builds. So I close this now.

Sebastian

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1979080
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.