Closed Bug 1065070 Opened 10 years ago Closed 10 years ago

Remove GeckoAppShell.geckoLoaded

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 35

People

(Reporter: jchen, Assigned: jchen)

Details

Attachments

(1 file)

Right now the only code in GeckoAppShell.geckoLoaded has to do with setting up GeckoEditable, but this can be done elsewhere without needing to post a Runnable.
GeckoEditable initialization only depends on us having a LayerView, so it makes sense to move it to where we set our LayerView.
Attachment #8486656 - Flags: review?(cpeterson)
Comment on attachment 8486656 [details] [diff] [review] Get rid of geckoLoaded call in GeckoAppShell (v1) Review of attachment 8486656 [details] [diff] [review]: ----------------------------------------------------------------- LGTM! ::: mobile/android/base/GeckoAppShell.java @@ +299,5 @@ > private static LayerView sLayerView; > > public static void setLayerView(LayerView lv) { > + if (sLayerView == lv) { > + return; Does this ever happen? Would this indicate a bug? If so, then consider logging a warning or throw an exception.
Attachment #8486656 - Flags: review?(cpeterson) → review+
(In reply to Chris Peterson (:cpeterson) from comment #2) > Comment on attachment 8486656 [details] [diff] [review] > Get rid of geckoLoaded call in GeckoAppShell (v1) > > Review of attachment 8486656 [details] [diff] [review]: > ----------------------------------------------------------------- > > LGTM! > > ::: mobile/android/base/GeckoAppShell.java > @@ +299,5 @@ > > private static LayerView sLayerView; > > > > public static void setLayerView(LayerView lv) { > > + if (sLayerView == lv) { > > + return; > > Does this ever happen? Would this indicate a bug? If so, then consider > logging a warning or throw an exception. I think this might happen when "Don't keep activities" is turned on? https://hg.mozilla.org/integration/mozilla-inbound/rev/198f2849d795
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 35
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: