Closed Bug 2006468 Opened 11 months ago Closed 10 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 20251125-25d9b1462c78 (--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 https://www.e-zpassny.com/ezpass/dashboard. A Pernosco session is available here: https://pernos.co/debug/LFnkknyN7ifZAdxGDBekmA/index.html

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

0|0|libxul.so|mozilla::dom::Navigation::UpdateEntriesForSameDocumentNavigation(mozilla::dom::SessionHistoryInfo*, mozilla::dom::NavigationType)|git:github.com/mozilla-firefox/firefox:dom/navigation/Navigation.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|382|0xa29
0|1|libxul.so|nsDocShell::UpdateURLAndHistory(mozilla::dom::Document*, nsIURI*, nsIStructuredCloneContainer*, mozilla::dom::NavigationHistoryBehavior, nsIURI*, bool)|git:github.com/mozilla-firefox/firefox:docshell/base/nsDocShell.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|12443|0xe25
0|2|libxul.so|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:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|12193|0x839
0|3|libxul.so|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:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|202|0x154
0|4|libxul.so|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:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|164|0xd
0|5|libxul.so|mozilla::dom::History_Binding::replaceState(JSContext*, JS::Handle<JSObject*>, void*, JSJitMethodCallArgs const&)|s3:gecko-generated-sources:afba07e4918b261f35d7af56dc0b4733832cb2fb126de552bc1cca5b41083d0b43193fd5f142e1cd51e55cea7815622fad67647d5697152193f9b78c13067b8d/dom/bindings/HistoryBinding.cpp:|424|0x2d2
0|6|libxul.so|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:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|3306|0x1dd
0|7|libxul.so|CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|490|0xf4
0|8|libxul.so|js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|586|0x2bf
0|9|libxul.so|js::Interpret(JSContext*, js::RunState&)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|3272|0xab92
0|10|libxul.so|js::RunScript(JSContext*, js::RunState&)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|460|0x3da
0|11|libxul.so|js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|618|0x2e5
0|12|libxul.so|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:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|685|0x12c
0|13|libxul.so|js::fun_call(JSContext*, unsigned int, JS::Value*)|git:github.com/mozilla-firefox/firefox:js/src/vm/JSFunction.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|1107|0x343
0|14|libxul.so|CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|490|0xf4
0|15|libxul.so|js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|586|0x2bf
0|16|libxul.so|js::Interpret(JSContext*, js::RunState&)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|3272|0xab92
0|17|libxul.so|js::RunScript(JSContext*, js::RunState&)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|460|0x3da
0|18|libxul.so|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:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|850|0x240
0|19|libxul.so|js::Execute(JSContext*, JS::Handle<JSScript*>, JS::Handle<JSObject*>, JS::MutableHandle<JS::Value>)|git:github.com/mozilla-firefox/firefox:js/src/vm/Interpreter.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|880|0x22e
0|20|libxul.so|ExecuteScript(JSContext*, JS::Handle<JSObject*>, JS::Handle<JSScript*>, JS::MutableHandle<JS::Value>)|git:github.com/mozilla-firefox/firefox:js/src/vm/CompilationAndEvaluation.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|548|0x101
0|21|libxul.so|JS_ExecuteScript(JSContext*, JS::Handle<JSScript*>)|git:github.com/mozilla-firefox/firefox:js/src/vm/CompilationAndEvaluation.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|572|0xa3
0|22|libxul.so|mozilla::dom::ScriptLoader::EvaluateScript(nsIGlobalObject*, JS::loader::ScriptLoadRequest*)|git:github.com/mozilla-firefox/firefox:dom/script/ScriptLoader.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|3517|0x60a
0|23|libxul.so|mozilla::dom::ScriptLoader::EvaluateScriptElement(JS::loader::ScriptLoadRequest*)|git:github.com/mozilla-firefox/firefox:dom/script/ScriptLoader.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|3057|0x267
0|24|libxul.so|mozilla::dom::ScriptLoader::ProcessRequest(JS::loader::ScriptLoadRequest*)|git:github.com/mozilla-firefox/firefox:dom/script/ScriptLoader.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|2516|0x256
0|25|libxul.so|mozilla::dom::ScriptLoader::ProcessPendingRequests(bool)|git:github.com/mozilla-firefox/firefox:dom/script/ScriptLoader.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|3911|0x473
0|26|libxul.so|mozilla::dom::ScriptLoader::ProcessOffThreadRequest(JS::loader::ScriptLoadRequest*)|git:github.com/mozilla-firefox/firefox:dom/script/ScriptLoader.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|2458|0x17c
0|27|libxul.so|mozilla::dom::(anonymous namespace)::OffThreadCompilationCompleteTask::Run()|git:github.com/mozilla-firefox/firefox:dom/script/ScriptLoader.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|1993|0x229
0|28|libxul.so|mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&)|git:github.com/mozilla-firefox/firefox:xpcom/threads/TaskController.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|1325|0x5b4
0|29|libxul.so|mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&)|git:github.com/mozilla-firefox/firefox:xpcom/threads/TaskController.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|1148|0x57
0|30|libxul.so|mozilla::TaskController::ProcessPendingMTTask(bool)|git:github.com/mozilla-firefox/firefox:xpcom/threads/TaskController.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|641|0x11b
0|31|libxul.so|mozilla::detail::RunnableFunction<mozilla::TaskController::TaskController()::$_1>::Run()|git:github.com/mozilla-firefox/firefox:xpcom/threads/nsThreadUtils.h:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|549|0x19
0|32|libxul.so|nsThread::ProcessNextEvent(bool, bool*)|git:github.com/mozilla-firefox/firefox:xpcom/threads/nsThread.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|1164|0x5ba
0|33|libxul.so|NS_ProcessNextEvent(nsIThread*, bool)|git:github.com/mozilla-firefox/firefox:xpcom/threads/nsThreadUtils.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|461|0x4f
0|34|libxul.so|mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*)|git:github.com/mozilla-firefox/firefox:ipc/glue/MessagePump.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|107|0x125
0|35|libxul.so|MessageLoop::Run()|git:github.com/mozilla-firefox/firefox:ipc/chromium/src/base/message_loop.cc:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|343|0x61
0|36|libxul.so|nsBaseAppShell::Run()|git:github.com/mozilla-firefox/firefox:widget/nsBaseAppShell.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|152|0x28
0|37|libxul.so|nsAppShell::Run()|git:github.com/mozilla-firefox/firefox:widget/gtk/nsAppShell.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|555|0x114
0|38|libxul.so|XRE_RunAppShell()|git:github.com/mozilla-firefox/firefox:toolkit/xre/nsEmbedFunctions.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|656|0x6b
0|39|libxul.so|mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*)|git:github.com/mozilla-firefox/firefox:ipc/glue/MessagePump.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|235|0x3c
0|40|libxul.so|MessageLoop::Run()|git:github.com/mozilla-firefox/firefox:ipc/chromium/src/base/message_loop.cc:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|343|0x61
0|41|libxul.so|XRE_InitChildProcess(int, char**, XREChildData const*)|git:github.com/mozilla-firefox/firefox:toolkit/xre/nsEmbedFunctions.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|594|0xa21
0|42|firefox-bin|main|git:github.com/mozilla-firefox/firefox:browser/app/nsBrowserApp.cpp:911b3eec6c5e58a9a49e23aa105e49aa76e00f9c|465|0x21c

You've been looking at this, right? Does this reproduction help?

Flags: needinfo?(avandolder)

Pretty sure this is another regression from bug 1998761

Assignee: nobody → avandolder
Status: NEW → ASSIGNED
Flags: needinfo?(avandolder)
Keywords: regression
Regressed by: 1998761
Severity: -- → S3

Next week is RC week for Fx147.
:avanholder, any concerns with having a fix in time, or can it follow in a later release?

Flags: needinfo?(avandolder)
Pushed by avandolder@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3969aaa14edd https://hg.mozilla.org/integration/autoland/rev/84f6e75fcebe Use previously-determined triggering navigation type when deciding whether to reuse the navigation API key for a replace load. r=dom-core,farre
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
Flags: needinfo?(avandolder)

What's the impact of this bug on Fx147? Is this a fix we should consider backporting? Please nominate for uplift if yes.

Flags: needinfo?(avandolder)
QA Whiteboard: [qa-triage-done-c149/b148]

It would probably be good to backport it to not have different behavior on the channels, but I don't think it's pressing, so it could tag along something else in that case? How does that sound Ryan? I'll add an uplift request for release.

It really only changes if a push should be a replace or vice versa, at most it's an annoying edge case. The assert is of course not a release assert.

Flags: needinfo?(ryanvm)

firefox-release Uplift Approval Request

  • User impact if declined: The user impact is rather low actually. This is more to not get confusing signals if this actually turns out to trigger a bug somewhere. The assert that this triggers is not a release assert so that would not be visible in release in any case.
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: This changes edge case behavior in deciding whether a navigation should be a push or a replace. At most it's annoying, but the change is very small.
  • String changes made/needed: None
  • Is Android affected?: yes
Attachment #9538068 - Flags: approval-mozilla-release?
Flags: needinfo?(avandolder)
See Also: → 2010953
Attachment #9538068 - Flags: approval-mozilla-release? → approval-mozilla-release+
Flags: needinfo?(ryanvm)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: