Closed Bug 568270 Opened 14 years ago Closed 14 years ago

e10s: remote nsPrefService

Categories

(Core :: Preferences: Backend, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dwitte, Assigned: dwitte)

References

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #506269 +++

From bug 506269 comment 31:

> Actually -- anyone in the content process that wants a prefbranch has to
> instantiate the prefservice first. We could remote nsPrefService::Init(), which
> instantiates and caches it in the parent; if that fails, we return failure to
> the child, which means nsIPrefBranch methods can't be called. Then you don't
> need an EnsurePrefService() method or the 'if (prefs)' checks here.
> 
> Speaking of which, you're not touching nsPrefService.cpp here -- specifically,
> nsPrefService::Init() fully loads up the pref file and such. All this work is
> still being done in the child, but we're just remoting the actual pref lookups.
> Fixing that can be a separate patch. Other prefservice methods, like
> nsPrefService::ReadUserPrefs(), should fail in the content process.
> 
> This will be a bunch more remoting to stuff onto ContentProcessChild/Parent;
> you probably want to add a PPrefService IPDL interface on PContentProcess. You
> don't need to do it in this patch though :)
Attached patch like soSplinter Review
Pretty simple.
Assignee: nobody → dwitte
Status: NEW → ASSIGNED
Attachment #447583 - Flags: review?(josh)
Comment on attachment 447583 [details] [diff] [review]
like so

a+++ would review again. r=me
Attachment #447583 - Flags: review?(josh) → review+
http://hg.mozilla.org/projects/electrolysis/rev/dc9cc3820b02
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: