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
res
test Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
moz.build
nsComposeTxtSrvFilter.cpp
nsComposeTxtSrvFilter.h
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
nsComposerController.h
nsComposerDocumentCommands.cpp Bug 1390428 (part 1) - Remove many nsXPIDLCString local variables. r=erahm. 2017-08-16 13:58:35 +10:00
nsComposerRegistration.cpp
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
nsIEditingSession.idl Bug 1388001 - part1: Create nsIEditingSession::GetHTMLEditorForWindow() r=smaug 2017-08-12 11:44:16 +09:00