Closed
Bug 938699
Opened 12 years ago
Closed 10 years ago
Kill off nsDOMWindowUtils::FindElementWithViewId
Categories
(Core :: Layout, defect, P5)
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.
Updated•12 years ago
|
Severity: normal → trivial
Priority: -- → P5
| Reporter | ||
Comment 1•10 years ago
|
||
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]
| Assignee | ||
Comment 2•10 years ago
|
||
(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"?
| Reporter | ||
Comment 3•10 years ago
|
||
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
| Reporter | ||
Comment 4•10 years ago
|
||
.. 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
| Assignee | ||
Comment 5•10 years ago
|
||
(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?
| Reporter | ||
Comment 6•10 years ago
|
||
Yup!
| Assignee | ||
Comment 7•10 years ago
|
||
Attachment #8716417 -
Flags: review?(bugmail.mozilla)
| Reporter | ||
Updated•10 years ago
|
Assignee: nobody → tranj23
| Reporter | ||
Comment 8•10 years ago
|
||
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+
Comment 10•10 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
| Reporter | ||
Comment 11•10 years ago
|
||
Jeffrey, thank you for the patch!
| Assignee | ||
Comment 12•10 years ago
|
||
(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.
Description
•