Closed Bug 1864379 Opened 1 year ago Closed 1 year ago

`DOMForm.*` events fired for disconnected elements

Categories

(Toolkit :: Password Manager, defect, P3)

defect

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox-esr115 --- fixed
firefox121 --- fixed
firefox122 --- fixed

People

(Reporter: issammani, Assigned: issammani)

References

Details

(Whiteboard: [fxcm-bugs-2023])

Attachments

(9 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
No description provided.
Summary: Password manager `DOMFormHasPassword` event fired for disconnected elements → `DOMFormHasPassword` event fired for disconnected elements
Summary: `DOMFormHasPassword` event fired for disconnected elements → `DOMForm.*` events fired for disconnected elements

Depends on D194768

Attachment #9365621 - Attachment description: WIP: Bug 1864379 - P1. Don't dispatch LoginManager DOM events for disconnected input elements. r=dimi!,emilio! → Bug 1864379 - P1. Don't dispatch LoginManager DOM events for disconnected input elements. r=dimi!,emilio!
Attachment #9365622 - Attachment description: WIP: Bug 1864379 - P2. Fix failing tests. r=dimi! → Bug 1864379 - P2. Fix failing tests. r=dimi!
Attachment #9365623 - Attachment description: WIP: Bug 1864379 - P3. Remove obsolete PWMGR_PASSWORD_INPUT_IN_FORM telemetry probe. r=dimi! → Bug 1864379 - P3. Remove obsolete PWMGR_PASSWORD_INPUT_IN_FORM telemetry probe. r=dimi!
Whiteboard: [fxcm-bugs-2023]
Pushed by imani@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9af849c60d5f P1. Don't dispatch LoginManager DOM events for disconnected input elements. r=dimi,emilio https://hg.mozilla.org/integration/autoland/rev/62567e4688f9 P2. Fix failing tests. r=dimi https://hg.mozilla.org/integration/autoland/rev/5f697f4aa6eb P3. Remove obsolete PWMGR_PASSWORD_INPUT_IN_FORM telemetry probe. r=dimi
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch

This grafts cleanly to Beta - how scary would this uplift be late in the cycle if we wanted to consider taking it in 121 for bug 1863300?

Flags: needinfo?(imani)

The patch refactors things a bit and mimics the old behavior just omits sending events in some cases we don't need to. Since Bug 1863300 has high visibility, I think we can uplift this now.

Flags: needinfo?(imani)
Attachment #9367095 - Flags: approval-mozilla-beta?
Attachment #9367096 - Flags: approval-mozilla-beta?
Attachment #9367097 - Flags: approval-mozilla-beta?

Uplift Approval Request

  • Steps to reproduce for manual QE testing: Try to login in https://store.playstation.com/de-de/pages/latest. It shouldn't freeze with the fix.
  • Fix verified in Nightly: yes
  • Is Android affected?: no
  • String changes made/needed: No
  • Code covered by automated testing: yes
  • Explanation of risk level: The patch refactors things a bit and mimics the old behavior just omits sending events in some cases we don't need to. No additional risk is introduced.
  • Needs manual QE test: no
  • User impact if declined: Freezing behaviour when logging into some websites
  • Risk associated with taking this patch: None

Comment on attachment 9367095 [details]
Bug 1864379 - P1. Don't dispatch LoginManager DOM events for disconnected input elements. r=dimi!,emilio!

Approved for 121.0b8.

Attachment #9367095 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9367096 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9367097 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9367467 - Flags: approval-mozilla-esr115?
Attachment #9367468 - Flags: approval-mozilla-esr115?
Attachment #9367469 - Flags: approval-mozilla-esr115?

Uplift Approval Request

  • Is Android affected?: no
  • String changes made/needed: None
  • Fix verified in Nightly: yes
  • Steps to reproduce for manual QE testing: Try to login in https://store.playstation.com/de-de/pages/latest. It shouldn't freeze with the fix.
  • Risk associated with taking this patch: None
  • User impact if declined: Freezing behaviour when logging into some websites
  • Needs manual QE test: no
  • Explanation of risk level: The patch refactors things a bit and mimics the old behavior just omits sending events in some cases we don't need to. No additional risk is introduced.
  • Code covered by automated testing: yes
Attachment #9367467 - Flags: approval-mozilla-esr115? → approval-mozilla-esr115+
Attachment #9367468 - Flags: approval-mozilla-esr115? → approval-mozilla-esr115+
Attachment #9367469 - Flags: approval-mozilla-esr115? → approval-mozilla-esr115+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: