Closed Bug 927132 Opened 11 years ago Closed 11 years ago

e10s: "chrome://browser/content/content.js: TypeError: Services.search is undefined" when reloading about:home

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 27

People

(Reporter: cpeterson, Assigned: billm)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

STR:
1. Run a debug build with e10s enabled from the command line
2. Load about:home
3. Watch stderr
4. Reload about:home

RESULT:
System JS : ERROR chrome://browser/content/content.js:91
                     TypeError: Services.search is undefined
This looks like a regression from bug 900865.
Blocks: 900865
How so? Does the global-sharing for content scripts work differently in e10s builds?
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #2)
> How so? Does the global-sharing for content scripts work differently in e10s
> builds?

I'm not sure why the access is considered an error. That might be worth investigating, since we use Services elsewhere in that file.

The problem I was worried about is that Services.search.defaultEngine will (I assume) only be correct in the parent process, so we should be sending its value in a message from the parent.

I'll try to look at this more closely next week.
Oh, I see - the search service initialization in the child must be failing for some reason.
Attached patch fix-about-homeSplinter Review
I just passed the search engine name down from the parent.
Assignee: nobody → wmccloskey
Status: NEW → ASSIGNED
Attachment #821368 - Flags: review?(mdeboer)
Comment on attachment 821368 [details] [diff] [review]
fix-about-home

Review of attachment 821368 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM, thanks for working on this!
Attachment #821368 - Flags: review?(mdeboer) → review+
I filed bug 930456 to cover the general problem of the search service not working in child processes.
https://hg.mozilla.org/mozilla-central/rev/c6a4d3416d87
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 27
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: