Closed Bug 2040092 Opened 2 months ago Closed 1 month ago

Crash in [@ mozilla::dom::syncedcontext::Transaction<T>::Commit | mozilla::dom::BrowsingContext::SetAnimationsPlayBackRateMultiplier]

Categories

(Core :: DOM: Content Processes, defect)

Firefox 152
Desktop
Windows 11
defect

Tracking

()

VERIFIED FIXED
153 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox150 --- unaffected
firefox151 --- wontfix
firefox152 --- wontfix
firefox153 --- verified

People

(Reporter: alice0775, Assigned: edenchuang)

References

(Regression)

Details

(4 keywords)

Crash Data

Attachments

(2 files)

Crash report: https://crash-stats.mozilla.org/report/index/e1bf4c49-e53c-4660-bd7d-0c23d0260516

MOZ_CRASH Reason:

CanSet failed for field(s): AnimationsPlayBackRateMultiplier

Top 10 frames:

0  xul.dll  MOZ_Crash(char const*, int, char const*)  mfbt/Assertions.h:402
0  xul.dll  mozilla::dom::syncedcontext::Transaction<mozilla::dom::BrowsingContext>::Comm...  docshell/base/SyncedContextInlines.h:101
1  xul.dll  mozilla::dom::BrowsingContext::SetAnimationsPlayBackRateMultiplier(double)  docshell/base/BrowsingContext.h:325
2  xul.dll  mozilla::dom::BrowsingContext::SetAnimationsPlayBackRateMultiplier(double, mo...  docshell/base/BrowsingContext.h:325
3  xul.dll  mozilla::dom::BrowsingContext_Binding::set_animationsPlayBackRateMultiplier(J...  dom/bindings/BrowsingContextBinding.cpp:2938
4  xul.dll  mozilla::dom::binding_detail::GenericSetter<mozilla::dom::binding_detail::Nor...  dom/bindings/BindingUtils.cpp:3161
5  xul.dll  CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::...  js/src/vm/Interpreter.cpp:488
5  xul.dll  js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstru...  js/src/vm/Interpreter.cpp:584
5  xul.dll  InternalCall(JSContext*, js::AnyInvokeArgs const&, js::CallReason)  js/src/vm/Interpreter.cpp:651
5  xul.dll  js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInv...  js/src/vm/Interpreter.cpp:683

STR:

  1. Open Bookmarks Sidebar (Ctrl+B)
  2. Open Browser Toolbox (Ctrl+Shift+Alt+I)
  3. Click on Select an iframe as the currently targeted document icon at the top-right of the Browser toolbox
  4. Select browser/components/sidebar/sidebar-bookmarks.html or chrome://browser/content/places/bookmarksSidebar.xhtml from the drop-down list
  5. Make the main browser window active
  6. Exit the browser (Ctrl+Sift+Q)

Actual results:
The crash reporter pops up

Expected results:
No crash reporter

Attached file about:support

:nchevobbe, since you are the author of the regressor, bug 1245562, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(nchevobbe)
Flags: needinfo?(echuang)

Ah yes, forgot about this, and Eden is better suited than me to look into the crash :)

Flags: needinfo?(nchevobbe)

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

The bug is marked as tracked for firefox151 (release) and tracked for firefox152 (beta). However, the bug still isn't assigned.

:slloyd, could you please find an assignee for this tracked bug? Given that it is a regression and we know the cause, we could also simply backout the regressor. If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(slloyd)

It sounds like Eden was going to take a look at this.

Assignee: nobody → echuang
Flags: needinfo?(slloyd)
Severity: -- → S2

:edenchuang, are you still investigating?
I don't see any crash volume in release, but we could take a patch if you have one in time for a Fx151 dot release

animationsPlayBackRateMultiplier is a synced BrowsingContext field whose CanSet
requires IsTop(). When a root target actor (e.g. the Browser Toolbox) has an
iframe selected as the currently targeted document via the iframe picker,
this.browsingContext is no longer the top context, so setting the multiplier on
it crashed with "CanSet failed for field(s): AnimationsPlayBackRateMultiplier".

Set the field on this.browsingContext.top instead, which matches the field's
getter (which reads from Top()) and is a no-op for the regular tab toolbox where
the targeted context is already top.

Pushed by echuang@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c28bc7e5cab0 https://hg.mozilla.org/integration/autoland/rev/ad35339d8972 Set animationsPlayBackRateMultiplier on the top browsing context from DevTools. r=devtools-reviewers,nchevobbe
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch

(In reply to Pulsebot from comment #10)

Pushed by echuang@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/c28bc7e5cab0
https://hg.mozilla.org/integration/autoland/rev/ad35339d8972
Set animationsPlayBackRateMultiplier on the top browsing context from
DevTools. r=devtools-reviewers,nchevobbe

Perfherder has detected a mozperftest performance change from push ad35339d8972afd474e920c8127f617890ee8bbc.

No action is required from the author; this comment is provided for informational purposes only.

Improvement Test Platform Options Absolute values [old vs new]
19% test_fetch.html Cold fetch linux2404-64-shippable 4.96 ms -> 4.00 ms

Need Help or Information?

If you have any questions, please reach out to afinder@mozilla.com. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

QA Whiteboard: [qa-triage-done-c154/b153] [qa-ver-needed-c154/b153]
Flags: qe-verify+

Reproduced the crash using Firefox 152.0.5 on Windows 11 x64 by following the steps in the description.

Verified as fixed using Firefox 153.0b11 on Windows 11 x64 - the crash no longer occurs when following the same steps.

QA Whiteboard: [qa-triage-done-c154/b153] [qa-ver-needed-c154/b153] → [qa-triage-done-c154/b153] [qa-ver-done-c154/b153]
Flags: qe-verify+
QA Contact: sbadau
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: