Closed
Bug 1445396
Opened 6 years ago
Closed 6 years ago
Port bug 1433566 - nsIDOMText is going away
Categories
(Thunderbird :: General, defect)
Thunderbird
General
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 61.0
People
(Reporter: bzbarsky, Assigned: jorgk-bmo)
References
Details
Attachments
(4 files, 2 obsolete files)
6.58 KB,
patch
|
aceman
:
review+
|
Details | Diff | Splinter Review |
1.68 KB,
patch
|
aceman
:
review+
|
Details | Diff | Splinter Review |
4.17 KB,
patch
|
Fallen
:
review+
|
Details | Diff | Splinter Review |
1.88 KB,
patch
|
florian
:
review+
|
Details | Diff | Splinter Review |
See bug 1445354. There are various places in calendar and chat that test for instanceof Ci.nsIDOMText. They should switch to testing .nodeType for (TEXT_NODE or CDATA_SECTION_NODE).
Assignee | ||
Comment 1•6 years ago
|
||
Thanks, ETA?
Reporter | ||
Comment 2•6 years ago
|
||
I plan to post the patches today. Review might take a day or two, maybe. I can hold off on landing a few days if needed.
Assignee | ||
Comment 3•6 years ago
|
||
Thanks, no need. There are only a handful of uses.
Assignee | ||
Comment 4•6 years ago
|
||
Let's start with this.
Assignee | ||
Comment 5•6 years ago
|
||
Sorry, I needed something to land, make that a PLR ;-)
Keywords: leave-open
Assignee | ||
Comment 6•6 years ago
|
||
Found another one.
Attachment #8958601 -
Attachment is obsolete: true
Attachment #8958601 -
Flags: review?(acelists)
Attachment #8958626 -
Flags: review?(acelists)
Assignee | ||
Comment 7•6 years ago
|
||
Sorry about the noise, found some more.
Attachment #8958626 -
Attachment is obsolete: true
Attachment #8958626 -
Flags: review?(acelists)
Attachment #8958629 -
Flags: review?(acelists)
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/b8667006d07d remove unneeded includes of nsIDOMText.h, nsIDOMElement.h and nsIDOMNodeList.h. r=aceman
Comment on attachment 8958629 [details] [diff] [review] 1445396-remove-unneeded-includes.patch (v3) Review of attachment 8958629 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for the cleanup. Can you add the include to mailnews/compose/src/nsMsgCompose.cpp ? nsIDOMElement is used there. Also why do you remove it from nsNntpIncomingServer.cpp? That file does use nsIDOMElement. It does compile now, probabbly the file is included silently from some m-c file. But that may break any time, when they do cleanup. After this patch no mailnews/ file includes this, but the uses are there.
Attachment #8958629 -
Flags: review?(acelists)
Assignee | ||
Comment 10•6 years ago
|
||
For the JS part, take a look at the patch in bug 1433566, attachment 8945950 [details] [diff] [review]. JS tests both.
Assignee | ||
Comment 11•6 years ago
|
||
(In reply to :aceman from comment #9) > Can you add the include to mailnews/compose/src/nsMsgCompose.cpp ? > nsIDOMElement is used there. OK. > Also why do you remove it from nsNntpIncomingServer.cpp? That file does use > nsIDOMElement. Oops ;-(
Assignee | ||
Comment 12•6 years ago
|
||
Comment on attachment 8958629 [details] [diff] [review] 1445396-remove-unneeded-includes.patch (v3) You can still approve this together with the next one.
Attachment #8958629 -
Flags: review?(acelists)
Assignee | ||
Comment 13•6 years ago
|
||
Re-instate over-zealously removed include and also add it elsewhere.
Attachment #8958644 -
Flags: review?(acelists)
Comment 14•6 years ago
|
||
Comment on attachment 8958644 [details] [diff] [review] 1445396-add-nsIDOMElement.patch Review of attachment 8958644 [details] [diff] [review]: ----------------------------------------------------------------- OK, thanks.
Attachment #8958644 -
Flags: review?(acelists) → review+
Comment 15•6 years ago
|
||
Comment on attachment 8958629 [details] [diff] [review] 1445396-remove-unneeded-includes.patch (v3) Review of attachment 8958629 [details] [diff] [review]: ----------------------------------------------------------------- Thanks.
Attachment #8958629 -
Flags: review?(acelists) → review+
Comment 16•6 years ago
|
||
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/397773b5b6d7 Follow-up: reinstate include of nsIDOMElement.h where needed. r=aceman
Comment 17•6 years ago
|
||
Conversion per comment 0. You may know better whether the place really needs to check CDATA too.
Attachment #8958660 -
Flags: review?(philipp)
Comment 18•6 years ago
|
||
Conversion per comment 0. You may know better whether the place really needs to check CDATA too.
Attachment #8958661 -
Flags: review?(clokep)
Comment 19•6 years ago
|
||
Comment on attachment 8958660 [details] [diff] [review] 1445396-cal.patch Review of attachment 8958660 [details] [diff] [review]: ----------------------------------------------------------------- Both text and cdata sounds right to me, thanks for the patch.
Attachment #8958660 -
Flags: review?(philipp) → review+
Assignee | ||
Comment 20•6 years ago
|
||
I'll have to steal Patrick's review here soon since bug 1445354 just landed on inbound.
Summary: nsIDOMText is going away → Port bug 1445354 - nsIDOMText is going away
Assignee | ||
Comment 21•6 years ago
|
||
Sorry, bug 1433566.
Summary: Port bug 1445354 - nsIDOMText is going away → Port bug 1433566 - nsIDOMText is going away
Updated•6 years ago
|
Attachment #8958661 -
Flags: review?(clokep) → review+
Assignee | ||
Updated•6 years ago
|
Keywords: leave-open
Comment 22•6 years ago
|
||
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/d769ecd016c7 remove nsIDOMText use in calendar. r=philipp https://hg.mozilla.org/comm-central/rev/5391a6864d53 remove nsIDOMText use in chat. r=florian
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•6 years ago
|
Target Milestone: --- → Thunderbird 61.0
You need to log in
before you can comment on or make changes to this bug.
Description
•