Closed
Bug 980750
Opened 11 years ago
Closed 8 years ago
Register content handler after the child process is forked from Nuwa
Categories
(Core :: DOM: Content Processes, defect)
Tracking
()
RESOLVED
WONTFIX
tracking-b2g | backlog |
People
(Reporter: cyu, Assigned: fabrice)
References
Details
Forked from https://bugzilla.mozilla.org/show_bug.cgi?id=972816#c6
We need to delay content handlers after a content process is forked from Nuwa.
Reporter | ||
Comment 1•11 years ago
|
||
Nominate 1.3? since this can cause regression of content handlers.
blocking-b2g: --- → 1.3?
Comment 2•11 years ago
|
||
(In reply to Cervantes Yu from comment #1)
> Nominate 1.3? since this can cause regression of content handlers.
Can you be more specific? When this could happen on the web? What's the user impact?
Reporter | ||
Comment 3•11 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #2)
> (In reply to Cervantes Yu from comment #1)
> > Nominate 1.3? since this can cause regression of content handlers.
>
> Can you be more specific? When this could happen on the web? What's the user
> impact?
As Fabrice said in https://bugzilla.mozilla.org/show_bug.cgi?id=972816#c6 the new content type might not be handled correctly a new app for that content type is installed.
Comment 4•11 years ago
|
||
Fabrice - Can you weigh in here on the severity of this bug?
Flags: needinfo?(fabrice)
Comment 5•11 years ago
|
||
Fabrice,
Please help with user impact analysis.
Assignee | ||
Comment 6•11 years ago
|
||
The impact is that if you install an app that can be a content handler, we won't register this content handler until the next restart of the phone. So yes, that's at least annoying. But I have no idea how many apps in the wild make use of this feature.
Cervantes, if I move this registration to TabChild::PreloadSlowThings() we should be good right? (note: we should rename that to PreloadAfterFork()...)
Flags: needinfo?(fabrice) → needinfo?(cyu)
Reporter | ||
Comment 7•11 years ago
|
||
(In reply to Fabrice Desré [:fabrice] from comment #6)
> Cervantes, if I move this registration to TabChild::PreloadSlowThings() we
> should be good right? (note: we should rename that to PreloadAfterFork()...)
I should be, but we might skip preloading slow things for Tarako to reduce the memory consumption of the preallocated process. You may add this registration to InitOnContentProcessCreated(): http://hg.mozilla.org/mozilla-central/file/428e5462fe29/dom/ipc/ContentChild.cpp#l367. This method is added for child process initialization that must be done for Nuwa-enabled builds. It's also working as expected for non-Nuwa builds.
Flags: needinfo?(cyu)
Assignee | ||
Comment 8•11 years ago
|
||
Ok, I'll add it in InitOnContentProcessCreated() then. Note running PreloadSlowThings() will kill our startup time so we should do that only as a desperate measure.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → fabrice
Comment 9•11 years ago
|
||
Adam
Please add comments from contents from Marketplace.
Flags: needinfo?(arogers)
Comment 10•11 years ago
|
||
I've reviewed the apps by downloads (list generated 3/7/2014) and it doesn't appear to me that there are any applications that would fall in this category in the top 50 applications. For that reason, I wouldn't block the release on this issue.
I suggest moving this to the priority backlog.
Flags: needinfo?(arogers)
Comment 12•11 years ago
|
||
(In reply to Adam Rogers (:arog) from comment #10)
> I've reviewed the apps by downloads (list generated 3/7/2014) and it doesn't
> appear to me that there are any applications that would fall in this
> category in the top 50 applications. For that reason, I wouldn't block the
> release on this issue.
We probably need look at this from a contextual perspective from a script, not a top 50 list. There's more than 50 apps even in the partner app list alone. You are looking for apps such as:
* Third-Party PDF Viewers
* Third-Party Music Players
* Third-Party Video Players
* etc.
This can scripted by looking for a pick activity with a filter containing a mime type.
However - Karen mentioned in person that introducing content handlers for apps is frowned upon, as other apps commonly want to handle content directly within the app itself. On that regard, I think we're okay to live without this.
I'm going to leave needinfo though on Lisa & Harald here though to double check if they know of any apps that are currently acting as content handlers.
Flags: needinfo?(hkirschner)
Flags: needinfo?(adora)
Updated•11 years ago
|
Flags: needinfo?(hkirschner)
Flags: needinfo?(adora)
Comment 13•11 years ago
|
||
My lack of response means I'm not aware of any apps that make use of this. Impact is minor, as long as it's documented so developers know to advise their users to reboot.
Updated•11 years ago
|
Component: IPC → DOM: Content Processes
Updated•10 years ago
|
blocking-b2g: backlog → ---
tracking-b2g:
--- → backlog
Comment 14•8 years ago
|
||
Nuwa is gone after bug 1284674.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•