Get rid of outdated raises() from Web IDL

https://bugs.webkit.org/show_bug.cgi?id=117350

Reviewed by Darin Adler.

Source/WebCore:

Stop using "raises()" in the IDL as this is no longer part of the Web IDL
specification. Web IDL no longer specifies exceptions for operations. Instead
it is now explained in prose.

WebKit still needs to know if the method can throw an exception (but does not
need the exception name) so this patch adds a WebKit specific IDL extended
attribute: [RaisesException]. The naming is consistent with Blink.

This results in more standard and concise IDL. This also simplifies a lot
the code of the IDL parser.

No new tests, no behavior change.

* Modules/battery/BatteryManager.idl:
* Modules/encryptedmedia/MediaKeySession.idl:
* Modules/encryptedmedia/MediaKeys.idl:
* Modules/filesystem/DirectoryEntrySync.idl:
* Modules/filesystem/DirectoryReaderSync.idl:
* Modules/filesystem/EntrySync.idl:
* Modules/filesystem/FileEntrySync.idl:
* Modules/filesystem/FileWriter.idl:
* Modules/filesystem/FileWriterSync.idl:
* Modules/filesystem/WorkerContextFileSystem.idl:
* Modules/indexeddb/IDBCursor.idl:
* Modules/indexeddb/IDBDatabase.idl:
* Modules/indexeddb/IDBFactory.idl:
* Modules/indexeddb/IDBIndex.idl:
* Modules/indexeddb/IDBKeyRange.idl:
* Modules/indexeddb/IDBObjectStore.idl:
* Modules/indexeddb/IDBRequest.idl:
* Modules/indexeddb/IDBTransaction.idl:
* Modules/mediasource/MediaSource.idl:
* Modules/mediasource/SourceBuffer.idl:
* Modules/mediasource/SourceBufferList.idl:
* Modules/mediastream/MediaStream.idl:
* Modules/mediastream/MediaStreamTrack.idl:
* Modules/mediastream/NavigatorMediaStream.idl:
* Modules/mediastream/RTCDTMFSender.idl:
* Modules/mediastream/RTCDataChannel.idl:
* Modules/mediastream/RTCPeerConnection.idl:
* Modules/navigatorcontentutils/NavigatorContentUtils.idl:
* Modules/networkinfo/NetworkInfoConnection.idl:
* Modules/notifications/Notification.idl:
* Modules/notifications/NotificationCenter.idl:
* Modules/speech/SpeechRecognition.idl:
* Modules/vibration/NavigatorVibration.idl:
* Modules/webaudio/AudioBuffer.idl:
* Modules/webaudio/AudioContext.idl:
* Modules/webaudio/AudioNode.idl:
* Modules/webdatabase/DOMWindowWebDatabase.idl:
* Modules/webdatabase/DatabaseSync.idl:
* Modules/webdatabase/WorkerContextWebDatabase.idl:
* Modules/websockets/WebSocket.idl:
* bindings/scripts/CodeGeneratorCPP.pm:
(GenerateImplementation):
* bindings/scripts/CodeGeneratorGObject.pm:
(GenerateFunction):
(GenerateFunctions):
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateImplementation):
(GenerateParametersCheck):
(GenerateImplementationFunctionCall):
(GenerateConstructorDefinition):
* bindings/scripts/CodeGeneratorObjC.pm:
(GenerateImplementation):
* bindings/scripts/IDLAttributes.txt:
* bindings/scripts/IDLParser.pm:
(parseOperationRest):
* bindings/scripts/test/TestEventTarget.idl:
* bindings/scripts/test/TestObj.idl:
* bindings/scripts/test/TestSupplemental.idl:
* bindings/scripts/test/TestTypedefs.idl:
* css/CSSHostRule.idl:
* css/CSSMediaRule.idl:
* css/CSSPrimitiveValue.idl:
* css/CSSStyleDeclaration.idl:
* css/CSSStyleSheet.idl:
* css/CSSSupportsRule.idl:
* css/FontLoader.idl:
* css/MediaList.idl:
* css/WebKitCSSMatrix.idl:
* dom/CharacterData.idl:
* dom/DOMImplementation.idl:
* dom/DataTransferItemList.idl:
* dom/Document.idl:
* dom/DocumentFragment.idl:
* dom/DocumentType.idl:
* dom/Element.idl:
* dom/EventTarget.idl:
* dom/MessagePort.idl:
* dom/MutationObserver.idl:
* dom/NamedNodeMap.idl:
* dom/Node.idl:
* dom/NodeIterator.idl:
* dom/Range.idl:
* dom/ShadowRoot.idl:
* dom/Text.idl:
* dom/WebKitNamedFlow.idl:
* fileapi/FileReader.idl:
* fileapi/FileReaderSync.idl:
* html/DOMTokenList.idl:
* html/HTMLCanvasElement.idl:
* html/HTMLDialogElement.idl:
* html/HTMLElement.idl:
* html/HTMLEmbedElement.idl:
* html/HTMLFrameElement.idl:
* html/HTMLIFrameElement.idl:
* html/HTMLInputElement.idl:
* html/HTMLMediaElement.idl:
* html/HTMLObjectElement.idl:
* html/HTMLOptionsCollection.idl:
* html/HTMLSelectElement.idl:
* html/HTMLTableElement.idl:
* html/HTMLTableRowElement.idl:
* html/HTMLTableSectionElement.idl:
* html/HTMLTextAreaElement.idl:
* html/HTMLVideoElement.idl:
* html/MediaController.idl:
* html/TimeRanges.idl:
* html/canvas/CanvasGradient.idl:
* html/canvas/CanvasRenderingContext2D.idl:
* html/canvas/DOMPath.idl:
* html/canvas/DataView.idl:
* html/canvas/OESVertexArrayObject.idl:
* html/canvas/WebGLDebugShaders.idl:
* html/canvas/WebGLRenderingContext.idl:
* html/track/AudioTrackList.idl:
* html/track/TextTrack.idl:
* html/track/TextTrackCue.idl:
* html/track/TextTrackList.idl:
* html/track/VideoTrackList.idl:
* loader/appcache/DOMApplicationCache.idl:
* page/Crypto.idl:
* page/DOMSelection.idl:
* page/DOMWindow.idl:
* page/EventSource.idl:
* page/History.idl:
* page/Performance.idl:
* storage/Storage.idl:
* svg/SVGAngle.idl:
* svg/SVGAnimationElement.idl:
* svg/SVGColor.idl:
* svg/SVGDocument.idl:
* svg/SVGLength.idl:
* svg/SVGLengthList.idl:
* svg/SVGLocatable.idl:
* svg/SVGMatrix.idl:
* svg/SVGNumberList.idl:
* svg/SVGPaint.idl:
* svg/SVGPathSegList.idl:
* svg/SVGPointList.idl:
* svg/SVGStringList.idl:
* svg/SVGTextContentElement.idl:
* svg/SVGTransformList.idl:
* testing/InternalSettings.idl:
* testing/Internals.idl:
* workers/AbstractWorker.idl:
* workers/DedicatedWorkerContext.idl:
* workers/Worker.idl:
* workers/WorkerContext.idl:
* xml/XMLHttpRequest.idl:
* xml/XMLHttpRequestUpload.idl:
* xml/XMLSerializer.idl:
* xml/XPathEvaluator.idl:
* xml/XPathExpression.idl:
* xml/XPathResult.idl:

Source/WebKit/win:

Replace raises() by [RaisesException].

* Interfaces/DOMEvents.idl:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151336 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 735f8d94
2013-06-07 Christophe Dumez <ch.dumez@sisa.samsung.com>
Get rid of outdated raises() from Web IDL
https://bugs.webkit.org/show_bug.cgi?id=117350
Reviewed by Darin Adler.
Stop using "raises()" in the IDL as this is no longer part of the Web IDL
specification. Web IDL no longer specifies exceptions for operations. Instead
it is now explained in prose.
WebKit still needs to know if the method can throw an exception (but does not
need the exception name) so this patch adds a WebKit specific IDL extended
attribute: [RaisesException]. The naming is consistent with Blink.
This results in more standard and concise IDL. This also simplifies a lot
the code of the IDL parser.
No new tests, no behavior change.
* Modules/battery/BatteryManager.idl:
* Modules/encryptedmedia/MediaKeySession.idl:
* Modules/encryptedmedia/MediaKeys.idl:
* Modules/filesystem/DirectoryEntrySync.idl:
* Modules/filesystem/DirectoryReaderSync.idl:
* Modules/filesystem/EntrySync.idl:
* Modules/filesystem/FileEntrySync.idl:
* Modules/filesystem/FileWriter.idl:
* Modules/filesystem/FileWriterSync.idl:
* Modules/filesystem/WorkerContextFileSystem.idl:
* Modules/indexeddb/IDBCursor.idl:
* Modules/indexeddb/IDBDatabase.idl:
* Modules/indexeddb/IDBFactory.idl:
* Modules/indexeddb/IDBIndex.idl:
* Modules/indexeddb/IDBKeyRange.idl:
* Modules/indexeddb/IDBObjectStore.idl:
* Modules/indexeddb/IDBRequest.idl:
* Modules/indexeddb/IDBTransaction.idl:
* Modules/mediasource/MediaSource.idl:
* Modules/mediasource/SourceBuffer.idl:
* Modules/mediasource/SourceBufferList.idl:
* Modules/mediastream/MediaStream.idl:
* Modules/mediastream/MediaStreamTrack.idl:
* Modules/mediastream/NavigatorMediaStream.idl:
* Modules/mediastream/RTCDTMFSender.idl:
* Modules/mediastream/RTCDataChannel.idl:
* Modules/mediastream/RTCPeerConnection.idl:
* Modules/navigatorcontentutils/NavigatorContentUtils.idl:
* Modules/networkinfo/NetworkInfoConnection.idl:
* Modules/notifications/Notification.idl:
* Modules/notifications/NotificationCenter.idl:
* Modules/speech/SpeechRecognition.idl:
* Modules/vibration/NavigatorVibration.idl:
* Modules/webaudio/AudioBuffer.idl:
* Modules/webaudio/AudioContext.idl:
* Modules/webaudio/AudioNode.idl:
* Modules/webdatabase/DOMWindowWebDatabase.idl:
* Modules/webdatabase/DatabaseSync.idl:
* Modules/webdatabase/WorkerContextWebDatabase.idl:
* Modules/websockets/WebSocket.idl:
* bindings/scripts/CodeGeneratorCPP.pm:
(GenerateImplementation):
* bindings/scripts/CodeGeneratorGObject.pm:
(GenerateFunction):
(GenerateFunctions):
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateImplementation):
(GenerateParametersCheck):
(GenerateImplementationFunctionCall):
(GenerateConstructorDefinition):
* bindings/scripts/CodeGeneratorObjC.pm:
(GenerateImplementation):
* bindings/scripts/IDLAttributes.txt:
* bindings/scripts/IDLParser.pm:
(parseOperationRest):
* bindings/scripts/test/TestEventTarget.idl:
* bindings/scripts/test/TestObj.idl:
* bindings/scripts/test/TestSupplemental.idl:
* bindings/scripts/test/TestTypedefs.idl:
* css/CSSHostRule.idl:
* css/CSSMediaRule.idl:
* css/CSSPrimitiveValue.idl:
* css/CSSStyleDeclaration.idl:
* css/CSSStyleSheet.idl:
* css/CSSSupportsRule.idl:
* css/FontLoader.idl:
* css/MediaList.idl:
* css/WebKitCSSMatrix.idl:
* dom/CharacterData.idl:
* dom/DOMImplementation.idl:
* dom/DataTransferItemList.idl:
* dom/Document.idl:
* dom/DocumentFragment.idl:
* dom/DocumentType.idl:
* dom/Element.idl:
* dom/EventTarget.idl:
* dom/MessagePort.idl:
* dom/MutationObserver.idl:
* dom/NamedNodeMap.idl:
* dom/Node.idl:
* dom/NodeIterator.idl:
* dom/Range.idl:
* dom/ShadowRoot.idl:
* dom/Text.idl:
* dom/WebKitNamedFlow.idl:
* fileapi/FileReader.idl:
* fileapi/FileReaderSync.idl:
* html/DOMTokenList.idl:
* html/HTMLCanvasElement.idl:
* html/HTMLDialogElement.idl:
* html/HTMLElement.idl:
* html/HTMLEmbedElement.idl:
* html/HTMLFrameElement.idl:
* html/HTMLIFrameElement.idl:
* html/HTMLInputElement.idl:
* html/HTMLMediaElement.idl:
* html/HTMLObjectElement.idl:
* html/HTMLOptionsCollection.idl:
* html/HTMLSelectElement.idl:
* html/HTMLTableElement.idl:
* html/HTMLTableRowElement.idl:
* html/HTMLTableSectionElement.idl:
* html/HTMLTextAreaElement.idl:
* html/HTMLVideoElement.idl:
* html/MediaController.idl:
* html/TimeRanges.idl:
* html/canvas/CanvasGradient.idl:
* html/canvas/CanvasRenderingContext2D.idl:
* html/canvas/DOMPath.idl:
* html/canvas/DataView.idl:
* html/canvas/OESVertexArrayObject.idl:
* html/canvas/WebGLDebugShaders.idl:
* html/canvas/WebGLRenderingContext.idl:
* html/track/AudioTrackList.idl:
* html/track/TextTrack.idl:
* html/track/TextTrackCue.idl:
* html/track/TextTrackList.idl:
* html/track/VideoTrackList.idl:
* loader/appcache/DOMApplicationCache.idl:
* page/Crypto.idl:
* page/DOMSelection.idl:
* page/DOMWindow.idl:
* page/EventSource.idl:
* page/History.idl:
* page/Performance.idl:
* storage/Storage.idl:
* svg/SVGAngle.idl:
* svg/SVGAnimationElement.idl:
* svg/SVGColor.idl:
* svg/SVGDocument.idl:
* svg/SVGLength.idl:
* svg/SVGLengthList.idl:
* svg/SVGLocatable.idl:
* svg/SVGMatrix.idl:
* svg/SVGNumberList.idl:
* svg/SVGPaint.idl:
* svg/SVGPathSegList.idl:
* svg/SVGPointList.idl:
* svg/SVGStringList.idl:
* svg/SVGTextContentElement.idl:
* svg/SVGTransformList.idl:
* testing/InternalSettings.idl:
* testing/Internals.idl:
* workers/AbstractWorker.idl:
* workers/DedicatedWorkerContext.idl:
* workers/Worker.idl:
* workers/WorkerContext.idl:
* xml/XMLHttpRequest.idl:
* xml/XMLHttpRequestUpload.idl:
* xml/XMLSerializer.idl:
* xml/XPathEvaluator.idl:
* xml/XPathExpression.idl:
* xml/XPathResult.idl:
2013-06-07 Brady Eidson <beidson@apple.com>
REGRESSION (r151088): Crash navigating away from non-loaded main resources with non-loaded scripts.
......
......@@ -41,7 +41,6 @@
void removeEventListener(DOMString type,
EventListener listener,
optional boolean useCapture);
boolean dispatchEvent(Event event)
raises(EventException);
[RaisesException] boolean dispatchEvent(Event event);
};
......@@ -35,8 +35,7 @@
readonly attribute DOMString sessionId;
// session operations
void update(Uint8Array key)
raises(DOMException);
[RaisesException] void update(Uint8Array key);
void close();
// EventListeners
......@@ -51,6 +50,5 @@
void removeEventListener(DOMString type,
EventListener listener,
optional boolean useCapture);
boolean dispatchEvent(Event evt)
raises(EventException);
[RaisesException] boolean dispatchEvent(Event evt);
};
......@@ -28,8 +28,7 @@
Constructor(DOMString keySystem),
ConstructorRaisesException,
] interface MediaKeys {
[CallWith=ScriptExecutionContext] MediaKeySession createSession([Default=Undefined] optional DOMString type, [Default=Undefined] optional Uint8Array initData)
raises(DOMException);
[CallWith=ScriptExecutionContext, RaisesException] MediaKeySession createSession([Default=Undefined] optional DOMString type, [Default=Undefined] optional Uint8Array initData);
readonly attribute DOMString keySystem;
};
......@@ -35,8 +35,8 @@
JSGenerateToJSObject,
JSNoStaticTables
] interface DirectoryEntrySync : EntrySync {
DirectoryReaderSync createReader() raises (FileException);
FileEntrySync getFile([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString path, Dictionary flags) raises (FileException);
DirectoryEntrySync getDirectory([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString path, Dictionary flags) raises (FileException);
void removeRecursively() raises (FileException);
[RaisesException] DirectoryReaderSync createReader();
[RaisesException] FileEntrySync getFile([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString path, Dictionary flags);
[RaisesException] DirectoryEntrySync getDirectory([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString path, Dictionary flags);
[RaisesException] void removeRecursively();
};
......@@ -34,5 +34,5 @@
JSNoStaticTables,
ImplementationLacksVTable
] interface DirectoryReaderSync {
EntryArraySync readEntries() raises (FileException);
[RaisesException] EntryArraySync readEntries();
};
......@@ -40,10 +40,10 @@
readonly attribute DOMString fullPath;
readonly attribute DOMFileSystemSync filesystem;
Metadata getMetadata() raises (FileException);
EntrySync moveTo(DirectoryEntrySync parent, [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString name) raises (FileException);
EntrySync copyTo(DirectoryEntrySync parent, [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString name) raises (FileException);
[RaisesException] Metadata getMetadata();
[RaisesException] EntrySync moveTo(DirectoryEntrySync parent, [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString name);
[RaisesException] EntrySync copyTo(DirectoryEntrySync parent, [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString name);
DOMString toURL();
void remove() raises (FileException);
[RaisesException] void remove();
DirectoryEntrySync getParent();
};
......@@ -35,6 +35,6 @@
JSGenerateToJSObject,
JSNoStaticTables
] interface FileEntrySync : EntrySync {
File file() raises (FileException);
FileWriterSync createWriter() raises (FileException);
[RaisesException] File file();
[RaisesException] FileWriterSync createWriter();
};
......@@ -44,11 +44,11 @@
readonly attribute unsigned short readyState;
// async write/modify methods
void write(Blob data) raises (FileException);
void seek(long long position) raises (FileException);
void truncate(long long size) raises (FileException);
[RaisesException] void write(Blob data);
[RaisesException] void seek(long long position);
[RaisesException] void truncate(long long size);
void abort() raises (FileException);
[RaisesException] void abort();
readonly attribute FileError error;
readonly attribute long long position;
......@@ -68,6 +68,5 @@
void removeEventListener(DOMString type,
EventListener listener,
optional boolean useCapture);
boolean dispatchEvent(Event evt)
raises(EventException);
[RaisesException] boolean dispatchEvent(Event evt);
};
......@@ -34,9 +34,9 @@
JSNoStaticTables
] interface FileWriterSync {
// synchronous write/modify methods
void write(Blob data) raises (FileException);
void seek(long long position) raises (FileException);
void truncate(long long size) raises (FileException);
[RaisesException] void write(Blob data);
[RaisesException] void seek(long long position);
[RaisesException] void truncate(long long size);
readonly attribute long long position;
readonly attribute long long length;
......
......@@ -31,9 +31,9 @@
const unsigned short PERSISTENT = 1;
void webkitRequestFileSystem(unsigned short type, long long size, optional FileSystemCallback successCallback, optional ErrorCallback errorCallback);
DOMFileSystemSync webkitRequestFileSystemSync(unsigned short type, long long size) raises (FileException);
[RaisesException] DOMFileSystemSync webkitRequestFileSystemSync(unsigned short type, long long size);
void webkitResolveLocalFileSystemURL(DOMString url, EntryCallback successCallback, optional ErrorCallback errorCallback);
EntrySync webkitResolveLocalFileSystemSyncURL(DOMString url) raises (FileException);
[RaisesException] EntrySync webkitResolveLocalFileSystemSyncURL(DOMString url);
attribute FileErrorConstructor FileError;
attribute FileExceptionConstructor FileException;
......
......@@ -33,12 +33,8 @@
readonly attribute any primaryKey;
readonly attribute IDBAny source;
[CallWith=ScriptState] IDBRequest update(any value)
raises (DOMException);
void advance([EnforceRange] unsigned long count)
raises (DOMException);
[CallWith=ScriptExecutionContext, ImplementedAs=continueFunction] void continue(optional any key)
raises (DOMException);
[CallWith=ScriptExecutionContext, ImplementedAs=deleteFunction] IDBRequest delete()
raises (DOMException);
[CallWith=ScriptState, RaisesException] IDBRequest update(any value);
[RaisesException] void advance([EnforceRange] unsigned long count);
[CallWith=ScriptExecutionContext, ImplementedAs=continueFunction, RaisesException] void continue(optional any key);
[CallWith=ScriptExecutionContext, ImplementedAs=deleteFunction, RaisesException] IDBRequest delete();
};
......@@ -38,16 +38,11 @@
attribute EventListener onerror;
attribute EventListener onversionchange;
[Custom] IDBObjectStore createObjectStore(DOMString name, optional Dictionary options)
raises (DOMException);
void deleteObjectStore(DOMString name)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBTransaction transaction(DOMStringList storeNames, [Default=NullString] optional DOMString mode)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBTransaction transaction(sequence<DOMString> storeNames, [Default=NullString] optional DOMString mode)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBTransaction transaction(DOMString storeName, [Default=NullString] optional DOMString mode)
raises (DOMException);
[Custom, RaisesException] IDBObjectStore createObjectStore(DOMString name, optional Dictionary options);
[RaisesException] void deleteObjectStore(DOMString name);
[CallWith=ScriptExecutionContext, RaisesException] IDBTransaction transaction(DOMStringList storeNames, [Default=NullString] optional DOMString mode);
[CallWith=ScriptExecutionContext, RaisesException] IDBTransaction transaction(sequence<DOMString> storeNames, [Default=NullString] optional DOMString mode);
[CallWith=ScriptExecutionContext, RaisesException] IDBTransaction transaction(DOMString storeName, [Default=NullString] optional DOMString mode);
void close();
......@@ -58,7 +53,6 @@
void removeEventListener(DOMString type,
EventListener listener,
optional boolean useCapture);
boolean dispatchEvent(Event evt)
raises(EventException);
[RaisesException] boolean dispatchEvent(Event evt);
};
......@@ -28,15 +28,11 @@
JSNoStaticTables,
ImplementationLacksVTable
] interface IDBFactory {
[CallWith=ScriptExecutionContext, ImplementedAs=getDatabaseNames] IDBRequest webkitGetDatabaseNames()
raises (DOMException);
[CallWith=ScriptExecutionContext, ImplementedAs=getDatabaseNames, RaisesException] IDBRequest webkitGetDatabaseNames();
[CallWith=ScriptExecutionContext] IDBOpenDBRequest open(DOMString name, [EnforceRange] optional unsigned long long version)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBOpenDBRequest deleteDatabase(DOMString name)
raises (DOMException);
[CallWith=ScriptExecutionContext, RaisesException] IDBOpenDBRequest open(DOMString name, [EnforceRange] optional unsigned long long version);
[CallWith=ScriptExecutionContext, RaisesException] IDBOpenDBRequest deleteDatabase(DOMString name);
[CallWith=ScriptExecutionContext] short cmp(any first, any second)
raises (DOMException);
[CallWith=ScriptExecutionContext, RaisesException] short cmp(any first, any second);
};
......@@ -34,27 +34,17 @@
readonly attribute boolean unique;
readonly attribute boolean multiEntry;
[CallWith=ScriptExecutionContext] IDBRequest openCursor(optional IDBKeyRange? range, optional DOMString direction)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest openCursor(any key, optional DOMString direction)
raises (DOMException);
[CallWith=ScriptExecutionContext, RaisesException] IDBRequest openCursor(optional IDBKeyRange? range, optional DOMString direction);
[CallWith=ScriptExecutionContext, RaisesException] IDBRequest openCursor(any key, optional DOMString direction);
[CallWith=ScriptExecutionContext] IDBRequest openKeyCursor(optional IDBKeyRange? range, optional DOMString direction)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest openKeyCursor(any key, optional DOMString direction)
raises (DOMException);
[CallWith=ScriptExecutionContext, RaisesException] IDBRequest openKeyCursor(optional IDBKeyRange? range, optional DOMString direction);
[CallWith=ScriptExecutionContext, RaisesException] IDBRequest openKeyCursor(any key, optional DOMString direction);
[CallWith=ScriptExecutionContext] IDBRequest get(IDBKeyRange? key)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest get(any key)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest getKey(IDBKeyRange? key)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest getKey(any key)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest count(optional IDBKeyRange? range)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest count(any key)
raises (DOMException);
[CallWith=ScriptExecutionContext, RaisesException] IDBRequest get(IDBKeyRange? key);
[CallWith=ScriptExecutionContext, RaisesException] IDBRequest get(any key);
[CallWith=ScriptExecutionContext, RaisesException] IDBRequest getKey(IDBKeyRange? key);
[CallWith=ScriptExecutionContext, RaisesException] IDBRequest getKey(any key);
[CallWith=ScriptExecutionContext, RaisesException] IDBRequest count(optional IDBKeyRange? range);
[CallWith=ScriptExecutionContext, RaisesException] IDBRequest count(any key);
};
......@@ -33,13 +33,9 @@
readonly attribute boolean lowerOpen;
readonly attribute boolean upperOpen;
[CallWith=ScriptExecutionContext] static IDBKeyRange only(any value)
raises (DOMException);
[CallWith=ScriptExecutionContext] static IDBKeyRange lowerBound(any bound, optional boolean open)
raises (DOMException);
[CallWith=ScriptExecutionContext] static IDBKeyRange upperBound(any bound, optional boolean open)
raises (DOMException);
[CallWith=ScriptExecutionContext] static IDBKeyRange bound(any lower, any upper, optional boolean lowerOpen, optional boolean upperOpen)
raises (DOMException);
[CallWith=ScriptExecutionContext, RaisesException] static IDBKeyRange only(any value);
[CallWith=ScriptExecutionContext, RaisesException] static IDBKeyRange lowerBound(any bound, optional boolean open);
[CallWith=ScriptExecutionContext, RaisesException] static IDBKeyRange upperBound(any bound, optional boolean open);
[CallWith=ScriptExecutionContext, RaisesException] static IDBKeyRange bound(any lower, any upper, optional boolean lowerOpen, optional boolean upperOpen);
};
......@@ -34,35 +34,20 @@
readonly attribute IDBTransaction transaction;
readonly attribute boolean autoIncrement;
[CallWith=ScriptState] IDBRequest put(any value, optional any key)
raises (DOMException);
[CallWith=ScriptState] IDBRequest add(any value, optional any key)
raises (DOMException);
[CallWith=ScriptExecutionContext, ImplementedAs=deleteFunction] IDBRequest delete(IDBKeyRange? keyRange)
raises (DOMException);
[CallWith=ScriptExecutionContext, ImplementedAs=deleteFunction] IDBRequest delete(any key)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest clear()
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest get(IDBKeyRange? key)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest get(any key)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest openCursor(optional IDBKeyRange? range, optional DOMString direction)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest openCursor(any key, optional DOMString direction)
raises (DOMException);
[CallWith=ScriptState, RaisesException] IDBRequest put(any value, optional any key);
[CallWith=ScriptState, RaisesException] IDBRequest add(any value, optional any key);
[CallWith=ScriptExecutionContext, ImplementedAs=deleteFunction, RaisesException] IDBRequest delete(IDBKeyRange? keyRange);
[CallWith=ScriptExecutionContext, ImplementedAs=deleteFunction, RaisesException] IDBRequest delete(any key);
[CallWith=ScriptExecutionContext, RaisesException] IDBRequest clear();
[CallWith=ScriptExecutionContext, RaisesException] IDBRequest get(IDBKeyRange? key);
[CallWith=ScriptExecutionContext, RaisesException] IDBRequest get(any key);
[CallWith=ScriptExecutionContext, RaisesException] IDBRequest openCursor(optional IDBKeyRange? range, optional DOMString direction);
[CallWith=ScriptExecutionContext, RaisesException] IDBRequest openCursor(any key, optional DOMString direction);
[CallWith=ScriptExecutionContext, Custom] IDBIndex createIndex(DOMString name, sequence<DOMString> keyPath, optional Dictionary options)
raises (DOMException);
[CallWith=ScriptExecutionContext, Custom] IDBIndex createIndex(DOMString name, DOMString keyPath, optional Dictionary options)
raises (DOMException);
IDBIndex index(DOMString name)
raises (DOMException);
void deleteIndex(DOMString name)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest count(optional IDBKeyRange? range)
raises (DOMException);
[CallWith=ScriptExecutionContext] IDBRequest count(any key)
raises (DOMException);
[CallWith=ScriptExecutionContext, Custom, RaisesException] IDBIndex createIndex(DOMString name, sequence<DOMString> keyPath, optional Dictionary options);
[CallWith=ScriptExecutionContext, Custom, RaisesException] IDBIndex createIndex(DOMString name, DOMString keyPath, optional Dictionary options);
[RaisesException] IDBIndex index(DOMString name);
[RaisesException] void deleteIndex(DOMString name);
[CallWith=ScriptExecutionContext, RaisesException] IDBRequest count(optional IDBKeyRange? range);
[CallWith=ScriptExecutionContext, RaisesException] IDBRequest count(any key);
};
......@@ -54,6 +54,5 @@
void removeEventListener(DOMString type,
EventListener listener,
optional boolean useCapture);
boolean dispatchEvent(Event evt)
raises(EventException);
[RaisesException] boolean dispatchEvent(Event evt);
};
......@@ -38,10 +38,8 @@
[TreatReturnedNullStringAs=Undefined] readonly attribute DOMString webkitErrorMessage;
// Methods
IDBObjectStore objectStore (DOMString name)
raises (DOMException);
void abort ()
raises (DOMException);
[RaisesException] IDBObjectStore objectStore (DOMString name);
[RaisesException] void abort ();
// Events
attribute EventListener onabort;
......@@ -54,6 +52,5 @@
void removeEventListener(DOMString type,
EventListener listener,
optional boolean useCapture);
boolean dispatchEvent(Event evt)
raises(EventException);
[RaisesException] boolean dispatchEvent(Event evt);
};
......@@ -44,13 +44,12 @@
[SetterRaisesException] attribute double duration;
SourceBuffer addSourceBuffer(DOMString type) raises (DOMException);
void removeSourceBuffer(SourceBuffer buffer) raises (DOMException);
[RaisesException] SourceBuffer addSourceBuffer(DOMString type);
[RaisesException] void removeSourceBuffer(SourceBuffer buffer);
readonly attribute DOMString readyState;
void endOfStream([Default=NullString] optional DOMString error)
raises (DOMException);
[RaisesException] void endOfStream([Default=NullString] optional DOMString error);
static boolean isTypeSupported (DOMString type);
......@@ -61,7 +60,6 @@
void removeEventListener(DOMString type,
EventListener listener,
optional boolean useCapture);
boolean dispatchEvent(Event event)
raises(EventException);
[RaisesException] boolean dispatchEvent(Event event);
};
......@@ -40,9 +40,9 @@
[SetterRaisesException] attribute double timestampOffset;
// Append segment data.
void append(Uint8Array data) raises (DOMException);
[RaisesException] void append(Uint8Array data);
// Abort the current segment append sequence.
void abort() raises (DOMException);
[RaisesException] void abort();