gecko-dev/editor/composer
Nicholas Nethercote 20ffb0878f Bug 1416622 - Tighten up libpref's process checking. r=glandium
libpref only allows pref modifications in the parent process. This patch
tightens up the checking, which is a bit inconsistent.

- It removes ENSURE_MAIN_PROCESS_WITH_WARNING, which does NS_WARNING on
  failure, and replaces its uses with ENSURE_MAIN_PROCESS, which does NS_ERROR
  on failure. This required adding an XRE_IsParentProcess() check to one place
  in editor/.

- It converts XRE_IsContentProcess() tests to !XRE_IsParentProcess(), because
  we now have multiple kinds of non-parent process.

- It uses ENSURE_MAIN_PROCESS to replace other checking code in a few places.

- It improves a comment in HandleDirty().

MozReview-Commit-ID: D8znQWH7ery

--HG--
extra : rebase_source : ea0fc095b31525bde82a1be217923512d030b76d
2017-11-13 09:19:55 +11:00
..
crashtests Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
res Bug 1355734 - Remove text-decoration-line: -moz-anchor-decoration. r=heycam,masayuki 2017-04-13 16:17:03 +08:00
test Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
moz.build Bug 1297414 - Support execCommand("defaultParagraphSeparator"); r=masayuki 2017-04-04 13:47:28 +03:00
nsComposeTxtSrvFilter.cpp Bug 1219928 - Skip misspelled words in style blocks. r=enndeakin. 2015-11-24 08:45:00 +01:00
nsComposeTxtSrvFilter.h Bug 1169139 Remove all trailing whitespaces in editor (IGNORE IDL) r=ehsan 2015-05-29 00:58:42 +09:00
nsComposerCommands.cpp Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
nsComposerCommands.h Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
nsComposerCommandsUpdater.cpp Bug 1404198: Part 2j - Switch to NS_NewTimer* everywhere else. r=njn 2017-09-24 19:57:48 -07:00
nsComposerCommandsUpdater.h Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm 2017-07-27 02:18:20 +08:00
nsComposerController.cpp Bug 1297414 - Support execCommand("defaultParagraphSeparator"); r=masayuki 2017-04-04 13:47:28 +03:00
nsComposerController.h Bug 1169139 Remove all trailing whitespaces in editor (IGNORE IDL) r=ehsan 2015-05-29 00:58:42 +09:00
nsComposerDocumentCommands.cpp Bug 1390428 (part 1) - Remove many nsXPIDLCString local variables. r=erahm. 2017-08-16 13:58:35 +10:00
nsComposerRegistration.cpp Bug 1311621 Fix odd indent of editor/composer/nsComposerRegistration.cpp r=smaug 2016-10-25 15:07:42 +09:00
nsEditingSession.cpp Bug 1404198: Part 2j - Switch to NS_NewTimer* everywhere else. r=njn 2017-09-24 19:57:48 -07:00
nsEditingSession.h Bug 1388001 - part2: nsEditingSession should treat editor as HTMLEditor r=m_kato 2017-08-04 22:53:28 +09:00
nsEditorSpellCheck.cpp Bug 1416622 - Tighten up libpref's process checking. r=glandium 2017-11-13 09:19:55 +11:00
nsEditorSpellCheck.h Bug 1330912 - Part 2. Use async version on UpdateCurrentDictionary. r=masayuki 2017-04-11 17:05:19 +09:00
nsIEditingSession.idl Bug 1388001 - part1: Create nsIEditingSession::GetHTMLEditorForWindow() r=smaug 2017-08-12 11:44:16 +09:00