gecko-dev/editor/spellchecker/moz.build
Masayuki Nakano 922488424d Bug 1726532 - part 1: Make OffsetEntryArray::WillSetSelection() use offset in text node when it sets a DOM node point r=m_kato
This is a mistake at replacing the argument value `aOffset` to
`aOffsetInTextInBlock`.
https://searchfox.org/mozilla-central/diff/886c96059ef6408618040356017028621bc574b9/editor/spellchecker/TextServicesDocument.cpp#1662

And also make `mozSpellChecker::Replace()` stop replacing if
`TextServicesDocument` fails to set selection or insert text because if
`TextServicesDocument` succeeded to insert text, but failed to delete text,
the loop becomes an infinite loop.

Differential Revision: https://phabricator.services.mozilla.com/D123282
2021-08-24 03:29:21 +00:00

30 lines
723 B
Python

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_MANIFESTS += ["tests/mochitest.ini"]
MOCHITEST_CHROME_MANIFESTS += ["tests/chrome.ini"]
XPIDL_SOURCES += [
"nsIInlineSpellChecker.idl",
]
XPIDL_MODULE = "txtsvc"
EXPORTS.mozilla += [
"EditorSpellCheck.h",
"TextServicesDocument.h",
]
UNIFIED_SOURCES += [
"EditorSpellCheck.cpp",
"FilteredContentIterator.cpp",
"nsComposeTxtSrvFilter.cpp",
"TextServicesDocument.cpp",
]
FINAL_LIBRARY = "xul"