Bug 1276874 - Add spec URLs in File and Blob webidl files, r=smaug
authorAndrea Marchesini <amarchesini@mozilla.com>
Tue, 31 May 2016 17:23:57 +0200
changeset 338714 a50192055cef917faf8a8b6d5a9a17dae3c4c371
parent 338713 e30a357b25f11661c624d6e675b4f11177fb4e0f
child 338715 a267539a757f0af6bed82e8c7511d5defe1a645c
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1276874
milestone49.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 1276874 - Add spec URLs in File and Blob webidl files, r=smaug
dom/webidl/Blob.webidl
dom/webidl/File.webidl
--- a/dom/webidl/Blob.webidl
+++ b/dom/webidl/Blob.webidl
@@ -27,16 +27,14 @@ interface Blob {
   [Throws]
   Blob slice([Clamp] optional long long start,
              [Clamp] optional long long end,
              optional DOMString contentType = "");
 
   // void close(); TODO bug 1048325
 };
 
-enum EndingTypes{"transparent", "native"};
+enum EndingTypes { "transparent", "native" };
 
 dictionary BlobPropertyBag {
-
   DOMString type = "";
   EndingTypes endings = "transparent";
-
 };
--- a/dom/webidl/File.webidl
+++ b/dom/webidl/File.webidl
@@ -1,51 +1,47 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * The origin of this IDL file is
+ * https://w3c.github.io/FileAPI/#file
  */
 
 interface nsIFile;
 
 [Constructor(sequence<(ArrayBuffer or ArrayBufferView or Blob or DOMString)> fileBits,
              USVString fileName, optional FilePropertyBag options),
 
  // These constructors are just for chrome callers:
  Constructor(Blob fileBits, optional ChromeFilePropertyBag options),
  Constructor(nsIFile fileBits, optional ChromeFilePropertyBag options),
  Constructor(USVString fileBits, optional ChromeFilePropertyBag options),
 
  Exposed=(Window,Worker)]
 interface File : Blob {
-
   readonly attribute DOMString name;
 
   [GetterThrows]
   readonly attribute long long lastModified;
-
 };
 
-
 dictionary FilePropertyBag {
-
-      DOMString type = "";
-      long long lastModified;
-
+  DOMString type = "";
+  long long lastModified;
 };
 
 dictionary ChromeFilePropertyBag : FilePropertyBag {
-
-      DOMString name = "";
-      boolean temporary = false;
+  DOMString name = "";
+  boolean temporary = false;
 };
 
 // Mozilla extensions
 partial interface File {
-
   [GetterThrows, Deprecated="FileLastModifiedDate"]
   readonly attribute Date lastModifiedDate;
 
   [BinaryName="path", Func="mozilla::dom::Directory::WebkitBlinkDirectoryPickerEnabled"]
   readonly attribute DOMString webkitRelativePath;
 
   [GetterThrows, ChromeOnly]
   readonly attribute DOMString mozFullPath;