Closed Bug 1022040 Opened 10 years ago Closed 10 years ago

Make test-supplied chrome:// files available to the content process

Categories

(Firefox :: General, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 687194

People

(Reporter: mconley, Unassigned)

References

Details

One thing I've noticed is that, for at least browser-chrome tests, chrome:// support files for tests don't seem to be made available to the content process - the content process script loader seems to have no luck finding it.

My test in bug 989501 relies on a mochitest-provided content script, and it's totally busted if I run the test with --e10s, because it simply cannot find the file.

I would wager that any similar tests are likely hitting the same issue.
So I looked at this a while tonight.

It looks like nsChromeRegistryChrome is used by ContentParent exactly once during its initialization to tell the content process to register the chrome packages that the ContentParent currently has in its own registry.

During a mochitest, the test packages are registered _after_ the ContentParent has been initialized, so that's why no mochitest content scripts can be loaded by the content processes.

I think we might need a way for the parent process to tell the child process that more things have been registered.

jdm - I saw you worked on the chrome registry stuff in bug 575918. In your opinion, is my understanding of the problem more or less right?
Whoops, forgot the needinfo.
Flags: needinfo?(josh)
Do you mean bug 687194, by chance?
Flags: needinfo?(josh)
(In reply to Josh Matthews [:jdm] from comment #3)
> Do you mean bug 687194, by chance?

That's _exactly_ what I mean. Thanks. :)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.