Bug 1500343 - Deprecate IDBDatabase.createMutableFile and IDBMutableFile.open r=janv,dom-storage-reviewers,emilio

This replaces the previous `[UseCounter]`s with `[Deprecated]`s, since the latter also collects use counters.

Differential Revision: https://phabricator.services.mozilla.com/D135070
This commit is contained in:
Kagami Sascha Rosylight 2022-01-05 19:01:07 +00:00
parent 4abc5956e9
commit f57759070e
5 changed files with 9 additions and 6 deletions

View File

@ -58,10 +58,6 @@ attribute OfflineResourceList.onupdateready
attribute OfflineResourceList.oncached
attribute OfflineResourceList.onobsolete
// Non-standard IndexedDB API
method IDBDatabase.createMutableFile
method IDBMutableFile.open
// DataTransfer API (gecko-only methods)
method DataTransfer.addElement
attribute DataTransfer.mozItemCount

View File

@ -62,3 +62,5 @@ DEPRECATED_OPERATION(ElementSetCapture)
DEPRECATED_OPERATION(ElementReleaseCapture)
DEPRECATED_OPERATION(DocumentReleaseCapture)
DEPRECATED_OPERATION(OffscreenCanvasToBlob)
DEPRECATED_OPERATION(IDBDatabaseCreateMutableFile)
DEPRECATED_OPERATION(IDBMutableFileOpen)

View File

@ -429,3 +429,8 @@ WebExtensionUncheckedLastError=browser.runtime.lastError value was not checked:
# LOCALIZATION NOTE: Do not translate "OffscreenCanvas.toBlob()" and "OffscreenCanvas.convertToBlob()".
OffscreenCanvasToBlobWarning=OffscreenCanvas.toBlob() is deprecated. Use OffscreenCanvas.convertToBlob() instead.
# LOCALIZATION NOTE: Do not translate "IDBDatabase.createMutableFile()"
IDBDatabaseCreateMutableFileWarning=IDBDatabase.createMutableFile() is deprecated. If this API gets standardized, it will likely do so under the Origin Private File System effort at https://bugzil.la/1748667.
# LOCALIZATION NOTE: Do not translate "IDBMutableFile.open()"
IDBMutableFileOpenWarning=IDBMutableFile.open() is deprecated. If this API gets standardized, it will likely do so under the Origin Private File System effort at https://bugzil.la/1748667.

View File

@ -39,6 +39,6 @@ partial interface IDBDatabase {
[Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"]
readonly attribute StorageType storage;
[Exposed=Window, Throws, UseCounter]
[Exposed=Window, Throws, Deprecated="IDBDatabaseCreateMutableFile"]
IDBRequest createMutableFile (DOMString name, optional DOMString type);
};

View File

@ -10,7 +10,7 @@ interface IDBMutableFile : EventTarget {
readonly attribute IDBDatabase database;
[Throws, UseCounter]
[Throws, Deprecated="IDBMutableFileOpen"]
IDBFileHandle open(optional FileMode mode = "readonly");
attribute EventHandler onabort;