Bug 1238680 - Make dictionary arguments where a dictionary has a required member non-optional; r=bzbarsky
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 11 Jan 2016 13:43:57 -0500
changeset 279444 8c2fafe82c2161d6c8c0740fdd1096a050a3c064
parent 279443 88e99d54712f237ef70fd310770f5403aa685ffd
child 279445 7eae4260b2ff05111165b91966350f5661914b5f
push id29882
push usercbook@mozilla.com
push dateTue, 12 Jan 2016 10:54:59 +0000
treeherdermozilla-central@e790bba372f1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky
bugs1238680
milestone46.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 1238680 - Make dictionary arguments where a dictionary has a required member non-optional; r=bzbarsky
dom/webidl/NotificationEvent.webidl
dom/webidl/PresentationConnectionAvailableEvent.webidl
dom/webidl/SpeechSynthesisErrorEvent.webidl
dom/webidl/SpeechSynthesisEvent.webidl
--- a/dom/webidl/NotificationEvent.webidl
+++ b/dom/webidl/NotificationEvent.webidl
@@ -6,17 +6,17 @@
  * The origin of this IDL file is
  * http://notifications.spec.whatwg.org/
  *
  * Copyright:
  * To the extent possible under law, the editors have waived all copyright and
  * related or neighboring rights to this work.
  */
 
-[Constructor(DOMString type, optional NotificationEventInit eventInitDict),
+[Constructor(DOMString type, NotificationEventInit eventInitDict),
  Exposed=ServiceWorker,Func="mozilla::dom::Notification::PrefEnabled"]
 interface NotificationEvent : ExtendableEvent {
   readonly attribute Notification notification;
 };
 
 dictionary NotificationEventInit : ExtendableEventInit {
   required Notification notification;
 };
--- a/dom/webidl/PresentationConnectionAvailableEvent.webidl
+++ b/dom/webidl/PresentationConnectionAvailableEvent.webidl
@@ -1,16 +1,16 @@
 /* -*- 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/.
  */
 
 [Constructor(DOMString type,
-             optional PresentationConnectionAvailableEventInit eventInitDict),
+             PresentationConnectionAvailableEventInit eventInitDict),
  Pref="dom.presentation.enabled",
  Func="Navigator::HasPresentationSupport"]
 interface PresentationConnectionAvailableEvent : Event
 {
   [SameObject]
   readonly attribute PresentationConnection connection;
 };
 
--- a/dom/webidl/SpeechSynthesisErrorEvent.webidl
+++ b/dom/webidl/SpeechSynthesisErrorEvent.webidl
@@ -19,17 +19,17 @@ enum SpeechSynthesisErrorCode {
   "synthesis-unavailable",
   "synthesis-failed",
   "language-unavailable",
   "voice-unavailable",
   "text-too-long",
   "invalid-argument",
 };
 
-[Constructor(DOMString type, optional SpeechSynthesisErrorEventInit eventInitDict),
+[Constructor(DOMString type, SpeechSynthesisErrorEventInit eventInitDict),
  Pref="media.webspeech.synth.enabled"]
 interface SpeechSynthesisErrorEvent : SpeechSynthesisEvent {
   readonly attribute SpeechSynthesisErrorCode error;
 };
 
 dictionary SpeechSynthesisErrorEventInit : SpeechSynthesisEventInit
 {
   required SpeechSynthesisErrorCode error;
--- a/dom/webidl/SpeechSynthesisEvent.webidl
+++ b/dom/webidl/SpeechSynthesisEvent.webidl
@@ -5,17 +5,17 @@
  *
  * The origin of this IDL file is
  * http://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html
  *
  * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
  * liability, trademark and document use rules apply.
  */
 
-[Constructor(DOMString type, optional SpeechSynthesisEventInit eventInitDict),
+[Constructor(DOMString type, SpeechSynthesisEventInit eventInitDict),
  Pref="media.webspeech.synth.enabled"]
 interface SpeechSynthesisEvent : Event
 {
   readonly attribute SpeechSynthesisUtterance utterance;
   readonly attribute unsigned long charIndex;
   readonly attribute float elapsedTime;
   readonly attribute DOMString? name;
 };