Closed
Bug 1413248
Opened 7 years ago
Closed 7 years ago
nsContextMenuInfo, nsIContextMenuListener and ChromeContextMenuListener are unused or untested
Categories
(Core :: DOM: Navigation, enhancement)
Core
DOM: Navigation
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: marco, Assigned: marco)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
36.18 KB,
patch
|
qdot
:
review+
|
Details | Diff | Splinter Review |
From the code coverage report, I've noticed these files/classes are not covered by tests. Indeed, a try build with the attached patch that removes them is completely green. Are they dead code or are they just not tested?
Assignee | ||
Comment 1•7 years ago
|
||
Attachment #8923888 -
Attachment is obsolete: true
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(kyle)
Comment 2•7 years ago
|
||
Huh. Spent some time in searchfox, I can't seem to find anywhere that this is used either, and it doesn't seem to show up in comm-central. The only thing holding up the rest of the context menu stuff from landing in bug 1372276 is the view source system, so maybe check that, but otherwise, if this passes try, I think we're ok to remove?
Flags: needinfo?(kyle)
Assignee | ||
Comment 3•7 years ago
|
||
(In reply to Kyle Machulis [:qdot] [:kmachulis] (if a patch has no decent commit message, automatic r-) from comment #2) > Huh. Spent some time in searchfox, I can't seem to find anywhere that this > is used either, and it doesn't seem to show up in comm-central. The only > thing holding up the rest of the context menu stuff from landing in bug > 1372276 is the view source system, so maybe check that, but otherwise, if > this passes try, I think we're ok to remove? The try build is green: https://treeherder.mozilla.org/#/jobs?repo=try&revision=cc82a70d12757714b660fa1b3b5c631f47621cd6. I've tested the build locally using the STR for view source from bug 1372276 comment 56 and it seems to be working fine.
Assignee: nobody → mcastelluccio
Attachment #8923894 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8925245 -
Flags: review?(kyle)
Comment 4•7 years ago
|
||
Comment on attachment 8925245 [details] [diff] [review] Patch Review of attachment 8925245 [details] [diff] [review]: ----------------------------------------------------------------- Ok, cool. If this passed try and you aren't seeing any weirdness, I think we're good to prune this code. Thanks for doing this!
Attachment #8925245 -
Flags: review?(kyle) → review+
Pushed by mcastelluccio@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/8f41147476b0 Remove nsIContextMenuListener, nsIContextMenuListener2 and nsContextMenuInfo as they are unused. r=qdot
Comment 6•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8f41147476b0
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Assignee | ||
Updated•7 years ago
|
Blocks: deadcode-codecoverage
You need to log in
before you can comment on or make changes to this bug.
Description
•