Closed Bug 1427238 Opened 8 years ago Closed 6 years ago

TypeError: items is null[Learn More] SiteDataManager.jsm:53:1

Categories

(Core :: Storage: Quota Manager, defect, P2)

57 Branch
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: Jan, Unassigned)

Details

about:preferences#privacy site data stuck "Calculating site data size…" from error console: TypeError: items is null[Learn More] SiteDataManager.jsm:53:1 websites say "Your browser does not support data storage." because of this.
Mentor: arai.unmht
Version: unspecified → 57 Branch
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0 57.0.2
here's the code. https://dxr.mozilla.org/mozilla-release/rev/c548334d172bd937da77e36867473d861cfa2217/browser/components/preferences/SiteDataManager.jsm#53 > this.SiteDataManager = { > ... > _getQuotaUsage() { > ... > this._getQuotaUsagePromise = new Promise(resolve => { > let onUsageResult = request => { > let items = request.result; > for (let item of items) { it looks like request.result can be null in some case.
This seems like a bug in QuotaManagerService::GetUsage to me rather than a bug in preferences.
Component: Preferences → DOM: Quota Manager
Product: Firefox → Core
Hi Shawn, please take a look.
Flags: needinfo?(shuang)
Priority: -- → P2
Thanks for reporting this bug. I suspect this is related to storage folder metadata missing. Do you have any STR to reproduce this error? If with a new profile, can you still reproduce the bug? If with the new profile, the bug can't be reproduced, can you share your profile storage folder to me? Enter "about:support" in URL bar, and check "Profile Directory", there is one "storage" folder, can you share with me in private?
Flags: needinfo?(shuang) → needinfo?(jan0286)
I now suspected that this is related to lock issue. Some web page is still holding lock therefore site data page can't get the chance to do the request.
I can now reproduce this symptom. My STR: 1. Navigate https://shawnjohnjr.github.io/persist-demo/indexedbtest.html 2. Go to preference and check Site Data management.
Flags: needinfo?(jan0286)
If DirectoryLock was not released, we could see this symptom. When DirectoryLock is released, that API should be able to query the string anyway.

:janv, is this still to be considered P2?

Flags: needinfo?(jvarga)
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(jvarga)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.