Closed Bug 938699 Opened 12 years ago Closed 10 years ago

Kill off nsDOMWindowUtils::FindElementWithViewId

Categories

(Core :: Layout, defect, P5)

x86
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: kats, Assigned: tranj23, Mentored)

Details

(Whiteboard: [good first bug])

Attachments

(1 file)

This function is only used in one place, and that can be easily fixed. The reason I want to get rid of this function is that it's a footgun because it special-cases the ROOT_SCROLL_ID and can return a different value from nsLayoutUtils::FindIDFor for it.
Severity: normal → trivial
Priority: -- → P5
This function isn't used any more, it's should be ok to just delete it from nsIDOMWindowUtils.idl and nsDOMWindowUtils.cpp. It's a simple first bug, I can mentor it. The only 'trick' here is to bump the UUID in the IDL file.
Mentor: bugmail.mozilla
Whiteboard: [good first bug]
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #1) > This function isn't used any more, it's should be ok to just delete it from > nsIDOMWindowUtils.idl and nsDOMWindowUtils.cpp. It's a simple first bug, I > can mentor it. The only 'trick' here is to bump the UUID in the IDL file. Hi, can you explain how to "bump the UUID"?
The easiest way is to run |mach uuid| to generate a new UUID and replace the existing one (e.g. at [1]) with the new one. [1] https://dxr.mozilla.org/mozilla-central/rev/aa90f482e16db77cdb7dea84564ea1cbd8f7f6b3/dom/interfaces/base/nsIDOMWindowUtils.idl#52
.. although I think you might not need to do that anymore, according to the discussion at https://groups.google.com/forum/#!topic/mozilla.dev.platform/n6qBpyxoI6I
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #4) > .. although I think you might not need to do that anymore, according to the > discussion at > https://groups.google.com/forum/#!topic/mozilla.dev.platform/n6qBpyxoI6I So then do we just delete the function and not worry about the UUID?
Assignee: nobody → tranj23
Comment on attachment 8716417 [details] [diff] [review] rev1 - Remove FindElementWithViewId from nsIDOMWindowUtils.idl and nsDOMWindowUtils.cpp. Review of attachment 8716417 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thanks! I'll land this in a bit.
Attachment #8716417 - Flags: review?(bugmail.mozilla) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Jeffrey, thank you for the patch!
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #11) > Jeffrey, thank you for the patch! I'm happy to help!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: