Closed
Bug 1017242
Opened 11 years ago
Closed 11 years ago
Eliminate Android 2.2 (API 8) code
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 33
People
(Reporter: rnewman, Assigned: rnewman)
References
Details
(Whiteboard: [file follow-up from comment 21])
Attachments
(13 files)
|
2.23 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
|
4.85 KB,
patch
|
mcomella
:
review+
|
Details | Diff | Splinter Review |
|
5.06 KB,
patch
|
kats
:
review+
|
Details | Diff | Splinter Review |
|
9.47 KB,
patch
|
kats
:
review+
|
Details | Diff | Splinter Review |
|
3.84 KB,
patch
|
kats
:
review+
|
Details | Diff | Splinter Review |
|
1.38 KB,
patch
|
mcomella
:
review+
|
Details | Diff | Splinter Review |
|
3.09 KB,
patch
|
mcomella
:
review+
|
Details | Diff | Splinter Review |
|
3.09 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
|
1.16 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
|
3.87 KB,
patch
|
myk
:
review+
|
Details | Diff | Splinter Review |
|
1.53 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
|
4.68 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
|
4.91 KB,
patch
|
Margaret
:
review+
|
Details | Diff | Splinter Review |
We ended 2.2 support in Firefox 31. Let's use this bug to track removal of any API 8 code from the codebase in 32 and up.
| Assignee | ||
Comment 1•11 years ago
|
||
| Assignee | ||
Comment 2•11 years ago
|
||
mobile/android/base/widget/TwoWayView.java
1061: if (Build.VERSION.SDK_INT < 9) {
1072: if (Build.VERSION.SDK_INT < 9) {
3145: if (Build.VERSION.SDK_INT >= 5) {
mobile/android/base/webapp/Allocator.java
79: if (android.os.Build.VERSION.SDK_INT > 8) {
mobile/android/base/util/GamepadUtils.java
27: if (Build.VERSION.SDK_INT >= 9) {
50: if (Build.VERSION.SDK_INT < 9) {
mobile/android/base/tests/testBrowserProvider.java
540: if (Build.VERSION.SDK_INT >= 8 &&
644: if (Build.VERSION.SDK_INT >= 8 &&
mobile/android/base/tests/testGetUserMedia.java
21: if (Build.VERSION.SDK_INT >= 9) {
mobile/android/base/SysInfo.java.in
50: if (android.os.Build.VERSION.SDK_INT < 9) {
mobile/android/base/mozglue/GeckoLoader.java.in
88: if (Build.VERSION.SDK_INT >= 8) {
mobile/android/base/GeckoSharedPrefs.java
153: if (Build.VERSION.SDK_INT < 9) {
mobile/android/base/gfx/LayerView.java
146: if (Build.VERSION.SDK_INT >= 9) {
670: if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {
684: if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {
mobile/android/base/health/BrowserHealthRecorder.java
342: if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.GINGERBREAD) {
mobile/android/base/sync/setup/activities/LocaleAware.java
31: if (Build.VERSION.SDK_INT < Build.VERSION_CODES.GINGERBREAD) {
mobile/android/base/GeckoAppShell.java
719: if (Build.VERSION.SDK_INT < 9) {
732: if (Build.VERSION.SDK_INT < 9) {
2200: if (Build.VERSION.SDK_INT >= 9) {
2207: if (Build.VERSION.SDK_INT >= 9)
2479: if (Build.VERSION.SDK_INT >=Build.VERSION_CODES.FROYO)
2514: if (Build.VERSION.SDK_INT >=Build.VERSION_CODES.FROYO)
mobile/android/base/db/BrowserDatabaseHelper.java
95: if (Build.VERSION.SDK_INT >= 8) {
133: if (Build.VERSION.SDK_INT >= 8) {
mobile/android/base/CrashReporter.java
247: if (Build.VERSION.SDK_INT < Build.VERSION_CODES.GINGERBREAD) {
395: if (Build.VERSION.SDK_INT >= 8) {
mobile/android/base/BrowserApp.java
293: if (Build.VERSION.SDK_INT >= 9 &&
mobile/android/base/background/healthreport/HealthReportDatabaseStorage.java
237: public static boolean CAN_USE_ABSOLUTE_DB_PATH = (Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO);
mobile/android/base/AndroidGamepadManager.java
304: if (Build.VERSION.SDK_INT < 9) {
plus a bunch in GeckoApp.
| Assignee | ||
Updated•11 years ago
|
Comment 3•11 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #2)
> mobile/android/base/widget/TwoWayView.java
> 1061: if (Build.VERSION.SDK_INT < 9) {
> 1072: if (Build.VERSION.SDK_INT < 9) {
> 3145: if (Build.VERSION.SDK_INT >= 5) {
FYI: TwoWayView should be considered a third-party dependency. So, please don't touch it while fixing this bug as the upstream project still needs to support Froyo.
| Assignee | ||
Comment 4•11 years ago
|
||
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → rnewman
Status: NEW → ASSIGNED
| Assignee | ||
Comment 5•11 years ago
|
||
| Assignee | ||
Comment 6•11 years ago
|
||
| Assignee | ||
Comment 7•11 years ago
|
||
| Assignee | ||
Comment 8•11 years ago
|
||
| Assignee | ||
Comment 9•11 years ago
|
||
| Assignee | ||
Comment 10•11 years ago
|
||
| Assignee | ||
Comment 11•11 years ago
|
||
| Assignee | ||
Comment 12•11 years ago
|
||
Updated•11 years ago
|
Attachment #8458259 -
Flags: review+
| Assignee | ||
Comment 13•11 years ago
|
||
| Assignee | ||
Comment 14•11 years ago
|
||
| Assignee | ||
Comment 15•11 years ago
|
||
| Assignee | ||
Comment 16•11 years ago
|
||
| Assignee | ||
Updated•11 years ago
|
Attachment #8458293 -
Flags: review?(myk)
| Assignee | ||
Updated•11 years ago
|
Attachment #8458296 -
Flags: review?(margaret.leibovic)
| Assignee | ||
Comment 17•11 years ago
|
||
https://hg.mozilla.org/try/rev/ba0d3e5999f1
https://hg.mozilla.org/try/rev/bb03504eeb4b
https://hg.mozilla.org/try/rev/3e637dcd1670
https://hg.mozilla.org/try/rev/9f3ca0ba9b5c
https://hg.mozilla.org/try/rev/c13fcfa8eef5
https://hg.mozilla.org/try/rev/8a7d1c69619b
https://hg.mozilla.org/try/rev/919297388b57
https://hg.mozilla.org/try/rev/64839801308c
https://hg.mozilla.org/try/rev/bd63aa5b253b
https://hg.mozilla.org/try/rev/73cc4755e814
https://hg.mozilla.org/try/rev/df7761a47498
https://hg.mozilla.org/try/rev/ea65e3220f1c
https://hg.mozilla.org/try/rev/95b38c650c6a
| Assignee | ||
Updated•11 years ago
|
Keywords: meta
Summary: [meta] Eliminate Android 2.2 (API 8) code → Eliminate Android 2.2 (API 8) code
Updated•11 years ago
|
Attachment #8458296 -
Flags: review?(margaret.leibovic) → review+
Updated•11 years ago
|
Attachment #8458293 -
Flags: review?(myk) → review+
| Assignee | ||
Updated•11 years ago
|
Attachment #8458257 -
Flags: review?(margaret.leibovic)
| Assignee | ||
Updated•11 years ago
|
Attachment #8458258 -
Flags: review?(margaret.leibovic)
| Assignee | ||
Updated•11 years ago
|
Attachment #8458260 -
Flags: review?(bugmail.mozilla)
| Assignee | ||
Updated•11 years ago
|
Attachment #8458261 -
Flags: review?(bugmail.mozilla)
| Assignee | ||
Updated•11 years ago
|
Attachment #8458262 -
Flags: review?(michael.l.comella)
| Assignee | ||
Updated•11 years ago
|
Attachment #8458263 -
Flags: review?(michael.l.comella)
| Assignee | ||
Updated•11 years ago
|
Attachment #8458264 -
Flags: review?(michael.l.comella)
| Assignee | ||
Updated•11 years ago
|
Attachment #8458265 -
Flags: review?(michael.l.comella)
| Assignee | ||
Updated•11 years ago
|
Attachment #8458294 -
Flags: review?(liuche)
| Assignee | ||
Updated•11 years ago
|
Attachment #8458295 -
Flags: review?(liuche)
Updated•11 years ago
|
Attachment #8458260 -
Flags: review?(bugmail.mozilla) → review+
Comment 18•11 years ago
|
||
Comment on attachment 8458261 [details] [diff] [review]
Part 5: remove API 8 code from gamepad code
Review of attachment 8458261 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/base/util/GamepadUtils.java
@@ +26,3 @@
> private static boolean isGamepadKey(KeyEvent event) {
> + if (Build.VERSION.SDK_INT < 12) {
> + return false;
Why return false for < 12?
| Assignee | ||
Comment 19•11 years ago
|
||
That constant isn't defined until API 12. in other words: Eclipse spotted a crash bug.
Updated•11 years ago
|
Attachment #8458295 -
Flags: review?(liuche) → review+
Updated•11 years ago
|
Attachment #8458265 -
Flags: review?(michael.l.comella) → review+
Attachment #8458262 -
Flags: review?(michael.l.comella) → review+
Updated•11 years ago
|
Attachment #8458264 -
Flags: review?(michael.l.comella) → review+
Attachment #8458263 -
Flags: review?(michael.l.comella) → review+
Comment 20•11 years ago
|
||
Comment on attachment 8458261 [details] [diff] [review]
Part 5: remove API 8 code from gamepad code
Review of attachment 8458261 [details] [diff] [review]:
-----------------------------------------------------------------
I doubt it would crash; doesn't the constant get inlined at compile time? So compiling using an SDK > v12 should work on a runtime < v12, it would just presumably always return false in that case. Nevertheless this is better.
Attachment #8458261 -
Flags: review?(bugmail.mozilla) → review+
Comment 21•11 years ago
|
||
Comment on attachment 8458257 [details] [diff] [review]
Part 1: remove API 8 code from mozglue
Do we need the fallbacks? Does getExternalStoragePublicDirectory return null?
Attachment #8458257 -
Flags: review?(margaret.leibovic) → review+
Updated•11 years ago
|
Attachment #8458294 -
Flags: review?(liuche) → review+
| Assignee | ||
Comment 22•11 years ago
|
||
(In reply to Mark Finkle (:mfinkle) from comment #21)
> Do we need the fallbacks? Does getExternalStoragePublicDirectory return null?
I can only presume that they're there for a reason. That reason *might* have been because someone was too lazy to add an `else` clause. I'll look deeper, but perhaps not in this bug.
| Assignee | ||
Updated•11 years ago
|
Whiteboard: [file follow-up from comment 21]
Comment on attachment 8458258 [details] [diff] [review]
Part 2: remove API 8 code from GeckoApp and BrowserApp
Review of attachment 8458258 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/base/GeckoApp.java
@@ +2376,5 @@
> try {
> obj.put("lac", gcl.getLac());
> obj.put("cid", gcl.getCid());
>
> + int psc = gcl.getPsc();
I don't see this line but rnewman said on irc that it was gone in his latest rebase on fx-team so this should be removed from the patch.
Attachment #8458258 -
Flags: review?(margaret.leibovic) → review+
| Assignee | ||
Comment 24•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/a8a119f236f5
https://hg.mozilla.org/integration/fx-team/rev/4ed35c44168f
https://hg.mozilla.org/integration/fx-team/rev/5a01eb70b82c
https://hg.mozilla.org/integration/fx-team/rev/5be4171df691
https://hg.mozilla.org/integration/fx-team/rev/33dd5214acd8
https://hg.mozilla.org/integration/fx-team/rev/f9c02d1852de
https://hg.mozilla.org/integration/fx-team/rev/f9ec00de92c5
https://hg.mozilla.org/integration/fx-team/rev/c3cde1547d1d
https://hg.mozilla.org/integration/fx-team/rev/6bfbded8be02
https://hg.mozilla.org/integration/fx-team/rev/8bb625db4015
https://hg.mozilla.org/integration/fx-team/rev/6d78d2be19f6
https://hg.mozilla.org/integration/fx-team/rev/f0fb51922868
https://hg.mozilla.org/integration/fx-team/rev/537990bf7786
Comment 25•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/a8a119f236f5
https://hg.mozilla.org/mozilla-central/rev/4ed35c44168f
https://hg.mozilla.org/mozilla-central/rev/5a01eb70b82c
https://hg.mozilla.org/mozilla-central/rev/5be4171df691
https://hg.mozilla.org/mozilla-central/rev/33dd5214acd8
https://hg.mozilla.org/mozilla-central/rev/f9c02d1852de
https://hg.mozilla.org/mozilla-central/rev/f9ec00de92c5
https://hg.mozilla.org/mozilla-central/rev/c3cde1547d1d
https://hg.mozilla.org/mozilla-central/rev/6bfbded8be02
https://hg.mozilla.org/mozilla-central/rev/8bb625db4015
https://hg.mozilla.org/mozilla-central/rev/6d78d2be19f6
https://hg.mozilla.org/mozilla-central/rev/f0fb51922868
https://hg.mozilla.org/mozilla-central/rev/537990bf7786
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 33
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•