Closed Bug 964860 Opened 11 years ago Closed 3 years ago

Hide DeviceStorage on platforms which don't have a usabe implementation of it

Categories

(Core :: DOM: Core & HTML, defect, P5)

x86
macOS
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ehsan.akhgari, Unassigned)

References

Details

As far as I can tell, the device storage APIs hanging off of navigator are hidden behind the device.storage.enabled pref, which makes them available to everything running on b2g including unprivileged web content running in the browser.  The DeviceStorage and DeviceStorageChangeEvent interfaces are not hidden behind anything, which means that they are detectible from any build that we ship on any platform.  In addition, there seems to be device-storage:foo permissions that are declared in the app manifest but I'm not sure what code enforces those permissions.

If I understand things correctly here, we need to hide the following entry points for any context which does not have the pref set and the permissions available.

* navigator.getDeviceStorage(s)
* DeviceStorage
* DeviceStorageChangeEvent
Depends on: 983502
Depends on: 1009645
No longer depends on: 983502
Priority: -- → P5
Component: DOM → DOM: Core & HTML

These got removed at some point it seems.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.