Commit 71163cda authored by zandobersek@gmail.com's avatar zandobersek@gmail.com

[WebIDL] Annotate IDL interfaces under Source/WebCore/page/ with the...

[WebIDL] Annotate IDL interfaces under Source/WebCore/page/ with the OperationsNotDeletable attribute
https://bugs.webkit.org/show_bug.cgi?id=122278

Before changing the JSC bindings generator to enforce WebIDL operations to be configurable, all the
interfaces are being annotated with the OperationsNotDeletable attribute. The attribute currently
doesn't have any effect, but will keep the operations not configurable after the generator is modified
to preserve the original behavior. The attribute will be removed from each interface after checking
conformity with other browsers (in terms of configurability of operations of that interface) and the
WebKit's existing test suites.

This patch covers IDL interfaces under Source/WebCore/page/.

* page/Console.idl:
* page/Crypto.idl:
* page/DOMSecurityPolicy.idl:
* page/DOMSelection.idl:
* page/DOMWindow.idl:
* page/EventSource.idl:
* page/History.idl:
* page/Location.idl:
* page/Navigator.idl:
* page/Performance.idl:
* page/PerformanceEntryList.idl:
* page/SpeechInputResultList.idl:
* page/WindowBase64.idl:
* page/WindowTimers.idl:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156996 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a10b9289
2013-10-06 Zan Dobersek <zdobersek@igalia.com>
[WebIDL] Annotate IDL interfaces under Source/WebCore/page/ with the OperationsNotDeletable attribute
https://bugs.webkit.org/show_bug.cgi?id=122278
Before changing the JSC bindings generator to enforce WebIDL operations to be configurable, all the
interfaces are being annotated with the OperationsNotDeletable attribute. The attribute currently
doesn't have any effect, but will keep the operations not configurable after the generator is modified
to preserve the original behavior. The attribute will be removed from each interface after checking
conformity with other browsers (in terms of configurability of operations of that interface) and the
WebKit's existing test suites.
This patch covers IDL interfaces under Source/WebCore/page/.
* page/Console.idl:
* page/Crypto.idl:
* page/DOMSecurityPolicy.idl:
* page/DOMSelection.idl:
* page/DOMWindow.idl:
* page/EventSource.idl:
* page/History.idl:
* page/Location.idl:
* page/Navigator.idl:
* page/Performance.idl:
* page/PerformanceEntryList.idl:
* page/SpeechInputResultList.idl:
* page/WindowBase64.idl:
* page/WindowTimers.idl:
2013-10-06 Darin Adler <darin@apple.com>
* rendering/RenderButton.cpp:
......@@ -29,6 +29,7 @@
[
NoInterfaceObject,
GenerateIsReachable=ImplFrame,
OperationsNotDeletable
] interface Console {
[CallWith=ScriptArguments&ScriptState] void debug();
......
......@@ -28,7 +28,8 @@
[
NoInterfaceObject,
ImplementationLacksVTable
ImplementationLacksVTable,
OperationsNotDeletable
] interface Crypto {
[Custom, RaisesException] ArrayBufferView getRandomValues(ArrayBufferView array);
};
......
......@@ -24,7 +24,8 @@
[
Conditional=CSP_NEXT,
InterfaceName=SecurityPolicy
InterfaceName=SecurityPolicy,
OperationsNotDeletable
] interface DOMSecurityPolicy {
readonly attribute boolean allowsEval;
readonly attribute boolean allowsInlineScript;
......
......@@ -31,7 +31,8 @@
// https://developer.mozilla.org/En/DOM/Selection
[
GenerateIsReachable=ImplFrame,
InterfaceName=Selection
InterfaceName=Selection,
OperationsNotDeletable
] interface DOMSelection {
readonly attribute Node anchorNode;
readonly attribute long anchorOffset;
......
......@@ -37,7 +37,8 @@
JSGenerateToNativeObject,
ReplaceableConstructor,
JSLegacyParent=JSDOMWindowBase,
InterfaceName=Window
InterfaceName=Window,
OperationsNotDeletable
] interface DOMWindow {
// DOM Level 0
[Replaceable] readonly attribute Screen screen;
......
......@@ -36,7 +36,8 @@
ConstructorCallWith=ScriptExecutionContext,
ConstructorRaisesException,
EventTarget,
JSNoStaticTables
JSNoStaticTables,
OperationsNotDeletable
] interface EventSource {
readonly attribute DOMString URL; // Lowercased .url is the one in the spec, but leaving .URL for compatibility reasons.
......
......@@ -29,6 +29,7 @@
GenerateIsReachable=ImplFrame,
CustomDeleteProperty,
CustomEnumerateProperty,
OperationsNotDeletable
] interface History {
readonly attribute unsigned long length;
[CachedAttribute, Custom] readonly attribute SerializedScriptValue state;
......
......@@ -35,6 +35,7 @@
JSCustomDefineOwnProperty,
JSCustomNamedGetterOnPrototype,
JSCustomDefineOwnPropertyOnPrototype,
OperationsNotDeletable
] interface Location {
#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
[DoNotCheckSecurityOnSetter, CustomSetter] attribute DOMString href;
......
......@@ -19,6 +19,7 @@
[
GenerateIsReachable=ImplFrame,
OperationsNotDeletable
] interface Navigator {
readonly attribute DOMString appCodeName;
readonly attribute DOMString appName;
......
......@@ -33,6 +33,7 @@
[
Conditional=WEB_TIMING,
EventTarget,
OperationsNotDeletable
] interface Performance {
readonly attribute PerformanceNavigation navigation;
readonly attribute PerformanceTiming timing;
......
......@@ -33,7 +33,8 @@
NoInterfaceObject,
Conditional=WEB_TIMING,
Conditional=PERFORMANCE_TIMELINE,
ImplementationLacksVTable
ImplementationLacksVTable,
OperationsNotDeletable
] interface PerformanceEntryList {
readonly attribute unsigned long length;
getter PerformanceEntry item(unsigned long index);
......
......@@ -26,7 +26,8 @@
[
NoInterfaceObject,
Conditional=INPUT_SPEECH,
ImplementationLacksVTable
ImplementationLacksVTable,
OperationsNotDeletable
] interface SpeechInputResultList {
readonly attribute unsigned long length;
getter SpeechInputResult item([IsIndex] unsigned long index);
......
......@@ -26,7 +26,8 @@
*/
[
NoInterfaceObject
NoInterfaceObject,
OperationsNotDeletable
] interface WindowBase64 {
[RaisesException] DOMString atob(DOMString string);
[RaisesException] DOMString btoa(DOMString string);
......
......@@ -26,7 +26,8 @@
*/
[
NoInterfaceObject
NoInterfaceObject,
OperationsNotDeletable
] interface WindowTimers {
[Custom] long setTimeout(any handler, [Default=Undefined] optional long timeout);
void clearTimeout([Default=Undefined] optional long handle);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment