Closed
Bug 728240
Opened 14 years ago
Closed 13 years ago
about:home is completely blank
Categories
(Firefox for Android Graveyard :: General, defect, P1)
Tracking
(firefox13 verified, blocking-fennec1.0 beta+, fennec13+)
VERIFIED
FIXED
Firefox 13
People
(Reporter: aaronmt, Assigned: sriram)
References
Details
Attachments
(3 files, 1 obsolete file)
about:home went on vacation
See video and log attached:
http://www.youtube.com/watch?v=Jpin5JOfRxA&hd=1
--
Samsung Galaxy Nexus (Android 4.0.2)
Mozilla/5.0 (Android; Mobile; rv:13.0a1) Gecko/13.0a1 Firefox/13.0a1
Reporter | ||
Comment 1•14 years ago
|
||
Reporter | ||
Updated•14 years ago
|
tracking-fennec: --- → ?
status-firefox13:
--- → affected
Updated•14 years ago
|
Assignee: nobody → sriram
Priority: -- → P1
Assignee | ||
Comment 2•14 years ago
|
||
I am unable to reproduce this bug. Is there any steps to reproduce?
Reporter | ||
Comment 3•14 years ago
|
||
Tap the Nightly icon.
Comment 4•14 years ago
|
||
working for me too
Reporter | ||
Comment 5•14 years ago
|
||
Installed Maple so I lost Nightly, reinstalled Nightly and about:home is back. Something during my Nightly install this morning got it into a state; all I did was adb install <path-to-apk>, and tapped Nightly to see this happen this morning exactly as you see it in the video. Although this is WFM, this looks pretty bad and might be worth an investigation?
If you start about:home from an intent, you will get a blank page.
adb shell am start -a android.intent.action.VIEW -n org.mozilla.fennec/.App -d about:home
I thought it was the same as bug 724708 when I saw this myself.
Assignee | ||
Comment 7•14 years ago
|
||
We are trying to process the intent before initializing in the startup path. Therefore about:home is not shown at times. This patch makes sure that the onNewIntent() is called at the end of initialize() and also that onNewIntent() is called in onResume() only if we have initialized.
This probably fixes the crash in bug 729219.
Attachment #599325 -
Flags: review?(mark.finkle)
Comment 8•14 years ago
|
||
Comment on attachment 599325 [details] [diff] [review]
Patch
Brad has a better handle on this area of code
Attachment #599325 -
Flags: review?(mark.finkle) → review?(blassey.bugs)
Comment 9•14 years ago
|
||
(In reply to Naoki Hirata :nhirata from comment #6)
> If you start about:home from an intent, you will get a blank page.
>
> adb shell am start -a android.intent.action.VIEW -n org.mozilla.fennec/.App
> -d about:home
When would a user see this in the wild?
if it hurts when you poke yourself in the eye, typically its easier to stop poking yourself in the eye than to where safety goggles
Comment 10•14 years ago
|
||
s/where/wear/
Comment 11•14 years ago
|
||
is this a regression from bug 725932?
Comment 12•14 years ago
|
||
Comment on attachment 599325 [details] [diff] [review]
Patch
Let's look at other ways to avoid calling onNewIntent ourselves. This includes the onNewIntent called added by previous patches.
Attachment #599325 -
Flags: review?(blassey.bugs) → review-
Updated•14 years ago
|
Keywords: fennecnative-betablocker
Assignee | ||
Comment 13•14 years ago
|
||
onNewIntent() is called when the activity is running and it gets a new intent from the system (like some other app/service sends an intent). We have all the logic to process the intent in onNewIntent(). I somehow feel it makes sense to call onNewIntent() on onResume() and at the end of initialization. This makes sure we process the received intent during startup.
Comment 14•14 years ago
|
||
Doesn't Android already call onNewIntent for us?
Comment 15•14 years ago
|
||
I think we need a really good reason for calling it ourselves. Faster startup perf is a good reason, but we'd need to add some comments to the code so we don't break anything in the future, and we remember why we did it in the first place.
Assignee | ||
Comment 16•14 years ago
|
||
As per the documentation, this is called only when the activity is relaunched in the application stack. So the startup path wouldn't have onNewIntent() getting called. I can verify this though.
http://developer.android.com/reference/android/app/Activity.html#onNewIntent%28android.content.Intent%29
Assignee | ||
Comment 17•14 years ago
|
||
As per my logs, in startup path onNewIntent() is not called my android. It's only called when the application is running in the background and we open a link from another application.
However, everything seems to work fine in startup path without a call to onNewIntent() :D So we can safely remove it from code. Also, about:home cannot be called from outside sources.
Assignee | ||
Comment 18•14 years ago
|
||
This removes the onNewIntent() call from onResume() as mentioned in previous comments.
Attachment #599325 -
Attachment is obsolete: true
Attachment #599781 -
Flags: review?(mark.finkle)
Comment 19•14 years ago
|
||
Comment on attachment 599781 [details] [diff] [review]
Patch
Looks good and this is good cleanup too.
I assume you tested that about:home is no longer blank. I am interested as to why about:home can not be opened via an external intent. Why is about:home treated differently than about:addons for example?
Attachment #599781 -
Flags: review?(mark.finkle) → review+
Updated•14 years ago
|
tracking-fennec: ? → 13+
Updated•14 years ago
|
blocking-fennec1.0: --- → beta+
Updated•14 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 20•14 years ago
|
||
Comment 21•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 13
Comment 22•13 years ago
|
||
Verified fixed on:
Firefox 13.0a1 (2012-02-28)
20120228031102
http://hg.mozilla.org/mozilla-central/rev/7ce4d9b55863
Firefox 12.0a2 (2012-02-27)
20120227042012
http://hg.mozilla.org/releases/mozilla-aurora/rev/a08366de6833
Firefox 11 (2012-02-28)
20120228015008
http://hg.mozilla.org/releases/mozilla-beta/rev/6a6ec44b7b3c
--
Device: Samsung Galaxy S2
OS: Android 2.3.4
Updated•13 years ago
|
status-firefox11:
verified → ---
status-firefox12:
verified → ---
Comment 23•13 years ago
|
||
Calling platform callbacks directly (on*) is never a good idea guys. It's just plain misleading. At the very least the specific code that needs to be used in different places should be factored out into a separate non-callback-looking private method. This method would then be used where needed. Just saying...
Assignee | ||
Comment 24•13 years ago
|
||
Lucas,
I agree with the idea, and this remove the on* callback :)
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
•