On 2014-07-11, 8:59 AM, Nick Alexander wrote:
Hi folks,
Sorry this is later than anticipated. I'd like to clarify what's known
about using two GeckoViews in one application.
My understanding to date
========================
* WebApps
N processes, each process has one WebApp activity, each containing 1
GeckoView.
* blassey's launcher [1]
1 process for Fennec and the launcher activity, each containing 1
GeckoView. These two GeckoViews share a single Gecko instance, single
profile, and contend for the message queue. I think this is known, but
blassey didn't seem to think it was a problem for the launcher.
Apps are launched exactly like WebApps, so we have N + 1 + 1 activities,
N + 1 processes, N + 1 + 1 GeckoViews.
Results
=======
Keeping the Search Activity in the same process as Fennec results in
very bad contention. I think this is not feasible -- certainly it
causes major problems -- but I don't understand why it would work for
blassey's launcher and not for the Search Activity. Certainly launching
Fennec from the Search Activity causes lots of trouble locally; I wonder
if blassey's launcher never ran at the same time as Fennec. Comments?
Does anybody have any perspective on how hard it would be to configure
the two GeckoViews to each "own" a separate <browser> in Gecko, and only
render the relevant <browser> in each GeckoView?
I said <browser>, but I think I actually mean "the equivalent of
Desktop's <tabbrowser>". I think a <browser> corresponds to a tab.
So, what I mean is whatever XUL element holds *multiple* tabs (since
Fennec holds multiple tabs).
Nick
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev