Closed
Bug 927878
Opened 11 years ago
Closed 11 years ago
crash in nsDOMOfflineResourceList::ApplicationCacheAvailable(nsIApplicationCache*) when installing an app
Categories
(Core :: Networking: Cache, defect)
Core
Networking: Cache
Tracking
()
VERIFIED
FIXED
mozilla28
People
(Reporter: cwiiis, Assigned: mayhemer)
References
()
Details
(Keywords: crash)
Crash Data
Attachments
(2 files)
1.28 KB,
application/x-zip
|
Details | |
944 bytes,
patch
|
jduell.mcbugs
:
review+
lsblakk
:
approval-mozilla-aurora+
lsblakk
:
approval-mozilla-beta+
mayhemer
:
checkin+
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is report bp-26e7edb4-9178-401e-8560-c1bca2131017. ============================================================= I'm getting this crash when I install an app I've written - it has a valid app cache and works otherwise. Let me know if the crash report is inadequate to investigate this bug. I can't publicly share the url right now.
Updated•11 years ago
|
Component: DOM: Apps → Networking: Cache
Reporter | ||
Comment 2•11 years ago
|
||
I will when I find time (soon) - one thing I can say, having the webapp use a different appcache path fixed the issue. So it seems if a page uses appcache and a webapp uses the same appcache, there's some kind of conflict?
Component: Networking: Cache → DOM: Apps
Flags: needinfo?(chrislord.net)
Reporter | ||
Comment 3•11 years ago
|
||
Sorry, didn't mean to change component... Bugzilla caching at its finest.
Component: DOM: Apps → Networking: Cache
Reporter | ||
Comment 4•11 years ago
|
||
Go to the attached URL and click 'install' to crash Firefox. Will attach an archive of the files (which have to be hosted on the root of an http or https server).
Reporter | ||
Comment 5•11 years ago
|
||
Comment 6•11 years ago
|
||
It's probably bug 910422. Can you try to: 1) Remove the appcache data from Firefox 2) Reinstall the app without letting Firefox download the appcache data
Reporter | ||
Comment 7•11 years ago
|
||
(In reply to Marco Castelluccio [:marco] from comment #6) > It's probably bug 910422. > Can you try to: > 1) Remove the appcache data from Firefox > 2) Reinstall the app without letting Firefox download the appcache data That bug title indeed does show the same behaviour. It's worth noting that you don't need to install an app, if you just go to a different page with the same manifest, this will cause the same crash.
Comment 8•11 years ago
|
||
Honza, this is a null pointer crash. Could you take a look at this? I don't see anything guaranteeing that AssociateDocuments(mPreviousApplicationCache); passes non-null value to the method. We have null checks for mPreviousApplicationCache elsewhere, but for some reason not there.
Flags: needinfo?(honzab.moz)
Assignee | ||
Comment 9•11 years ago
|
||
The best solution here (I've checked MXR) is to bypass nsOfflineCacheUpdate::AssociateDocuments when the cache is null. ApplicationCacheAvailable should not be called when there is no cache available.
Flags: needinfo?(honzab.moz)
Assignee | ||
Comment 10•11 years ago
|
||
- bypass calling observers when there is no cache to associate with
Assignee: nobody → honzab.moz
Status: NEW → ASSIGNED
Attachment #826720 -
Flags: review?(jduell.mcbugs)
Assignee | ||
Comment 11•11 years ago
|
||
Comment on attachment 826720 [details] [diff] [review] v1 https://tbpl.mozilla.org/?tree=Try&rev=4c6f4e23642c
Updated•11 years ago
|
Attachment #826720 -
Flags: review?(jduell.mcbugs) → review+
Reporter | ||
Comment 12•11 years ago
|
||
Once this land on central and is verified, can we uplift this to beta and aurora? I think this is a major hindrance to app development (and crashing bugs aren't great regardless)
Assignee | ||
Comment 13•11 years ago
|
||
(In reply to Chris Lord [:cwiiis] from comment #12) > Once this land on central and is verified, can we uplift this to beta and > aurora? I think this is a major hindrance to app development (and crashing > bugs aren't great regardless) Planning on it. I'll land and request a? tomorrow.
Assignee | ||
Comment 14•11 years ago
|
||
Comment on attachment 826720 [details] [diff] [review] v1 https://hg.mozilla.org/integration/mozilla-inbound/rev/da5f325e4f72
Attachment #826720 -
Flags: checkin+
Comment 15•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/da5f325e4f72
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Assignee | ||
Comment 16•11 years ago
|
||
Comment on attachment 826720 [details] [diff] [review] v1 [Approval Request Comment] Bug caused by (feature/regressing bug #): 892488 User impact if declined: null-deref-crash in some application cache download scenarios Testing completed (on m-c, etc.): just landed on m-c Risk to taking this patch (and alternatives if risky): very small, we only bypass a callback that does carry a null ptr (when it should not); according mxr, consumers are OK when this callback is bypassed for null values ; if considered not safe, we can have a branch patch that will just null check in the place of the actual crash. that would fix this bug (in a hacky way) as well and be safer according potential extension compatibility String or IDL/UUID changes made by this patch: none
Attachment #826720 -
Flags: approval-mozilla-beta?
Attachment #826720 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #826720 -
Flags: approval-mozilla-beta?
Attachment #826720 -
Flags: approval-mozilla-beta+
Attachment #826720 -
Flags: approval-mozilla-aurora?
Attachment #826720 -
Flags: approval-mozilla-aurora+
Comment 17•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/9ac9f5a95f24 https://hg.mozilla.org/releases/mozilla-beta/rev/5a0e7c8843a2
status-firefox27:
--- → fixed
status-firefox28:
--- → fixed
Updated•11 years ago
|
status-firefox26:
--- → fixed
Comment 18•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g26_v1_2/rev/5a0e7c8843a2
status-b2g-v1.2:
--- → fixed
Comment 19•11 years ago
|
||
Reproduced on nightly 2013-10-27 when installing the app from the test URL. Verified fixed FF 28.0a1 (2013-11-14) Win 7 x64
Comment 20•11 years ago
|
||
Verified as fixed on Mac OS X 10.8.5, Ubuntu 13.04 x64 and Windows 8 x64 using Firefox 26 beta 6 build.
Updated•11 years ago
|
Status: RESOLVED → VERIFIED
Comment 23•10 years ago
|
||
Verified as fixed on Mac OS X 10.7.5, Ubuntu 13.10 x64 and Windows 7 x64 using Firefox 27 beta 6 build.
You need to log in
before you can comment on or make changes to this bug.
Description
•