Closed
Bug 1489788
Opened 7 years ago
Closed 7 years ago
Port Bug 1489787: replace XPCOM use of nsComposeTxtSrvFilter
Categories
(MailNews Core :: Composition, task)
MailNews Core
Composition
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 64.0
People
(Reporter: jorgk-bmo, Assigned: darktrojan)
References
Details
Attachments
(1 file, 3 obsolete files)
1.67 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
Comment 1•7 years ago
|
||
For a sample code of the necessary change, see https://phabricator.services.mozilla.com/D5353#change-NV6Dun4rb9h6.
FILTERTYPE_NORMAL can be used where @mozilla.org/editor/txtsrvfilter;1 was used before.
FILTERTYPE_MAIL can be used where @mozilla.org/editor/txtsrvfiltermail;1 was used before.
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(geoff)
Assignee | ||
Comment 2•7 years ago
|
||
Assignee: nobody → geoff
Status: NEW → ASSIGNED
Flags: needinfo?(geoff)
Attachment #9007709 -
Flags: review?(jorgk)
Reporter | ||
Comment 3•7 years ago
|
||
Comment on attachment 9007709 [details] [diff] [review]
1489788-spellcheck-filter-1.diff
Review of attachment 9007709 [details] [diff] [review]:
-----------------------------------------------------------------
::: editor/ui/dialogs/content/EdSpellCheck.js
@@ +38,5 @@
> var skipBlockQuotes = window.arguments[1];
> var enableSelectionChecking = window.arguments[2];
>
> + if (skipBlockQuotes) {
> + filterContractId = FILTERTYPE_MAIL;
Is this going to work? Shouldn't it be:
nsIEditorSpellCheck.FILTERTYPE_MAIL; ?
See const unsigned long FILTERTYPE_NORMAL = 1; in nsIEditorSpellCheck.idl.
Assignee | ||
Comment 4•7 years ago
|
||
Oh. Um, oops.
Assignee | ||
Comment 5•7 years ago
|
||
I got distracted by the thought that I could use a unary operator, then deciding against it. Would've been fine if I'd used quotes.
Attachment #9007709 -
Attachment is obsolete: true
Attachment #9007709 -
Flags: review?(jorgk)
Attachment #9007720 -
Flags: review?(jorgk)
Assignee | ||
Comment 6•7 years ago
|
||
Ternary operator. Yeesh.
Reporter | ||
Comment 7•7 years ago
|
||
Comment on attachment 9007720 [details] [diff] [review]
1489788-spellcheck-filter-2.diff
Thanks, once again we have to coordinate with bug 1489787.
Attachment #9007720 -
Flags: review?(jorgk) → review+
Reporter | ||
Updated•7 years ago
|
Version: 24 → Trunk
Comment 8•7 years ago
|
||
As a heads-up, I just landed the m-c patches on inbound...
Reporter | ||
Comment 9•7 years ago
|
||
Did I hear "ternary" ;-) - I think this looks better and gets rid of the incorrect variable name 'filterContractId'.
Attachment #9007720 -
Attachment is obsolete: true
Attachment #9007801 -
Flags: review+
Reporter | ||
Comment 10•7 years ago
|
||
Oops, unused variable.
Attachment #9007801 -
Attachment is obsolete: true
Attachment #9007842 -
Flags: review+
Comment 11•7 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/5b512cb296c7
Port Bug 1489787: replace XPCOM use of nsComposeTxtSrvFilter. r=jorgk
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•7 years ago
|
Target Milestone: --- → Thunderbird 64.0
Updated•6 years ago
|
Type: enhancement → task
You need to log in
before you can comment on or make changes to this bug.
Description
•