Closed Bug 1881457 Opened 7 months ago Closed 7 months ago

onchange not fired when clear value of textarea

Categories

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

Firefox 123
defect

Tracking

()

VERIFIED FIXED
125 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox123 + verified
firefox124 --- verified
firefox125 --- verified

People

(Reporter: jochen.kremer, Assigned: emilio)

References

(Regression)

Details

(Keywords: nightly-community, regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0

Steps to reproduce:

<textarea onchange="alert('change')">12345</textarea>

Select full text and delete id, then leave field.

Actual results:

Nothing happens. Onchange is not fireing,
It´s only fireing when i delete a part of the value and then the rest.

Expected results:

The event should fireing also whe i delete the full value at the first time. We checkt this. In Version 1.2.2 it´s working. In 1.2.3 it´s broken

[Tracking Requested - why for this release]: Onchange event does not fire

STR:

  1. Open data:text/html,<textarea onchange="alert('change')">12345</textarea>
  2. Focus the textarea and select full text
  3. Delete the selected text (Hit DEL key or Ctrl+X)
  4. Take the focus away from the textarea (click on page body)

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=fd640ad054ea9962a833d4d1e406f3bd63577a68&tochange=50e9acd8344672f53caae7463162c31c627b3546

Status: UNCONFIRMED → NEW
Component: Untriaged → DOM: Core & HTML
Ever confirmed: true
Product: Firefox → Core
Regressed by: 1850295

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

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

Emilio, could you set the severity for this regression? Thanks

Assignee: nobody → emilio
Severity: -- → S3
Flags: needinfo?(emilio)
Priority: -- → P2

This deletion was an oversight of the regressing bug. Kind of
embarrassing we didn't have a test for it...

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/44734 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
Upstream PR merged by moz-wptsync-bot

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-firefox124 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)
Duplicate of this bug: 1881764

Comment on attachment 9382049 [details]
Bug 1881457 - Keep saving mFocusedValue. r=smaug,#dom-core

Beta/Release Uplift Approval Request

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

Comment on attachment 9382049 [details]
Bug 1881457 - Keep saving mFocusedValue. r=smaug,#dom-core

Approved for 124.0b4

Attachment #9382049 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: in-testsuite+
QA Whiteboard: [qa-triaged]

Reproduced the issue on an affected build, on Windows 10.
Verified as fixed on Firefox 124.0b4 (20240226091939) and 125.0a1 (20240226165659) on the following platforms: Win 10, Win 11, Ubuntu 22 and macOS 11.

Comment on attachment 9382049 [details]
Bug 1881457 - Keep saving mFocusedValue. r=smaug,#dom-core

123 regression, low risk, let's take it in our planned dot release next week, thanks.

Attachment #9382049 - Flags: approval-mozilla-release? → approval-mozilla-release+
Duplicate of this bug: 1882047

Verified as fixed on Firefox 123.0.1 (20240304104836) on the following platforms: Windows 10, Windows 11, Ubuntu 22 and macOS 11.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: