Deleting history data fails on GeckoView
Categories
(Toolkit :: Data Sanitization, defect, P3)
Tracking
()
People
(Reporter: esawin, Assigned: esawin)
References
Details
Attachments
(1 file)
With bug 1489669 we're exposing nsIClearDataService
through the GeckoView StorageController
API.
Testing locally on latest m-c, I've found that Service.clearData.deleteData()
fails with [JavaScript Error: "NS_ERROR_FILE_NOT_FOUND: " {file: "resource://gre/modules/ClearDataService.jsm" line: 613}]
when the CLEAR_HISTORY
flag is set.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Baku, is this a GeckoView-specific issue? Is there anything I can do to help diagnose it?
Comment 2•6 years ago
|
||
Do we need to fix this bug for GeckoView's Storage Controller API (bug 1489669) to work in Fenix MVP? Adding [geckoview:fenix]
whiteboard tag to track this issue until we know.
Comment 3•6 years ago
|
||
It seems that PlacesUtils.history doesn't work in GeckoView. Would be great if you can debug it.
Comment 4•6 years ago
|
||
Removing [geckoview:fenix]
whiteboard tag. We don't need to track this bug for Fenix because Eugen has a workaround in the GV API exposed to Fenix.
Comment 5•6 years ago
|
||
(In reply to Andrea Marchesini [:baku] from comment #3)
It seems that PlacesUtils.history doesn't work in GeckoView. Would be great if you can debug it.
:mak, can you help with this?
(In reply to Chris Peterson [:cpeterson] from comment #4)
Removing
[geckoview:fenix]
whiteboard tag. We don't need to track this bug for Fenix because Eugen has a workaround in the GV API exposed to Fenix.
What's that workaround? :)
Thanks!
Comment 6•6 years ago
|
||
Isn't GeckoView Android only? Places is a desktop only history implementation, mobile has different implementations (Fenix has a new Rust based one, the Firefox for Android has its own history impl, as well as Firefox for IOS). If you're going to expose nsIClearDataService completely, you must ensure the proper services are used on different devices, PlacesUtils surely doesn't work out of desktop.
Basically, HistoryCleaner in ClearDataService.jsm is currently not cross-platform, someone should add support for the other systems to it.
Assignee | ||
Comment 7•6 years ago
|
||
Assignee | ||
Comment 8•6 years ago
•
|
||
(In reply to Johann Hofmann [:johannh] from comment #5)
What's that workaround? :)
I've removed CLEAR_HISTORY from the flags passed by default, see GeckoViewStorageController.jsm
changes in the patch here.
(In reply to Marco Bonardo [::mak] from comment #6)
Isn't GeckoView Android only? Places is a desktop only history implementation, mobile has different implementations (Fenix has a new Rust based one, the Firefox for Android has its own history impl, as well as Firefox for IOS). If you're going to expose nsIClearDataService completely, you must ensure the proper services are used on different devices, PlacesUtils surely doesn't work out of desktop.
Basically, HistoryCleaner in ClearDataService.jsm is currently not cross-platform, someone should add support for the other systems to it.
We're not exposing nsIClearDataService
completely, the issue was that the catch-all flag CLEAR_ALL
included CLEAR_HISTORY
so we hit the path with the missing PlacesUtils
file.
Comment 9•6 years ago
|
||
What I meant is that, if you plan to use nsIClearDataService across all the platforms, you should check that all of its parts are ready and cross platform. It should not be too hard to add the missing pieces, but considered this bug I think this kind of check wasn't done yet.
Updated•6 years ago
|
Comment 10•6 years ago
|
||
But, you're still clearing history in some other way then?
Assignee | ||
Comment 11•6 years ago
|
||
(In reply to Johann Hofmann [:johannh] from comment #10)
But, you're still clearing history in some other way then?
GeckoView doesn't collect history persistently, we expose an API (HistoryDelegate
) for the app to do so, if required.
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Comment 14•6 years ago
|
||
fix-optional for 68 per comment 4.
Updated•6 years ago
|
Description
•