Closed
Bug 1433363
Opened 7 years ago
Closed 7 years ago
Port the changes from bug 1418076 [Remove nsIDOMHTMLDocument] to comm-central
Categories
(Thunderbird :: General, enhancement)
Thunderbird
General
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 60.0
People
(Reporter: bzbarsky, Assigned: jorgk-bmo)
References
Details
Attachments
(1 file, 1 obsolete file)
3.19 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
The following files are affected:
* editor/ui/composer/content/editorApplicationOverlay.js
* editor/ui/composer/content/editorUtilities.js
* mail/base/content/specialTabs.js
All three of those need to replace instanceof Ci.nsIDOMHTMLDocument with ChromeUtils.getClassName checks. Also:
* mailnews/compose/src/nsMsgComposeService.cpp
* suite/smile/public/smileIApplication.idl
nsMsgComposeService just has a #include that can go away, I think. I'm not sure what smileIApplication.idl is used for, if anything.
Assignee | ||
Updated•7 years ago
|
Summary: Port the changes from bug 1418076 to comm-central → Port the changes from bug 1418076 [Remove nsIDOMHTMLDocument] to comm-central
Assignee | ||
Comment 1•7 years ago
|
||
FRG, I won't do the SM part, since I can't test that.
Flags: needinfo?(frgrahl)
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → jorgk
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•7 years ago
|
||
Sorry to trouble you with this. I think class checks won't do it here
https://dxr.mozilla.org/comm-central/rev/2b56d89a8792fc1af6ae66be5f38cd9d26ecb7e1/editor/ui/composer/content/editorUtilities.js#671
and here:
https://dxr.mozilla.org/comm-central/rev/2b56d89a8792fc1af6ae66be5f38cd9d26ecb7e1/editor/ui/composer/content/editorApplicationOverlay.js#134
Somehow they want to get the URL from the document.
Attachment #8945881 -
Flags: feedback?(bzbarsky)
![]() |
Reporter | |
Comment 3•7 years ago
|
||
Comment on attachment 8945881 [details] [diff] [review]
1433363-nsIDOMHTMLDocument.patch (v1) WIP
This looks fine.
> Somehow they want to get the URL from the document.
OK, so what? This bit:
var aDOMHTMLDoc = GetCurrentEditor().document.QueryInterface(Components.interfaces.nsIDOMHTMLDocument);
return aDOMHTMLDoc.URL;
Can be rewritten as:
return GetCurrentEditor().document.URL;
because "URL" is on the Document interface anyway. Same for the other thing that wants .URL; that QI is just useless noise.
Attachment #8945881 -
Flags: feedback?(bzbarsky) → feedback+
Assignee | ||
Comment 4•7 years ago
|
||
I hope you don't mind looking over two more hunks so we're done here.
Attachment #8945881 -
Attachment is obsolete: true
Attachment #8945889 -
Flags: review?(bzbarsky)
![]() |
Reporter | |
Comment 5•7 years ago
|
||
Comment on attachment 8945889 [details] [diff] [review]
1433363-nsIDOMHTMLDocument.patch (v2)
r=me
Attachment #8945889 -
Flags: review?(bzbarsky) → review+
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/454c0dee5033
Port bug 1418076: Remove use of nsIDOMHTMLDocument. r=bz
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 7•7 years ago
|
||
Thanks Boris.
Fixed indentation and replaced invalid !=== with !== here:
https://hg.mozilla.org/comm-central/rev/454c0dee5033#l3.14
Target Milestone: --- → Thunderbird 60.0
![]() |
||
Comment 8•7 years ago
|
||
IanN, should I fix smile again or get rid of it? Any add-on which used it is probably broken by now. SeaMonkey no longer uses it.
...
All three of those need to replace instanceof Ci.nsIDOMHTMLDocument with ChromeUtils.getClassName checks. Also:
smileIApplication.idl is used for, if anything.
Flags: needinfo?(frgrahl) → needinfo?(iann_bugzilla)
(In reply to Frank-Rainer Grahl (:frg) from comment #8)
> IanN, should I fix smile again or get rid of it? Any add-on which used it is
> probably broken by now. SeaMonkey no longer uses it.
>
> ...
> All three of those need to replace instanceof Ci.nsIDOMHTMLDocument with
> ChromeUtils.getClassName checks. Also:
>
> smileIApplication.idl is used for, if anything.
Let's ditch the smile :(
Flags: needinfo?(iann_bugzilla)
You need to log in
before you can comment on or make changes to this bug.
Description
•