From 4c418c370fa777d123254bd7873fbb91ac9ebff0 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Thu, 6 Sep 2018 18:02:43 +1000 Subject: [PATCH] Bug 1489047 - Change almost all DOMString occurrences in XPIDL files to AString. r=nika Because they have almost identical semantics. --- accessible/interfaces/nsIAccessible.idl | 4 +- .../interfaces/nsIAccessibleApplication.idl | 8 +-- .../nsIAccessibleTextChangeEvent.idl | 2 +- accessible/interfaces/nsIXBLAccessible.idl | 2 +- docshell/base/nsIDocShell.idl | 6 +- dom/base/nsIDOMRequestService.idl | 4 +- dom/base/nsIDroppedLinkHandler.idl | 6 +- dom/browser-element/nsIBrowserElementAPI.idl | 12 ++-- dom/console/nsIConsoleAPIStorage.idl | 6 +- dom/events/nsIEventListenerService.idl | 6 +- dom/html/nsIDateTimeInputArea.idl | 4 +- dom/html/nsIMenuBuilder.idl | 4 +- dom/interfaces/base/nsIBrowserDOMWindow.idl | 2 +- .../base/nsIServiceWorkerManager.idl | 18 +++--- dom/interfaces/base/nsITextInputProcessor.idl | 6 +- .../notification/nsINotificationStorage.idl | 58 +++++++++---------- dom/interfaces/push/nsIPushErrorReporter.idl | 2 +- dom/interfaces/push/nsIPushNotifier.idl | 8 +-- dom/interfaces/push/nsIPushService.idl | 20 +++---- .../sidebar/nsIWebContentHandlerRegistrar.idl | 6 +- .../storage/nsIDOMStorageManager.idl | 2 +- dom/interfaces/xul/nsIDOMXULButtonElement.idl | 6 +- .../xul/nsIDOMXULCommandDispatcher.idl | 6 +- .../xul/nsIDOMXULMenuListElement.idl | 6 +- .../xul/nsIDOMXULMultSelectCntrlEl.idl | 2 +- dom/interfaces/xul/nsIDOMXULSelectCntrlEl.idl | 2 +- .../xul/nsIDOMXULSelectCntrlItemEl.idl | 12 ++-- .../gmp/mozIGeckoMediaPluginChromeService.idl | 2 +- dom/media/nsIAudioDeviceInfo.idl | 6 +- dom/media/nsIDOMNavigatorUserMedia.idl | 10 ++-- .../webspeech/synth/nsISpeechService.idl | 6 +- .../webspeech/synth/nsISynthVoiceRegistry.idl | 16 ++--- .../interfaces/nsITCPSocketCallback.idl | 6 +- dom/power/nsIDOMWakeLockListener.idl | 2 +- dom/power/nsIPowerManagerService.idl | 4 +- .../nsIPresentationControlChannel.idl | 12 ++-- .../nsIPresentationControlService.idl | 10 ++-- .../interfaces/nsIPresentationDevice.idl | 2 +- .../nsIPresentationDevicePrompt.idl | 2 +- .../nsIPresentationDeviceProvider.idl | 10 ++-- .../interfaces/nsIPresentationListener.idl | 6 +- .../nsIPresentationRequestUIGlue.idl | 4 +- .../interfaces/nsIPresentationService.idl | 40 ++++++------- .../nsIPresentationSessionRequest.idl | 4 +- .../nsIPresentationSessionTransport.idl | 2 +- ...nsIPresentationSessionTransportBuilder.idl | 4 +- .../nsIPresentationTerminateRequest.idl | 2 +- dom/workers/nsIWorkerDebugger.idl | 12 ++-- dom/xslt/txIEXSLTRegExFunctions.idl | 12 ++-- editor/nsIEditActionListener.idl | 4 +- editor/nsIEditor.idl | 2 +- editor/nsIPlaintextEditor.idl | 2 +- editor/nsIURIRefObject.idl | 4 +- intl/l10n/mozIDOMLocalization.idl | 2 +- netwerk/base/nsIPermissionManager.idl | 2 +- netwerk/cookie/nsICookieManager.idl | 4 +- .../interfaces/nsIFxAccountsUIGlue.idl | 2 +- widget/nsIBaseWindow.idl | 6 +- widget/nsIGfxInfo.idl | 40 ++++++------- widget/nsIGfxInfoDebug.idl | 6 +- widget/nsITaskbarPreview.idl | 2 +- widget/nsITaskbarPreviewButton.idl | 2 +- widget/nsITaskbarTabPreview.idl | 2 +- xpcom/system/nsIXULRuntime.idl | 4 +- 64 files changed, 239 insertions(+), 239 deletions(-) diff --git a/accessible/interfaces/nsIAccessible.idl b/accessible/interfaces/nsIAccessible.idl index a7040569dba64..70d758e7c01c0 100644 --- a/accessible/interfaces/nsIAccessible.idl +++ b/accessible/interfaces/nsIAccessible.idl @@ -82,7 +82,7 @@ interface nsIAccessible : nsISupports /** * For remote accessibles the id of the related DOM node. */ - readonly attribute DOMString id; + readonly attribute AString id; /** * The document accessible that this access node resides in. @@ -97,7 +97,7 @@ interface nsIAccessible : nsISupports /** * The language for the current DOM node, e.g. en, de, etc. */ - readonly attribute DOMString language; + readonly attribute AString language; /** * Accessible name -- the main text equivalent for this node. The name is diff --git a/accessible/interfaces/nsIAccessibleApplication.idl b/accessible/interfaces/nsIAccessibleApplication.idl index f3e472fed8622..6facf1337509d 100644 --- a/accessible/interfaces/nsIAccessibleApplication.idl +++ b/accessible/interfaces/nsIAccessibleApplication.idl @@ -15,20 +15,20 @@ interface nsIAccessibleApplication : nsISupports /** * Returns the application name. */ - readonly attribute DOMString appName; + readonly attribute AString appName; /** * Returns the application version. */ - readonly attribute DOMString appVersion; + readonly attribute AString appVersion; /** * Returns the platform name. */ - readonly attribute DOMString platformName; + readonly attribute AString platformName; /** * Returns the platform version. */ - readonly attribute DOMString platformVersion; + readonly attribute AString platformVersion; }; diff --git a/accessible/interfaces/nsIAccessibleTextChangeEvent.idl b/accessible/interfaces/nsIAccessibleTextChangeEvent.idl index e171ab0f44224..4aaadb8671d9b 100644 --- a/accessible/interfaces/nsIAccessibleTextChangeEvent.idl +++ b/accessible/interfaces/nsIAccessibleTextChangeEvent.idl @@ -29,5 +29,5 @@ interface nsIAccessibleTextChangeEvent : nsIAccessibleEvent /** * The inserted or removed text */ - readonly attribute DOMString modifiedText; + readonly attribute AString modifiedText; }; diff --git a/accessible/interfaces/nsIXBLAccessible.idl b/accessible/interfaces/nsIXBLAccessible.idl index 054ee62bd70b6..ef7d53e58090d 100644 --- a/accessible/interfaces/nsIXBLAccessible.idl +++ b/accessible/interfaces/nsIXBLAccessible.idl @@ -16,5 +16,5 @@ interface nsIXBLAccessible : nsISupports /** * Return accessible name. */ - readonly attribute DOMString accessibleName; + readonly attribute AString accessibleName; }; diff --git a/docshell/base/nsIDocShell.idl b/docshell/base/nsIDocShell.idl index 4242196a05c0e..af59792ea4f71 100644 --- a/docshell/base/nsIDocShell.idl +++ b/docshell/base/nsIDocShell.idl @@ -216,8 +216,8 @@ interface nsIDocShell : nsIDocShellTreeItem * depending on the value of aReplace. */ [implicit_jscontext] - void addState(in jsval aData, in DOMString aTitle, - in DOMString aURL, in boolean aReplace); + void addState(in jsval aData, in AString aTitle, + in AString aURL, in boolean aReplace); /** * Reset state to a new content model within the current document and the document @@ -274,7 +274,7 @@ interface nsIDocShell : nsIDocShellTreeItem /** * This allows chrome to set a custom User agent on a specific docshell */ - attribute DOMString customUserAgent; + attribute AString customUserAgent; /** * Whether CSS error reporting is enabled. diff --git a/dom/base/nsIDOMRequestService.idl b/dom/base/nsIDOMRequestService.idl index 650b3745dd458..4f6fcd57845fa 100644 --- a/dom/base/nsIDOMRequestService.idl +++ b/dom/base/nsIDOMRequestService.idl @@ -15,7 +15,7 @@ interface nsIDOMRequestService : nsISupports DOMRequest createRequest(in mozIDOMWindow window); void fireSuccess(in DOMRequest request, in jsval result); - void fireError(in DOMRequest request, in DOMString error); + void fireError(in DOMRequest request, in AString error); void fireSuccessAsync(in DOMRequest request, in jsval result); - void fireErrorAsync(in DOMRequest request, in DOMString error); + void fireErrorAsync(in DOMRequest request, in AString error); }; diff --git a/dom/base/nsIDroppedLinkHandler.idl b/dom/base/nsIDroppedLinkHandler.idl index 8b4f5242406aa..b58ee1c21d755 100644 --- a/dom/base/nsIDroppedLinkHandler.idl +++ b/dom/base/nsIDroppedLinkHandler.idl @@ -14,17 +14,17 @@ interface nsIDroppedLinkItem : nsISupports /** * Returns the URL of the link. */ - readonly attribute DOMString url; + readonly attribute AString url; /** * Returns the link name. */ - readonly attribute DOMString name; + readonly attribute AString name; /** * Returns the MIME-Type. */ - readonly attribute DOMString type; + readonly attribute AString type; }; [scriptable, uuid(21B5C25A-28A9-47BD-8431-FA9116305DED)] diff --git a/dom/browser-element/nsIBrowserElementAPI.idl b/dom/browser-element/nsIBrowserElementAPI.idl index 0070e62938c3e..e99532250e535 100644 --- a/dom/browser-element/nsIBrowserElementAPI.idl +++ b/dom/browser-element/nsIBrowserElementAPI.idl @@ -36,13 +36,13 @@ interface nsIBrowserElementAPI : nsISupports void setFrameLoader(in FrameLoader frameLoader); - void sendMouseEvent(in DOMString type, + void sendMouseEvent(in AString type, in uint32_t x, in uint32_t y, in uint32_t button, in uint32_t clickCount, in uint32_t mifiers); - void sendTouchEvent(in DOMString aType, + void sendTouchEvent(in AString aType, [const, array, size_is(count)] in uint32_t aIdentifiers, [const, array, size_is(count)] in int32_t aXs, [const, array, size_is(count)] in int32_t aYs, @@ -56,25 +56,25 @@ interface nsIBrowserElementAPI : nsISupports void goForward(); void reload(in boolean hardReload); void stop(); - DOMRequest download(in DOMString url, + DOMRequest download(in AString url, [optional] in jsval options); DOMRequest purgeHistory(); DOMRequest getScreenshot(in uint32_t width, in uint32_t height, - [optional] in DOMString mimeType); + [optional] in AString mimeType); void zoom(in float zoom); DOMRequest getCanGoBack(); DOMRequest getCanGoForward(); DOMRequest getContentDimensions(); - void findAll(in DOMString searchString, in long caseSensitivity); + void findAll(in AString searchString, in long caseSensitivity); void findNext(in long direction); void clearMatch(); void addNextPaintListener(in jsval listener); // BrowserElementNextPaintEventCallback void removeNextPaintListener(in jsval listener); // BrowserElementNextPaintEventCallback - DOMRequest executeScript(in DOMString script, in jsval options); + DOMRequest executeScript(in AString script, in jsval options); /** * Returns an object that represents a Web Manifest: diff --git a/dom/console/nsIConsoleAPIStorage.idl b/dom/console/nsIConsoleAPIStorage.idl index 6ee218af23bb1..36437e3811a56 100644 --- a/dom/console/nsIConsoleAPIStorage.idl +++ b/dom/console/nsIConsoleAPIStorage.idl @@ -19,7 +19,7 @@ interface nsIConsoleAPIStorage : nsISupports * given this function returns all of the cached events, from any * window. */ - jsval getEvents([optional] in DOMString aId); + jsval getEvents([optional] in AString aId); /** * Record an event associated with the given window ID. @@ -33,7 +33,7 @@ interface nsIConsoleAPIStorage : nsISupports * @param object aEvent * A JavaScript object you want to store. */ - void recordEvent(in DOMString aId, in DOMString aOuterId, in jsval aEvent); + void recordEvent(in AString aId, in AString aOuterId, in jsval aEvent); /** * Clear storage data for the given window. @@ -43,5 +43,5 @@ interface nsIConsoleAPIStorage : nsISupports * messages. If this is not specified all of the cached messages are * cleared, from all window objects. */ - void clearEvents([optional] in DOMString aId); + void clearEvents([optional] in AString aId); }; diff --git a/dom/events/nsIEventListenerService.idl b/dom/events/nsIEventListenerService.idl index 3427154e215d6..19befcfd66c1a 100644 --- a/dom/events/nsIEventListenerService.idl +++ b/dom/events/nsIEventListenerService.idl @@ -89,14 +89,14 @@ interface nsIEventListenerService : nsISupports * Returns true if a event target has any listener for the given type. */ boolean hasListenersFor(in EventTarget aEventTarget, - in DOMString aType); + in AString aType); /** * Add a system-group eventlistener to a event target. */ [implicit_jscontext] void addSystemEventListener(in EventTarget target, - in DOMString type, + in AString type, in jsval listener, in boolean useCapture); @@ -105,7 +105,7 @@ interface nsIEventListenerService : nsISupports */ [implicit_jscontext] void removeSystemEventListener(in EventTarget target, - in DOMString type, + in AString type, in jsval listener, in boolean useCapture); diff --git a/dom/html/nsIDateTimeInputArea.idl b/dom/html/nsIDateTimeInputArea.idl index b2a8627fbe344..5b5caeaaa2ce8 100644 --- a/dom/html/nsIDateTimeInputArea.idl +++ b/dom/html/nsIDateTimeInputArea.idl @@ -49,11 +49,11 @@ interface nsIDateTimeInputArea : nsISupports * Set the attribute of the inner text boxes. Only "tabindex", "readonly", * and "disabled" are allowed. */ - void setEditAttribute(in DOMString name, in DOMString value); + void setEditAttribute(in AString name, in AString value); /** * Remove the attribute of the inner text boxes. Only "tabindex", "readonly", * and "disabled" are allowed. */ - void removeEditAttribute(in DOMString name); + void removeEditAttribute(in AString name); }; diff --git a/dom/html/nsIMenuBuilder.idl b/dom/html/nsIMenuBuilder.idl index 84bc5177e1120..94200524de8d0 100644 --- a/dom/html/nsIMenuBuilder.idl +++ b/dom/html/nsIMenuBuilder.idl @@ -20,7 +20,7 @@ interface nsIMenuBuilder : nsISupports * a new context for this menu, so all subsequent methods will add new items * to this newly created menu. */ - void openContainer(in DOMString aLabel); + void openContainer(in AString aLabel); /** * Add a new menu item. All menu item details can be obtained from @@ -72,5 +72,5 @@ interface nsIMenuBuilder : nsISupports * * @param aGeneratedItemId the menuitem id */ - void click(in DOMString aGeneratedItemId); + void click(in AString aGeneratedItemId); }; diff --git a/dom/interfaces/base/nsIBrowserDOMWindow.idl b/dom/interfaces/base/nsIBrowserDOMWindow.idl index c058f014586f3..bf1685b473c1d 100644 --- a/dom/interfaces/base/nsIBrowserDOMWindow.idl +++ b/dom/interfaces/base/nsIBrowserDOMWindow.idl @@ -14,7 +14,7 @@ interface nsIPrincipal; [scriptable, uuid(e774db14-79ac-4156-a7a3-aa3fd0a22c10)] interface nsIOpenURIInFrameParams : nsISupports { - attribute DOMString referrer; + attribute AString referrer; attribute unsigned long referrerPolicy; readonly attribute boolean isPrivate; attribute nsIPrincipal triggeringPrincipal; diff --git a/dom/interfaces/base/nsIServiceWorkerManager.idl b/dom/interfaces/base/nsIServiceWorkerManager.idl index c78157b9dc27d..635005334054b 100644 --- a/dom/interfaces/base/nsIServiceWorkerManager.idl +++ b/dom/interfaces/base/nsIServiceWorkerManager.idl @@ -50,8 +50,8 @@ interface nsIServiceWorkerInfo : nsISupports const unsigned short STATE_REDUNDANT = 5; const unsigned short STATE_UNKNOWN = 6; - readonly attribute DOMString scriptSpec; - readonly attribute DOMString cacheName; + readonly attribute AString scriptSpec; + readonly attribute AString cacheName; readonly attribute unsigned short state; @@ -84,8 +84,8 @@ interface nsIServiceWorkerRegistrationInfo : nsISupports readonly attribute nsIPrincipal principal; - readonly attribute DOMString scope; - readonly attribute DOMString scriptSpec; + readonly attribute AString scope; + readonly attribute AString scriptSpec; readonly attribute unsigned short updateViaCache; readonly attribute PRTime lastUpdateTime; @@ -123,29 +123,29 @@ interface nsIServiceWorkerManager : nsISupports */ void unregister(in nsIPrincipal aPrincipal, in nsIServiceWorkerUnregisterCallback aCallback, - in DOMString aScope); + in AString aScope); nsIServiceWorkerRegistrationInfo getRegistrationByPrincipal(in nsIPrincipal aPrincipal, - in DOMString aScope); + in AString aScope); [notxpcom, nostdcall] bool StartControlling(in const_ClientInfoRef aClientInfo, in const_ServiceWorkerDescriptorRef aServiceWorker); // Testing - DOMString getScopeForUrl(in nsIPrincipal aPrincipal, in DOMString aPath); + AString getScopeForUrl(in nsIPrincipal aPrincipal, in AString aPath); // It returns an array of nsIServiceWorkerRegistrationInfos. nsIArray getAllRegistrations(); // It calls softUpdate() for each child process. [implicit_jscontext] void propagateSoftUpdate(in jsval aOriginAttributes, - in DOMString aScope); + in AString aScope); // It calls unregister() in each child process. The callback is used to // inform when unregister() is completed on the current process. void propagateUnregister(in nsIPrincipal aPrincipal, in nsIServiceWorkerUnregisterCallback aCallback, - in DOMString aScope); + in AString aScope); void sendNotificationClickEvent(in ACString aOriginSuffix, in ACString scope, diff --git a/dom/interfaces/base/nsITextInputProcessor.idl b/dom/interfaces/base/nsITextInputProcessor.idl index abe7eaa732571..468073f2373bb 100644 --- a/dom/interfaces/base/nsITextInputProcessor.idl +++ b/dom/interfaces/base/nsITextInputProcessor.idl @@ -327,7 +327,7 @@ interface nsITextInputProcessor : nsISupports * Note that if you need to commit or cancel composition, use * commitComposition(), commitCompositionWith() or cancelComposition(). */ - void setPendingCompositionString(in DOMString aString); + void setPendingCompositionString(in AString aString); // ATTR_RAW_CLAUSE means that the clause hasn't been selected nor converted // yet. @@ -454,7 +454,7 @@ interface nsITextInputProcessor : nsISupports * false. */ [optional_argc] - boolean commitCompositionWith(in DOMString aCommitString, + boolean commitCompositionWith(in AString aCommitString, [optional] in Event aKeyboardEvent, [optional] in unsigned long aKeyFlags); @@ -592,7 +592,7 @@ interface nsITextInputProcessor : nsISupports * @return true if the modifier key is active. Otherwise, * false. */ - boolean getModifierState(in DOMString aModifierKey); + boolean getModifierState(in AString aModifierKey); /** * shareModifierStateOf() makes the instance shares modifier state of diff --git a/dom/interfaces/notification/nsINotificationStorage.idl b/dom/interfaces/notification/nsINotificationStorage.idl index 5edbcac3c01a5..306577b931859 100644 --- a/dom/interfaces/notification/nsINotificationStorage.idl +++ b/dom/interfaces/notification/nsINotificationStorage.idl @@ -19,16 +19,16 @@ interface nsINotificationStorageCallback : nsISupports * @param body: the notification body * @param tag: the notification tag */ - void handle(in DOMString id, - in DOMString title, - in DOMString dir, - in DOMString lang, - in DOMString body, - in DOMString tag, - in DOMString icon, - in DOMString data, - in DOMString behavior, - in DOMString serviceWorkerRegistrationScope); + void handle(in AString id, + in AString title, + in AString dir, + in AString lang, + in AString body, + in AString tag, + in AString icon, + in AString data, + in AString behavior, + in AString serviceWorkerRegistrationScope); /** * Callback function used to notify C++ the we have returned @@ -65,18 +65,18 @@ interface nsINotificationStorage : nsISupports * May be empty. Only set for Notifications created by * showNotification(). */ - void put(in DOMString origin, - in DOMString id, - in DOMString title, - in DOMString dir, - in DOMString lang, - in DOMString body, - in DOMString tag, - in DOMString icon, - in DOMString alertName, - in DOMString data, - in DOMString behavior, - in DOMString serviceWorkerRegistrationScope); + void put(in AString origin, + in AString id, + in AString title, + in AString dir, + in AString lang, + in AString body, + in AString tag, + in AString icon, + in AString alertName, + in AString data, + in AString behavior, + in AString serviceWorkerRegistrationScope); /** * Retrieve a list of notifications. @@ -86,8 +86,8 @@ interface nsINotificationStorage : nsISupports * @param callback: nsINotificationStorageCallback, used for * returning notifications objects */ - void get(in DOMString origin, - in DOMString tag, + void get(in AString origin, + in AString tag, in nsINotificationStorageCallback aCallback); /** @@ -100,8 +100,8 @@ interface nsINotificationStorage : nsISupports * called if that ID is not found. Done() will be called right after * Handle(). */ - void getByID(in DOMString origin, - in DOMString id, + void getByID(in AString origin, + in AString id, in nsINotificationStorageCallback aCallback); /** @@ -110,8 +110,8 @@ interface nsINotificationStorage : nsISupports * @param origin: the origin/app to delete the notification from * @param id: the uuid for the notification to delete */ - void delete(in DOMString origin, - in DOMString id); + void delete(in AString origin, + in AString id); /** * Notifications are not supposed to be persistent, according to spec, at @@ -125,7 +125,7 @@ interface nsINotificationStorage : nsISupports * * @return boolean */ - boolean canPut(in DOMString origin); + boolean canPut(in AString origin); }; %{C++ diff --git a/dom/interfaces/push/nsIPushErrorReporter.idl b/dom/interfaces/push/nsIPushErrorReporter.idl index d9cef82ea67e7..da190794a2e1d 100644 --- a/dom/interfaces/push/nsIPushErrorReporter.idl +++ b/dom/interfaces/push/nsIPushErrorReporter.idl @@ -40,6 +40,6 @@ interface nsIPushErrorReporter : nsISupports * an opaque string passed to `nsIPushNotifier.notifyPush{WithData}`. * |reason| is a delivery error reason. */ - void reportDeliveryError(in DOMString messageId, + void reportDeliveryError(in AString messageId, [optional] in uint16_t reason); }; diff --git a/dom/interfaces/push/nsIPushNotifier.idl b/dom/interfaces/push/nsIPushNotifier.idl index b29e73056a1f8..c15efcf1fddf4 100644 --- a/dom/interfaces/push/nsIPushNotifier.idl +++ b/dom/interfaces/push/nsIPushNotifier.idl @@ -30,7 +30,7 @@ interface nsIPushNotifier : nsISupports * used to report errors if the worker fails to handle the message. */ void notifyPush(in ACString scope, in nsIPrincipal principal, - in DOMString messageId); + in AString messageId); /** * Same as `notifyPush`, except the subject of the observer notification @@ -38,7 +38,7 @@ interface nsIPushNotifier : nsISupports * workers can access the |data| via the `PushMessageData` WebIDL interface. */ void notifyPushWithData(in ACString scope, in nsIPrincipal principal, - in DOMString messageId, + in AString messageId, [optional] in uint32_t dataLen, [array, size_is(dataLen)] in uint8_t data); @@ -61,7 +61,7 @@ interface nsIPushNotifier : nsISupports void notifySubscriptionModified(in ACString scope, in nsIPrincipal principal); void notifyError(in ACString scope, in nsIPrincipal principal, - in DOMString message, in uint32_t flags); + in AString message, in uint32_t flags); }; /** @@ -72,7 +72,7 @@ interface nsIPushNotifier : nsISupports interface nsIPushData : nsISupports { /** Extracts the data as a UTF-8 text string. */ - DOMString text(); + AString text(); /** Extracts the data as a JSON value. */ [implicit_jscontext] jsval json(); diff --git a/dom/interfaces/push/nsIPushService.idl b/dom/interfaces/push/nsIPushService.idl index 920169d3546b6..72812dc1839ca 100644 --- a/dom/interfaces/push/nsIPushService.idl +++ b/dom/interfaces/push/nsIPushService.idl @@ -14,7 +14,7 @@ interface nsIPrincipal; [scriptable, uuid(1de32d5c-ea88-4c9e-9626-b032bd87f415)] interface nsIPushSubscription : nsISupports { - readonly attribute DOMString endpoint; + readonly attribute AString endpoint; readonly attribute long long pushCount; readonly attribute long long lastPush; readonly attribute long quota; @@ -24,7 +24,7 @@ interface nsIPushSubscription : nsISupports bool quotaApplies(); bool isExpired(); - void getKey(in DOMString name, + void getKey(in AString name, [optional] out uint32_t keyLen, [array, size_is(keyLen), retval] out uint8_t key); }; @@ -76,9 +76,9 @@ interface nsIPushClearResultCallback : nsISupports interface nsIPushService : nsISupports { /** Observer topic names, exported for convenience. */ - readonly attribute DOMString pushTopic; - readonly attribute DOMString subscriptionChangeTopic; - readonly attribute DOMString subscriptionModifiedTopic; + readonly attribute AString pushTopic; + readonly attribute AString subscriptionChangeTopic; + readonly attribute AString subscriptionModifiedTopic; /** * Creates a push subscription for the given |scope| URL and |principal|. @@ -96,7 +96,7 @@ interface nsIPushService : nsISupports * |scope|. Servers may drop subscriptions at any time, so callers should * recreate subscriptions if desired. */ - void subscribe(in DOMString scope, in nsIPrincipal principal, + void subscribe(in AString scope, in nsIPrincipal principal, in nsIPushSubscriptionCallback callback); /** @@ -104,7 +104,7 @@ interface nsIPushService : nsISupports * application server must use the corresponding private key to authenticate * message delivery requests, as described in draft-thomson-webpush-vapid. */ - void subscribeWithKey(in DOMString scope, in nsIPrincipal principal, + void subscribeWithKey(in AString scope, in nsIPrincipal principal, in uint32_t keyLength, [const, array, size_is(keyLength)] in uint8_t key, in nsIPushSubscriptionCallback callback); @@ -112,7 +112,7 @@ interface nsIPushService : nsISupports /** * Removes a push subscription for the given |scope|. */ - void unsubscribe(in DOMString scope, in nsIPrincipal principal, + void unsubscribe(in AString scope, in nsIPrincipal principal, in nsIUnsubscribeResultCallback callback); /** @@ -120,14 +120,14 @@ interface nsIPushService : nsISupports * |(scope, principal)| pair. If the subscription does not exist, the * callback will receive |null| as the second argument. */ - void getSubscription(in DOMString scope, in nsIPrincipal principal, + void getSubscription(in AString scope, in nsIPrincipal principal, in nsIPushSubscriptionCallback callback); /** * Drops every subscription for the given |domain|, or all domains if * |domain| is "*". */ - void clearForDomain(in DOMString domain, + void clearForDomain(in AString domain, in nsIPushClearResultCallback callback); }; diff --git a/dom/interfaces/sidebar/nsIWebContentHandlerRegistrar.idl b/dom/interfaces/sidebar/nsIWebContentHandlerRegistrar.idl index be245955aeef6..dd6a41d1f60f0 100644 --- a/dom/interfaces/sidebar/nsIWebContentHandlerRegistrar.idl +++ b/dom/interfaces/sidebar/nsIWebContentHandlerRegistrar.idl @@ -25,9 +25,9 @@ interface nsIWebContentHandlerRegistrar : nsISupports * The additional contentWindow param for this method represents the dom * content window from which the method has been called. */ - void registerProtocolHandler(in DOMString protocol, - in DOMString uri, - in DOMString title, + void registerProtocolHandler(in AString protocol, + in AString uri, + in AString title, in nsISupports windowOrBrowser); /** * Removes a registered protocol handler diff --git a/dom/interfaces/storage/nsIDOMStorageManager.idl b/dom/interfaces/storage/nsIDOMStorageManager.idl index fb3d3f96efe4b..aad0aa2ba9da3 100644 --- a/dom/interfaces/storage/nsIDOMStorageManager.idl +++ b/dom/interfaces/storage/nsIDOMStorageManager.idl @@ -46,7 +46,7 @@ interface nsIDOMStorageManager : nsISupports */ Storage createStorage(in mozIDOMWindow aWindow, in nsIPrincipal aPrincipal, - in DOMString aDocumentURI, + in AString aDocumentURI, [optional] in bool aPrivate); /** * Returns instance of DOM storage object for given principal. diff --git a/dom/interfaces/xul/nsIDOMXULButtonElement.idl b/dom/interfaces/xul/nsIDOMXULButtonElement.idl index bb1204893ac44..b8794a72a738b 100644 --- a/dom/interfaces/xul/nsIDOMXULButtonElement.idl +++ b/dom/interfaces/xul/nsIDOMXULButtonElement.idl @@ -7,8 +7,8 @@ [scriptable, uuid(6ed53cfb-9e59-424c-af8d-e74582381951)] interface nsIDOMXULButtonElement : nsIDOMXULControlElement { - attribute DOMString type; - attribute DOMString dlgType; + attribute AString type; + attribute AString dlgType; // For buttons of type="menu" only. attribute boolean open; @@ -17,5 +17,5 @@ interface nsIDOMXULButtonElement : nsIDOMXULControlElement { attribute boolean checked; // For buttons of type="radio" only. - attribute DOMString group; + attribute AString group; }; diff --git a/dom/interfaces/xul/nsIDOMXULCommandDispatcher.idl b/dom/interfaces/xul/nsIDOMXULCommandDispatcher.idl index ec7861f338a32..a38d06961d6ee 100644 --- a/dom/interfaces/xul/nsIDOMXULCommandDispatcher.idl +++ b/dom/interfaces/xul/nsIDOMXULCommandDispatcher.idl @@ -18,11 +18,11 @@ interface nsIDOMXULCommandDispatcher : nsISupports attribute mozIDOMWindowProxy focusedWindow; void addCommandUpdater(in Element updater, - in DOMString events, - in DOMString targets); + in AString events, + in AString targets); void removeCommandUpdater(in Element updater); - void updateCommands(in DOMString eventName); + void updateCommands(in AString eventName); nsIController getControllerForCommand(in string command); nsIControllers getControllers(); diff --git a/dom/interfaces/xul/nsIDOMXULMenuListElement.idl b/dom/interfaces/xul/nsIDOMXULMenuListElement.idl index f5fb0dd6b6265..639fe099c2ec8 100644 --- a/dom/interfaces/xul/nsIDOMXULMenuListElement.idl +++ b/dom/interfaces/xul/nsIDOMXULMenuListElement.idl @@ -13,10 +13,10 @@ interface nsIDOMXULMenuListElement : nsIDOMXULSelectControlElement { attribute boolean open; // label of selected option or value of textfield for editable menu lists - readonly attribute DOMString label; + readonly attribute AString label; - attribute DOMString crop; - attribute DOMString image; + attribute AString crop; + attribute AString image; // For editable menu lists only. readonly attribute Element inputField; diff --git a/dom/interfaces/xul/nsIDOMXULMultSelectCntrlEl.idl b/dom/interfaces/xul/nsIDOMXULMultSelectCntrlEl.idl index a09c34bfe3460..db77e405b09c6 100644 --- a/dom/interfaces/xul/nsIDOMXULMultSelectCntrlEl.idl +++ b/dom/interfaces/xul/nsIDOMXULMultSelectCntrlEl.idl @@ -10,7 +10,7 @@ webidl NodeList; [scriptable, uuid(40654a10-8204-4f06-9f21-7baa31c7b1dd)] interface nsIDOMXULMultiSelectControlElement : nsIDOMXULSelectControlElement { - attribute DOMString selType; + attribute AString selType; attribute nsIDOMXULSelectControlItemElement currentItem; attribute long currentIndex; diff --git a/dom/interfaces/xul/nsIDOMXULSelectCntrlEl.idl b/dom/interfaces/xul/nsIDOMXULSelectCntrlEl.idl index ddefa8546b42b..11a03ad77b282 100644 --- a/dom/interfaces/xul/nsIDOMXULSelectCntrlEl.idl +++ b/dom/interfaces/xul/nsIDOMXULSelectCntrlEl.idl @@ -11,7 +11,7 @@ interface nsIDOMXULSelectControlElement : nsIDOMXULControlElement { attribute nsIDOMXULSelectControlItemElement selectedItem; attribute long selectedIndex; - attribute DOMString value; + attribute AString value; readonly attribute unsigned long itemCount; long getIndexOfItem(in nsIDOMXULSelectControlItemElement item); diff --git a/dom/interfaces/xul/nsIDOMXULSelectCntrlItemEl.idl b/dom/interfaces/xul/nsIDOMXULSelectCntrlItemEl.idl index 69be8cb4ec84a..fa1cdf758ec52 100644 --- a/dom/interfaces/xul/nsIDOMXULSelectCntrlItemEl.idl +++ b/dom/interfaces/xul/nsIDOMXULSelectCntrlItemEl.idl @@ -9,13 +9,13 @@ interface nsIDOMXULSelectControlElement; [scriptable, uuid(5c6be58f-17df-4750-88a5-4a59ac28adc9)] interface nsIDOMXULSelectControlItemElement : nsISupports { attribute boolean disabled; - attribute DOMString crop; - attribute DOMString image; - attribute DOMString label; - attribute DOMString accessKey; - attribute DOMString command; + attribute AString crop; + attribute AString image; + attribute AString label; + attribute AString accessKey; + attribute AString command; - attribute DOMString value; + attribute AString value; readonly attribute boolean selected; diff --git a/dom/media/gmp/mozIGeckoMediaPluginChromeService.idl b/dom/media/gmp/mozIGeckoMediaPluginChromeService.idl index 9e32864855180..325c8acbb7572 100644 --- a/dom/media/gmp/mozIGeckoMediaPluginChromeService.idl +++ b/dom/media/gmp/mozIGeckoMediaPluginChromeService.idl @@ -34,7 +34,7 @@ interface mozIGeckoMediaPluginChromeService : nsISupports * pattern in JSON format. */ void forgetThisSite(in AString site, - in DOMString aPattern); + in AString aPattern); /** * Returns true if the given node id is allowed to store things diff --git a/dom/media/nsIAudioDeviceInfo.idl b/dom/media/nsIAudioDeviceInfo.idl index 507c4d39c4d1c..f0a1853875d20 100644 --- a/dom/media/nsIAudioDeviceInfo.idl +++ b/dom/media/nsIAudioDeviceInfo.idl @@ -8,11 +8,11 @@ [scriptable, uuid(feb979a8-f8cc-4522-9dff-6c055ca50762)] interface nsIAudioDeviceInfo : nsISupports { - readonly attribute DOMString name; + readonly attribute AString name; - readonly attribute DOMString groupId; + readonly attribute AString groupId; - readonly attribute DOMString vendor; + readonly attribute AString vendor; // type: Unknown/Input/Output const unsigned short TYPE_UNKNOWN = 0; diff --git a/dom/media/nsIDOMNavigatorUserMedia.idl b/dom/media/nsIDOMNavigatorUserMedia.idl index 7030d0eea0e54..a4031d4658acb 100644 --- a/dom/media/nsIDOMNavigatorUserMedia.idl +++ b/dom/media/nsIDOMNavigatorUserMedia.idl @@ -8,11 +8,11 @@ [scriptable, builtinclass, uuid(ba3b2e08-1c07-4cd3-8822-f4d7e35ff2ae)] interface nsIMediaDevice : nsISupports { - readonly attribute DOMString type; - readonly attribute DOMString name; - readonly attribute DOMString id; - readonly attribute DOMString mediaSource; - readonly attribute DOMString rawId; + readonly attribute AString type; + readonly attribute AString name; + readonly attribute AString id; + readonly attribute AString mediaSource; + readonly attribute AString rawId; readonly attribute boolean scary; }; diff --git a/dom/media/webspeech/synth/nsISpeechService.idl b/dom/media/webspeech/synth/nsISpeechService.idl index 879469ae2e71e..b69973b6d2572 100644 --- a/dom/media/webspeech/synth/nsISpeechService.idl +++ b/dom/media/webspeech/synth/nsISpeechService.idl @@ -92,7 +92,7 @@ interface nsISpeechTask : nsISupports * @param aCharIndex offset of spoken characters. * @param aCharLength length of text in boundary event to be spoken. */ - [optional_argc] void dispatchBoundary(in DOMString aName, in float aElapsedTime, + [optional_argc] void dispatchBoundary(in AString aName, in float aElapsedTime, in unsigned long aCharIndex, [optional] in unsigned long aCharLength); @@ -103,7 +103,7 @@ interface nsISpeechTask : nsISupports * @param aElapsedTime time in seconds since speech has started. * @param aCharIndex offset of spoken characters. */ - void dispatchMark(in DOMString aName, in float aElapsedTime, in unsigned long aCharIndex); + void dispatchMark(in AString aName, in float aElapsedTime, in unsigned long aCharIndex); }; /** @@ -131,7 +131,7 @@ interface nsISpeechService : nsISupports * @param aTask task instance for utterance, used for sending events or audio * data back to browser. */ - void speak(in DOMString aText, in DOMString aUri, + void speak(in AString aText, in AString aUri, in float aVolume, in float aRate, in float aPitch, in nsISpeechTask aTask); }; diff --git a/dom/media/webspeech/synth/nsISynthVoiceRegistry.idl b/dom/media/webspeech/synth/nsISynthVoiceRegistry.idl index cc0a5e1c63336..8dd3a0426c75c 100644 --- a/dom/media/webspeech/synth/nsISynthVoiceRegistry.idl +++ b/dom/media/webspeech/synth/nsISynthVoiceRegistry.idl @@ -20,8 +20,8 @@ interface nsISynthVoiceRegistry : nsISupports * @param aLocalService true if service does not require network. * @param aQueuesUtterances true if voice only speaks one utterance at a time */ - void addVoice(in nsISpeechService aService, in DOMString aUri, - in DOMString aName, in DOMString aLang, + void addVoice(in nsISpeechService aService, in AString aUri, + in AString aName, in AString aLang, in boolean aLocalService, in boolean aQueuesUtterances); /** @@ -30,7 +30,7 @@ interface nsISynthVoiceRegistry : nsISupports * @param aService the service that was used to add the voice. * @param aUri a unique identifier of an existing voice. */ - void removeVoice(in nsISpeechService aService, in DOMString aUri); + void removeVoice(in nsISpeechService aService, in AString aUri); /** * Notify content of voice availability changes. This allows content @@ -44,19 +44,19 @@ interface nsISynthVoiceRegistry : nsISupports * @param aUri a unique identifier of an existing voice. * @param aIsDefault true if this voice should be toggled as default. */ - void setDefaultVoice(in DOMString aUri, in boolean aIsDefault); + void setDefaultVoice(in AString aUri, in boolean aIsDefault); readonly attribute uint32_t voiceCount; AString getVoice(in uint32_t aIndex); - bool isDefaultVoice(in DOMString aUri); + bool isDefaultVoice(in AString aUri); - bool isLocalVoice(in DOMString aUri); + bool isLocalVoice(in AString aUri); - AString getVoiceLang(in DOMString aUri); + AString getVoiceLang(in AString aUri); - AString getVoiceName(in DOMString aUri); + AString getVoiceName(in AString aUri); }; %{C++ diff --git a/dom/network/interfaces/nsITCPSocketCallback.idl b/dom/network/interfaces/nsITCPSocketCallback.idl index 5ab85dcc7a3ed..1c64b4c0fa1f3 100644 --- a/dom/network/interfaces/nsITCPSocketCallback.idl +++ b/dom/network/interfaces/nsITCPSocketCallback.idl @@ -33,13 +33,13 @@ interface nsITCPSocketCallback : nsISupports { void fireErrorEvent(in AString name, in AString type); // Dispatch a "data" event at this object with a string - void fireDataStringEvent(in DOMString type, in ACString data); + void fireDataStringEvent(in AString type, in ACString data); // Dispatch a "data" event at this object with an Array - void fireDataArrayEvent(in DOMString type, [const] in nsUint8TArrayRef data); + void fireDataArrayEvent(in AString type, [const] in nsUint8TArrayRef data); // Dispatch an event of the given type at this object. - void fireEvent(in DOMString type); + void fireEvent(in AString type); // Update the DOM object's readyState. // @param readyState diff --git a/dom/power/nsIDOMWakeLockListener.idl b/dom/power/nsIDOMWakeLockListener.idl index b837c3b0577d7..366e9cf594b6c 100644 --- a/dom/power/nsIDOMWakeLockListener.idl +++ b/dom/power/nsIDOMWakeLockListener.idl @@ -25,5 +25,5 @@ interface nsIDOMMozWakeLockListener : nsISupports * @param aTopic The resource name related to the wake lock. * @param aState The wake lock state */ - void callback(in DOMString aTopic, in DOMString aState); + void callback(in AString aTopic, in AString aState); }; diff --git a/dom/power/nsIPowerManagerService.idl b/dom/power/nsIPowerManagerService.idl index c565bf56326ca..4626c84354605 100644 --- a/dom/power/nsIPowerManagerService.idl +++ b/dom/power/nsIPowerManagerService.idl @@ -21,12 +21,12 @@ interface nsIPowerManagerService : nsISupports { void addWakeLockListener(in nsIDOMMozWakeLockListener aListener); void removeWakeLockListener(in nsIDOMMozWakeLockListener aListener); - DOMString getWakeLockState(in DOMString aTopic); + AString getWakeLockState(in AString aTopic); /** * Return a wake lock (MozWakeLock) object of aTopic associated with aWindow. * A wake lock without associated window, e.g. used in chrome, is * always considered invisible. */ - nsISupports newWakeLock(in DOMString aTopic, [optional] in mozIDOMWindow aWindow); + nsISupports newWakeLock(in AString aTopic, [optional] in mozIDOMWindow aWindow); }; diff --git a/dom/presentation/interfaces/nsIPresentationControlChannel.idl b/dom/presentation/interfaces/nsIPresentationControlChannel.idl index 669e4088ee78a..2b44fbd41279c 100644 --- a/dom/presentation/interfaces/nsIPresentationControlChannel.idl +++ b/dom/presentation/interfaces/nsIPresentationControlChannel.idl @@ -26,7 +26,7 @@ interface nsIPresentationChannelDescription: nsISupports // SDP for Data Channel. // Should only be used while type == TYPE_DATACHANNEL. - readonly attribute DOMString dataChannelSDP; + readonly attribute AString dataChannelSDP; }; /* @@ -51,7 +51,7 @@ interface nsIPresentationControlChannelListener: nsISupports * Callback for receiving ICE candidate from remote endpoint. * @param answer The received answer. */ - void onIceCandidate(in DOMString candidate); + void onIceCandidate(in AString candidate); /* * The callback for notifying channel connected. This should be async called @@ -105,7 +105,7 @@ interface nsIPresentationControlChannel: nsISupports * @param candidate The candidate to send * @throws NS_ERROR_FAILURE on failure */ - void sendIceCandidate(in DOMString candidate); + void sendIceCandidate(in AString candidate); /* * Launch a presentation on remote endpoint. @@ -113,14 +113,14 @@ interface nsIPresentationControlChannel: nsISupports * @param url The URL requested to open by remote device. * @throws NS_ERROR_FAILURE on failure */ - void launch(in DOMString presentationId, in DOMString url); + void launch(in AString presentationId, in AString url); /* * Terminate a presentation on remote endpoint. * @param presentationId The Id for representing this session. * @throws NS_ERROR_FAILURE on failure */ - void terminate(in DOMString presentationId); + void terminate(in AString presentationId); /* * Disconnect the control channel. @@ -135,5 +135,5 @@ interface nsIPresentationControlChannel: nsISupports * @param url The URL requested to open by remote device. * @throws NS_ERROR_FAILURE on failure */ - void reconnect(in DOMString presentationId, in DOMString url); + void reconnect(in AString presentationId, in AString url); }; diff --git a/dom/presentation/interfaces/nsIPresentationControlService.idl b/dom/presentation/interfaces/nsIPresentationControlService.idl index d4b967b003619..6602b49776bf1 100644 --- a/dom/presentation/interfaces/nsIPresentationControlService.idl +++ b/dom/presentation/interfaces/nsIPresentationControlService.idl @@ -55,8 +55,8 @@ interface nsIPresentationControlServerListener: nsISupports * @param aControlChannel The control channel for this session. */ void onSessionRequest(in nsITCPDeviceInfo aDeviceInfo, - in DOMString aUrl, - in DOMString aPresentationId, + in AString aUrl, + in AString aPresentationId, in nsIPresentationControlChannel aControlChannel); /** @@ -67,7 +67,7 @@ interface nsIPresentationControlServerListener: nsISupports * @param aIsFromReceiver true if termination is initiated by receiver. */ void onTerminateRequest(in nsITCPDeviceInfo aDeviceInfo, - in DOMString aPresentationId, + in AString aPresentationId, in nsIPresentationControlChannel aControlChannel, in boolean aIsFromReceiver); @@ -79,8 +79,8 @@ interface nsIPresentationControlServerListener: nsISupports * @param aControlChannel The control channel for this session. */ void onReconnectRequest(in nsITCPDeviceInfo aDeviceInfo, - in DOMString url, - in DOMString aPresentationId, + in AString url, + in AString aPresentationId, in nsIPresentationControlChannel aControlChannel); }; diff --git a/dom/presentation/interfaces/nsIPresentationDevice.idl b/dom/presentation/interfaces/nsIPresentationDevice.idl index 63e4a52ef6612..e70820270af73 100644 --- a/dom/presentation/interfaces/nsIPresentationDevice.idl +++ b/dom/presentation/interfaces/nsIPresentationDevice.idl @@ -37,7 +37,7 @@ interface nsIPresentationDevice : nsISupports * @params requestedUrl the designated URL for a presentation request. * @returns true if designated URL is supported. */ - boolean isRequestedUrlSupported(in DOMString requestedUrl); + boolean isRequestedUrlSupported(in AString requestedUrl); }; diff --git a/dom/presentation/interfaces/nsIPresentationDevicePrompt.idl b/dom/presentation/interfaces/nsIPresentationDevicePrompt.idl index 906adf4f17f95..9128b1cc7546f 100644 --- a/dom/presentation/interfaces/nsIPresentationDevicePrompt.idl +++ b/dom/presentation/interfaces/nsIPresentationDevicePrompt.idl @@ -21,7 +21,7 @@ webidl EventTarget; interface nsIPresentationDeviceRequest : nsISupports { // The origin which initiate the request. - readonly attribute DOMString origin; + readonly attribute AString origin; // The array of candidate URLs. readonly attribute nsIArray requestURLs; diff --git a/dom/presentation/interfaces/nsIPresentationDeviceProvider.idl b/dom/presentation/interfaces/nsIPresentationDeviceProvider.idl index b2c5e530cd0c3..15d09241ef7d6 100644 --- a/dom/presentation/interfaces/nsIPresentationDeviceProvider.idl +++ b/dom/presentation/interfaces/nsIPresentationDeviceProvider.idl @@ -29,8 +29,8 @@ interface nsIPresentationDeviceListener: nsISupports * @param controlChannel The control channel for this session. */ void onSessionRequest(in nsIPresentationDevice device, - in DOMString url, - in DOMString presentationId, + in AString url, + in AString presentationId, in nsIPresentationControlChannel controlChannel); /* @@ -41,7 +41,7 @@ interface nsIPresentationDeviceListener: nsISupports * @param aIsFromReceiver true if termination is initiated by receiver. */ void onTerminateRequest(in nsIPresentationDevice device, - in DOMString presentationId, + in AString presentationId, in nsIPresentationControlChannel controlChannel, in boolean aIsFromReceiver); @@ -53,8 +53,8 @@ interface nsIPresentationDeviceListener: nsISupports * @param controlChannel The control channel for this session. */ void onReconnectRequest(in nsIPresentationDevice device, - in DOMString url, - in DOMString presentationId, + in AString url, + in AString presentationId, in nsIPresentationControlChannel controlChannel); }; diff --git a/dom/presentation/interfaces/nsIPresentationListener.idl b/dom/presentation/interfaces/nsIPresentationListener.idl index 546c2fd4bf79f..a5b78f2d40f35 100644 --- a/dom/presentation/interfaces/nsIPresentationListener.idl +++ b/dom/presentation/interfaces/nsIPresentationListener.idl @@ -27,14 +27,14 @@ interface nsIPresentationSessionListener : nsISupports /* * Called when session state changes. */ - void notifyStateChange(in DOMString sessionId, + void notifyStateChange(in AString sessionId, in unsigned short state, in nsresult reason); /* * Called when receive messages. */ - void notifyMessage(in DOMString sessionId, + void notifyMessage(in AString sessionId, in ACString data, in boolean isBinary); }; @@ -46,5 +46,5 @@ interface nsIPresentationRespondingListener : nsISupports * Called when an incoming session connects. */ void notifySessionConnect(in unsigned long long windowId, - in DOMString sessionId); + in AString sessionId); }; diff --git a/dom/presentation/interfaces/nsIPresentationRequestUIGlue.idl b/dom/presentation/interfaces/nsIPresentationRequestUIGlue.idl index 5f6d2d5622642..162ffb0ad8968 100644 --- a/dom/presentation/interfaces/nsIPresentationRequestUIGlue.idl +++ b/dom/presentation/interfaces/nsIPresentationRequestUIGlue.idl @@ -23,7 +23,7 @@ interface nsIPresentationRequestUIGlue : nsISupports * * @return A promise that resolves to the opening frame. */ - Promise sendRequest(in DOMString url, - in DOMString sessionId, + Promise sendRequest(in AString url, + in AString sessionId, in nsIPresentationDevice device); }; diff --git a/dom/presentation/interfaces/nsIPresentationService.idl b/dom/presentation/interfaces/nsIPresentationService.idl index 16f548a8bf29d..f1bf7ef9c258d 100644 --- a/dom/presentation/interfaces/nsIPresentationService.idl +++ b/dom/presentation/interfaces/nsIPresentationService.idl @@ -36,7 +36,7 @@ interface nsIPresentationServiceCallback : nsISupports * * @param url: the selected request url used to start or reconnect a session. */ - void notifySuccess(in DOMString url); + void notifySuccess(in AString url); /* * Called when the operation fails. @@ -80,9 +80,9 @@ interface nsIPresentationService : nsISupports * @param constructor: The constructor for creating a transport builder. */ [noscript] void startSession(in URLArrayRef urls, - in DOMString sessionId, - in DOMString origin, - in DOMString deviceId, + in AString sessionId, + in AString origin, + in AString deviceId, in unsigned long long windowId, in EventTarget eventTarget, in nsIPrincipal principal, @@ -96,9 +96,9 @@ interface nsIPresentationService : nsISupports * @param role: Identify the function called by controller or receiver. * @param data: the message being sent out. */ - void sendSessionMessage(in DOMString sessionId, - in uint8_t role, - in DOMString data); + void sendSessionMessage(in AString sessionId, + in uint8_t role, + in AString data); /* * Send the binary message to the session. @@ -107,7 +107,7 @@ interface nsIPresentationService : nsISupports * @param role: Identify the function called by controller or receiver. * @param data: the message being sent out. */ - void sendSessionBinaryMsg(in DOMString sessionId, + void sendSessionBinaryMsg(in AString sessionId, in uint8_t role, in ACString data); @@ -118,7 +118,7 @@ interface nsIPresentationService : nsISupports * @param role: Identify the function called by controller or receiver. * @param blob: The input blob to be sent. */ - void sendSessionBlob(in DOMString sessionId, + void sendSessionBlob(in AString sessionId, in uint8_t role, in Blob blob); @@ -128,7 +128,7 @@ interface nsIPresentationService : nsISupports * @param sessionId: An ID to identify presentation session. * @param role: Identify the function called by controller or receiver. */ - void closeSession(in DOMString sessionId, + void closeSession(in AString sessionId, in uint8_t role, in uint8_t closedReason); @@ -138,7 +138,7 @@ interface nsIPresentationService : nsISupports * @param sessionId: An ID to identify presentation session. * @param role: Identify the function called by controller or receiver. */ - void terminateSession(in DOMString sessionId, + void terminateSession(in AString sessionId, in uint8_t role); /* @@ -152,7 +152,7 @@ interface nsIPresentationService : nsISupports * Otherwise, NotifyError() is called with a error message. */ [noscript] void reconnectSession(in URLArrayRef urls, - in DOMString sessionId, + in AString sessionId, in uint8_t role, in nsIPresentationServiceCallback callback); @@ -183,7 +183,7 @@ interface nsIPresentationService : nsISupports * @param role: Identify the function called by controller or receiver. * @param listener: The listener to register. */ - void registerSessionListener(in DOMString sessionId, + void registerSessionListener(in AString sessionId, in uint8_t role, in nsIPresentationSessionListener listener); @@ -193,7 +193,7 @@ interface nsIPresentationService : nsISupports * @param sessionId: An ID to identify presentation session. * @param role: Identify the function called by controller or receiver. */ - void unregisterSessionListener(in DOMString sessionId, + void unregisterSessionListener(in AString sessionId, in uint8_t role); /* @@ -220,7 +220,7 @@ interface nsIPresentationService : nsISupports * @param isLoading true if receiver page is loading successfully. * @param constructor: The constructor for creating a transport builder. */ - void notifyReceiverReady(in DOMString sessionId, + void notifyReceiverReady(in AString sessionId, in unsigned long long windowId, in boolean isLoading, in nsIPresentationTransportBuilderConstructor constructor); @@ -232,7 +232,7 @@ interface nsIPresentationService : nsISupports * @param role: Identify the function called by controller or receiver. * @param reason: the error message. NS_OK indicates it is closed normally. */ - void NotifyTransportClosed(in DOMString sessionId, + void NotifyTransportClosed(in AString sessionId, in uint8_t role, in nsresult reason); @@ -242,7 +242,7 @@ interface nsIPresentationService : nsISupports * @param sessionId: An ID to identify presentation session. * @param role: Identify the function called by controller or receiver. */ - void untrackSessionInfo(in DOMString sessionId, in uint8_t role); + void untrackSessionInfo(in AString sessionId, in uint8_t role); /* * The windowId for building RTCDataChannel session transport @@ -250,7 +250,7 @@ interface nsIPresentationService : nsISupports * @param sessionId: An ID to identify presentation session. * @param role: Identify the function called by controller or receiver. */ - unsigned long long getWindowIdBySessionId(in DOMString sessionId, + unsigned long long getWindowIdBySessionId(in AString sessionId, in uint8_t role); /* @@ -261,7 +261,7 @@ interface nsIPresentationService : nsISupports * @param windowId: The inner window ID associated with the presentation * session. */ - void updateWindowIdBySessionId(in DOMString sessionId, + void updateWindowIdBySessionId(in AString sessionId, in uint8_t role, in unsigned long long windowId); @@ -272,5 +272,5 @@ interface nsIPresentationService : nsISupports * @param sessionId: An ID to identify presentation session. * @param role: Identify the function called by controller or receiver. */ - void buildTransport(in DOMString sessionId, in uint8_t role); + void buildTransport(in AString sessionId, in uint8_t role); }; diff --git a/dom/presentation/interfaces/nsIPresentationSessionRequest.idl b/dom/presentation/interfaces/nsIPresentationSessionRequest.idl index 45a0e314cb225..a145aaeed7e4b 100644 --- a/dom/presentation/interfaces/nsIPresentationSessionRequest.idl +++ b/dom/presentation/interfaces/nsIPresentationSessionRequest.idl @@ -25,10 +25,10 @@ interface nsIPresentationSessionRequest: nsISupports readonly attribute nsIPresentationDevice device; // The URL requested to open by remote device. - readonly attribute DOMString url; + readonly attribute AString url; // The Id for representing this session. - readonly attribute DOMString presentationId; + readonly attribute AString presentationId; // The control channel for this session. readonly attribute nsIPresentationControlChannel controlChannel; diff --git a/dom/presentation/interfaces/nsIPresentationSessionTransport.idl b/dom/presentation/interfaces/nsIPresentationSessionTransport.idl index cd73b32ecc464..f5b7187b21efe 100644 --- a/dom/presentation/interfaces/nsIPresentationSessionTransport.idl +++ b/dom/presentation/interfaces/nsIPresentationSessionTransport.idl @@ -48,7 +48,7 @@ interface nsIPresentationSessionTransport : nsISupports * Send message to the remote endpoint. * @param data The message to send. */ - void send(in DOMString data); + void send(in AString data); /* * Send the binary message to the remote endpoint. diff --git a/dom/presentation/interfaces/nsIPresentationSessionTransportBuilder.idl b/dom/presentation/interfaces/nsIPresentationSessionTransportBuilder.idl index 969f37d71391c..4b9d46db98d92 100644 --- a/dom/presentation/interfaces/nsIPresentationSessionTransportBuilder.idl +++ b/dom/presentation/interfaces/nsIPresentationSessionTransportBuilder.idl @@ -19,7 +19,7 @@ interface nsIPresentationSessionTransportBuilderListener : nsISupports void sendOffer(in nsIPresentationChannelDescription offer); void sendAnswer(in nsIPresentationChannelDescription answer); - void sendIceCandidate(in DOMString candidate); + void sendIceCandidate(in AString candidate); void close(in nsresult reason); }; @@ -75,6 +75,6 @@ interface nsIPresentationDataChannelSessionTransportBuilder : nsIPresentationSes // Bug 1275150 - Merge TCP builder with the following APIs void onOffer(in nsIPresentationChannelDescription offer); void onAnswer(in nsIPresentationChannelDescription answer); - void onIceCandidate(in DOMString candidate); + void onIceCandidate(in AString candidate); void notifyDisconnected(in nsresult reason); }; diff --git a/dom/presentation/interfaces/nsIPresentationTerminateRequest.idl b/dom/presentation/interfaces/nsIPresentationTerminateRequest.idl index a9f86fa0d9c0a..cbfd486e9e44f 100644 --- a/dom/presentation/interfaces/nsIPresentationTerminateRequest.idl +++ b/dom/presentation/interfaces/nsIPresentationTerminateRequest.idl @@ -22,7 +22,7 @@ interface nsIPresentationTerminateRequest: nsISupports readonly attribute nsIPresentationDevice device; // The Id for representing this session. - readonly attribute DOMString presentationId; + readonly attribute AString presentationId; // The control channel for this session. // Should only use this channel to complete session termination. diff --git a/dom/workers/nsIWorkerDebugger.idl b/dom/workers/nsIWorkerDebugger.idl index f8144f3da9c0f..d0955338609a7 100644 --- a/dom/workers/nsIWorkerDebugger.idl +++ b/dom/workers/nsIWorkerDebugger.idl @@ -8,10 +8,10 @@ interface nsIWorkerDebuggerListener : nsISupports { void onClose(); - void onError(in DOMString filename, in unsigned long lineno, - in DOMString message); + void onError(in AString filename, in unsigned long lineno, + in AString message); - void onMessage(in DOMString message); + void onMessage(in AString message); }; [scriptable, builtinclass, uuid(22f93aa3-8a05-46be-87e0-fa93bf8a8eff)] @@ -31,7 +31,7 @@ interface nsIWorkerDebugger : nsISupports readonly attribute unsigned long type; - readonly attribute DOMString url; + readonly attribute AString url; readonly attribute mozIDOMWindow window; @@ -39,10 +39,10 @@ interface nsIWorkerDebugger : nsISupports readonly attribute unsigned long serviceWorkerID; - void initialize(in DOMString url); + void initialize(in AString url); [binaryname(PostMessageMoz)] - void postMessage(in DOMString message); + void postMessage(in AString message); void addListener(in nsIWorkerDebuggerListener listener); diff --git a/dom/xslt/txIEXSLTRegExFunctions.idl b/dom/xslt/txIEXSLTRegExFunctions.idl index 28d1a90589bd8..e91d166ad5512 100644 --- a/dom/xslt/txIEXSLTRegExFunctions.idl +++ b/dom/xslt/txIEXSLTRegExFunctions.idl @@ -11,11 +11,11 @@ webidl DocumentFragment; [scriptable, uuid(c180e993-aced-4839-95a0-ecd5ff138be9)] interface txIEXSLTRegExFunctions : nsISupports { - DocumentFragment match(in DOMString aString, in DOMString aRegEx, - in DOMString aFlags, + DocumentFragment match(in AString aString, in AString aRegEx, + in AString aFlags, in Document aResultDocument); - DOMString replace(in DOMString aString, in DOMString aRegEx, - in DOMString aFlags, in DOMString aReplace); - boolean test(in DOMString aString, in DOMString aRegEx, - in DOMString aFlags); + AString replace(in AString aString, in AString aRegEx, + in AString aFlags, in AString aReplace); + boolean test(in AString aString, in AString aRegEx, + in AString aFlags); }; diff --git a/editor/nsIEditActionListener.idl b/editor/nsIEditActionListener.idl index e2fb4d13c96b1..7ba1a5050a202 100644 --- a/editor/nsIEditActionListener.idl +++ b/editor/nsIEditActionListener.idl @@ -35,7 +35,7 @@ interface nsIEditActionListener : nsISupports * @param aNewNode The DOM Node that was created. * @param aResult The result of the create node operation. */ - void DidCreateNode(in DOMString aTag, + void DidCreateNode(in AString aTag, in Node aNewNode, in nsresult aResult); @@ -87,7 +87,7 @@ interface nsIEditActionListener : nsISupports */ void DidInsertText(in CharacterData aTextNode, in long aOffset, - in DOMString aString, + in AString aString, in nsresult aResult); /** diff --git a/editor/nsIEditor.idl b/editor/nsIEditor.idl index 0245ecc6fd7dd..ae469365ed27f 100644 --- a/editor/nsIEditor.idl +++ b/editor/nsIEditor.idl @@ -57,7 +57,7 @@ interface nsIEditor : nsISupports in AString sourceAttrValue, in boolean aSuppressTransaction); void removeAttributeOrEquivalent(in Element element, - in DOMString sourceAttrName, + in AString sourceAttrName, in boolean aSuppressTransaction); /** edit flags for this editor. May be set at any time. */ diff --git a/editor/nsIPlaintextEditor.idl b/editor/nsIPlaintextEditor.idl index 66a8793706d23..e27d77e667327 100644 --- a/editor/nsIPlaintextEditor.idl +++ b/editor/nsIPlaintextEditor.idl @@ -94,7 +94,7 @@ interface nsIPlaintextEditor : nsISupports * * @param aString the string to be inserted */ - void insertText(in DOMString aStringToInsert); + void insertText(in AString aStringToInsert); /** * Insert a line break into the content model. diff --git a/editor/nsIURIRefObject.idl b/editor/nsIURIRefObject.idl index 4f8647949632a..21aa06253e226 100644 --- a/editor/nsIURIRefObject.idl +++ b/editor/nsIURIRefObject.idl @@ -29,7 +29,7 @@ interface nsIURIRefObject : nsISupports /** * Return the next rewritable URI. */ - DOMString GetNextURI(); + AString GetNextURI(); /** * Go back to the beginning of the attribute list @@ -38,6 +38,6 @@ interface nsIURIRefObject : nsISupports * @param aNewPat New pattern to be replaced, e.g. http://mypage.aol.com/ * @param aMakeRel Rewrite links as relative vs. absolute */ - void RewriteAllURIs(in DOMString aOldPat, in DOMString aNewPat, + void RewriteAllURIs(in AString aOldPat, in AString aNewPat, in boolean aMakeRel); }; diff --git a/intl/l10n/mozIDOMLocalization.idl b/intl/l10n/mozIDOMLocalization.idl index 2d87668f5301f..17a1dde5f25c7 100644 --- a/intl/l10n/mozIDOMLocalization.idl +++ b/intl/l10n/mozIDOMLocalization.idl @@ -18,7 +18,7 @@ interface mozIDOMLocalization : nsISupports Promise formatMessages(in Array aKeys); Promise formatValues(in Array aKeys); - Promise formatValue(in DOMString aId, [optional] in jsval aArgs); + Promise formatValue(in AString aId, [optional] in jsval aArgs); Promise translateFragment(in Node aNode); Promise translateElements(in Array aElements); diff --git a/netwerk/base/nsIPermissionManager.idl b/netwerk/base/nsIPermissionManager.idl index e333a078ebcad..23948b300183a 100644 --- a/netwerk/base/nsIPermissionManager.idl +++ b/netwerk/base/nsIPermissionManager.idl @@ -292,7 +292,7 @@ interface nsIPermissionManager : nsISupports /** * Remove all permissions that will match the origin pattern. */ - void removePermissionsWithAttributes(in DOMString patternAsJSON); + void removePermissionsWithAttributes(in AString patternAsJSON); /** * If the current permission is set to expire, reset the expiration time. If diff --git a/netwerk/cookie/nsICookieManager.idl b/netwerk/cookie/nsICookieManager.idl index 96c1272f7daaf..ff9caba6ce079 100644 --- a/netwerk/cookie/nsICookieManager.idl +++ b/netwerk/cookie/nsICookieManager.idl @@ -228,7 +228,7 @@ interface nsICookieManager : nsISupports * acceptable host strings. This attribute is optional. It will search * all hosts if this attribute is not given. */ - nsISimpleEnumerator getCookiesWithOriginAttributes(in DOMString aPattern, + nsISimpleEnumerator getCookiesWithOriginAttributes(in AString aPattern, [optional] in AUTF8String aHost); /** @@ -236,6 +236,6 @@ interface nsICookieManager : nsISupports * * @param aPattern origin attribute pattern in JSON format */ - void removeCookiesWithOriginAttributes(in DOMString aPattern, + void removeCookiesWithOriginAttributes(in AString aPattern, [optional] in AUTF8String aHost); }; diff --git a/services/fxaccounts/interfaces/nsIFxAccountsUIGlue.idl b/services/fxaccounts/interfaces/nsIFxAccountsUIGlue.idl index 950fdbc25d3a2..37ef10e21fc42 100644 --- a/services/fxaccounts/interfaces/nsIFxAccountsUIGlue.idl +++ b/services/fxaccounts/interfaces/nsIFxAccountsUIGlue.idl @@ -11,5 +11,5 @@ interface nsIFxAccountsUIGlue : nsISupports jsval signInFlow(); // Returns a Promise. - jsval refreshAuthentication(in DOMString email); + jsval refreshAuthentication(in AString email); }; diff --git a/widget/nsIBaseWindow.idl b/widget/nsIBaseWindow.idl index dbb18f72b94df..04721404f686f 100644 --- a/widget/nsIBaseWindow.idl +++ b/widget/nsIBaseWindow.idl @@ -166,14 +166,14 @@ interface nsIBaseWindow : nsISupports /* This is the handle (HWND, GdkWindow*, ...) to the native window of the - control, exposed as a DOMString. + control, exposed as an AString. - @return DOMString in hex format with "0x" prepended, or empty string if + @return AString in hex format with "0x" prepended, or empty string if mainWidget undefined @throws NS_ERROR_NOT_IMPLEMENTED for non-XULWindows */ - readonly attribute DOMString nativeHandle; + readonly attribute AString nativeHandle; /* Attribute controls the visibility of the object behind this interface. diff --git a/widget/nsIGfxInfo.idl b/widget/nsIGfxInfo.idl index 137eb8b9f2c68..c9f8ff9e6ddc3 100644 --- a/widget/nsIGfxInfo.idl +++ b/widget/nsIGfxInfo.idl @@ -16,13 +16,13 @@ interface nsIGfxInfo : nsISupports readonly attribute boolean D2DEnabled; readonly attribute boolean DWriteEnabled; readonly attribute boolean usingGPUProcess; - readonly attribute DOMString DWriteVersion; - readonly attribute DOMString cleartypeParameters; + readonly attribute AString DWriteVersion; + readonly attribute AString cleartypeParameters; /* * These are valid across all platforms. */ - readonly attribute DOMString ContentBackend; + readonly attribute AString ContentBackend; readonly attribute boolean WebRenderEnabled; readonly attribute boolean isHeadless; readonly attribute boolean UsesTiling; @@ -35,33 +35,33 @@ interface nsIGfxInfo : nsISupports /** * The name of the display adapter. */ - readonly attribute DOMString adapterDescription; - readonly attribute DOMString adapterDescription2; + readonly attribute AString adapterDescription; + readonly attribute AString adapterDescription2; - readonly attribute DOMString adapterDriver; - readonly attribute DOMString adapterDriver2; + readonly attribute AString adapterDriver; + readonly attribute AString adapterDriver2; /* These types are inspired by DXGI_ADAPTER_DESC */ - readonly attribute DOMString adapterVendorID; - readonly attribute DOMString adapterVendorID2; + readonly attribute AString adapterVendorID; + readonly attribute AString adapterVendorID2; - readonly attribute DOMString adapterDeviceID; - readonly attribute DOMString adapterDeviceID2; + readonly attribute AString adapterDeviceID; + readonly attribute AString adapterDeviceID2; - readonly attribute DOMString adapterSubsysID; - readonly attribute DOMString adapterSubsysID2; + readonly attribute AString adapterSubsysID; + readonly attribute AString adapterSubsysID2; /** * The amount of RAM in MB in the display adapter. */ - readonly attribute DOMString adapterRAM; - readonly attribute DOMString adapterRAM2; + readonly attribute AString adapterRAM; + readonly attribute AString adapterRAM2; - readonly attribute DOMString adapterDriverVersion; - readonly attribute DOMString adapterDriverVersion2; + readonly attribute AString adapterDriverVersion; + readonly attribute AString adapterDriverVersion2; - readonly attribute DOMString adapterDriverDate; - readonly attribute DOMString adapterDriverDate2; + readonly attribute AString adapterDriverDate; + readonly attribute AString adapterDriverDate2; readonly attribute boolean isGPU2Active; @@ -172,7 +172,7 @@ interface nsIGfxInfo : nsISupports * Ask about a feature, return the minimum driver version required for it if its status is * FEATURE_BLOCKED_DRIVER_VERSION, otherwise return an empty string. */ - DOMString getFeatureSuggestedDriverVersion(in long aFeature); + AString getFeatureSuggestedDriverVersion(in long aFeature); // only useful on X11 [noscript, notxpcom] void GetData(); diff --git a/widget/nsIGfxInfoDebug.idl b/widget/nsIGfxInfoDebug.idl index fab30c4e9ed8b..9aeb0bb324846 100644 --- a/widget/nsIGfxInfoDebug.idl +++ b/widget/nsIGfxInfoDebug.idl @@ -10,10 +10,10 @@ [scriptable, uuid(ca7b0bc7-c67c-4b79-8270-ed7ba002af08)] interface nsIGfxInfoDebug : nsISupports { - void spoofVendorID(in DOMString aVendorID); - void spoofDeviceID(in DOMString aDeviceID); + void spoofVendorID(in AString aVendorID); + void spoofDeviceID(in AString aDeviceID); - void spoofDriverVersion(in DOMString aDriverVersion); + void spoofDriverVersion(in AString aDriverVersion); void spoofOSVersion(in unsigned long aVersion); }; diff --git a/widget/nsITaskbarPreview.idl b/widget/nsITaskbarPreview.idl index b246586f85780..623dd11b9459d 100644 --- a/widget/nsITaskbarPreview.idl +++ b/widget/nsITaskbarPreview.idl @@ -41,7 +41,7 @@ interface nsITaskbarPreview : nsISupports * * Default: an empty string */ - attribute DOMString tooltip; + attribute AString tooltip; /** * Whether or not the preview is visible. diff --git a/widget/nsITaskbarPreviewButton.idl b/widget/nsITaskbarPreviewButton.idl index 800d0bc208c8a..ef8358cf0127c 100644 --- a/widget/nsITaskbarPreviewButton.idl +++ b/widget/nsITaskbarPreviewButton.idl @@ -22,7 +22,7 @@ interface nsITaskbarPreviewButton : nsISupports * * Default: an empty string */ - attribute DOMString tooltip; + attribute AString tooltip; /** * True if the array of previews should be dismissed when this button is clicked. diff --git a/widget/nsITaskbarTabPreview.idl b/widget/nsITaskbarTabPreview.idl index 0b7ab03ccc12b..73a13913de958 100644 --- a/widget/nsITaskbarTabPreview.idl +++ b/widget/nsITaskbarTabPreview.idl @@ -28,7 +28,7 @@ interface nsITaskbarTabPreview : nsITaskbarPreview * * Default: an empty string */ - attribute DOMString title; + attribute AString title; /** * The icon displayed next to the title in the preview diff --git a/xpcom/system/nsIXULRuntime.idl b/xpcom/system/nsIXULRuntime.idl index 0b1320c4e7ec7..d196fcb0f14db 100644 --- a/xpcom/system/nsIXULRuntime.idl +++ b/xpcom/system/nsIXULRuntime.idl @@ -98,7 +98,7 @@ interface nsIXULRuntime : nsISupports * The type of remote content process we're running in. * null if we're in the parent/chrome process. */ - readonly attribute DOMString remoteType; + readonly attribute AString remoteType; /** * If true, browser tabs may be opened by default in a different process @@ -134,7 +134,7 @@ interface nsIXULRuntime : nsISupports /** * Executable of Windows service that activated accessibility. */ - readonly attribute DOMString accessibilityInstantiator; + readonly attribute AString accessibilityInstantiator; /** * Temporary, do not use. Indicates if an incompat version of JAWS