Closed Bug 1810234 Opened 1 year ago Closed 1 year ago

Crash in [@ nsIContent::GetPrimaryFrame] and others from nsNumberControlFrame::SpinnerStateChanged()

Categories

(Core :: Layout, defect, P3)

Unspecified
Android
defect

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox-esr102 --- wontfix
firefox109 --- wontfix
firefox110 --- fixed
firefox111 --- fixed

People

(Reporter: mccr8, Assigned: emilio)

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

Crash report: https://crash-stats.mozilla.org/report/index/2f908798-253a-4128-a644-2b8120230111

Reason: SIGSEGV / SEGV_MAPERR

Top 10 frames of crashing thread:

0  libxul.so  nsIContent::GetPrimaryFrame const  dom/base/nsIContent.h:547
0  libxul.so  nsNumberControlFrame::SpinnerStateChanged const  layout/forms/nsNumberControlFrame.cpp:143
1  libxul.so  mozilla::dom::HTMLInputElement::GetEventTargetParent  dom/html/HTMLInputElement.cpp
2  libxul.so  mozilla::EventTargetChainItem::GetEventTargetParent  dom/events/EventDispatcher.cpp:416
2  libxul.so  mozilla::EventDispatcher::Dispatch  dom/events/EventDispatcher.cpp:974
3  libxul.so  mozilla::PresShell::EventHandler::DispatchEventToDOM  layout/base/PresShell.cpp:8734
4  libxul.so  mozilla::PresShell::EventHandler::DispatchEvent  layout/base/PresShell.cpp:8306
5  libxul.so  mozilla::PresShell::EventHandler::HandleEventWithCurrentEventInfo  layout/base/PresShell.cpp:8238
6  libxul.so  mozilla::PresShell::EventHandler::HandleEventUsingCoordinates  layout/base/PresShell.cpp:7187
7  libxul.so  mozilla::PresShell::EventHandler::HandleEvent  layout/base/PresShell.cpp:6990

This shows up under a few other signatures, too.

[@ nsNumberControlFrame::SpinnerStateChanged ] in ESR: bp-0da07860-4449-484a-bee7-9777c0230113

SpinnerStateChanged has an assertion that mSpinUp and mSpinDown are non-null, but I'm not sure exactly what ensures it. It looks like mSpinUp (and presumably mSpinDown) are null sometimes, so maybe we could add a check for it?

I found 136 crashes in the last month with SpinnerStateChanged in the proto signature and the ones I looked at all looked kind of like this.

A third signature it shows up fairly often under is [@ nsINode::GetBoolFlag ]: bp-3d576fe7-fa94-4168-99ca-fa0a10230112

GetBoolFlag is fairly generic so I don't think it is worth adding as a signature to this bug.

Crash Signature: [@ nsIContent::GetPrimaryFrame] → [@ nsIContent::GetPrimaryFrame] [@ nsNumberControlFrame::SpinnerStateChanged ]
Severity: -- → S3
Priority: -- → P3

I don't have a repro, but it doesn't seem too unbelievable that if the
appearance changes mid-click we could end up with no spinners but a call
here.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/74a8d4dbc831
Null-check in nsNumberControlFrame::SpinnerStateChanged. r=layout-reviewers,jfkthame
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch

The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox110 to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

Comment on attachment 9314230 [details]
Bug 1810234 - Null-check in nsNumberControlFrame::SpinnerStateChanged. r=#layout

Beta/Release Uplift Approval Request

  • User impact if declined: comment 0
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): null-check
  • String changes made/needed: none
  • Is Android affected?: Yes
Flags: needinfo?(emilio)
Attachment #9314230 - Flags: approval-mozilla-beta?

Comment on attachment 9314230 [details]
Bug 1810234 - Null-check in nsNumberControlFrame::SpinnerStateChanged. r=#layout

Approved for 110 beta 8, thanks.

Attachment #9314230 - 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: