Closed
Bug 714972
Opened 14 years ago
Closed 14 years ago
Opening links from external apps doesn't work after OOM
Categories
(Firefox for Android Graveyard :: General, defect, P1)
Tracking
(firefox11 fixed, firefox12 fixed, fennec11+)
RESOLVED
FIXED
Firefox 12
People
(Reporter: blassey, Assigned: blassey)
Details
(Whiteboard: [QA+])
Attachments
(1 file, 8 obsolete files)
|
4.23 KB,
patch
|
mfinkle
:
review+
akeybl
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
STR: (driven from command line)
1) adb shell am start -a android.intent.action.VIEW -n org.mozilla.fennec/.App about:fennec
2) adb shell am start -a android.intent.action.MAIN -c android.intent.category.HOME
3) adb shell /data/local/oom-fennec
4) adb shell am start -a android.intent.action.VIEW -n org.mozilla.fennec/.App about:config
Expected results:
about:config is shown
Actual results:
about:fennec shown
| Assignee | ||
Updated•14 years ago
|
Attachment #585566 -
Flags: review?(doug.turner)
| Assignee | ||
Updated•14 years ago
|
Attachment #585566 -
Attachment is patch: true
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Comment 2•14 years ago
|
||
Comment on attachment 585566 [details] [diff] [review]
patch
Is this the right patch? It doesn't seem relevant.
| Assignee | ||
Comment 3•14 years ago
|
||
not a duplicate
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
| Assignee | ||
Updated•14 years ago
|
Status: REOPENED → NEW
| Assignee | ||
Comment 4•14 years ago
|
||
Assignee: nobody → blassey.bugs
Attachment #585566 -
Attachment is obsolete: true
Attachment #585566 -
Flags: review?(doug.turner)
Attachment #585634 -
Flags: review?(doug.turner)
| Assignee | ||
Comment 5•14 years ago
|
||
Attachment #585634 -
Attachment is obsolete: true
Attachment #585634 -
Flags: review?(doug.turner)
Attachment #585635 -
Flags: review?(doug.turner)
Comment 6•14 years ago
|
||
Comment on attachment 585635 [details] [diff] [review]
patch
>diff --git a/mobile/android/base/GeckoApp.java b/mobile/android/base/GeckoApp.java
>+ private boolean isFastDevice() {
I don't like the name of this function. I also don't like that we have this function. The use of this function is not robust enough. We are gambling.
>+ Intent intent = getIntent();
...
>+ if (intent == null)
>+ intent = getIntent();
This code should be removed. We already set the | intent | above and use it a lot.
>+ sGeckoThread = new GeckoThread(intent, mLastUri, mLastTitle);
>+ if (isFastDevice() && checkAndSetLaunchState(LaunchState.Launching, LaunchState.Launched))
>+ sGeckoThread.start();
>+
>+
>+
Two too many blank lines
>+ } else if (checkAndSetLaunchState(LaunchState.Launching, LaunchState.Launched)) {
>+ sGeckoThread.start();
This just doesn't feel like the right thing to do. We check to see if the device is multi-core and if it is, we start gecko in onCreate. Otherwise, we start gecko in onNewIntent. Does more than one core mean things will not be IO bound (or CPU bound) ? What if another app is running and using the second core?
| Assignee | ||
Comment 7•14 years ago
|
||
addresses mfinkle's comments
Attachment #585635 -
Attachment is obsolete: true
Attachment #585635 -
Flags: review?(doug.turner)
Comment 8•14 years ago
|
||
Try run for 4432abf54098 is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=4432abf54098
Results (out of 29 total builds):
exception: 2
success: 20
warnings: 7
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/blassey@mozilla.com-4432abf54098
Comment 9•14 years ago
|
||
Try run for 4432abf54098 is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=4432abf54098
Results (out of 29 total builds):
exception: 2
success: 20
warnings: 7
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/blassey@mozilla.com-4432abf54098
Comment 10•14 years ago
|
||
Try run for 4432abf54098 is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=4432abf54098
Results (out of 29 total builds):
exception: 2
success: 20
warnings: 7
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/blassey@mozilla.com-4432abf54098
Comment 11•14 years ago
|
||
Try run for 4432abf54098 is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=4432abf54098
Results (out of 29 total builds):
exception: 2
success: 20
warnings: 7
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/blassey@mozilla.com-4432abf54098
Comment 12•14 years ago
|
||
Try run for 4432abf54098 is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=4432abf54098
Results (out of 29 total builds):
exception: 2
success: 20
warnings: 7
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/blassey@mozilla.com-4432abf54098
| Assignee | ||
Comment 13•14 years ago
|
||
Attachment #585651 -
Attachment is obsolete: true
Attachment #585657 -
Flags: review?(doug.turner)
| Assignee | ||
Comment 14•14 years ago
|
||
Attachment #585658 -
Flags: review?(doug.turner)
Comment 15•14 years ago
|
||
Try run for 5478cda5bc2e is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=5478cda5bc2e
Results (out of 25 total builds):
success: 19
warnings: 6
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/blassey@mozilla.com-5478cda5bc2e
Comment 16•14 years ago
|
||
Try run for 5478cda5bc2e is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=5478cda5bc2e
Results (out of 25 total builds):
success: 19
warnings: 6
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/blassey@mozilla.com-5478cda5bc2e
Comment 17•14 years ago
|
||
Try run for 5478cda5bc2e is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=5478cda5bc2e
Results (out of 25 total builds):
success: 19
warnings: 6
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/blassey@mozilla.com-5478cda5bc2e
Comment 18•14 years ago
|
||
Try run for 5478cda5bc2e is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=5478cda5bc2e
Results (out of 25 total builds):
success: 19
warnings: 6
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/blassey@mozilla.com-5478cda5bc2e
Comment 19•14 years ago
|
||
Try run for 5478cda5bc2e is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=5478cda5bc2e
Results (out of 25 total builds):
success: 19
warnings: 6
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/blassey@mozilla.com-5478cda5bc2e
Comment 20•14 years ago
|
||
Comment on attachment 585658 [details] [diff] [review]
patch to delay GeckoThread start on single core devices
Let's move this patch to a new, specific bug.
| Assignee | ||
Comment 21•14 years ago
|
||
this patch doesn't break the debug intent
Attachment #585657 -
Attachment is obsolete: true
Attachment #585657 -
Flags: review?(doug.turner)
Attachment #585788 -
Flags: review?(mark.finkle)
| Assignee | ||
Comment 22•14 years ago
|
||
didn't qref
Attachment #585788 -
Attachment is obsolete: true
Attachment #585788 -
Flags: review?(mark.finkle)
Attachment #585790 -
Flags: review?(mark.finkle)
| Assignee | ||
Comment 23•14 years ago
|
||
rebased to updated underlying patch
Attachment #585658 -
Attachment is obsolete: true
Attachment #585658 -
Flags: review?(doug.turner)
Attachment #585803 -
Flags: review?(doug.turner)
Comment 24•14 years ago
|
||
Comment on attachment 585790 [details] [diff] [review]
patch to just move launch to onCreate()
>diff --git a/mobile/android/base/GeckoApp.java b/mobile/android/base/GeckoApp.java
>+ sGeckoThread = new GeckoThread(intent, mLastUri, mLastTitle);
>+ if (!ACTION_DEBUG.equals(intent.getAction()) &&
>+ checkAndSetLaunchState(LaunchState.Launching, LaunchState.Launched))
>+ sGeckoThread.start();
The DEBUG intent makes us messy. I'll be glad to see some other way to do it
>- if (checkLaunchState(LaunchState.WaitForDebugger) || launch(intent))
>+ if (checkLaunchState(LaunchState.WaitForDebugger) && intent == getIntent())
Why add the | intent == getIntent() | check? I don't see it in the old launch(..) code
Shouldn't we be checking checkLaunchState(LaunchState.Launched) instead?
Waiting for your answers before r+
| Assignee | ||
Comment 25•14 years ago
|
||
(In reply to Mark Finkle (:mfinkle) from comment #24)
> Comment on attachment 585790 [details] [diff] [review]
> patch to just move launch to onCreate()
>
>
> >diff --git a/mobile/android/base/GeckoApp.java b/mobile/android/base/GeckoApp.java
>
> >+ sGeckoThread = new GeckoThread(intent, mLastUri, mLastTitle);
> >+ if (!ACTION_DEBUG.equals(intent.getAction()) &&
> >+ checkAndSetLaunchState(LaunchState.Launching, LaunchState.Launched))
> >+ sGeckoThread.start();
>
> The DEBUG intent makes us messy. I'll be glad to see some other way to do it
file a bug, we can discuss it there
>
> >- if (checkLaunchState(LaunchState.WaitForDebugger) || launch(intent))
> >+ if (checkLaunchState(LaunchState.WaitForDebugger) && intent == getIntent())
>
> Why add the | intent == getIntent() | check? I don't see it in the old
> launch(..) code
> Shouldn't we be checking checkLaunchState(LaunchState.Launched) instead?
if the intent passed to onNewIntent is the intent that onCreate() used, we've already passed all its data to fennec via the command line. This is essentially what the return value of launch() told us.
> Waiting for your answers before r+
Comment 26•14 years ago
|
||
(In reply to Brad Lassey [:blassey] from comment #25)
> > >- if (checkLaunchState(LaunchState.WaitForDebugger) || launch(intent))
> > >+ if (checkLaunchState(LaunchState.WaitForDebugger) && intent == getIntent())
> >
> > Why add the | intent == getIntent() | check? I don't see it in the old
> > launch(..) code
> > Shouldn't we be checking checkLaunchState(LaunchState.Launched) instead?
> if the intent passed to onNewIntent is the intent that onCreate() used,
> we've already passed all its data to fennec via the command line. This is
> essentially what the return value of launch() told us.
OK. I guess the checkLaunchState was just a bit more clear in that distinction
Updated•14 years ago
|
Attachment #585790 -
Flags: review?(mark.finkle) → review+
Comment 27•14 years ago
|
||
Comment on attachment 585803 [details] [diff] [review]
patch to delay GeckoThread start on single core devices
patch is not relevant to this bug. obsoleting.
Attachment #585803 -
Attachment is obsolete: true
Attachment #585803 -
Flags: review?(doug.turner)
| Assignee | ||
Comment 28•14 years ago
|
||
Whiteboard: [inbound][fennec-aurora]
| Assignee | ||
Comment 29•14 years ago
|
||
Priority: -- → P1
| Assignee | ||
Updated•14 years ago
|
Attachment #585790 -
Flags: approval-mozilla-aurora?
Comment 30•14 years ago
|
||
I'll leave this in the queue until we've had a day on m-c.
Comment 31•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 12
Updated•14 years ago
|
Flags: in-litmus?(fennec)
Whiteboard: [inbound][fennec-aurora] → [inbound][fennec-aurora][QA+]
Comment 32•14 years ago
|
||
Comment on attachment 585790 [details] [diff] [review]
patch to just move launch to onCreate()
[Triage Comment]
Mobile only - approved for Aurora.
Attachment #585790 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
| Assignee | ||
Updated•14 years ago
|
tracking-fennec: --- → 11+
Updated•14 years ago
|
status-firefox11:
--- → affected
status-firefox12:
--- → fixed
Whiteboard: [inbound][fennec-aurora][QA+] → [inbound][QA+]
Comment 33•14 years ago
|
||
Whiteboard: [inbound][QA+] → [QA+]
Comment 34•13 years ago
|
||
Test case created for the scenario:
https://moztrap.mozilla.org/manage/cases/_detail/6322/
The test case has been created in the FFTs test suite.
Flags: in-litmus?(fennec) → in-moztrap+
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
•