Closed Bug 2005793 Opened 11 months ago Closed 11 months ago

Assertion failure: false (FIXME), at /builds/worker/checkouts/gecko/dom/navigation/Navigation.cpp:382

Categories

(Core :: DOM: Navigation, defect)

defect

Tracking

()

RESOLVED FIXED
148 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox146 --- unaffected
firefox147 --- fixed
firefox148 --- fixed

People

(Reporter: tsmith, Assigned: avandolder)

References

(Blocks 1 open bug, Regression, )

Details

(Keywords: assertion, pernosco, regression)

Attachments

(2 external files)

Found with m-c 20251212-fd59d9ca1a42 (--enable-debug)

This was found by visiting a live website with a debug build.

STR:

  • Launch browser and visit site

This issue was triggered by visiting http://sporza.be/. A Pernosco session is available here: https://pernos.co/debug/f3UMLdFY2yg0DovmmfqqdA/index.html

Assertion failure: false (FIXME), at /builds/worker/checkouts/gecko/dom/navigation/Navigation.cpp:382

0|0|xul.dll|mozilla::dom::Navigation::UpdateEntriesForSameDocumentNavigation(mozilla::dom::SessionHistoryInfo*, mozilla::dom::NavigationType)|git:github.com/mozilla-firefox/firefox:dom/navigation/Navigation.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|382|0xa25
0|1|xul.dll|nsDocShell::UpdateURLAndHistory(mozilla::dom::Document*, nsIURI*, nsIStructuredCloneContainer*, mozilla::dom::NavigationHistoryBehavior, nsIURI*, bool)|git:github.com/mozilla-firefox/firefox:docshell/base/nsDocShell.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|12406|0x1290
0|2|xul.dll|nsDocShell::AddState(JS::Handle<JS::Value>, nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, bool, JSContext*)|git:github.com/mozilla-firefox/firefox:docshell/base/nsDocShell.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|12156|0xbb8
0|3|xul.dll|nsHistory::PushOrReplaceState(JSContext*, JS::Handle<JS::Value>, nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, mozilla::dom::CallerType, mozilla::ErrorResult&, bool)|git:github.com/mozilla-firefox/firefox:dom/base/nsHistory.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|202|0x1a4
0|4|xul.dll|nsHistory::ReplaceState(JSContext*, JS::Handle<JS::Value>, nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, mozilla::dom::CallerType, mozilla::ErrorResult&)|git:github.com/mozilla-firefox/firefox:dom/base/nsHistory.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|164|0x2e
0|5|xul.dll|mozilla::dom::History_Binding::replaceState(JSContext*, JS::Handle<JSObject *>, void*, JSJitMethodCallArgs const&)|s3:gecko-generated-sources:afba07e4918b261f35d7af56dc0b4733832cb2fb126de552bc1cca5b41083d0b43193fd5f142e1cd51e55cea7815622fad67647d5697152193f9b78c13067b8d/dom/bindings/HistoryBinding.cpp:|424|0x2a0
0|6|xul.dll|mozilla::dom::binding_detail::GenericMethod<mozilla::dom::binding_detail::NormalThisPolicy,mozilla::dom::binding_detail::ThrowExceptions>(JSContext*, unsigned int, JS::Value*)|git:github.com/mozilla-firefox/firefox:dom/bindings/BindingUtils.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|3306|0x1bd
0|7|xul.dll|CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|490|0xf2
0|8|xul.dll|js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|586|0x1e3
0|9|xul.dll|js::Interpret(JSContext*, js::RunState&)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|3272|0xb03a
0|10|xul.dll|js::RunScript(JSContext*, js::RunState&)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|460|0x3c7
0|11|xul.dll|js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|618|0x2e6
0|12|xul.dll|js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|685|0x12c
0|13|xul.dll|js::fun_call(JSContext*, unsigned int, JS::Value*)|git:github.com/mozilla-firefox/firefox:js/src/vm/JSFunction.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|1107|0x2de
0|14|xul.dll|CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|490|0xf2
0|15|xul.dll|js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|586|0x1e3
0|16|xul.dll|js::Interpret(JSContext*, js::RunState&)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|3272|0xb03a
0|17|xul.dll|js::RunScript(JSContext*, js::RunState&)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|460|0x3c7
0|18|xul.dll|js::ExecuteKernel(JSContext*, JS::Handle<JSScript *>, JS::Handle<JSObject *>, js::AbstractFramePtr, JS::MutableHandle<JS::Value>)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|850|0x231
0|19|xul.dll|js::Execute(JSContext*, JS::Handle<JSScript *>, JS::Handle<JSObject *>, JS::MutableHandle<JS::Value>)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|880|0x21c
0|20|xul.dll|ExecuteScript(JSContext*, JS::Handle<JSObject *>, JS::Handle<JSScript *>, JS::MutableHandle<JS::Value>)|git:github.com/mozilla-firefox/firefox:js/src/vm/CompilationAndEvaluation.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|548|0x101
0|21|xul.dll|JS_ExecuteScript(JSContext*, JS::Handle<JSScript *>)|git:github.com/mozilla-firefox/firefox:js/src/vm/CompilationAndEvaluation.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|572|0xd1
0|22|xul.dll|mozilla::dom::ScriptLoader::EvaluateScript(nsIGlobalObject*, JS::loader::ScriptLoadRequest*)|git:github.com/mozilla-firefox/firefox:dom/script/ScriptLoader.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|3499|0x627
0|23|xul.dll|mozilla::dom::ScriptLoader::EvaluateScriptElement(JS::loader::ScriptLoadRequest*)|git:github.com/mozilla-firefox/firefox:dom/script/ScriptLoader.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|3039|0x2ab
0|24|xul.dll|mozilla::dom::ScriptLoader::ProcessRequest(JS::loader::ScriptLoadRequest*)|git:github.com/mozilla-firefox/firefox:dom/script/ScriptLoader.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|2516|0x2d2
0|25|xul.dll|mozilla::dom::ScriptLoader::ProcessPendingRequests(bool)|git:github.com/mozilla-firefox/firefox:dom/script/ScriptLoader.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|3893|0x4a8
0|26|xul.dll|mozilla::dom::ScriptLoader::ProcessOffThreadRequest(JS::loader::ScriptLoadRequest*)|git:github.com/mozilla-firefox/firefox:dom/script/ScriptLoader.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|2458|0x184
0|27|xul.dll|mozilla::dom::(anonymous namespace)::OffThreadCompilationCompleteTask::Run()|git:github.com/mozilla-firefox/firefox:dom/script/ScriptLoader.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|1993|0x266
0|28|xul.dll|mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex &> const&)|git:github.com/mozilla-firefox/firefox:xpcom/threads/TaskController.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|1325|0x6b4
0|29|xul.dll|mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex &> const&)|git:github.com/mozilla-firefox/firefox:xpcom/threads/TaskController.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|1148|0x57
0|30|xul.dll|mozilla::TaskController::ProcessPendingMTTask(bool)|git:github.com/mozilla-firefox/firefox:xpcom/threads/TaskController.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|641|0xba
0|31|xul.dll|mozilla::detail::RunnableFunction<`lambda at /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:336:7'>::Run()|git:github.com/mozilla-firefox/firefox:xpcom/threads/nsThreadUtils.h:438a3ce10eb77fb50d968463b7741117aec5bb4a|549|0x16
0|32|xul.dll|nsThread::ProcessNextEvent(bool, bool*)|git:github.com/mozilla-firefox/firefox:xpcom/threads/nsThread.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|1164|0x5d0
0|33|xul.dll|NS_ProcessNextEvent(nsIThread*, bool)|git:github.com/mozilla-firefox/firefox:xpcom/threads/nsThreadUtils.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|461|0x70
0|34|xul.dll|mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*)|git:github.com/mozilla-firefox/firefox:ipc/glue/MessagePump.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|107|0x13c
0|35|xul.dll|MessageLoop::RunHandler()|git:github.com/mozilla-firefox/firefox:ipc/chromium/src/base/message_loop.cc:438a3ce10eb77fb50d968463b7741117aec5bb4a|361|0x3e
0|36|xul.dll|MessageLoop::Run()|git:github.com/mozilla-firefox/firefox:ipc/chromium/src/base/message_loop.cc:438a3ce10eb77fb50d968463b7741117aec5bb4a|343|0x6e
0|37|xul.dll|nsBaseAppShell::Run()|git:github.com/mozilla-firefox/firefox:widget/nsBaseAppShell.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|152|0x27
0|38|xul.dll|nsAppShell::Run()|git:github.com/mozilla-firefox/firefox:widget/windows/nsAppShell.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|673|0x17d
0|39|xul.dll|XRE_RunAppShell()|git:github.com/mozilla-firefox/firefox:toolkit/xre/nsEmbedFunctions.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|656|0x78
0|40|xul.dll|mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*)|git:github.com/mozilla-firefox/firefox:ipc/glue/MessagePump.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|235|0x39
0|41|xul.dll|MessageLoop::RunHandler()|git:github.com/mozilla-firefox/firefox:ipc/chromium/src/base/message_loop.cc:438a3ce10eb77fb50d968463b7741117aec5bb4a|361|0x3e
0|42|xul.dll|MessageLoop::Run()|git:github.com/mozilla-firefox/firefox:ipc/chromium/src/base/message_loop.cc:438a3ce10eb77fb50d968463b7741117aec5bb4a|343|0x6e
0|43|xul.dll|XRE_InitChildProcess(int, char**, XREChildData const*)|git:github.com/mozilla-firefox/firefox:toolkit/xre/nsEmbedFunctions.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|594|0xa59
0|44|firefox.exe|NS_internal_main(int, char**, char**)|git:github.com/mozilla-firefox/firefox:browser/app/nsBrowserApp.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|465|0x235
0|45|firefox.exe|wmain(int, wchar_t**)|git:github.com/mozilla-firefox/firefox:toolkit/xre/nsWindowsWMain.cpp:438a3ce10eb77fb50d968463b7741117aec5bb4a|150|0x246
0|46|firefox.exe|__scrt_common_main_seh()|/builds/worker/workspace/obj-build/browser/app/D:/a/_work/1/s/src/vctools/crt/vcstartup/src/startup/exe_common.inl|288|0x10b

I think this is being caused by bug 1998761.

Keywords: regression
Regressed by: 1998761

I've been unable to get the crash to reproduce on a local debug build of the latest central. Would it be possible to get a pernosco session with the NavigationAPI logs enabled?

Flags: needinfo?(twsmith)

As requested with MOZ_LOG=NavigationAPI:4,SessionHistory:4 set:

https://pernos.co/debug/Ccp2gPsy7KYCVN6NSqR_SQ/index.html

Flags: needinfo?(twsmith)
Assignee: nobody → avandolder
Status: NEW → ASSIGNED
Pushed by avandolder@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a50088adb2ed https://hg.mozilla.org/integration/autoland/rev/b22f2aecfbc7 Check if the Navigation API Key needs to be copied for a replace load again after a redirect. r=dom-core,smaug
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/56722 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
Upstream PR merged by moz-wptsync-bot

firefox-beta Uplift Approval Request

  • User impact if declined: These patches fix Navigation API-related interop-2025 test failures. Those fixes need to be in 157 beta in order to count towards our end-of-year interop score.
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: medium
  • Explanation of risk level: These patches change user-facing behaviour, and D275908 already experienced a regression (which was fixed by D276305). The overall changes are, however, fairly small.
  • String changes made/needed: N/A
  • Is Android affected?: yes
Attachment #9533675 - Flags: approval-mozilla-beta?
Flags: in-testsuite+
Attachment #9533675 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: