Bug 1033952 - Implement "IsRemovable" and "IsHotSwappable" API for device storage. r=bz
☠☠ backed out by 524bced9ae82 ☠ ☠
authoreden-chuang <echuang@mozilla.com>
Wed, 19 Nov 2014 14:16:15 +0800
changeset 221130 c78cc72ea6d2fb69dd4d2d854b50caa18f8f4a53
parent 221129 6bd93a0a82d59cc80368aa05c0c2a07df851ece7
child 221131 3263cf8aca7788e3bf4f7a4649b3e2dd4270841e
push id28011
push userkwierso@gmail.com
push dateWed, 24 Dec 2014 00:36:52 +0000
treeherdermozilla-central@865d06511e99 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1033952
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1033952 - Implement "IsRemovable" and "IsHotSwappable" API for device storage. r=bz
dom/webidl/DeviceStorage.webidl
--- a/dom/webidl/DeviceStorage.webidl
+++ b/dom/webidl/DeviceStorage.webidl
@@ -77,12 +77,18 @@ interface DeviceStorage : EventTarget {
   // Indicates if the storage area denoted by storageName is capable of
   // being formatted.
   readonly attribute boolean canBeFormatted;
 
   // Determines if this storage area is the one which will be used by default
   // for storing new files.
   readonly attribute boolean default;
 
+  // Indicates if the storage area denoted by storageName is removable
+  readonly attribute boolean isRemovable;
+
+  // Indicates if the storage area denoted by storageName is hot-swappable
+  readonly attribute boolean isHotSwappable;
+
   [NewObject, Throws]
   // XXXbz what type does this really return?
   Promise<any> getRoot();
 };