Closed
Bug 1406525
Opened 8 years ago
Closed 8 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•8 years ago
|
Attachment #8916148 -
Flags: review?(bzbarsky)
Comment 2•8 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•8 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•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 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
•