Closed
Bug 768254
Opened 13 years ago
Closed 13 years ago
Trying to log in using browserID within an app crashes FennecAndroid (NullPointerException at org.mozilla.gecko.GeckoApp.shouldUpdateThumbnail)
Categories
(Firefox for Android Graveyard :: Web Apps (PWAs), defect, P1)
Tracking
(blocking-kilimanjaro:+, firefox16 verified)
| Tracking | Status | |
|---|---|---|
| firefox16 | --- | verified |
People
(Reporter: krupa.mozbugs, Assigned: mbrubeck)
References
Details
(Keywords: crash, regression, Whiteboard: [native-crash])
Crash Data
Attachments
(1 file, 1 obsolete file)
|
1.17 KB,
patch
|
sriram
:
review+
|
Details | Diff | Splinter Review |
Fennec 16.0a1/Android
steps to reproduce:
1. Install Mozilla Marketplace app (https://marketplace-dev.allizom.org/en-US/app/mozilla-marketplace)
2. Launch the (chromeless) app.
3. Click on Login/Register link.
reproducible? yes.
observed behavior:
Trying to log in using browserID within an app crashes FennecAndroid
The crash reports are not showing up in socorro due to bug 768241
Comment 1•13 years ago
|
||
This works for me on Nightly (06/25), Galaxy Nexus (Android 4.0.4). Getting that crash-report will be helpful.
Updated•13 years ago
|
Severity: normal → critical
Keywords: crash,
stackwanted
Hardware: x86 → ARM
Whiteboard: [native-crash]
Version: unspecified → Trunk
Comment 2•13 years ago
|
||
(In reply to Aaron Train [:aaronmt] from comment #1)
> This works for me on Nightly (06/25), Galaxy Nexus (Android 4.0.4). Getting
> that crash-report will be helpful.
Just got a crash and reproduced the behavior Krupa hit:
https://crash-stats.mozilla.com/report/index/bp-bf2c5c44-bb4e-4550-a3dd-955c22120626
Comment 3•13 years ago
|
||
java.lang.NullPointerException
at org.mozilla.gecko.GeckoApp.shouldUpdateThumbnail(GeckoApp.java:790)
at org.mozilla.gecko.GeckoApp.handleThumbnailData(GeckoApp.java:764)
at org.mozilla.gecko.ScreenshotHandler$1.run(GeckoAppShell.java:2426)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at org.mozilla.gecko.GeckoBackgroundThread.run(GeckoBackgroundThread.java:31)
Keywords: stackwanted
Updated•13 years ago
|
Crash Signature: [@ java.lang.NullPointerException: at org.mozilla.gecko.GeckoApp.shouldUpdateThumbnail(GeckoApp.java) ]
Updated•13 years ago
|
Blocks: Blocking-FFA-WebRT1+
blocking-kilimanjaro: --- → ?
Comment 5•13 years ago
|
||
k9o nomination - not being able to open up a persona pop-up in a web app occasionally and having a crash instead isn't a good UX experience at all. It's a very likely use case too, as Marketplace uses persona and there's other top tier apps using persona as well.
Updated•13 years ago
|
blocking-kilimanjaro: ? → +
Updated•13 years ago
|
No longer blocks: Blocking-FFA-WebRT1+
Comment 6•13 years ago
|
||
Nominating to block basecamp. In order to provide a mobile experience with the marketplace people need to be able to log in with browserid.
blocking-basecamp: --- → ?
Comment 7•13 years ago
|
||
(In reply to Wil Clouser [:clouserw] from comment #6)
> Nominating to block basecamp. In order to provide a mobile experience with
> the marketplace people need to be able to log in with browserid.
Not a basecamp blocker, as FF for Android Web Apps is part of k9o, not basecamp. Basecamp is b2g specific.
blocking-basecamp: ? → ---
| Assignee | ||
Updated•13 years ago
|
| Assignee | ||
Comment 8•13 years ago
|
||
This crash happens because mTabsPanel is null in WebApp. This field is specific to BrowserApp, so we should move it into the subclass to avoid future bugs like this.
Unfortunately, Fennec still crashes even with this patch, when I press the BrowserID login button. There must be some additional bug(s) when opening multiple tabs within a chromeless WebApp, but I'm having trouble debugging it because I'm not getting any stack in the Android log...
Attachment #639467 -
Flags: review?(sriram)
Comment 9•13 years ago
|
||
Comment on attachment 639467 [details] [diff] [review]
patch
Review of attachment 639467 [details] [diff] [review]:
-----------------------------------------------------------------
I thought of moving mTabsPanel to BrowserApp. But I was told by wesj and vlad that they need to show some kind of window management for apps. :(
So, mTabsPanel should stay with GeckoApp.
Please make it "protected" so that BrowserApp can access it.
And override the shouldUpdateThumbnails() only in BrowserApp. GeckoApp returns false like in your patch.
(In short, mTabsPanel stays with GeckoApp. Other things in your patch are fine).
Attachment #639467 -
Flags: review?(sriram) → review-
Updated•13 years ago
|
QA Contact: aaron.train
| Assignee | ||
Comment 10•13 years ago
|
||
Comment on attachment 639467 [details] [diff] [review]
patch
(In reply to Sriram Ramasubramanian [:sriram] from comment #9)
> I thought of moving mTabsPanel to BrowserApp. But I was told by wesj and
> vlad that they need to show some kind of window management for apps. :(
This seems broken to me. mTabsPanel is never used in GeckoApp or WebApp (except by the crashy code that I removed here). It's set to a view that exists only in BrowserApp, so it is already a BrowserApp-specific property in all but name. This patch does not change any behavior for WebApp except that it prevents a crash. *If* we end up adding a TabsPanel to WebApp, only *then* should we move this back to the base class.
Wes and Vlad, do you need this code in GeckoApp?
Attachment #639467 -
Flags: feedback?(wjohnston)
Don't believe so -- I mean, it will fix the crash, which is good, but still won't get us any kind of window mgmt for web apps on android :)
| Assignee | ||
Comment 12•13 years ago
|
||
Comment on attachment 639467 [details] [diff] [review]
patch
Looking at the WIP patch in bug 766299, I guess we can leave this for now and let bug 766299 take care of the larger organization and UX issues -- as long as it will be finished soon so we don't leave this footgun around too long. :)
Attachment #639467 -
Attachment is obsolete: true
Attachment #639467 -
Flags: feedback?(wjohnston)
Comment 13•13 years ago
|
||
(In reply to Matt Brubeck (:mbrubeck) from comment #12)
> Comment on attachment 639467 [details] [diff] [review]
> patch
>
> Looking at the WIP patch in bug 766299, I guess we can leave this for now
> and let bug 766299 take care of the larger organization and UX issues -- as
> long as it will be finished soon so we don't leave this footgun around too
> long. :)
We have a triage for Android WebRT bugs at 10am today, so hopefully that'll answer some of the questions being brought here.
| Assignee | ||
Comment 14•13 years ago
|
||
| Assignee | ||
Comment 15•13 years ago
|
||
Comment on attachment 640265 [details] [diff] [review]
patch v2
This is a smaller patch that does not move any code out of GeckoApp.
As before, this fixes the crash in shouldUpdateThumbnail but there is still another crash that I haven't successfully debugged yet, in addition to the UX issues covered by bug 766299.
Attachment #640265 -
Flags: review?(sriram)
Updated•13 years ago
|
Depends on: Blocking-FFA-WebRT1+
Priority: -- → P1
Updated•13 years ago
|
Attachment #640265 -
Attachment is patch: true
Comment 16•13 years ago
|
||
Comment on attachment 640265 [details] [diff] [review]
patch v2
Review of attachment 640265 [details] [diff] [review]:
-----------------------------------------------------------------
This looks good to me.
Attachment #640265 -
Flags: review?(sriram) → review+
| Assignee | ||
Comment 17•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/136088ebded3
Please open a new bug if there are crashes with a different signature after this patch lands.
Status: NEW → ASSIGNED
Summary: Trying to log in using browserID within an app crashes FennecAndroid → Trying to log in using browserID within an app crashes FennecAndroid (NullPointerException at org.mozilla.gecko.GeckoApp.shouldUpdateThumbnail)
Updated•13 years ago
|
Whiteboard: [native-crash] → [native-crash], [qa+]
Comment 18•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 19•13 years ago
|
||
Comment on attachment 640265 [details] [diff] [review]
patch v2
[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 765805
User impact if declined: reproducible crash when opening a popup window from a chromeless webapp
Testing completed (on m-c, etc.): landed on m-c 7/9
Risk to taking this patch (and alternatives if risky): Very low-risk one-line mobile-only change.
String or UUID changes made by this patch: None
Attachment #640265 -
Flags: approval-mozilla-aurora?
Comment 20•13 years ago
|
||
Verified Fixed on Mozilla-Central (07/10)
Status: RESOLVED → VERIFIED
status-firefox16:
--- → verified
Whiteboard: [native-crash], [qa+] → [native-crash]
Comment 21•13 years ago
|
||
Matt - Webapps are going to be disabled for FF 15 per bug 772162, so don't worry about uplifting this patch.
| Reporter | ||
Comment 22•13 years ago
|
||
I can reproduce the issue from comment 0 with the same STR on today's Nightly. See the crash report @ https://crash-stats.mozilla.com/report/index/bp-ee273fb1-57d7-48ec-b15f-0c7002120711
Let me know if you'd prefer that I file a new bug or just reopen this one.
| Assignee | ||
Comment 23•13 years ago
|
||
Comment on attachment 640265 [details] [diff] [review]
patch v2
(In reply to krupa raj 82[:krupa] from comment #22)
> I can reproduce the issue from comment 0 with the same STR on today's
> Nightly. See the crash report @
> https://crash-stats.mozilla.com/report/index/bp-ee273fb1-57d7-48ec-b15f-
> 0c7002120711
>
> Let me know if you'd prefer that I file a new bug or just reopen this one.
It looks like that is a different crash, which has already been filed as bug 770263 and may be fixed in today's nightly build.
Attachment #640265 -
Flags: approval-mozilla-aurora?
Updated•13 years ago
|
Target Milestone: --- → Firefox 16
Updated•12 years ago
|
tracking-fennec: ? → ---
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
•