Closed Bug 1183689 Opened 10 years ago Closed 10 years ago

[Netflix] error F7053-1803: Having moz-safe-about+home in storage/permanent and storage/persistent breaks temporary storage initialization

Categories

(Core :: Storage: IndexedDB, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox40 + wontfix
firefox41 + fixed
firefox42 --- fixed

People

(Reporter: janv, Assigned: janv)

References

Details

Attachments

(1 file)

This only happens when there's no storage/default directory which shouldn't happen normally. I guess storage/default is removed manually or by some script. Having storage/default is a sign to not try upgrade storage/persistent (if it exists) to storage/default. I think we should also check for storage/permanent existence.
Btw, this is how I reproduced the bug: 1. Launch FF 35 2. Create new profile 3. Quit FF 35 4. Launch current nightly (with the same profile) 5. Quit current nightly 6. Manually remove <profile>/storage/default 7. Launch FF 35 8. Quit FF 35 9. Launch current nightly Quota manager will fail to upgrade storage/persistent (and thus to initialize temporary storage) at this point. Line: 5254: rv = originProps.mDirectory->MoveTo(permanentStorageDir, EmptyString());
(In reply to Jan Varga [:janv] from comment #0) > I think we should also check for storage/permanent existence. Actually this is not a great idea, we could crash in the middle of the storage directory upgrade, so we need to finish it.
Attached patch patch — — Splinter Review
This works for me. Kyle, can you verify on windows with the specific profile ? Thanks
Assignee: nobody → Jan.Varga
Status: NEW → ASSIGNED
Attachment #8633552 - Flags: review?(khuey)
This QuotaManager bug is the cause of Netflix EME error F7053-1803.
Blocks: EME
Priority: -- → P1
Summary: Having moz-safe-about+home in storage/permanent and storage/persistent breaks temporary storage initialization → [Netflix] error F7053-1803: Having moz-safe-about+home in storage/permanent and storage/persistent breaks temporary storage initialization
It is *a* cause of the error, I'm not certain (although it may be) that it is the only one.
Comment on attachment 8633552 [details] [diff] [review] patch Review of attachment 8633552 [details] [diff] [review]: ----------------------------------------------------------------- With this patch and the profile cpearce gave me we now fail loading with F7053-1807, and there are no QuotaManager warnings in the log.
Attachment #8633552 - Flags: review?(khuey) → review+
Joe or John, what is error F7053-1807?
Flags: needinfo?(steele)
Flags: needinfo?(johnx)
According to Kevin Gallagher's email -- this is an indexedDB error (indexDB.open never called back). This is not something the CDM is involved in AFAICT.
Flags: needinfo?(steele)
Flags: needinfo?(johnx)
I see F7053-1803 when I start Netflix in a clean profile and start a private browsing window and login in the PB window and try to play a video. Could users using Private Browsing mode explain this error? Log from my Repro: Version: 3.0000.043.051 JsSid: 14376090246154, Epoch: 1437609037, Start: 1437609024, TimeZone: -720 Href: http://www.netflix.com/watch/70272832?trackId=13462260&tctx=0%252C0%252Cb8e66d85-e1c8-4967-9376-3fa9f42118ec-48165391 UserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0 -------------------------------------------------------------------------------- 3.899|0|I|Ext| object.pool: Setting play context:, location: WATCHNOW, row: 0, rank: 0, request_id: b8e66d85-e1c8-4967-9376-3fa9f42118ec-48165391 3.900|1|I|Playback| Playback created, MovieId: 70272832, TrackingId: 13462260, Xid: 14376090244548, AccountKey: undefined 3.902|1|I|Playback| Playback loading, MovieId: 70272832, TrackingId: 13462260, Xid: 14376090244548, AccountKey: undefined 3.902|1|I|Playback| Playback state changed, From: 0, To: 1 4.026|0|E|Storage| IndexedDB open error onerror: InvalidStateError 4.026|1|E|Playback| Fatal playback error, Error: [PlayerError #F7053-1803] onerror: InvalidStateError, HandleDelay: undefined 4.026|1|I|Playback| Playback closing, MovieId: 70272832, TrackingId: 13462260, Xid: 14376090244548, AccountKey: undefined, ErrorCode: F7053-1803 4.027|1|I|Playback| Playback state changed, From: 1, To: 3 4.030|1|I|Playback| Playback state changed, From: 3, To: 4
(In reply to Chris Pearce (:cpearce) from comment #9) > I see F7053-1803 when I start Netflix in a clean profile and start a private > browsing window and login in the PB window and try to play a video. > > Could users using Private Browsing mode explain this error? IndexedDB is disabled in private browsing mode (bug 781982).
Private browsing mode does cause this issue, we discovered this back in May and made a request to distinguish between a IndexedDb error and IndexedDb not available. The last thought on the thread was for us to create a dummy database to see if it works, if it does then IndexedDb is available. While we can do this there are a couple of issues 1) It would increase our play delay, not sure how long it takes to create and delete a new DB 2) It increases the complexity of the code in that we would have to do this explicitly for Firefox
Jan: Is this patch safe enough to uplift to Beta? We'd like this fix on the 40 train ideally, and the code freeze for that is scheduled for 30 July.
Flags: needinfo?(Jan.Varga)
(In reply to Chris Pearce (:cpearce) from comment #13) > Jan: Is this patch safe enough to uplift to Beta? We'd like this fix on the > 40 train ideally, and the code freeze for that is scheduled for 30 July. Yes, I think it's safe enough.
Flags: needinfo?(Jan.Varga)
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
[Tracking Requested - why for this release]: This can cause a playback failure on Netflix; we should uplift the fix.
Flags: needinfo?(cpearce)
Comment on attachment 8633552 [details] [diff] [review] patch Approval Request Comment [Feature/regressing bug #]: Bug 1083927 [User impact if declined]: Netflix can't access its IndexedDB database [Describe test coverage new/current, TreeHerder]: Tested only manually. [Risks and why]: It's been only a few days since this landed on mozilla-central, as far as I know, this didn't regress anything. In any case the patch is very simple and can be easily backed out if there are problems. [String/UUID change made/needed]: None
Attachment #8633552 - Flags: approval-mozilla-beta?
Attachment #8633552 - Flags: approval-mozilla-aurora?
(In reply to Jan Varga [:janv] from comment #19) > [User impact if declined]: Netflix can't access its IndexedDB database Is this an absolute statement or does this only occur in certain cases? How does this issue appear to the end user? > [Describe test coverage new/current, TreeHerder]: Tested only manually. > > [Risks and why]: It's been only a few days since this landed on > mozilla-central, as far as I know, this didn't regress anything. In any case > the patch is very simple and can be easily backed out if there are problems. The few days on m-c may be enough to show that nothing is horribly broken in IndexedDB but doesn't demonstrate that this fixes the Netflix issue. We're at our final beta in the 40 cycle. Any backout would have to come Sunday or Monday morning before we gtb with the 40 RC. Unless this patch is a hard requirement for EME, I think we should defer the fix to 41.
Flags: needinfo?(Jan.Varga)
(In reply to Lawrence Mandel [:lmandel] (use needinfo) from comment #20) > (In reply to Jan Varga [:janv] from comment #19) > > [User impact if declined]: Netflix can't access its IndexedDB database > > Is this an absolute statement or does this only occur in certain cases? How > does this issue appear to the end user? I only know that a couple of testers here upgraded their browser from 38 to 39 and got an error (indexDB.open called back with an error). The error name was UnknownError. > > > [Describe test coverage new/current, TreeHerder]: Tested only manually. > > > > [Risks and why]: It's been only a few days since this landed on > > mozilla-central, as far as I know, this didn't regress anything. In any case > > the patch is very simple and can be easily backed out if there are problems. > > The few days on m-c may be enough to show that nothing is horribly broken in > IndexedDB but doesn't demonstrate that this fixes the Netflix issue. We're > at our final beta in the 40 cycle. Any backout would have to come Sunday or > Monday morning before we gtb with the 40 RC. > > Unless this patch is a hard requirement for EME, I think we should defer the > fix to 41. Well in that case I'm deferring to cpearce, he told me that ideally we'd need it landed before the 40b9 build on Thursday PST.
Flags: needinfo?(Jan.Varga)
(In reply to Lawrence Mandel [:lmandel] (use needinfo) from comment #20) > (In reply to Jan Varga [:janv] from comment #19) > > [User impact if declined]: Netflix can't access its IndexedDB database > > Is this an absolute statement or does this only occur in certain cases? How > does this issue appear to the end user? > > > [Describe test coverage new/current, TreeHerder]: Tested only manually. > > > > [Risks and why]: It's been only a few days since this landed on > > mozilla-central, as far as I know, this didn't regress anything. In any case > > the patch is very simple and can be easily backed out if there are problems. > > The few days on m-c may be enough to show that nothing is horribly broken in > IndexedDB but doesn't demonstrate that this fixes the Netflix issue. We're > at our final beta in the 40 cycle. Any backout would have to come Sunday or > Monday morning before we gtb with the 40 RC. > > Unless this patch is a hard requirement for EME, I think we should defer the > fix to 41. I think we can take this in 41, and let it slide for 40.
Comment on attachment 8633552 [details] [diff] [review] patch Let's land it on Aurora so we can get more users to start exercising this code. Also this patch has been in m-c for 2 days so seems safe to uplift.
Attachment #8633552 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment on attachment 8633552 [details] [diff] [review] patch cpearce confirmed that this is not a hard requirement for 40 (comment 22). Beta-
Attachment #8633552 - Flags: approval-mozilla-beta? → approval-mozilla-beta-
Flags: needinfo?(cpearce)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: