Closed
Bug 1418085
Opened 7 years ago
Closed 6 years ago
Remove nsIDOMHTMLElement
Categories
(Core :: DOM: Core & HTML, enhancement, P3)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: qdot, Assigned: bzbarsky)
References
(Blocks 1 open bug)
Details
Attachments
(6 files, 3 obsolete files)
6.56 KB,
patch
|
nika
:
review+
|
Details | Diff | Splinter Review |
30.52 KB,
patch
|
nika
:
review+
|
Details | Diff | Splinter Review |
2.68 KB,
patch
|
nika
:
review+
|
Details | Diff | Splinter Review |
25.11 KB,
patch
|
nika
:
review+
|
Details | Diff | Splinter Review |
4.89 KB,
patch
|
surkov
:
review+
|
Details | Diff | Splinter Review |
2.62 KB,
patch
|
nika
:
review+
|
Details | Diff | Splinter Review |
Continuing post-addon-deprecation XPCOM interface cleanup
Updated•7 years ago
|
Priority: -- → P3
Assignee | ||
Comment 1•6 years ago
|
||
MozReview-Commit-ID: 6J0wWzMCfWP
Attachment #8945925 -
Flags: review?(continuation)
Assignee | ||
Updated•6 years ago
|
Assignee: kyle → bzbarsky
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•6 years ago
|
||
MozReview-Commit-ID: 6YddkxqB5Bv
Attachment #8945926 -
Flags: review?(surkov.alexander)
Assignee | ||
Comment 3•6 years ago
|
||
MozReview-Commit-ID: Ax7RUZQCosr
Attachment #8945928 -
Flags: review?(continuation)
Assignee | ||
Comment 4•6 years ago
|
||
MozReview-Commit-ID: GsSnXNXGrHg
Attachment #8945929 -
Flags: review?(continuation)
Assignee | ||
Comment 5•6 years ago
|
||
MozReview-Commit-ID: JbWMti82q3R
Attachment #8945931 -
Flags: review?(continuation)
Assignee | ||
Comment 6•6 years ago
|
||
MozReview-Commit-ID: 5QUyFeAQYZQ
Attachment #8945933 -
Flags: review?(continuation)
Assignee | ||
Comment 7•6 years ago
|
||
MozReview-Commit-ID: 6YddkxqB5Bv
Attachment #8945964 -
Flags: review?(surkov.alexander)
Assignee | ||
Updated•6 years ago
|
Attachment #8945926 -
Attachment is obsolete: true
Attachment #8945926 -
Flags: review?(surkov.alexander)
Comment 8•6 years ago
|
||
Comment on attachment 8945964 [details] [diff] [review] part 2. Stop using nsIDOMHTMLElement in accessibility code Review of attachment 8945964 [details] [diff] [review]: ----------------------------------------------------------------- ::: accessible/tests/mochitest/events.js @@ +1059,5 @@ > } > > // Scroll the node into view, otherwise synth click may fail. > + if (isHTMLElement(targetNode)) { > + // XXXbz scrollIntoView is on Element; can we just use it unconditionally? yes, we should be able @@ +1068,5 @@ > } > > var x = 1, y = 1; > if (aArgs && ("where" in aArgs) && aArgs.where == "right") { > + if (isHTMLElement(targetNode)) getBoundingClientRect() probably can help to get rid the check too
Attachment #8945964 -
Flags: review?(surkov.alexander) → review+
Assignee | ||
Updated•6 years ago
|
Attachment #8945925 -
Flags: review?(continuation) → review?(nika)
Assignee | ||
Updated•6 years ago
|
Attachment #8945928 -
Flags: review?(continuation) → review?(nika)
Assignee | ||
Updated•6 years ago
|
Attachment #8945929 -
Flags: review?(continuation) → review?(nika)
Assignee | ||
Updated•6 years ago
|
Attachment #8945931 -
Flags: review?(continuation) → review?(nika)
Assignee | ||
Updated•6 years ago
|
Attachment #8945933 -
Flags: review?(continuation) → review?(nika)
Comment 9•6 years ago
|
||
Comment on attachment 8945925 [details] [diff] [review] part 1. Stop using nsIDOMHTMLElement in editor code Review of attachment 8945925 [details] [diff] [review]: ----------------------------------------------------------------- ::: editor/libeditor/HTMLEditor.cpp @@ +353,5 @@ > { > // Use the HTML documents body element as the editor root if we didn't > // get a root element during initialization. > > + Element* bodyElement = GetBodyElement(); Why not do: mRootElement = GetBodyElement(); if (!mRootElement) { nsCOMPtr<nsIDocument> doc = GetDocument(); if (doc) { mRootElement = doc->GetDocumentElement(); } } @@ +368,2 @@ > } > + } nit: trailing whitespace.
Attachment #8945925 -
Flags: review?(nika) → review+
Assignee | ||
Comment 10•6 years ago
|
||
> Why not do: Because I didn't think to. ;) Fixed. > nit: trailing whitespace. Fixed.
Updated•6 years ago
|
Attachment #8945928 -
Flags: review?(nika) → review+
Comment 11•6 years ago
|
||
Comment on attachment 8945929 [details] [diff] [review] part 4. Stop using nsIDOMHTMLElement in JS code Review of attachment 8945929 [details] [diff] [review]: ----------------------------------------------------------------- ::: devtools/server/actors/object.js @@ +1853,5 @@ > } > } > } else if (rawObj instanceof Ci.nsIDOMElement) { > // Add preview for DOM element attributes. > + if (rawObj.namespaceURI == "http://www.w3.org/1999/xhtml") { I would like an explanation as to why this change is correct - it doesn't seem necessarily incorrect but it also isn't super clear as to what you're checking.
Attachment #8945929 -
Flags: review?(nika)
Comment 12•6 years ago
|
||
Comment on attachment 8945931 [details] [diff] [review] part 5. Remove nsIDOMHTMLInputElement::GetList Review of attachment 8945931 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/interfaces/html/nsIDOMHTMLInputElement.idl @@ +34,5 @@ > attribute DOMString name; > > attribute boolean readOnly; > > readonly attribute nsIControllers controllers; Maybe clean up this whitespace while you're here?
Attachment #8945931 -
Flags: review?(nika) → review+
Updated•6 years ago
|
Attachment #8945933 -
Flags: review?(nika) → review+
Assignee | ||
Comment 13•6 years ago
|
||
Attachment #8946347 -
Flags: review?(nika)
Assignee | ||
Updated•6 years ago
|
Attachment #8945929 -
Attachment is obsolete: true
Assignee | ||
Comment 14•6 years ago
|
||
> Maybe clean up this whitespace while you're here?
Done.
Assignee | ||
Comment 15•6 years ago
|
||
Attachment #8946349 -
Flags: review?(nika)
Assignee | ||
Updated•6 years ago
|
Attachment #8946347 -
Attachment is obsolete: true
Attachment #8946347 -
Flags: review?(nika)
Comment 16•6 years ago
|
||
Comment on attachment 8946349 [details] [diff] [review] Part 4 with comments explaining what it's doing Review of attachment 8946349 [details] [diff] [review]: ----------------------------------------------------------------- thanks
Attachment #8946349 -
Flags: review?(nika) → review+
Comment 17•6 years ago
|
||
Pushed by bzbarsky@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/2c852fd27256 part 1. Stop using nsIDOMHTMLElement in editor code. r=mystor https://hg.mozilla.org/integration/mozilla-inbound/rev/09cb8eececa7 part 2. Stop using nsIDOMHTMLElement in accessibility code. r=surkov https://hg.mozilla.org/integration/mozilla-inbound/rev/0ff82b4a39e1 part 3. Stop using nsIDOMHTMLElement in form fill. r=mystor https://hg.mozilla.org/integration/mozilla-inbound/rev/8f73def3b816 part 4. Stop using nsIDOMHTMLElement in JS code. r=mystor https://hg.mozilla.org/integration/mozilla-inbound/rev/86ea8b042827 part 5. Remove nsIDOMHTMLInputElement::GetList. r=mystor https://hg.mozilla.org/integration/mozilla-inbound/rev/09e8b8497618 part 6. Remove nsIDOMHTMLElement. r=mystor
Comment 18•6 years ago
|
||
Pushed by bzbarsky@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/6e2d37b1b955 followup. Try to fix the Mac-only a11y orange. r=bustage
Assignee | ||
Comment 19•6 years ago
|
||
Either scrollIntoView or getBoundingClientRect didn't do the right thing on Mac....
Comment 20•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2c852fd27256 https://hg.mozilla.org/mozilla-central/rev/09cb8eececa7 https://hg.mozilla.org/mozilla-central/rev/0ff82b4a39e1 https://hg.mozilla.org/mozilla-central/rev/8f73def3b816 https://hg.mozilla.org/mozilla-central/rev/86ea8b042827 https://hg.mozilla.org/mozilla-central/rev/09e8b8497618 https://hg.mozilla.org/mozilla-central/rev/6e2d37b1b955
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in
before you can comment on or make changes to this bug.
Description
•