Closed Bug 1652699 Opened 6 years ago Closed 6 years ago

Crash in [@ mozilla::dom::HTMLFormElement::BuildSubmission]

Categories

(Core :: DOM: Core & HTML, defect)

Unspecified
Windows 10
defect

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- disabled
firefox78 --- disabled
firefox79 --- disabled
firefox80 --- fixed

People

(Reporter: achronop, Assigned: sefeng211)

References

(Regression)

Details

(Keywords: crash, regression)

Crash Data

Attachments

(1 file, 2 obsolete files)

This bug is for crash report bp-b556378c-a648-487f-869f-3240f0200706.

Top 10 frames of crashing thread:

0 xul.dll mozilla::dom::HTMLFormElement::BuildSubmission dom/html/HTMLFormElement.cpp:744
1 xul.dll mozilla::dom::HTMLFormElement::DoSubmit dom/html/HTMLFormElement.cpp:651
2 xul.dll mozilla::dom::HTMLFormElement::PostHandleEvent dom/html/HTMLFormElement.cpp:569
3 xul.dll static mozilla::EventTargetChainItem::HandleEventTargetChain dom/events/EventDispatcher.cpp:560
4 xul.dll static mozilla::EventTargetChainItem::HandleEventTargetChain dom/events/EventDispatcher.cpp:637
5 xul.dll static mozilla::EventDispatcher::Dispatch dom/events/EventDispatcher.cpp:1054
6 xul.dll static mozilla::EventDispatcher::DispatchDOMEvent dom/events/EventDispatcher.cpp
7 xul.dll mozilla::PresShell::HandleDOMEventWithTarget layout/base/PresShell.cpp:8786
8 xul.dll mozilla::dom::HTMLFormElement::MaybeSubmit dom/html/HTMLFormElement.cpp:274
9 xul.dll mozilla::dom::HTMLButtonElement::PostHandleEvent dom/html/HTMLButtonElement.cpp:263

Started in 20200704213451 and crashes almost every day since then.

The line info in the crash report points to the dialog submission code added in bug 1557303.

Flags: needinfo?(sefeng)
Regressed by: 1557303
Has Regression Range: --- → yes

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

All urls are from https://forum.gamer.com.tw / https://home.gamer.com.tw. Maybe they use dialog in some obscure way?

It's possible that the dialog is closed while we are processing
the request, and we'd deferencing a null pointer for such case.

Assignee: nobody → sefeng
Status: NEW → ASSIGNED
Pushed by sefeng@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7e73e0ab27fe Fix a null pointer crash while doing dialog form submission r=smaug
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/24594 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
Upstream PR merged by moz-wptsync-bot

Please nominate this for Beta and ESR78 approval when you get a chance.

Flags: in-testsuite+
Attached file beta uplift request (obsolete) —

Approval Request Comment

[Feature/Bug causing the regression]: Bug 1557303
[User impact if declined]: Users may experience a crash when doing dialog form submission.
[Is this code covered by automated tests?]: Yes
[Has the fix been verified in Nightly?]: Yes
[Needs manual test from QE? If yes, steps to reproduce]: No
[List of other uplifts needed for the feature/fix]: N/A
[Is the change risky?]: No
[Why is the change risky/not risky?]:

  1. This feature is behind a pref and disabled by default, so only a very few numbers of users may experience this crash.
  2. The fix is covered by a test, so it's not risky.
    [String changes made/needed]: N/A

The patch that is attached to this bug is the one that we want to uplift

Flags: needinfo?(sefeng)
Attachment #9164158 - Flags: approval-mozilla-beta?
Attached file esruplift.txt (obsolete) —

[Approval Request Comment]

If this is not a sec:{high,crit} bug, please state case for ESR consideration:
When doing a dialog form submission, if the dialog is dismissed during the
submission, Firefox may crash.

User impact if declined: Users may experience a crash during dialog form submission.

Fix Landed on Version: Version 80, latest Nightly

Risk to taking this patch (and alternatives if risky): not risky.

The patch that is attached to this bug is the one that we want to uplift.

Attachment #9164159 - Flags: approval-mozilla-esr78?

Why do we want to uplift this? <dialog> is not enabled anywhere else than nightly atm, right?

Flags: needinfo?(sefeng)

Sorry, I missed that this was disabled by default. Agreed that we can let this fix ride the trains. Sorry for the hassle, Sean!

Flags: needinfo?(sefeng)
Attachment #9164158 - Attachment is obsolete: true
Attachment #9164158 - Flags: approval-mozilla-beta?
Attachment #9164159 - Attachment is obsolete: true
Attachment #9164159 - Flags: approval-mozilla-esr78?

oh okay! I thought we want to uplift this because users can manually enable it, but I guess not uplifting this is fine since possibly only a very few users would do that...

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: