Closed Bug 1535298 Opened 5 years ago Closed 5 years ago

Clearing Site Data fails with LSNG if the user has quota storage for about:pages

Categories

(Toolkit :: Data Sanitization, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla68
Tracking Status
firefox-esr60 --- unaffected
firefox66 --- unaffected
firefox67 --- disabled
firefox68 + verified

People

(Reporter: johannh, Assigned: tt)

References

(Blocks 2 open bugs)

Details

(Keywords: regression)

Attachments

(1 file)

I was trying to remove individual site data in about:preferences -> Cookies and Site Data -> Manage Data and it failed with this error:

NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIURI.host]

This is because https://searchfox.org/mozilla-central/rev/aae527894a97ee3bbe0c2cfce9c67c59e8b8fcb9/toolkit/components/cleardata/ClearDataService.jsm#386 is accessing the .host attribute of about:newtab, in my case.

At the very least we should filter out about: URIs here, but I'm also wondering what this entire block's purpose is:

https://searchfox.org/mozilla-central/rev/aae527894a97ee3bbe0c2cfce9c67c59e8b8fcb9/toolkit/components/cleardata/ClearDataService.jsm#370-403

I'm pretty sure that this comment is not accurate. Jan, do you remember why this was done?

[Tracking Requested - why for this release]:
Most users can't remove individual site data anymore.

Flags: needinfo?(jvarga)

Tracking for 67, it would be good to have a fix before the merge to beta next Monday.

Blocks: 1517090
No longer blocks: 1286798
Flags: needinfo?(jvarga)
Flags: needinfo?(jvarga)

Selected storage items appear to be removed from disk in my experience, the Manage Cookies and Site Data panel doesn't close though which is confusing and the preferences page has to be refreshed to see the changes.

No longer blocks: 1517090
Blocks: 1540402

Yes, this is on our radar.

Flags: needinfo?(jvarga)

I ma moving the tracking flag to 68 as LSNG won't ship in 67.

Tom, can you take this bug?

Flags: needinfo?(shes050117)

Sure

Assignee: nobody → shes050117
Status: NEW → ASSIGNED
Flags: needinfo?(shes050117)

Note that the internal origins like "about:xxx" won't be collected by listInitializedOrigins() so the minimum requirement has been down.

I'm looking into the behavior of Cookie and Quota stuff. They should be removed together while removing any given origins.

(In reply to Tom Tung [:tt, :ttung] from comment #9)

Note that the internal origins like "about:xxx" won't be collected by listInitializedOrigins() so the minimum requirement has been down.

In fact, about:newtab doesn't be treated as an internal origin now.

Attachment #9062461 - Attachment description: Bug 1535298 - Avoid the principal without a host and check if the originAttribute matches; → Bug 1535298 - Avoid checking the host from a principal without that attribute and check if the originAttribute matches;
Blocks: 1551552
Attachment #9062461 - Attachment description: Bug 1535298 - Avoid checking the host from a principal without that attribute and check if the originAttribute matches; → Bug 1535298 - Capture and ignore the exception for not having a host from a principal;
Attachment #9062461 - Attachment description: Bug 1535298 - Capture and ignore the exception for not having a host from a principal; → Bug 1535298 - Capture and ignore the exception for not having a host from a principal URI;
Pushed by shes050117@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/9437ce7f56f1
Capture and ignore the exception for not having a host from a principal URI; r=janv,johannh
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68

Hi Kestrel,

Would you mind helping me to verify if the problem is fixed by testing the latest Nightly? It works on my laptop and I believe the problem is resolved.

Flags: needinfo?(ke5trel)

I can verify this is fixed on Nightly 68.0a1 (2019-05-14) using a profile that has about:newtab storage, the Manage Cookies and Site Data dialog correctly closes after removing a storage item and there is no error in browser console.

Status: RESOLVED → VERIFIED
Flags: needinfo?(ke5trel)

(In reply to Kestrel from comment #15)

I can verify this is fixed on Nightly 68.0a1 (2019-05-14) using a profile that has about:newtab storage, the Manage Cookies and Site Data dialog correctly closes after removing a storage item and there is no error in browser console.

Thanks!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: