Closed Bug 1906015 Opened 1 year ago Closed 1 year ago

Avoid QI from `nsINode*` to `nsCOMPtr<nsIFormControl>`

Categories

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

task

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

Details

Attachments

(2 files)

While I'm investigating another bug, I found a lot of QI from nsINode* to nsCOMPtr<nsIFormControl>. I think we can get rid of them.

Although the following patch do not use the dom::EventTarget* versions,
they should be available for consistency with the other FromNode related
utility methods.

farre: could you review attachment 9410936 [details]? It's a simple refactoring entire the nsIFormControl interface users.

Flags: needinfo?(afarre)

Isn't that already reviewed (by me :) ) ?

(In reply to Olli Pettay [:smaug][bugs@pettay.fi](vacation until July 14) from comment #4)

Isn't that already reviewed (by me :) ) ?

Err, it's about attachment 9410937 [details] which requires a review of #sessionstore-reviewers.

Well, farre is now in a long PTO, so, redirecting the ni? to Sarah Clements.

Hello, Sarah, could you review the patch as a member of #sessionstore-reviewers? It's a simple refactoring patch without any logical changes.

Flags: needinfo?(afarre) → needinfo?(sclements)

Hi :masayuki, I did r+ that but in the future it'd be helpful to explain the session restore changes more clearly (the current session restore owners are frontend-end based in our knowledge of session restore, so its out of my wheelhouse).

Flags: needinfo?(sclements)
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/4621950d1f80 part 1: Add `nsIFormControl` accessors from `nsINode*` or `EventTarget*` r=smaug https://hg.mozilla.org/integration/autoland/rev/897825504e5d part 2: Make the most `do_QueryInterface` users for `nsIFormControl` use new getter methods r=smaug,credential-management-reviewers,sessionstore-reviewers,sclements
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: