Closed
Bug 1406525
Opened 7 years ago
Closed 7 years ago
Remove nsIDOMHTMLLinkElement
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: qdot, Assigned: qdot)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Continuing post-addon-deprecation XPCOM interface cleanup
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8916148 -
Flags: review?(bzbarsky)
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8916148 [details] Bug 1406525 - Remove nsIDOMHTMLLinkElement; https://reviewboard.mozilla.org/r/187394/#review192474 There are two comm-central uses of `instanceof Components.interfaces.nsIDOMHTMLLinkElement`. Please file a bug on them to switch to getClassName(). r=me with the nit below. ::: dom/webbrowserpersist/WebBrowserPersistLocalDocument.cpp:538 (Diff revision 1) > - nsCOMPtr<nsIDOMHTMLLinkElement> nodeAsLink = do_QueryInterface(aNode); > - if (nodeAsLink) { > + if (content->IsHTMLElement(nsGkAtoms::link)) { > + RefPtr<dom::HTMLLinkElement> nodeAsLink = dom::HTMLLinkElement::FromContent(content); You can combine these as: if (auto nodeAsLink = dom::HTMLLinkElement::FromContent(content)) { and then you only check the tagname once.
Attachment #8916148 -
Flags: review?(bzbarsky) → review+
Comment hidden (mozreview-request) |
Pushed by kmachulis@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f99c758cd03e Remove nsIDOMHTMLLinkElement; r=bz
Comment 5•7 years ago
|
||
Backed out in https://hg.mozilla.org/integration/autoland/rev/b4c98dfafc02 for Windows build bustage, https://treeherder.mozilla.org/logviewer.html#?job_id=135464356&repo=autoland
Pushed by kmachulis@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/212ceaf885b0 Remove nsIDOMHTMLLinkElement; r=bz
Comment 7•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/212ceaf885b0
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in
before you can comment on or make changes to this bug.
Description
•