Closed Bug 1189995 Opened 9 years ago Closed 9 years ago

Move GeckoAppShell.runGecko to GeckoThread

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(firefox42 affected, firefox43 fixed)

RESOLVED FIXED
Firefox 43
Tracking Status
firefox42 --- affected
firefox43 --- fixed

People

(Reporter: jchen, Assigned: jchen)

Details

Attachments

(2 files)

GeckoAppShell.runGecko is a relic from the past and really should belong in GeckoThread.
GeckoAppShell.runGecko really should be in GeckoThread because
GeckoThread already takes care of most of the preparation when running
Gecko. This patch merges runGecko into GeckoThread.run, but splits the
argument-building code into its own method.
Attachment #8644631 - Flags: review?(snorp)
This method is used by Gecko to pump the Android message loop, and it's
also more suited to GeckoThread than GeckoAppShell.
Attachment #8644632 - Flags: review?(snorp)
Comment on attachment 8644631 [details] [diff] [review]
Move GeckoAppShell.runGecko to GeckoThread (v1)

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

I think I should keep :esawin involved in some of these changes too :)
Attachment #8644631 - Flags: review?(snorp) → review?(esawin)
Attachment #8644632 - Flags: review?(snorp) → review?(esawin)
Comment on attachment 8644631 [details] [diff] [review]
Move GeckoAppShell.runGecko to GeckoThread (v1)

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

This looks good!

Is there a reason to remove the idle handler after dispatching Gecko:Exited? That seems to be the only change in semantics I see.
Attachment #8644631 - Flags: review?(esawin) → review+
Attachment #8644632 - Flags: review?(esawin) → review+
(In reply to Eugen Sawin [:esawin] from comment #4)
> Comment on attachment 8644631 [details] [diff] [review]
> Move GeckoAppShell.runGecko to GeckoThread (v1)
> 
> Review of attachment 8644631 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> This looks good!
> 
> Is there a reason to remove the idle handler after dispatching Gecko:Exited?
> That seems to be the only change in semantics I see.

I don't think it matters where we do it, so I just put it at the end.
https://hg.mozilla.org/mozilla-central/rev/46f21e3aeed5
https://hg.mozilla.org/mozilla-central/rev/224df670cbb6
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 43
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: