Closed Bug 1138727 Opened 9 years ago Closed 7 years ago

IsNuwaProcess() should exist in non-Nuwa builds

Categories

(Core :: DOM: Content Processes, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: billm, Unassigned)

Details

We have a bunch of places in the tree that look like this:
http://mxr.mozilla.org/mozilla-central/source/dom/ipc/ContentParent.h#227

It would be better if we had this:

#if !defined(MOZ_NUWA_PROCESS)
MFBT_API bool
IsNuwaProcess() {
  return false;
}
#endif

The only tricky part is deciding which header file it should live in. One way is to change Nuwa.h to be unconditionally included and then change most of its content to be MOZ_NUWA_PROCESS-only. But maybe there's a better way.
I agree in principle.  I don't have strong feelings about the implementation details.
The one in ContentParent.h actually resolves to ContentParent::IsNuwaProcess(), not ::IsNuwaProcess(). See http://mxr.mozilla.org/mozilla-central/source/dom/ipc/ContentParent.h#213
Nuwa is gone after bug 1284674.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.