From a48079cd7255bf1a493480a68978faec9d1a3b6d Mon Sep 17 00:00:00 2001 From: Nika Layzell Date: Thu, 4 Apr 2024 18:45:21 +0000 Subject: [PATCH] Bug 1881863 - Part 1: Standardize on boolean over bool in xpidl, r=xpcom-reviewers,necko-reviewers,valentin,extension-reviewers,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,search-reviewers,anti-tracking-reviewers,places-reviewers,nalexander,emilio,zombie,sgalich,karlt,lina,Standard8 Previously the `boolean` type was also declared using a `bool` typedef in xpidl, meaning that both were used in various places. This patch standardizes on the built-in `boolean` type, removing the typedef. Differential Revision: https://phabricator.services.mozilla.com/D206382 --- .../nsIAccessibleCaretMoveEvent.idl | 4 +-- .../interfaces/nsIAccessibleMacInterface.idl | 2 +- .../shell/nsIWindowsShellService.idl | 12 ++++----- caps/nsIDomainPolicy.idl | 4 +-- caps/nsIPrincipal.idl | 8 +++--- caps/nsIScriptSecurityManager.idl | 4 +-- docshell/base/nsIDocShell.idl | 12 ++++----- docshell/base/nsIDocShellTreeOwner.idl | 2 +- .../base/nsIPrivacyTransitionObserver.idl | 2 +- docshell/base/nsIURIFixup.idl | 2 +- docshell/shistory/nsISHEntry.idl | 12 ++++----- docshell/shistory/nsISHistory.idl | 8 +++--- dom/audiochannel/nsIAudioChannelAgent.idl | 4 +-- dom/base/nsIEventSourceEventService.idl | 2 +- dom/base/nsIScriptableContentIterator.idl | 2 +- dom/bindings/nsIScriptError.idl | 12 ++++----- dom/interfaces/base/nsIBrowser.idl | 2 +- dom/interfaces/base/nsIDOMWindowUtils.idl | 26 +++++++++---------- .../base/nsIServiceWorkerManager.idl | 8 +++--- .../base/nsITextInputProcessorCallback.idl | 2 +- .../payments/nsIPaymentActionResponse.idl | 8 +++--- dom/interfaces/push/nsIPushService.idl | 8 +++--- .../security/nsIContentSecurityPolicy.idl | 10 +++---- .../storage/nsIDOMStorageManager.idl | 8 +++--- dom/ipc/nsIHangReport.idl | 2 +- dom/ipc/nsILoginDetectionService.idl | 2 +- .../gmp/mozIGeckoMediaPluginChromeService.idl | 4 +-- .../webspeech/synth/nsISynthVoiceRegistry.idl | 4 +-- dom/webauthn/nsIWebAuthnArgs.idl | 10 +++---- dom/webauthn/nsIWebAuthnResult.idl | 6 ++--- dom/webauthn/nsIWebAuthnService.idl | 18 ++++++------- dom/workers/nsIWorkerDebugger.idl | 6 ++--- .../idl/mozISpellCheckingEngine.idl | 2 +- image/imgIRequest.idl | 4 +-- js/xpconnect/idl/xpccomponents.idl | 12 ++++----- modules/libjar/nsIZipReader.idl | 2 +- .../http-sfv/nsIStructuredFieldValues.idl | 2 +- netwerk/base/nsIBackgroundFileSaver.idl | 2 +- netwerk/base/nsICaptivePortalService.idl | 2 +- netwerk/base/nsIChannel.idl | 2 +- netwerk/base/nsIClassOfService.idl | 2 +- netwerk/base/nsIInterceptionInfo.idl | 4 +-- .../base/nsINetworkInterceptController.idl | 6 ++--- netwerk/base/nsIParentChannel.idl | 2 +- netwerk/base/nsISecureBrowserUI.idl | 2 +- netwerk/base/nsISocketFilter.idl | 8 +++--- netwerk/base/nsISocketTransport.idl | 4 +-- netwerk/base/nsISystemProxySettings.idl | 4 +-- netwerk/base/nsPISocketTransportService.idl | 2 +- netwerk/cache2/nsICachePurgeLock.idl | 2 +- netwerk/cache2/nsICacheStorage.idl | 2 +- netwerk/dns/nsIDNSByTypeRecord.idl | 2 +- netwerk/dns/nsIDNSRecord.idl | 4 +-- netwerk/dns/nsIEffectiveTLDService.idl | 2 +- .../protocol/http/nsIHttpActivityObserver.idl | 6 ++--- netwerk/protocol/http/nsIHttpAuthManager.idl | 2 +- netwerk/protocol/http/nsIHttpChannel.idl | 2 +- .../protocol/http/nsIHttpChannelInternal.idl | 4 +-- .../http/nsIWellKnownOpportunisticUtils.idl | 2 +- .../websocket/nsIWebSocketEventService.idl | 2 +- .../protocol/webtransport/nsIWebTransport.idl | 4 +-- security/manager/ssl/nsICertStorage.idl | 2 +- .../ssl/nsIClientAuthDialogService.idl | 2 +- .../ssl/nsIClientAuthRememberService.idl | 12 ++++----- security/manager/ssl/nsIDataStorage.idl | 2 +- security/manager/ssl/nsINSSComponent.idl | 2 +- .../ssl/nsIPublicKeyPinningService.idl | 2 +- security/manager/ssl/nsITLSSocketControl.idl | 2 +- security/manager/ssl/nsIX509Cert.idl | 2 +- security/manager/ssl/nsIX509CertDB.idl | 4 +-- .../aboutthirdparty/nsIAboutThirdParty.idl | 4 +-- .../components/alerts/nsIAlertsService.idl | 4 +-- .../nsIURLQueryStringStripper.idl | 2 +- .../autocomplete/nsIAutoCompleteResult.idl | 2 +- .../backgroundhangmonitor/nsIHangDetails.idl | 2 +- .../browser/nsIWebBrowserChromeFocus.idl | 4 +-- .../nsICaptivePortalDetector.idl | 2 +- .../cleardata/nsIClearDataService.idl | 10 +++---- .../contentanalysis/nsIContentAnalysis.idl | 10 +++---- .../cookiebanners/nsICookieBannerRule.idl | 2 +- .../cookiebanners/nsICookieBannerService.idl | 16 ++++++------ .../nsIEnterprisePolicies.idl | 8 +++--- .../extensions/extIWebNavigation.idl | 4 +-- .../mozIExtensionAPIRequestHandling.idl | 2 +- .../extensions/mozIExtensionProcessScript.idl | 2 +- toolkit/components/kvstore/nsIKeyValue.idl | 2 +- .../components/places/mozIAsyncHistory.idl | 4 +-- .../places/mozISyncedBookmarksMirror.idl | 2 +- .../nsIApplicationReputation.idl | 6 ++--- .../satchel/nsIFormHistoryAutoComplete.idl | 2 +- .../components/search/nsISearchService.idl | 4 +-- .../startup/public/nsIAppStartup.idl | 8 +++--- toolkit/components/xulstore/nsIXULStore.idl | 2 +- .../mozapps/defaultagent/nsIWindowsMutex.idl | 2 +- toolkit/mozapps/update/nsIUpdateService.idl | 6 ++--- toolkit/profile/nsIToolkitProfileService.idl | 10 +++---- .../exthandler/nsIContentDispatchChooser.idl | 2 +- .../exthandler/nsIExternalProtocolService.idl | 6 ++--- widget/nsIDragSession.idl | 4 +-- widget/nsIMacDockSupport.idl | 6 ++--- widget/nsIPrintSettings.idl | 4 +-- xpcom/base/nsIDebug2.idl | 2 +- xpcom/base/nsIMacPreferencesReader.idl | 2 +- xpcom/base/nsIMemoryInfoDumper.idl | 8 +++--- xpcom/base/nsrootidl.idl | 1 - xpcom/io/nsIFile.idl | 2 +- xpcom/io/nsILocalFileMac.idl | 2 +- xpcom/io/nsILocalFileWin.idl | 2 +- xpcom/io/nsIRandomAccessStream.idl | 2 +- xpcom/system/nsICrashReporter.idl | 2 +- xpcom/system/nsIDeviceSensors.idl | 2 +- xpcom/threads/nsIDirectTaskDispatcher.idl | 2 +- xpcom/threads/nsIThreadInternal.idl | 2 +- xpcom/threads/nsIThreadManager.idl | 2 +- xpfe/appshell/nsIAppShellService.idl | 4 +-- xpfe/appshell/nsIAppWindow.idl | 2 +- 116 files changed, 261 insertions(+), 262 deletions(-) diff --git a/accessible/interfaces/nsIAccessibleCaretMoveEvent.idl b/accessible/interfaces/nsIAccessibleCaretMoveEvent.idl index 4cdece16cc639..2f750002a2e72 100644 --- a/accessible/interfaces/nsIAccessibleCaretMoveEvent.idl +++ b/accessible/interfaces/nsIAccessibleCaretMoveEvent.idl @@ -19,12 +19,12 @@ interface nsIAccessibleCaretMoveEvent: nsIAccessibleEvent /** * Return true if there is no selection. */ - readonly attribute bool isSelectionCollapsed; + readonly attribute boolean isSelectionCollapsed; /** * Return true if the caret is at the end of a line. */ - readonly attribute bool isAtEndOfLine; + readonly attribute boolean isAtEndOfLine; /** * Return caret move granularity. diff --git a/accessible/interfaces/nsIAccessibleMacInterface.idl b/accessible/interfaces/nsIAccessibleMacInterface.idl index 384d09d5f0771..952ac2a9fece6 100644 --- a/accessible/interfaces/nsIAccessibleMacInterface.idl +++ b/accessible/interfaces/nsIAccessibleMacInterface.idl @@ -67,7 +67,7 @@ interface nsIAccessibleMacInterface : nsISupports * Returns true if the given attribute is settable on the object. * Emulates `AXUIElementIsAttributeSettable`. **/ - bool isAttributeSettable(in AString attributeName); + boolean isAttributeSettable(in AString attributeName); /** * Sets the given attribute with the given value on the object. diff --git a/browser/components/shell/nsIWindowsShellService.idl b/browser/components/shell/nsIWindowsShellService.idl index 13c824f39c725..d28b713a780e4 100644 --- a/browser/components/shell/nsIWindowsShellService.idl +++ b/browser/components/shell/nsIWindowsShellService.idl @@ -112,7 +112,7 @@ interface nsIWindowsShellService : nsISupports * successful or rejects with an nserror. */ [implicit_jscontext] - Promise pinCurrentAppToTaskbarAsync(in bool aPrivateBrowsing); + Promise pinCurrentAppToTaskbarAsync(in boolean aPrivateBrowsing); /* * Do a dry run of pinCurrentAppToTaskbar(). @@ -128,7 +128,7 @@ interface nsIWindowsShellService : nsISupports * @returns same as pinCurrentAppToTaskbarAsync() */ [implicit_jscontext] - Promise checkPinCurrentAppToTaskbarAsync(in bool aPrivateBrowsing); + Promise checkPinCurrentAppToTaskbarAsync(in boolean aPrivateBrowsing); /* * Search for the current executable among taskbar pins @@ -247,7 +247,7 @@ interface nsIWindowsShellService : nsISupports AString classifyShortcut(in AString aPath); [implicit_jscontext] - Promise hasMatchingShortcut(in AString aAUMID, in bool aPrivateBrowsing); + Promise hasMatchingShortcut(in AString aAUMID, in boolean aPrivateBrowsing); /* * Check if setDefaultBrowserUserChoice() is expected to succeed. @@ -257,7 +257,7 @@ interface nsIWindowsShellService : nsISupports * * @return true if the check succeeds, false otherwise. */ - bool canSetDefaultBrowserUserChoice(); + boolean canSetDefaultBrowserUserChoice(); /* * checkAllProgIDsExist() and checkBrowserUserChoiceHashes() are components @@ -265,8 +265,8 @@ interface nsIWindowsShellService : nsISupports * * @return true if the check succeeds, false otherwise. */ - bool checkAllProgIDsExist(); - bool checkBrowserUserChoiceHashes(); + boolean checkAllProgIDsExist(); + boolean checkBrowserUserChoiceHashes(); /* * Determines whether or not Firefox is the "Default Handler", i.e., diff --git a/caps/nsIDomainPolicy.idl b/caps/nsIDomainPolicy.idl index 74d7f3b656996..d7cc1ac26fe89 100644 --- a/caps/nsIDomainPolicy.idl +++ b/caps/nsIDomainPolicy.idl @@ -66,11 +66,11 @@ interface nsIDomainSet : nsISupports /* * Returns true if a given domain is in the set. */ - bool contains(in nsIURI aDomain); + boolean contains(in nsIURI aDomain); /* * Returns true if a given domain is a subdomain of one of the entries in * the set. */ - bool containsSuperDomain(in nsIURI aDomain); + boolean containsSuperDomain(in nsIURI aDomain); }; diff --git a/caps/nsIPrincipal.idl b/caps/nsIPrincipal.idl index a3849dd723154..cf6ccd4dea999 100644 --- a/caps/nsIPrincipal.idl +++ b/caps/nsIPrincipal.idl @@ -72,7 +72,7 @@ interface nsIPrincipal : nsISupports * May be called from any thread. */ - boolean equalsForPermission(in nsIPrincipal other, in bool aExactHost); + boolean equalsForPermission(in nsIPrincipal other, in boolean aExactHost); /** * Like equals, but takes document.domain changes into account. @@ -424,7 +424,7 @@ interface nsIPrincipal : nsISupports * * May be called from any thread. */ - bool allowsRelaxStrictFileOriginPolicy(in nsIURI aURI); + boolean allowsRelaxStrictFileOriginPolicy(in nsIURI aURI); /* @@ -433,7 +433,7 @@ interface nsIPrincipal : nsISupports * May be called from any thread. */ [noscript] - ACString getPrefLightCacheKey(in nsIURI aURI ,in bool aWithCredentials, + ACString getPrefLightCacheKey(in nsIURI aURI ,in boolean aWithCredentials, in const_OriginAttributes aOriginAttributes); @@ -444,7 +444,7 @@ interface nsIPrincipal : nsISupports * * NOTE: Main-Thread Only. */ - bool hasFirstpartyStorageAccess(in mozIDOMWindow aWindow, out uint32_t rejectedReason); + boolean hasFirstpartyStorageAccess(in mozIDOMWindow aWindow, out uint32_t rejectedReason); /* diff --git a/caps/nsIScriptSecurityManager.idl b/caps/nsIScriptSecurityManager.idl index 924c223a3d543..d4941f3de339f 100644 --- a/caps/nsIScriptSecurityManager.idl +++ b/caps/nsIScriptSecurityManager.idl @@ -157,7 +157,7 @@ interface nsIScriptSecurityManager : nsISupports * prefs to be allowed to use file:// URIs. * @param aUri the URI to be tested */ - bool inFileURIAllowlist(in nsIURI aUri); + boolean inFileURIAllowlist(in nsIURI aUri); ///////////////// Principals /////////////////////// @@ -331,7 +331,7 @@ interface nsIScriptSecurityManager : nsISupports * of javascript.enabled. Otherwise, it returns the same value, but taking * the various blocklist/allowlist exceptions into account. */ - bool policyAllowsScript(in nsIURI aDomain); + boolean policyAllowsScript(in nsIURI aDomain); }; %{C++ diff --git a/docshell/base/nsIDocShell.idl b/docshell/base/nsIDocShell.idl index 46102b24ff45d..024c0f544c54b 100644 --- a/docshell/base/nsIDocShell.idl +++ b/docshell/base/nsIDocShell.idl @@ -279,7 +279,7 @@ interface nsIDocShell : nsIDocShellTreeItem * next element in the parent should be returned. Returns true if focus was * successfully taken by the tree owner. */ - bool tabToTreeOwner(in boolean forward, in boolean forDocumentNavigation); + boolean tabToTreeOwner(in boolean forward, in boolean forDocumentNavigation); /** * Current busy state for DocShell @@ -522,7 +522,7 @@ interface nsIDocShell : nsIDocShellTreeItem * @param end timestamp when reflow ended, in milliseconds since * navigationStart (accurate to 1/1000 of a ms) */ - [noscript] void notifyReflowObservers(in bool interruptible, + [noscript] void notifyReflowObservers(in boolean interruptible, in DOMHighResTimeStamp start, in DOMHighResTimeStamp end); @@ -553,7 +553,7 @@ interface nsIDocShell : nsIDocShellTreeItem * True iff asynchronous panning and zooming is enabled for this * docshell. */ - readonly attribute bool asyncPanZoomEnabled; + readonly attribute boolean asyncPanZoomEnabled; /** * Indicates whether the UI may enable the character encoding menu. The UI @@ -595,8 +595,8 @@ interface nsIDocShell : nsIDocShellTreeItem * without any actual visual representation. They have to be marked * at construction time, to avoid any painting activity. */ - [noscript, notxpcom] bool IsInvisible(); - [noscript, notxpcom] void SetInvisible(in bool aIsInvisibleDocshell); + [noscript, notxpcom] boolean IsInvisible(); + [noscript, notxpcom] void SetInvisible(in boolean aIsInvisibleDocshell); /** * Get the script global for the document in this docshell. @@ -679,7 +679,7 @@ interface nsIDocShell : nsIDocShellTreeItem * Returns true if the current load is a forced reload, * e.g. started by holding shift whilst triggering reload. */ - readonly attribute bool isForceReloading; + readonly attribute boolean isForceReloading; Array getColorMatrix(); diff --git a/docshell/base/nsIDocShellTreeOwner.idl b/docshell/base/nsIDocShellTreeOwner.idl index db6faa59c9c4e..d16257f8a1285 100644 --- a/docshell/base/nsIDocShellTreeOwner.idl +++ b/docshell/base/nsIDocShellTreeOwner.idl @@ -109,5 +109,5 @@ interface nsIDocShellTreeOwner : nsISupports Returns true if there is a primary content shell or a primary remote tab. */ - readonly attribute bool hasPrimaryContent; + readonly attribute boolean hasPrimaryContent; }; diff --git a/docshell/base/nsIPrivacyTransitionObserver.idl b/docshell/base/nsIPrivacyTransitionObserver.idl index c85d468d33d4c..b0dbc74c775cc 100644 --- a/docshell/base/nsIPrivacyTransitionObserver.idl +++ b/docshell/base/nsIPrivacyTransitionObserver.idl @@ -7,5 +7,5 @@ [scriptable, function, uuid(b4b1449d-0ef0-47f5-b62e-adc57fd49702)] interface nsIPrivacyTransitionObserver : nsISupports { - void privateModeChanged(in bool enabled); + void privateModeChanged(in boolean enabled); }; diff --git a/docshell/base/nsIURIFixup.idl b/docshell/base/nsIURIFixup.idl index 2261c0cb402d4..23fa4ee296aa4 100644 --- a/docshell/base/nsIURIFixup.idl +++ b/docshell/base/nsIURIFixup.idl @@ -200,5 +200,5 @@ interface nsIURIFixup : nsISupports * * @param aDomain A domain name to query. */ - bool isDomainKnown(in AUTF8String aDomain); + boolean isDomainKnown(in AUTF8String aDomain); }; diff --git a/docshell/shistory/nsISHEntry.idl b/docshell/shistory/nsISHEntry.idl index 1d7427f581e5c..6f682758d4947 100644 --- a/docshell/shistory/nsISHEntry.idl +++ b/docshell/shistory/nsISHEntry.idl @@ -331,14 +331,14 @@ interface nsISHEntry : nsISupports in nsIURI originalURI, in nsIURI resultPrincipalURI, in nsIURI unstrippedURI, - in bool loadReplace, + in boolean loadReplace, in nsIReferrerInfo referrerInfo, in AString srcdoc, - in bool srcdocEntry, + in boolean srcdocEntry, in nsIURI baseURI, - in bool saveLayoutState, - in bool expired, - in bool userActivation); + in boolean saveLayoutState, + in boolean expired, + in boolean userActivation); nsISHEntry clone(); @@ -413,7 +413,7 @@ interface nsISHEntry : nsISupports * Add a new child SHEntry. If offset is -1 adds to the end of the list. */ void AddChild(in nsISHEntry aChild, in long aOffset, - [optional,default(false)] in bool aUseRemoteSubframes); + [optional,default(false)] in boolean aUseRemoteSubframes); /** * Remove a child SHEntry. diff --git a/docshell/shistory/nsISHistory.idl b/docshell/shistory/nsISHistory.idl index 9ca237c67018e..ffdd1ff788067 100644 --- a/docshell/shistory/nsISHistory.idl +++ b/docshell/shistory/nsISHistory.idl @@ -273,19 +273,19 @@ interface nsISHistory: nsISupports [notxpcom] void EnsureCorrectEntryAtCurrIndex(in nsISHEntry aEntry); - [notxpcom] void EvictDocumentViewersOrReplaceEntry(in nsISHEntry aNewSHEntry, in bool aReplace); + [notxpcom] void EvictDocumentViewersOrReplaceEntry(in nsISHEntry aNewSHEntry, in boolean aReplace); nsISHEntry createEntry(); - [noscript] void AddToRootSessionHistory(in bool aCloneChildren, in nsISHEntry aOSHE, + [noscript] void AddToRootSessionHistory(in boolean aCloneChildren, in nsISHEntry aOSHE, in BrowsingContext aRootBC, in nsISHEntry aEntry, in unsigned long aLoadType, - in bool aShouldPersist, + in boolean aShouldPersist, out MaybeInt32 aPreviousEntryIndex, out MaybeInt32 aLoadedEntryIndex); [noscript] void AddChildSHEntryHelper(in nsISHEntry aCloneRef, in nsISHEntry aNewEntry, - in BrowsingContext aRootBC, in bool aCloneChildren); + in BrowsingContext aRootBC, in boolean aCloneChildren); [noscript, notxpcom] boolean isEmptyOrHasEntriesForSingleTopLevelPage(); }; diff --git a/dom/audiochannel/nsIAudioChannelAgent.idl b/dom/audiochannel/nsIAudioChannelAgent.idl index 69a8344449e7d..2a25d2cede669 100644 --- a/dom/audiochannel/nsIAudioChannelAgent.idl +++ b/dom/audiochannel/nsIAudioChannelAgent.idl @@ -36,7 +36,7 @@ interface nsIAudioChannelAgentCallback : nsISupports /** * Notified when the window volume/mute is changed */ - void windowVolumeChanged(in float aVolume, in bool aMuted); + void windowVolumeChanged(in float aVolume, in boolean aMuted); /** * Notified when the window needs to be suspended or resumed. @@ -46,7 +46,7 @@ interface nsIAudioChannelAgentCallback : nsISupports /** * Notified when the capture state is changed. */ - void windowAudioCaptureChanged(in bool aCapture); + void windowAudioCaptureChanged(in boolean aCapture); }; /** diff --git a/dom/base/nsIEventSourceEventService.idl b/dom/base/nsIEventSourceEventService.idl index 6131424669036..be96d582608fe 100644 --- a/dom/base/nsIEventSourceEventService.idl +++ b/dom/base/nsIEventSourceEventService.idl @@ -31,5 +31,5 @@ interface nsIEventSourceEventService : nsISupports [must_use] void removeListener(in unsigned long long aInnerWindowID, in nsIEventSourceEventListener aListener); - [must_use] bool hasListenerFor(in unsigned long long aInnerWindowID); + [must_use] boolean hasListenerFor(in unsigned long long aInnerWindowID); }; diff --git a/dom/base/nsIScriptableContentIterator.idl b/dom/base/nsIScriptableContentIterator.idl index 63b4a1830f56a..80208ac98398c 100644 --- a/dom/base/nsIScriptableContentIterator.idl +++ b/dom/base/nsIScriptableContentIterator.idl @@ -64,7 +64,7 @@ interface nsIScriptableContentIterator : nsISupports readonly attribute Node currentNode; // See ContentIteratorBase::IsDone() - readonly attribute bool isDone; + readonly attribute boolean isDone; // See ContentIteratorBase::PositionAt(nsINode*) void positionAt(in Node aNode); diff --git a/dom/bindings/nsIScriptError.idl b/dom/bindings/nsIScriptError.idl index 3d7925a08dbb1..b650de181c842 100644 --- a/dom/bindings/nsIScriptError.idl +++ b/dom/bindings/nsIScriptError.idl @@ -91,7 +91,7 @@ interface nsIScriptError : nsIConsoleMessage // Error created from a Promise rejection. readonly attribute boolean isPromiseRejection; - [noscript] void initIsPromiseRejection(in bool isPromiseRejection); + [noscript] void initIsPromiseRejection(in boolean isPromiseRejection); // The "exception" value generated when an uncaught exception is thrown // by JavaScript. This can be any value, e.g. @@ -135,8 +135,8 @@ interface nsIScriptError : nsIConsoleMessage in uint32_t columnNumber, in uint32_t flags, in ACString category, - [optional] in bool fromPrivateWindow, - [optional] in bool fromChromeContext); + [optional] in boolean fromPrivateWindow, + [optional] in boolean fromChromeContext); /* This should be called instead of nsIScriptError.init to * initialize with a window id. The window id should be for the @@ -158,7 +158,7 @@ interface nsIScriptError : nsIConsoleMessage in uint32_t flags, in ACString category, in unsigned long long innerWindowID, - [optional] in bool fromChromeContext); + [optional] in boolean fromChromeContext); /* This is the same function as initWithWindowID, but it expects an already * sanitized sourceName. @@ -172,7 +172,7 @@ interface nsIScriptError : nsIConsoleMessage in uint32_t flags, in ACString category, in unsigned long long innerWindowID, - [optional] in bool fromChromeContext); + [optional] in boolean fromChromeContext); /* This is the same function as initWithWindowID with an uri as a source parameter. */ @@ -184,7 +184,7 @@ interface nsIScriptError : nsIConsoleMessage in uint32_t flags, in ACString category, in unsigned long long innerWindowID, - [optional] in bool fromChromeContext); + [optional] in boolean fromChromeContext); /* Initialize the script source ID in a new error. */ void initSourceId(in uint32_t sourceId); diff --git a/dom/interfaces/base/nsIBrowser.idl b/dom/interfaces/base/nsIBrowser.idl index 499580240ac25..3046e167e0fec 100644 --- a/dom/interfaces/base/nsIBrowser.idl +++ b/dom/interfaces/base/nsIBrowser.idl @@ -145,5 +145,5 @@ interface nsIBrowser : nsISupports * If this method returns `true`, Gecko will assume frontend handled resuming * the load, and will not attempt to resume the load itself. */ - bool finishChangeRemoteness(in uint64_t aPendingSwitchId); + boolean finishChangeRemoteness(in uint64_t aPendingSwitchId); }; diff --git a/dom/interfaces/base/nsIDOMWindowUtils.idl b/dom/interfaces/base/nsIDOMWindowUtils.idl index 6a0df1b435cee..27b9ff5acf8b1 100644 --- a/dom/interfaces/base/nsIDOMWindowUtils.idl +++ b/dom/interfaces/base/nsIDOMWindowUtils.idl @@ -1112,7 +1112,7 @@ interface nsIDOMWindowUtils : nsISupports { /** * Returns true if a flush of the given type is needed. */ - bool needsFlush(in long aFlushtype); + boolean needsFlush(in long aFlushtype); /** * Flush pending layout-type notification without flushing throttled @@ -1627,14 +1627,14 @@ interface nsIDOMWindowUtils : nsISupports { * Reports whether the current state is test-controlled refreshes * (see advanceTimeAndRefresh and restoreNormalRefresh above). */ - readonly attribute bool isTestControllingRefreshes; + readonly attribute boolean isTestControllingRefreshes; /** * Reports whether APZ is enabled on the widget that this window is attached * to. If there is no widget it will report the default platform value of * whether or not APZ is enabled. */ - readonly attribute bool asyncPanZoomEnabled; + readonly attribute boolean asyncPanZoomEnabled; /** * Set async scroll offset on an element. The next composite will render @@ -1659,7 +1659,7 @@ interface nsIDOMWindowUtils : nsISupports { * false, an error occurred or a flush is not needed, and the notification * will not fire. This is intended to be used by test code only! */ - bool flushApzRepaints(); + boolean flushApzRepaints(); /** * Sets a flag on the element to forcibly disable APZ on it. This affects @@ -1843,7 +1843,7 @@ interface nsIDOMWindowUtils : nsISupports { */ void disableDialogs(); void enableDialogs(); - bool areDialogsEnabled(); + boolean areDialogsEnabled(); void resetDialogAbuseState(); const unsigned long AGENT_SHEET = 0; @@ -1949,7 +1949,7 @@ interface nsIDOMWindowUtils : nsISupports { * it would mark the document with the ChromeOnly userHasInteracted * property. */ - bool isKeyboardEventUserActivity(in Event aKeyboardEvent); + boolean isKeyboardEventUserActivity(in Event aKeyboardEvent); /** * Get the content- and compositor-side APZ test data instances. @@ -2008,7 +2008,7 @@ interface nsIDOMWindowUtils : nsISupports { * * May throw NS_ERROR_NOT_AVAILABLE. */ - readonly attribute bool refreshDriverHasPendingTick; + readonly attribute boolean refreshDriverHasPendingTick; /** * Controls the amount of chrome that should be visible on each side of @@ -2061,7 +2061,7 @@ interface nsIDOMWindowUtils : nsISupports { * * @param aSheetType One of the nsIStyleSheetService.*_SHEET constants. */ - bool hasRuleProcessorUsedByMultipleStyleSets(in unsigned long aSheetType); + boolean hasRuleProcessorUsedByMultipleStyleSets(in unsigned long aSheetType); /** * Enable or disable displayport suppression. This is intended to be used by @@ -2207,7 +2207,7 @@ interface nsIDOMWindowUtils : nsISupports { * * Throws if there's no document or the property is invalid. */ - bool isCssPropertyRecordedInUseCounter(in ACString aProperty); + boolean isCssPropertyRecordedInUseCounter(in ACString aProperty); /** * Calls SetInitialViewport on the MobileViewportManager, which effectively @@ -2216,7 +2216,7 @@ interface nsIDOMWindowUtils : nsISupports { */ void resetMobileViewportManager(); - bool isCoepCredentialless(); + boolean isCoepCredentialless(); /** * Change the DPI setting for the primary monitor. @@ -2279,7 +2279,7 @@ interface nsIDOMWindowUtils : nsISupports { unsigned long long getLayersId(); // Returns true if we are effectively throttling frame requests. - readonly attribute bool effectivelyThrottlesFrameRequests; + readonly attribute boolean effectivelyThrottlesFrameRequests; // Returns the ID for the underlying window widget, which can // be compared against the rawId from a nsIMediaDevice to determine @@ -2291,7 +2291,7 @@ interface nsIDOMWindowUtils : nsISupports { readonly attribute AString webrtcRawDeviceId; // Used for testing to check the suspend status. - readonly attribute bool suspendedByBrowsingContextGroup; + readonly attribute boolean suspendedByBrowsingContextGroup; // Whether there's any scroll-linked effect in this document. This is only // meaningful after the script in question tried to mutate something in a @@ -2299,7 +2299,7 @@ interface nsIDOMWindowUtils : nsISupports { // // See https://firefox-source-docs.mozilla.org/performance/scroll-linked_effects.html // about scroll-linked effects. - readonly attribute bool hasScrollLinkedEffect; + readonly attribute boolean hasScrollLinkedEffect; // Returns the current orientation lock value in browsing context. // This value is defined in hal/HalScreenConfiguration.h diff --git a/dom/interfaces/base/nsIServiceWorkerManager.idl b/dom/interfaces/base/nsIServiceWorkerManager.idl index d89da1ac9c76c..05614c74c3521 100644 --- a/dom/interfaces/base/nsIServiceWorkerManager.idl +++ b/dom/interfaces/base/nsIServiceWorkerManager.idl @@ -31,7 +31,7 @@ interface nsIServiceWorkerUnregisterCallback : nsISupports { // aState is true if the unregistration succeded. // It's false if this ServiceWorkerRegistration doesn't exist. - void unregisterSucceeded(in bool aState); + void unregisterSucceeded(in boolean aState); void unregisterFailed(); }; @@ -61,7 +61,7 @@ interface nsIServiceWorkerInfo : nsISupports // Return whether the ServiceWorker has a "fetch" event listener. Throws if // this is unknown because the worker's main script hasn't finished executing // (when exposed as evaluatingWorker). - readonly attribute bool handlesFetchEvents; + readonly attribute boolean handlesFetchEvents; readonly attribute PRTime installedTime; readonly attribute PRTime activatedTime; @@ -250,8 +250,8 @@ interface nsIServiceWorkerManager : nsISupports nsIServiceWorkerRegistrationInfo getRegistrationByPrincipal(in nsIPrincipal aPrincipal, in AString aScope); - [notxpcom, nostdcall] bool StartControlling(in const_ClientInfoRef aClientInfo, - in const_ServiceWorkerDescriptorRef aServiceWorker); + [notxpcom, nostdcall] boolean StartControlling(in const_ClientInfoRef aClientInfo, + in const_ServiceWorkerDescriptorRef aServiceWorker); // Testing AString getScopeForUrl(in nsIPrincipal aPrincipal, in AString aPath); diff --git a/dom/interfaces/base/nsITextInputProcessorCallback.idl b/dom/interfaces/base/nsITextInputProcessorCallback.idl index 8cee84210833c..2464d175c17d5 100644 --- a/dom/interfaces/base/nsITextInputProcessorCallback.idl +++ b/dom/interfaces/base/nsITextInputProcessorCallback.idl @@ -73,7 +73,7 @@ interface nsITextInputProcessorNotification : nsISupports * This is true if selection has a range. Otherwise, i.e., there is no * range such as after calling Selection.removeAllRanges, this is false. */ - readonly attribute bool hasRange; + readonly attribute boolean hasRange; /** * Be careful, line breakers in the editor are treated as native line diff --git a/dom/interfaces/payments/nsIPaymentActionResponse.idl b/dom/interfaces/payments/nsIPaymentActionResponse.idl index 7ff24c3b7f75e..c4a7ff19435ae 100644 --- a/dom/interfaces/payments/nsIPaymentActionResponse.idl +++ b/dom/interfaces/payments/nsIPaymentActionResponse.idl @@ -176,14 +176,14 @@ interface nsIPaymentCanMakeActionResponse : nsIPaymentActionResponse /** * The result of canMakePayment action. */ - readonly attribute bool result; + readonly attribute boolean result; /** * The initial method. * @param aRequestId - the request identifier of the payment request. * @param aResult - the canMakePayment result. */ - void init(in AString aRequestId, in bool aResult); + void init(in AString aRequestId, in boolean aResult); }; /** @@ -266,7 +266,7 @@ interface nsIPaymentAbortActionResponse : nsIPaymentActionResponse /** * Check if the abort action is succeeded */ - bool isSucceeded(); + boolean isSucceeded(); }; [builtinclass, scriptable, uuid(62c01e69-9ca4-4060-99e4-b95f628c8e6d)] @@ -289,7 +289,7 @@ interface nsIPaymentCompleteActionResponse : nsIPaymentActionResponse /** * Check if the complete action is succeeded. */ - bool isCompleted(); + boolean isCompleted(); }; [builtinclass, scriptable, uuid(2035e0a9-c9ab-4c9f-b8e9-28b2ed61548c)] diff --git a/dom/interfaces/push/nsIPushService.idl b/dom/interfaces/push/nsIPushService.idl index b41d7a5502648..371c7637519bb 100644 --- a/dom/interfaces/push/nsIPushService.idl +++ b/dom/interfaces/push/nsIPushService.idl @@ -18,11 +18,11 @@ interface nsIPushSubscription : nsISupports readonly attribute long long pushCount; readonly attribute long long lastPush; readonly attribute long quota; - readonly attribute bool isSystemSubscription; + readonly attribute boolean isSystemSubscription; readonly attribute jsval p256dhPrivateKey; - bool quotaApplies(); - bool isExpired(); + boolean quotaApplies(); + boolean isExpired(); Array getKey(in AString name); }; @@ -50,7 +50,7 @@ interface nsIPushSubscription : nsISupports [scriptable, uuid(d574118f-61a9-4270-b1f6-4461aa85c4f5), function] interface nsIUnsubscribeResultCallback : nsISupports { - void onUnsubscribe(in nsresult status, in bool success); + void onUnsubscribe(in nsresult status, in boolean success); }; /** diff --git a/dom/interfaces/security/nsIContentSecurityPolicy.idl b/dom/interfaces/security/nsIContentSecurityPolicy.idl index 40e39adeb4d3b..26f00a0220bb0 100644 --- a/dom/interfaces/security/nsIContentSecurityPolicy.idl +++ b/dom/interfaces/security/nsIContentSecurityPolicy.idl @@ -91,7 +91,7 @@ interface nsIContentSecurityPolicy : nsISerializable * Please note that upgrade-insecure-reqeusts also applies if the parent or * including document (context) makes use of the directive. */ - readonly attribute bool upgradeInsecureRequests; + readonly attribute boolean upgradeInsecureRequests; /** * Returns whether this policy uses the directive block-all-mixed-content. @@ -100,12 +100,12 @@ interface nsIContentSecurityPolicy : nsISerializable * will therefore block all mixed content without even trying to perform * an upgrade. */ - readonly attribute bool blockAllMixedContent; + readonly attribute boolean blockAllMixedContent; /** * Returns whether this policy enforces the frame-ancestors directive. */ - readonly attribute bool enforcesFrameAncestors; + readonly attribute boolean enforcesFrameAncestors; /** * Parse and install a CSP policy. @@ -144,7 +144,7 @@ interface nsIContentSecurityPolicy : nsISerializable * (block the rules if false). */ boolean getAllowsInline(in nsIContentSecurityPolicy_CSPDirective aDirective, - in bool aHasUnsafeHash, + in boolean aHasUnsafeHash, in AString aNonce, in boolean aParserCreated, in Element aTriggeringElement, @@ -328,7 +328,7 @@ interface nsIContentSecurityPolicy : nsISerializable in nsILoadInfo aLoadInfo, in nsIURI aContentLocation, in nsIURI aOriginalURIIfRedirect, - in bool aSendViolationReports); + in boolean aSendViolationReports); %{ C++ // nsIObserver topic to fire when the policy encounters a violation. diff --git a/dom/interfaces/storage/nsIDOMStorageManager.idl b/dom/interfaces/storage/nsIDOMStorageManager.idl index 1be7525e4ae28..e3e3ed4659ec5 100644 --- a/dom/interfaces/storage/nsIDOMStorageManager.idl +++ b/dom/interfaces/storage/nsIDOMStorageManager.idl @@ -61,7 +61,7 @@ interface nsIDOMStorageManager : nsISupports in nsIPrincipal aPrincipal, in nsIPrincipal aStoragePrincipal, in AString aDocumentURI, - [optional] in bool aPrivate); + [optional] in boolean aPrivate); /** * DEPRECATED. The only good reason to use this was if you were writing a * test and wanted to hackily determine if a preload happened. That's now @@ -85,7 +85,7 @@ interface nsIDOMStorageManager : nsISupports Storage getStorage(in mozIDOMWindow aWindow, in nsIPrincipal aPrincipal, in nsIPrincipal aStoragePrincipal, - [optional] in bool aPrivate); + [optional] in boolean aPrivate); /** * Clones given storage into this storage manager. @@ -112,8 +112,8 @@ interface nsIDOMStorageManager : nsISupports * by this storage manager. * false otherwise */ - bool checkStorage(in nsIPrincipal aPrincipal, - in Storage aStorage); + boolean checkStorage(in nsIPrincipal aPrincipal, + in Storage aStorage); }; [uuid(b3bfbbd0-e738-4cbf-b0f0-b65f25265e82)] diff --git a/dom/ipc/nsIHangReport.idl b/dom/ipc/nsIHangReport.idl index ff01d7f51a0ed..d99137d942638 100644 --- a/dom/ipc/nsIHangReport.idl +++ b/dom/ipc/nsIHangReport.idl @@ -47,5 +47,5 @@ interface nsIHangReport : nsISupports // Inquire whether the report is for a content process loaded by the given // frameloader, or any descendents in its BrowsingContext tree. - bool isReportForBrowserOrChildren(in FrameLoader aFrameLoader); + boolean isReportForBrowserOrChildren(in FrameLoader aFrameLoader); }; diff --git a/dom/ipc/nsILoginDetectionService.idl b/dom/ipc/nsILoginDetectionService.idl index a0b1ae90a7d8b..123318d5db6bf 100644 --- a/dom/ipc/nsILoginDetectionService.idl +++ b/dom/ipc/nsILoginDetectionService.idl @@ -18,5 +18,5 @@ interface nsILoginDetectionService : nsISupports * Returns true if we have loaded logins from the password manager. * This is now used by testcase only. */ - bool isLoginsLoaded(); + boolean isLoginsLoaded(); }; diff --git a/dom/media/gmp/mozIGeckoMediaPluginChromeService.idl b/dom/media/gmp/mozIGeckoMediaPluginChromeService.idl index 51dc545092eec..bc782978c9d6b 100644 --- a/dom/media/gmp/mozIGeckoMediaPluginChromeService.idl +++ b/dom/media/gmp/mozIGeckoMediaPluginChromeService.idl @@ -27,7 +27,7 @@ interface mozIGeckoMediaPluginChromeService : nsISupports * @note Main-thread API. */ void removeAndDeletePluginDirectory(in AString directory, - [optional] in bool defer); + [optional] in boolean defer); /** * Clears storage data associated with the site and the originAttributes @@ -48,7 +48,7 @@ interface mozIGeckoMediaPluginChromeService : nsISupports * persistently on disk. Private Browsing and local content are not * allowed to store persistent data. */ - bool isPersistentStorageAllowed(in ACString nodeId); + boolean isPersistentStorageAllowed(in ACString nodeId); /** * Returns the directory to use as the base for storing data about GMPs. diff --git a/dom/media/webspeech/synth/nsISynthVoiceRegistry.idl b/dom/media/webspeech/synth/nsISynthVoiceRegistry.idl index 8192eff04554c..e5189e0bc14ab 100644 --- a/dom/media/webspeech/synth/nsISynthVoiceRegistry.idl +++ b/dom/media/webspeech/synth/nsISynthVoiceRegistry.idl @@ -55,9 +55,9 @@ interface nsISynthVoiceRegistry : nsISupports AString getVoice(in uint32_t aIndex); - bool isDefaultVoice(in AString aUri); + boolean isDefaultVoice(in AString aUri); - bool isLocalVoice(in AString aUri); + boolean isLocalVoice(in AString aUri); AString getVoiceLang(in AString aUri); diff --git a/dom/webauthn/nsIWebAuthnArgs.idl b/dom/webauthn/nsIWebAuthnArgs.idl index 72999092faa73..06a6c5ec850b9 100644 --- a/dom/webauthn/nsIWebAuthnArgs.idl +++ b/dom/webauthn/nsIWebAuthnArgs.idl @@ -40,9 +40,9 @@ interface nsIWebAuthnRegisterArgs : nsISupports { // WebAuthn AuthenticationExtensionsClientInputs. That's not feasible here. // So we define a getter for each supported extension input and use the // return code to signal presence. - [must_use] readonly attribute bool credProps; - [must_use] readonly attribute bool hmacCreateSecret; - [must_use] readonly attribute bool minPinLength; + [must_use] readonly attribute boolean credProps; + [must_use] readonly attribute boolean hmacCreateSecret; + [must_use] readonly attribute boolean minPinLength; // Options. readonly attribute AString residentKey; @@ -83,7 +83,7 @@ interface nsIWebAuthnSignArgs : nsISupports { // WebAuthn AuthenticationExtensionsClientInputs. That's not feasible here. // So we define a getter for each supported extension input and use the // return code to signal presence. - [must_use] readonly attribute bool hmacCreateSecret; + [must_use] readonly attribute boolean hmacCreateSecret; [must_use] readonly attribute AString appId; // Options @@ -94,5 +94,5 @@ interface nsIWebAuthnSignArgs : nsISupports { // cancel transactions. readonly attribute unsigned long timeoutMS; - readonly attribute bool conditionallyMediated; + readonly attribute boolean conditionallyMediated; }; diff --git a/dom/webauthn/nsIWebAuthnResult.idl b/dom/webauthn/nsIWebAuthnResult.idl index aaf34cc5f99f1..fadda78aca0ce 100644 --- a/dom/webauthn/nsIWebAuthnResult.idl +++ b/dom/webauthn/nsIWebAuthnResult.idl @@ -23,9 +23,9 @@ interface nsIWebAuthnRegisterResult : nsISupports { readonly attribute Array transports; - readonly attribute bool hmacCreateSecret; + readonly attribute boolean hmacCreateSecret; - [must_use] attribute bool credPropsRk; + [must_use] attribute boolean credPropsRk; [must_use] readonly attribute AString authenticatorAttachment; }; @@ -56,7 +56,7 @@ interface nsIWebAuthnSignResult : nsISupports { [must_use] readonly attribute ACString userName; // appId field of AuthenticationExtensionsClientOutputs (Optional) - [must_use] attribute bool usedAppId; + [must_use] attribute boolean usedAppId; [must_use] readonly attribute AString authenticatorAttachment; }; diff --git a/dom/webauthn/nsIWebAuthnService.idl b/dom/webauthn/nsIWebAuthnService.idl index 6525508057485..83b7f15f2e77b 100644 --- a/dom/webauthn/nsIWebAuthnService.idl +++ b/dom/webauthn/nsIWebAuthnService.idl @@ -11,7 +11,7 @@ interface nsICredentialParameters : nsISupports { readonly attribute ACString credentialId; - readonly attribute bool isResidentCredential; + readonly attribute boolean isResidentCredential; readonly attribute ACString rpId; readonly attribute ACString privateKey; readonly attribute ACString userHandle; @@ -37,7 +37,7 @@ interface nsIWebAuthnAutoFillEntry: nsISupports interface nsIWebAuthnService : nsISupports { // IsUserVerifyingPlatformAuthenticatorAvailable - readonly attribute bool isUVPAA; + readonly attribute boolean isUVPAA; void makeCredential( in uint64_t aTransactionId, @@ -83,7 +83,7 @@ interface nsIWebAuthnService : nsISupports void resumeConditionalGet(in uint64_t aTransactionId); void pinCallback(in uint64_t aTransactionId, in ACString aPin); - void resumeMakeCredential(in uint64_t aTransactionId, in bool aForceNoneAttestation); + void resumeMakeCredential(in uint64_t aTransactionId, in boolean aForceNoneAttestation); void selectionCallback(in uint64_t aTransactionId, in uint64_t aIndex); // Adds a virtual (software) authenticator for use in tests (particularly @@ -92,10 +92,10 @@ interface nsIWebAuthnService : nsISupports uint64_t addVirtualAuthenticator( in ACString protocol, in ACString transport, - in bool hasResidentKey, - in bool hasUserVerification, - in bool isUserConsenting, - in bool isUserVerified); + in boolean hasResidentKey, + in boolean hasUserVerification, + in boolean isUserConsenting, + in boolean isUserVerified); // Removes a previously-added virtual authenticator, as identified by its // id. See @@ -107,7 +107,7 @@ interface nsIWebAuthnService : nsISupports void addCredential( in uint64_t authenticatorId, in ACString credentialId, - in bool isResidentCredential, + in boolean isResidentCredential, in ACString rpId, in ACString privateKey, in ACString userHandle, @@ -127,7 +127,7 @@ interface nsIWebAuthnService : nsISupports // Sets the "isUserVerified" bit on a virtual authenticator. See // https://w3c.github.io/webauthn/#sctn-automation-set-user-verified - void setUserVerified(in uint64_t authenticatorId, in bool isUserVerified); + void setUserVerified(in uint64_t authenticatorId, in boolean isUserVerified); // about:webauthn-specific functions void listen(); diff --git a/dom/workers/nsIWorkerDebugger.idl b/dom/workers/nsIWorkerDebugger.idl index 931d01a4ac2ad..573e7027b0bc0 100644 --- a/dom/workers/nsIWorkerDebugger.idl +++ b/dom/workers/nsIWorkerDebugger.idl @@ -25,11 +25,11 @@ interface nsIWorkerDebugger : nsISupports const unsigned long TYPE_SHARED = 1; const unsigned long TYPE_SERVICE = 2; - readonly attribute bool isClosed; + readonly attribute boolean isClosed; - readonly attribute bool isChrome; + readonly attribute boolean isChrome; - readonly attribute bool isInitialized; + readonly attribute boolean isInitialized; readonly attribute nsIWorkerDebugger parent; diff --git a/extensions/spellcheck/idl/mozISpellCheckingEngine.idl b/extensions/spellcheck/idl/mozISpellCheckingEngine.idl index f3e67280f6fe6..fb7ed10bb6e62 100644 --- a/extensions/spellcheck/idl/mozISpellCheckingEngine.idl +++ b/extensions/spellcheck/idl/mozISpellCheckingEngine.idl @@ -75,7 +75,7 @@ interface mozISpellCheckingEngine : nsISupports { * * @returns True if the dictionary was found and removed. */ - bool removeDictionary(in AString lang, in nsIURI file); + boolean removeDictionary(in AString lang, in nsIURI file); }; %{C++ diff --git a/image/imgIRequest.idl b/image/imgIRequest.idl index 721beb3a5a51f..9db2a0069e8be 100644 --- a/image/imgIRequest.idl +++ b/image/imgIRequest.idl @@ -131,12 +131,12 @@ interface imgIRequest : nsIRequest /** * true if the loading of the image required cross-origin redirects. */ - readonly attribute bool hadCrossOriginRedirects; + readonly attribute boolean hadCrossOriginRedirects; /** * Whether the request is multipart (ie, multipart/x-mixed-replace) */ - readonly attribute bool multipart; + readonly attribute boolean multipart; /** * The CORS mode that this image was loaded with (a mozilla::CORSMode). diff --git a/js/xpconnect/idl/xpccomponents.idl b/js/xpconnect/idl/xpccomponents.idl index 1d4155ed74953..47ed22e3a579a 100644 --- a/js/xpconnect/idl/xpccomponents.idl +++ b/js/xpconnect/idl/xpccomponents.idl @@ -261,7 +261,7 @@ interface nsIXPCComponents_Utils : nsISupports [optional] in jsval version, [optional] in AUTF8String filename, [optional] in long lineNo, - [optional] in bool enforceFilenameRestrictions); + [optional] in boolean enforceFilenameRestrictions); /* * Get the sandbox for running JS-implemented UA widgets (video controls etc.), @@ -569,7 +569,7 @@ interface nsIXPCComponents_Utils : nsISupports * reference edges) and will throw if you touch them (e.g. by * reading/writing a property). */ - bool isDeadWrapper(in jsval obj); + boolean isDeadWrapper(in jsval obj); /** * Determines whether this value is a remote object proxy, such as @@ -584,7 +584,7 @@ interface nsIXPCComponents_Utils : nsISupports * frame.contentWindow.doCrossOriginThing(); * } */ - bool isRemoteProxy(in jsval val); + boolean isRemoteProxy(in jsval val); /* * To be called from JS only. This is for Gecko internal use only, and may @@ -653,12 +653,12 @@ interface nsIXPCComponents_Utils : nsISupports /** * Check whether the given object is an opaque wrapper (PermissiveXrayOpaque). */ - bool isOpaqueWrapper(in jsval obj); + boolean isOpaqueWrapper(in jsval obj); /** * Check whether the given object is an XrayWrapper. */ - bool isXrayWrapper(in jsval obj); + boolean isXrayWrapper(in jsval obj); /** * Waive Xray on a given value. Identity op for primitives. @@ -680,7 +680,7 @@ interface nsIXPCComponents_Utils : nsISupports * probably what you want. */ [implicit_jscontext] - string getClassName(in jsval aObj, in bool aUnwrap); + string getClassName(in jsval aObj, in boolean aUnwrap); /** * Get a DOM classinfo for the given classname. Only some class diff --git a/modules/libjar/nsIZipReader.idl b/modules/libjar/nsIZipReader.idl index b6a1f70abd27d..abead2841aff0 100644 --- a/modules/libjar/nsIZipReader.idl +++ b/modules/libjar/nsIZipReader.idl @@ -225,7 +225,7 @@ interface nsIZipReaderCache : nsISupports /** * returns true if this zipreader already has this file cached */ - bool isCached(in nsIFile zipFile); + boolean isCached(in nsIFile zipFile); /** * Returns a (possibly shared) nsIZipReader for a zip inside another zip diff --git a/netwerk/base/http-sfv/nsIStructuredFieldValues.idl b/netwerk/base/http-sfv/nsIStructuredFieldValues.idl index 3f02b3395324c..20b0392ac98ce 100644 --- a/netwerk/base/http-sfv/nsIStructuredFieldValues.idl +++ b/netwerk/base/http-sfv/nsIStructuredFieldValues.idl @@ -256,7 +256,7 @@ interface nsISFVService: nsISupports * The following functions create bare item of specific type. */ nsISFVInteger newInteger(in long long value); - nsISFVBool newBool(in bool value); + nsISFVBool newBool(in boolean value); nsISFVDecimal newDecimal(in double value); nsISFVString newString(in ACString value); nsISFVByteSeq newByteSequence(in ACString value); diff --git a/netwerk/base/nsIBackgroundFileSaver.idl b/netwerk/base/nsIBackgroundFileSaver.idl index 0b26852c2899c..d9a5ba20a5954 100644 --- a/netwerk/base/nsIBackgroundFileSaver.idl +++ b/netwerk/base/nsIBackgroundFileSaver.idl @@ -130,7 +130,7 @@ interface nsIBackgroundFileSaver : nsISupports * rather than deleted, if the operation fails or is canceled. This is * generally set for downloads that use temporary ".part" files. */ - void setTarget(in nsIFile aTarget, in bool aKeepPartial); + void setTarget(in nsIFile aTarget, in boolean aKeepPartial); /** * Terminates access to the output file, then notifies the observer with the diff --git a/netwerk/base/nsICaptivePortalService.idl b/netwerk/base/nsICaptivePortalService.idl index e4867765d7db1..0814ecb6651d2 100644 --- a/netwerk/base/nsICaptivePortalService.idl +++ b/netwerk/base/nsICaptivePortalService.idl @@ -10,7 +10,7 @@ interface nsICaptivePortalServiceCallback : nsISupports /** * Invoke callbacks after captive portal detection finished. */ - void complete(in bool success, in nsresult error); + void complete(in boolean success, in nsresult error); }; /** diff --git a/netwerk/base/nsIChannel.idl b/netwerk/base/nsIChannel.idl index 2269c4faa847a..a29bd1a46323e 100644 --- a/netwerk/base/nsIChannel.idl +++ b/netwerk/base/nsIChannel.idl @@ -359,7 +359,7 @@ interface nsIChannel : nsIRequest * Note: May have the wrong value if called before OnStartRequest as we * don't know the MIME type yet. */ - readonly attribute bool isDocument; + readonly attribute boolean isDocument; %{ C++ inline bool IsDocument() diff --git a/netwerk/base/nsIClassOfService.idl b/netwerk/base/nsIClassOfService.idl index 5426eabbcc70e..7b133107de4b7 100644 --- a/netwerk/base/nsIClassOfService.idl +++ b/netwerk/base/nsIClassOfService.idl @@ -26,7 +26,7 @@ native ClassOfService(mozilla::net::ClassOfService); interface nsIClassOfService : nsISupports { attribute unsigned long classFlags; - attribute bool incremental; + attribute boolean incremental; void clearClassFlags(in unsigned long flags); void addClassFlags(in unsigned long flags); diff --git a/netwerk/base/nsIInterceptionInfo.idl b/netwerk/base/nsIInterceptionInfo.idl index d3c1b030ac551..ca2549adbdd21 100644 --- a/netwerk/base/nsIInterceptionInfo.idl +++ b/netwerk/base/nsIInterceptionInfo.idl @@ -66,8 +66,8 @@ interface nsIInterceptionInfo : nsISupports * The InterceptedHttpChannel is a third party channel or not. */ [noscript, notxpcom, nostdcall, binaryname(FromThirdParty)] - bool binaryFromThirdParty(); + boolean binaryFromThirdParty(); [noscript, notxpcom, nostdcall, binaryname(SetFromThirdParty)] - void binarySetFromThirdParty(in bool aFromThirdParty); + void binarySetFromThirdParty(in boolean aFromThirdParty); }; diff --git a/netwerk/base/nsINetworkInterceptController.idl b/netwerk/base/nsINetworkInterceptController.idl index 155daa5cd52c4..946cc95a88066 100644 --- a/netwerk/base/nsINetworkInterceptController.idl +++ b/netwerk/base/nsINetworkInterceptController.idl @@ -97,7 +97,7 @@ interface nsIInterceptedChannel : nsISupports in nsIInterceptedBodyCallback callback, in nsICacheInfoChannel channel, in ACString finalURLSpec, - in bool responseRedirected); + in boolean responseRedirected); /** * Instruct a channel that has been intercepted that response synthesis @@ -155,7 +155,7 @@ interface nsIInterceptedChannel : nsISupports * network or not. */ [noscript] - bool GetIsReset(); + boolean GetIsReset(); %{C++ already_AddRefed @@ -239,7 +239,7 @@ interface nsINetworkInterceptController : nsISupports * @param aChannel The channel that may be intercepted. It will * be in the state prior to calling OnStartRequest(). */ - bool shouldPrepareForIntercept(in nsIURI aURI, in nsIChannel aChannel); + boolean shouldPrepareForIntercept(in nsIURI aURI, in nsIChannel aChannel); /** * Notification when a given intercepted channel is prepared to accept a synthesized diff --git a/netwerk/base/nsIParentChannel.idl b/netwerk/base/nsIParentChannel.idl index a351019d7dca0..92af6004934a7 100644 --- a/netwerk/base/nsIParentChannel.idl +++ b/netwerk/base/nsIParentChannel.idl @@ -62,7 +62,7 @@ interface nsIParentChannel : nsIStreamListener * with the URI of the window. */ [noscript] void notifyClassificationFlags(in uint32_t aClassificationFlags, - in bool aIsThirdParty); + in boolean aIsThirdParty); /** * Called to invoke deletion of the IPC protocol. diff --git a/netwerk/base/nsISecureBrowserUI.idl b/netwerk/base/nsISecureBrowserUI.idl index 6197a9adffb61..b0e9c9e32d417 100644 --- a/netwerk/base/nsISecureBrowserUI.idl +++ b/netwerk/base/nsISecureBrowserUI.idl @@ -12,6 +12,6 @@ interface nsITransportSecurityInfo; interface nsISecureBrowserUI : nsISupports { readonly attribute unsigned long state; - readonly attribute bool isSecureContext; + readonly attribute boolean isSecureContext; readonly attribute nsITransportSecurityInfo secInfo; }; diff --git a/netwerk/base/nsISocketFilter.idl b/netwerk/base/nsISocketFilter.idl index 0846fa2eda2bd..40d58d086aad1 100644 --- a/netwerk/base/nsISocketFilter.idl +++ b/netwerk/base/nsISocketFilter.idl @@ -22,10 +22,10 @@ interface nsISocketFilter : nsISupports const long SF_INCOMING = 0; const long SF_OUTGOING = 1; - bool filterPacket([const]in NetAddrPtr remote_addr, - [const, array, size_is(len)]in uint8_t data, - in unsigned long len, - in long direction); + boolean filterPacket([const]in NetAddrPtr remote_addr, + [const, array, size_is(len)]in uint8_t data, + in unsigned long len, + in long direction); }; /** diff --git a/netwerk/base/nsISocketTransport.idl b/netwerk/base/nsISocketTransport.idl index 58b869203ed2f..c0f26f5c66b68 100644 --- a/netwerk/base/nsISocketTransport.idl +++ b/netwerk/base/nsISocketTransport.idl @@ -132,7 +132,7 @@ interface nsISocketTransport : nsITransport /** * True to set addr and port reuse socket options. */ - void setReuseAddrPort(in bool reuseAddrPort); + void setReuseAddrPort(in boolean reuseAddrPort); /** * Values for the aType parameter passed to get/setTimeout. @@ -349,7 +349,7 @@ interface nsISocketTransport : nsITransport /** * IP address resolved using TRR. */ - bool resolvedByTRR(); + boolean resolvedByTRR(); /** * Returns the effectiveTRRMode used for the DNS resolution. diff --git a/netwerk/base/nsISystemProxySettings.idl b/netwerk/base/nsISystemProxySettings.idl index 935da146aff2b..0b24b0a83a9b1 100644 --- a/netwerk/base/nsISystemProxySettings.idl +++ b/netwerk/base/nsISystemProxySettings.idl @@ -22,7 +22,7 @@ interface nsISystemProxySettings : nsISupports * provided for implementations that do not block but use other main thread only * functions such as dbus. */ - readonly attribute bool mainThreadOnly; + readonly attribute boolean mainThreadOnly; /** * If non-empty, use this PAC file. If empty, call getProxyForURI instead. @@ -43,5 +43,5 @@ interface nsISystemProxySettings : nsISupports /** * Check if system settings are configured to use WPAD */ - readonly attribute bool systemWPADSetting; + readonly attribute boolean systemWPADSetting; }; diff --git a/netwerk/base/nsPISocketTransportService.idl b/netwerk/base/nsPISocketTransportService.idl index e7c8ac5a60a62..8ea8d7ba55a6b 100644 --- a/netwerk/base/nsPISocketTransportService.idl +++ b/netwerk/base/nsPISocketTransportService.idl @@ -17,7 +17,7 @@ interface nsPISocketTransportService : nsIRoutedSocketTransportService * init/shutdown routines. */ void init(); - void shutdown(in bool aXpcomShutdown); + void shutdown(in boolean aXpcomShutdown); /** * controls the TCP sender window clamp diff --git a/netwerk/cache2/nsICachePurgeLock.idl b/netwerk/cache2/nsICachePurgeLock.idl index a0937a8922488..35d2e5457c453 100644 --- a/netwerk/cache2/nsICachePurgeLock.idl +++ b/netwerk/cache2/nsICachePurgeLock.idl @@ -23,7 +23,7 @@ interface nsICachePurgeLock : nsISupports { * Returns true if another instance also holds the lock. * Throws if called before lock was called, or after unlock was called. */ - bool isOtherInstanceRunning(); + boolean isOtherInstanceRunning(); /** * Releases the lock. diff --git a/netwerk/cache2/nsICacheStorage.idl b/netwerk/cache2/nsICacheStorage.idl index 8169c9b730cf4..ddc73313cbbbe 100644 --- a/netwerk/cache2/nsICacheStorage.idl +++ b/netwerk/cache2/nsICacheStorage.idl @@ -121,7 +121,7 @@ interface nsICacheStorage : nsISupports */ void getCacheIndexEntryAttrs(in nsIURI aURI, in ACString aIdExtension, - out bool aHasAltData, + out boolean aHasAltData, out uint32_t aSizeInKB); /** * Asynchronously removes an entry belonging to the URI from the cache. diff --git a/netwerk/dns/nsIDNSByTypeRecord.idl b/netwerk/dns/nsIDNSByTypeRecord.idl index 1d11325af89d3..13290e260e279 100644 --- a/netwerk/dns/nsIDNSByTypeRecord.idl +++ b/netwerk/dns/nsIDNSByTypeRecord.idl @@ -102,7 +102,7 @@ interface nsISVCBRecord : nsISupports { readonly attribute ACString selectedAlpn; readonly attribute ACString echConfig; readonly attribute ACString ODoHConfig; - readonly attribute bool hasIPHintAddress; + readonly attribute boolean hasIPHintAddress; readonly attribute Array values; }; diff --git a/netwerk/dns/nsIDNSRecord.idl b/netwerk/dns/nsIDNSRecord.idl index 82682bd9007e5..27df2e28be2d2 100644 --- a/netwerk/dns/nsIDNSRecord.idl +++ b/netwerk/dns/nsIDNSRecord.idl @@ -111,12 +111,12 @@ interface nsIDNSAddrRecord : nsIDNSRecord /** * Record retreived with TRR. */ - bool IsTRR(); + boolean IsTRR(); /** * Record is resolved in socket process. */ - bool resolvedInSocketProcess(); + boolean resolvedInSocketProcess(); /** * This attribute is only set if TRR is used and it measures time between diff --git a/netwerk/dns/nsIEffectiveTLDService.idl b/netwerk/dns/nsIEffectiveTLDService.idl index abf786e5edbcd..383a6daeb538e 100644 --- a/netwerk/dns/nsIEffectiveTLDService.idl +++ b/netwerk/dns/nsIEffectiveTLDService.idl @@ -201,5 +201,5 @@ interface nsIEffectiveTLDService : nsISupports * @param aInput The host to be analyzed. * @param aHost The host to compare to. */ - bool hasRootDomain(in AUTF8String aInput, in AUTF8String aHost); + boolean hasRootDomain(in AUTF8String aInput, in AUTF8String aHost); }; diff --git a/netwerk/protocol/http/nsIHttpActivityObserver.idl b/netwerk/protocol/http/nsIHttpActivityObserver.idl index 533e6af135d7b..1a2cea84ba311 100644 --- a/netwerk/protocol/http/nsIHttpActivityObserver.idl +++ b/netwerk/protocol/http/nsIHttpActivityObserver.idl @@ -196,9 +196,9 @@ interface nsIHttpActivityDistributor : nsIHttpActivityObserver /** * C++ friendly getter */ - [noscript, notxpcom] bool Activated(); - [noscript, notxpcom] bool ObserveProxyResponseEnabled(); - [noscript, notxpcom] bool ObserveConnectionEnabled(); + [noscript, notxpcom] boolean Activated(); + [noscript, notxpcom] boolean ObserveProxyResponseEnabled(); + [noscript, notxpcom] boolean ObserveConnectionEnabled(); /** * When true, the ACTIVITY_SUBTYPE_PROXY_RESPONSE_HEADER will be sent to diff --git a/netwerk/protocol/http/nsIHttpAuthManager.idl b/netwerk/protocol/http/nsIHttpAuthManager.idl index 5acd652942e8f..cf39a03e34722 100644 --- a/netwerk/protocol/http/nsIHttpAuthManager.idl +++ b/netwerk/protocol/http/nsIHttpAuthManager.idl @@ -63,7 +63,7 @@ interface nsIHttpAuthManager : nsISupports out AString aUserDomain, out AString aUserName, out AString aUserPassword, - [optional] in bool aIsPrivate, + [optional] in boolean aIsPrivate, [optional] in nsIPrincipal aPrincipal); /** diff --git a/netwerk/protocol/http/nsIHttpChannel.idl b/netwerk/protocol/http/nsIHttpChannel.idl index 7ed707eacfae4..1bd7aeba37921 100644 --- a/netwerk/protocol/http/nsIHttpChannel.idl +++ b/netwerk/protocol/http/nsIHttpChannel.idl @@ -204,7 +204,7 @@ interface nsIHttpChannel : nsIIdentChannel * Call this method to see if we need to strip the request body headers * for the new http channel. This should be called during redirection. */ - [must_use] bool ShouldStripRequestBodyHeader(in ACString aMethod); + [must_use] boolean ShouldStripRequestBodyHeader(in ACString aMethod); /** * This attribute of the channel indicates whether or not diff --git a/netwerk/protocol/http/nsIHttpChannelInternal.idl b/netwerk/protocol/http/nsIHttpChannelInternal.idl index f38c69bd96d56..64f41be28be0a 100644 --- a/netwerk/protocol/http/nsIHttpChannelInternal.idl +++ b/netwerk/protocol/http/nsIHttpChannelInternal.idl @@ -105,7 +105,7 @@ interface nsIHttpChannelInternal : nsISupports * Returns true in case this channel is used for auth; * (the response header includes 'www-authenticate'). */ - [noscript, must_use] readonly attribute bool isAuthChannel; + [noscript, must_use] readonly attribute boolean isAuthChannel; /** * This flag is set to force relevant cookies to be sent with this load @@ -458,7 +458,7 @@ interface nsIHttpChannelInternal : nsISupports in nsILoadInfo_CrossOriginOpenerPolicy aInitiatorPolicy); [noscript] - bool hasCrossOriginOpenerPolicyMismatch(); + boolean hasCrossOriginOpenerPolicyMismatch(); [noscript] nsILoadInfo_CrossOriginEmbedderPolicy getResponseEmbedderPolicy(in boolean aIsOriginTrialCoepCredentiallessEnabled); diff --git a/netwerk/protocol/http/nsIWellKnownOpportunisticUtils.idl b/netwerk/protocol/http/nsIWellKnownOpportunisticUtils.idl index fa90891172ebb..366b17fdd4508 100644 --- a/netwerk/protocol/http/nsIWellKnownOpportunisticUtils.idl +++ b/netwerk/protocol/http/nsIWellKnownOpportunisticUtils.idl @@ -19,5 +19,5 @@ interface nsIWellKnownOpportunisticUtils : nsISupports [must_use] void verify(in ACString aJSON, in ACString aOrigin); - [must_use] readonly attribute bool valid; + [must_use] readonly attribute boolean valid; }; diff --git a/netwerk/protocol/websocket/nsIWebSocketEventService.idl b/netwerk/protocol/websocket/nsIWebSocketEventService.idl index 9763850609ef8..b97e06a72bfd0 100644 --- a/netwerk/protocol/websocket/nsIWebSocketEventService.idl +++ b/netwerk/protocol/websocket/nsIWebSocketEventService.idl @@ -83,5 +83,5 @@ interface nsIWebSocketEventService : nsISupports [must_use] void removeListener(in unsigned long long aInnerWindowID, in nsIWebSocketEventListener aListener); - [must_use] bool hasListenerFor(in unsigned long long aInnerWindowID); + [must_use] boolean hasListenerFor(in unsigned long long aInnerWindowID); }; diff --git a/netwerk/protocol/webtransport/nsIWebTransport.idl b/netwerk/protocol/webtransport/nsIWebTransport.idl index 2283c42977436..5ed4e965174a1 100644 --- a/netwerk/protocol/webtransport/nsIWebTransport.idl +++ b/netwerk/protocol/webtransport/nsIWebTransport.idl @@ -82,7 +82,7 @@ interface WebTransportSessionEventListener : nsISupports { // This is used internally to pass the reference of WebTransportSession // object to WebTransportSessionProxy. void onSessionReadyInternal(in Http3WebTransportSessionPtr aSession); - void onSessionClosed(in bool aCleanly, + void onSessionClosed(in boolean aCleanly, in uint32_t aErrorCode, in ACString aReason); @@ -121,7 +121,7 @@ interface WebTransportSessionEventListener : nsISupports { [uuid(faad75bd-83c6-420b-9fdb-a70bd70be449)] interface WebTransportConnectionSettings : nsISupports { // WebTransport specific connection information - readonly attribute bool dedicated; + readonly attribute boolean dedicated; void getServerCertificateHashes(out Array aServerCertHashes); }; diff --git a/security/manager/ssl/nsICertStorage.idl b/security/manager/ssl/nsICertStorage.idl index 91008e3cf0d72..d6b27ec8e1e37 100644 --- a/security/manager/ssl/nsICertStorage.idl +++ b/security/manager/ssl/nsICertStorage.idl @@ -204,7 +204,7 @@ interface nsICertStorage : nsISupports { * revocation information. */ [must_use] - bool isCertRevokedByStash(in Array issuerSPKI, in Array serialNumber); + boolean isCertRevokedByStash(in Array issuerSPKI, in Array serialNumber); /** * Trust flags to use when adding a adding a certificate. diff --git a/security/manager/ssl/nsIClientAuthDialogService.idl b/security/manager/ssl/nsIClientAuthDialogService.idl index e5e0f9f407742..e0f7a76442eac 100644 --- a/security/manager/ssl/nsIClientAuthDialogService.idl +++ b/security/manager/ssl/nsIClientAuthDialogService.idl @@ -10,7 +10,7 @@ interface nsIX509Cert; [scriptable, function, uuid(6b00d96d-fb8a-4c9f-9632-c9e1235befce)] interface nsIClientAuthDialogCallback : nsISupports { - void certificateChosen(in nsIX509Cert cert, in bool rememberDecision); + void certificateChosen(in nsIX509Cert cert, in boolean rememberDecision); }; /** diff --git a/security/manager/ssl/nsIClientAuthRememberService.idl b/security/manager/ssl/nsIClientAuthRememberService.idl index 8797bae869272..cb4f25e16650f 100644 --- a/security/manager/ssl/nsIClientAuthRememberService.idl +++ b/security/manager/ssl/nsIClientAuthRememberService.idl @@ -47,14 +47,14 @@ interface nsIClientAuthRememberService : nsISupports in nsIX509Cert aClientCert); [must_use, noscript] - bool hasRememberedDecision(in ACString aHostName, - in const_OriginAttributesRef aOriginAttributes, - out ACString aCertDBKey); + boolean hasRememberedDecision(in ACString aHostName, + in const_OriginAttributesRef aOriginAttributes, + out ACString aCertDBKey); [implicit_jscontext] - bool hasRememberedDecisionScriptable(in ACString aHostName, - in jsval originAttributes, - out ACString aCertDBKey); + boolean hasRememberedDecisionScriptable(in ACString aHostName, + in jsval originAttributes, + out ACString aCertDBKey); [must_use] void clearRememberedDecisions(); diff --git a/security/manager/ssl/nsIDataStorage.idl b/security/manager/ssl/nsIDataStorage.idl index 3fe2c87f77992..0722dbdd7e1aa 100644 --- a/security/manager/ssl/nsIDataStorage.idl +++ b/security/manager/ssl/nsIDataStorage.idl @@ -103,7 +103,7 @@ interface nsIDataStorage : nsISupports { // Returns true if this data storage is ready to be used. To avoid blocking // when calling other nsIDataStorage functions, callers may wish to first // ensure this function returns true. - bool isReady(); + boolean isReady(); // Read all of the data items. // This operation may block the current thread until the background task diff --git a/security/manager/ssl/nsINSSComponent.idl b/security/manager/ssl/nsINSSComponent.idl index 9c45a84090b23..e39642ebeb176 100644 --- a/security/manager/ssl/nsINSSComponent.idl +++ b/security/manager/ssl/nsINSSComponent.idl @@ -34,7 +34,7 @@ interface nsINSSComponent : nsISupports { * bytes) is the certificate we use in tests to simulate a built-in root * certificate. Returns false in non-debug builds. */ - [noscript] bool isCertTestBuiltInRoot(in Array cert); + [noscript] boolean isCertTestBuiltInRoot(in Array cert); /** * If enabled by the preference "security.enterprise_roots.enabled", returns diff --git a/security/manager/ssl/nsIPublicKeyPinningService.idl b/security/manager/ssl/nsIPublicKeyPinningService.idl index b48f86dbb7698..fef60123e49db 100644 --- a/security/manager/ssl/nsIPublicKeyPinningService.idl +++ b/security/manager/ssl/nsIPublicKeyPinningService.idl @@ -14,7 +14,7 @@ interface nsIPublicKeyPinningService : nsISupports * false otherwise. */ [must_use] - bool hostHasPins(in nsIURI aURI); + boolean hostHasPins(in nsIURI aURI); }; %{C++ diff --git a/security/manager/ssl/nsITLSSocketControl.idl b/security/manager/ssl/nsITLSSocketControl.idl index 42d1b4bcd75ff..a0b6e47c7370e 100644 --- a/security/manager/ssl/nsITLSSocketControl.idl +++ b/security/manager/ssl/nsITLSSocketControl.idl @@ -46,7 +46,7 @@ interface nsITLSSocketControl : nsISupports { /* If 0RTT handshake was applied and some data has been sent, as soon as * the handshake finishes this attribute will be set to appropriate value. */ - readonly attribute bool earlyDataAccepted; + readonly attribute boolean earlyDataAccepted; /* When 0RTT is performed, PR_Write will not drive the handshake forward. * It must be forced by calling this function. diff --git a/security/manager/ssl/nsIX509Cert.idl b/security/manager/ssl/nsIX509Cert.idl index c97dcd33f50eb..ba14cc898e655 100644 --- a/security/manager/ssl/nsIX509Cert.idl +++ b/security/manager/ssl/nsIX509Cert.idl @@ -196,5 +196,5 @@ interface nsIX509Cert : nsISupports { void SerializeToIPC(in IpcMessageWriterPtr aWriter); [notxpcom, noscript] - bool DeserializeFromIPC(in IpcMessageReaderPtr aReader); + boolean DeserializeFromIPC(in IpcMessageReaderPtr aReader); }; diff --git a/security/manager/ssl/nsIX509CertDB.idl b/security/manager/ssl/nsIX509CertDB.idl index 733caed3d6c3e..ce029501b94ba 100644 --- a/security/manager/ssl/nsIX509CertDB.idl +++ b/security/manager/ssl/nsIX509CertDB.idl @@ -44,7 +44,7 @@ interface nsIOpenSignedAppFileCallback : nsISupports [scriptable, function, uuid(07c08655-8b11-4650-b6c4-0c145595ceb5)] interface nsIAsyncBoolCallback : nsISupports { - void onResult(in bool result); + void onResult(in boolean result); }; /** @@ -60,7 +60,7 @@ interface nsIAsyncBoolCallback : nsISupports interface nsICertVerificationCallback : nsISupports { void verifyCertFinished(in int32_t aPRErrorCode, in Array aVerifiedChain, - in bool aHasEVPolicy); + in boolean aHasEVPolicy); }; /** diff --git a/toolkit/components/aboutthirdparty/nsIAboutThirdParty.idl b/toolkit/components/aboutthirdparty/nsIAboutThirdParty.idl index ef5590465a58f..68e41843d0186 100644 --- a/toolkit/components/aboutthirdparty/nsIAboutThirdParty.idl +++ b/toolkit/components/aboutthirdparty/nsIAboutThirdParty.idl @@ -39,12 +39,12 @@ interface nsIAboutThirdParty : nsISupports /** * Returns true if DynamicBlocklist is available. */ - readonly attribute bool isDynamicBlocklistAvailable; + readonly attribute boolean isDynamicBlocklistAvailable; /** * Returns true if DynamicBlocklist is available but disabled. */ - readonly attribute bool isDynamicBlocklistDisabled; + readonly attribute boolean isDynamicBlocklistDisabled; /** * Add or remove an entry from the dynamic blocklist and save diff --git a/toolkit/components/alerts/nsIAlertsService.idl b/toolkit/components/alerts/nsIAlertsService.idl index 2e75205ef5c0d..412875a37bf4b 100644 --- a/toolkit/components/alerts/nsIAlertsService.idl +++ b/toolkit/components/alerts/nsIAlertsService.idl @@ -312,14 +312,14 @@ interface nsIAlertsDoNotDisturb : nsISupports * code to show an alert. e.g. on OS X, the system will take care not * disrupting a user if we simply create a notification like usual. */ - attribute bool manualDoNotDisturb; + attribute boolean manualDoNotDisturb; /** * Toggles a mode for the service to suppress all notifications from * being dispatched when sharing the screen via the getMediaDisplay * API. */ - attribute bool suppressForScreenSharing; + attribute boolean suppressForScreenSharing; }; [scriptable, uuid(fc6d7f0a-0cf6-4268-8c71-ab640842b9b1)] diff --git a/toolkit/components/antitracking/nsIURLQueryStringStripper.idl b/toolkit/components/antitracking/nsIURLQueryStringStripper.idl index 372cc0f94a318..b3e939094bd4a 100644 --- a/toolkit/components/antitracking/nsIURLQueryStringStripper.idl +++ b/toolkit/components/antitracking/nsIURLQueryStringStripper.idl @@ -23,7 +23,7 @@ interface nsIURLQueryStringStripper : nsISupports { // Strip the query parameters that are in the strip list. Return the amount of // query parameters that have been stripped. Returns 0 if no query parameters // have been stripped or the feature is disabled. - uint32_t strip(in nsIURI aURI, in bool aIsPBM, out nsIURI aOutput); + uint32_t strip(in nsIURI aURI, in boolean aIsPBM, out nsIURI aOutput); // Strip the query parameters that are in the stripForCopy/Share strip list. // Returns ether the stripped URI or null if no query parameters have been stripped diff --git a/toolkit/components/autocomplete/nsIAutoCompleteResult.idl b/toolkit/components/autocomplete/nsIAutoCompleteResult.idl index 8e8b05ea4678d..7f85b49b82878 100644 --- a/toolkit/components/autocomplete/nsIAutoCompleteResult.idl +++ b/toolkit/components/autocomplete/nsIAutoCompleteResult.idl @@ -83,7 +83,7 @@ interface nsIAutoCompleteResult : nsISupports /** * True if the value at the given index is removable. */ - bool isRemovableAt(in long rowIndex); + boolean isRemovableAt(in long rowIndex); /** * Remove the value at the given index from the autocomplete results. diff --git a/toolkit/components/backgroundhangmonitor/nsIHangDetails.idl b/toolkit/components/backgroundhangmonitor/nsIHangDetails.idl index f9c6ba2de06b3..df5fcebea89ef 100644 --- a/toolkit/components/backgroundhangmonitor/nsIHangDetails.idl +++ b/toolkit/components/backgroundhangmonitor/nsIHangDetails.idl @@ -24,7 +24,7 @@ interface nsIHangDetails : nsISupports * The hang was persisted to disk as a permahang, so we can clear the * permahang file once we submit this. */ - readonly attribute bool wasPersisted; + readonly attribute boolean wasPersisted; /** * The detected duration of the hang in milliseconds. diff --git a/toolkit/components/browser/nsIWebBrowserChromeFocus.idl b/toolkit/components/browser/nsIWebBrowserChromeFocus.idl index ee24155b51c6c..077ce392016f7 100644 --- a/toolkit/components/browser/nsIWebBrowserChromeFocus.idl +++ b/toolkit/components/browser/nsIWebBrowserChromeFocus.idl @@ -21,12 +21,12 @@ interface nsIWebBrowserChromeFocus : nsISupports * focus the parent window. */ - void focusNextElement(in bool aForDocumentNavigation); + void focusNextElement(in boolean aForDocumentNavigation); /** * Set the focus at the previous focusable element in the chrome. */ - void focusPrevElement(in bool aForDocumentNavigation); + void focusPrevElement(in boolean aForDocumentNavigation); }; diff --git a/toolkit/components/captivedetect/nsICaptivePortalDetector.idl b/toolkit/components/captivedetect/nsICaptivePortalDetector.idl index ba8fff416b317..774c2dd284472 100644 --- a/toolkit/components/captivedetect/nsICaptivePortalDetector.idl +++ b/toolkit/components/captivedetect/nsICaptivePortalDetector.idl @@ -16,7 +16,7 @@ interface nsICaptivePortalCallback : nsISupports /** * Invoke callbacks after captive portal detection finished. */ - void complete(in bool success); + void complete(in boolean success); }; [scriptable, uuid(2f827c5a-f551-477f-af09-71adbfbd854a)] diff --git a/toolkit/components/cleardata/nsIClearDataService.idl b/toolkit/components/cleardata/nsIClearDataService.idl index ea17059bbeb3d..74b1f5f342c01 100644 --- a/toolkit/components/cleardata/nsIClearDataService.idl +++ b/toolkit/components/cleardata/nsIClearDataService.idl @@ -31,7 +31,7 @@ interface nsIClearDataService : nsISupports * @param aCallback this callback will be executed when the operation is * completed. */ - void deleteDataFromLocalFiles(in bool aIsUserRequest, + void deleteDataFromLocalFiles(in boolean aIsUserRequest, in uint32_t aFlags, in nsIClearDataCallback aCallback); @@ -50,7 +50,7 @@ interface nsIClearDataService : nsISupports * @deprecated Use deleteDataFromBaseDomain instead. */ void deleteDataFromHost(in AUTF8String aHost, - in bool aIsUserRequest, + in boolean aIsUserRequest, in uint32_t aFlags, in nsIClearDataCallback aCallback); @@ -76,7 +76,7 @@ interface nsIClearDataService : nsISupports * may fall back to clearing by principal or host. */ void deleteDataFromBaseDomain(in AUTF8String aDomainOrHost, - in bool aIsUserRequest, + in boolean aIsUserRequest, in uint32_t aFlags, in nsIClearDataCallback aCallback); @@ -93,7 +93,7 @@ interface nsIClearDataService : nsISupports * completed. */ void deleteDataFromPrincipal(in nsIPrincipal aPrincipal, - in bool aIsUserRequest, + in boolean aIsUserRequest, in uint32_t aFlags, in nsIClearDataCallback aCallback); @@ -111,7 +111,7 @@ interface nsIClearDataService : nsISupports * completed. */ void deleteDataInTimeRange(in PRTime aFrom, in PRTime aTo, - in bool aIsUserRequest, + in boolean aIsUserRequest, in uint32_t aFlags, in nsIClearDataCallback aCallback); diff --git a/toolkit/components/contentanalysis/nsIContentAnalysis.idl b/toolkit/components/contentanalysis/nsIContentAnalysis.idl index 973069ed11a92..3bea9eb808f36 100644 --- a/toolkit/components/contentanalysis/nsIContentAnalysis.idl +++ b/toolkit/components/contentanalysis/nsIContentAnalysis.idl @@ -201,14 +201,14 @@ interface nsIContentAnalysis : nsISupports * into the parent process to determine whether content analysis is actually * active. */ - readonly attribute bool mightBeActive; + readonly attribute boolean mightBeActive; /** * True if content-analysis activation was determined by enterprise policy, * as opposed to enabled with the `allow-content-analysis` command-line * parameter. */ - attribute bool isSetByEnterprisePolicy; + attribute boolean isSetByEnterprisePolicy; /** * Consults content analysis server, if any, to request a permission @@ -229,7 +229,7 @@ interface nsIContentAnalysis : nsISupports * calling nsIContentAnalysisResponse::acknowledge() if the Promise is resolved. */ [implicit_jscontext] - Promise analyzeContentRequest(in nsIContentAnalysisRequest aCar, in bool aAutoAcknowledge); + Promise analyzeContentRequest(in nsIContentAnalysisRequest aCar, in boolean aAutoAcknowledge); /** * Same functionality as AnalyzeContentRequest(), but more convenient to call @@ -245,7 +245,7 @@ interface nsIContentAnalysis : nsISupports * @param callback * Callbacks to be called when the agent sends a response message (or when there is an error). */ - void analyzeContentRequestCallback(in nsIContentAnalysisRequest aCar, in bool aAutoAcknowledge, in nsIContentAnalysisCallback callback); + void analyzeContentRequestCallback(in nsIContentAnalysisRequest aCar, in boolean aAutoAcknowledge, in nsIContentAnalysisCallback callback); /** * Cancels the request that is in progress. This may not actually cancel the request @@ -261,7 +261,7 @@ interface nsIContentAnalysis : nsISupports * Indicates that the user has responded to a WARN dialog. aAllowContent represents * whether the user wants to allow the request to go through. */ - void respondToWarnDialog(in ACString aRequestToken, in bool aAllowContent); + void respondToWarnDialog(in ACString aRequestToken, in boolean aAllowContent); /** * Cancels all outstanding DLP requests. Used on shutdown. diff --git a/toolkit/components/cookiebanners/nsICookieBannerRule.idl b/toolkit/components/cookiebanners/nsICookieBannerRule.idl index 0ad557fe54ef5..5ed456c90c5dc 100644 --- a/toolkit/components/cookiebanners/nsICookieBannerRule.idl +++ b/toolkit/components/cookiebanners/nsICookieBannerRule.idl @@ -85,7 +85,7 @@ interface nsICookieBannerRule : nsISupports { * aOptIn - The CSS selector for selecting the opt-in banner button */ void addClickRule(in ACString aPresence, - [optional] in bool aSkipPresenceVisibilityCheck, + [optional] in boolean aSkipPresenceVisibilityCheck, [optional] in nsIClickRule_RunContext aRunContext, [optional] in ACString aHide, [optional] in ACString aOptOut, diff --git a/toolkit/components/cookiebanners/nsICookieBannerService.idl b/toolkit/components/cookiebanners/nsICookieBannerService.idl index b58e72631046d..4d8db6f94e0ff 100644 --- a/toolkit/components/cookiebanners/nsICookieBannerService.idl +++ b/toolkit/components/cookiebanners/nsICookieBannerService.idl @@ -58,13 +58,13 @@ interface nsICookieBannerService : nsISupports { * this will return none, only reject rules or accept rules if there is no * reject rule available. */ - Array getCookiesForURI(in nsIURI aURI, in bool aIsPrivateBrowsing); + Array getCookiesForURI(in nsIURI aURI, in boolean aIsPrivateBrowsing); /** * Look up the click rules for a given domain. */ Array getClickRulesForDomain(in ACString aDomain, - in bool aIsTopLevel); + in boolean aIsTopLevel); /** * Insert a cookie banner rule for a domain. If there was previously a rule @@ -131,28 +131,28 @@ interface nsICookieBannerService : nsISupports { * this session. */ boolean shouldStopBannerClickingForSite(in ACString aSite, - in bool aIsTopLevel, - in bool aIsPrivate); + in boolean aIsTopLevel, + in boolean aIsPrivate); /** * Mark that the cookie banner handling code was executed for the given site * for this session. */ void markSiteExecuted(in ACString aSite, - in bool aIsTopLevel, - in bool aIsPrivate); + in boolean aIsTopLevel, + in boolean aIsPrivate); /* * Remove the executed record for a given site under the private browsing * session or the normal session. */ - void removeExecutedRecordForSite(in ACString aSite, in bool aIsPrivate); + void removeExecutedRecordForSite(in ACString aSite, in boolean aIsPrivate); /** * Remove all the record of sites where cookie banner handling has been * executed under the private browsing session or normal session. */ - void removeAllExecutedRecords(in bool aIsPrivate); + void removeAllExecutedRecords(in boolean aIsPrivate); /** * Clears the in-memory set that we use to maintain the domains that we have diff --git a/toolkit/components/enterprisepolicies/nsIEnterprisePolicies.idl b/toolkit/components/enterprisepolicies/nsIEnterprisePolicies.idl index 03c51af49fadb..24d4ae4dcf293 100644 --- a/toolkit/components/enterprisepolicies/nsIEnterprisePolicies.idl +++ b/toolkit/components/enterprisepolicies/nsIEnterprisePolicies.idl @@ -15,7 +15,7 @@ interface nsIEnterprisePolicies : nsISupports readonly attribute short status; - bool isAllowed(in ACString feature); + boolean isAllowed(in ACString feature); /** * Get the active policies that have been successfully parsed. @@ -56,7 +56,7 @@ interface nsIEnterprisePolicies : nsISupports * * @returns A boolean - true of the addon may be installed. */ - bool mayInstallAddon(in jsval addon); + boolean mayInstallAddon(in jsval addon); /** * Uses install_sources to determine if an addon can be installed @@ -64,7 +64,7 @@ interface nsIEnterprisePolicies : nsISupports * * @returns A boolean - true of the addon may be installed. */ - bool allowedInstallSource(in nsIURI uri); + boolean allowedInstallSource(in nsIURI uri); /** * Uses ExemptDomainFileTypePairsFromFileTypeDownloadWarnings to determine * if a given file extension is exempted from executable behavior and @@ -72,5 +72,5 @@ interface nsIEnterprisePolicies : nsISupports * * @returns A boolean - true if the extension should be exempt. */ - bool isExemptExecutableExtension(in ACString url, in ACString extension); + boolean isExemptExecutableExtension(in ACString url, in ACString extension); }; diff --git a/toolkit/components/extensions/extIWebNavigation.idl b/toolkit/components/extensions/extIWebNavigation.idl index 3095d93d9f80b..1db9e73808502 100644 --- a/toolkit/components/extensions/extIWebNavigation.idl +++ b/toolkit/components/extensions/extIWebNavigation.idl @@ -17,8 +17,8 @@ interface extIWebNavigation : nsISupports void onHistoryChange(in BrowsingContext bc, in jsval transitionData, in nsIURI location, - in bool isHistoryStateUpdated, - in bool isReferenceFragmentUpdated); + in boolean isHistoryStateUpdated, + in boolean isReferenceFragmentUpdated); void onStateChange(in BrowsingContext bc, in nsIURI requestURI, diff --git a/toolkit/components/extensions/mozIExtensionAPIRequestHandling.idl b/toolkit/components/extensions/mozIExtensionAPIRequestHandling.idl index 0a2e3c7a5d748..d7eb40345b33b 100644 --- a/toolkit/components/extensions/mozIExtensionAPIRequestHandling.idl +++ b/toolkit/components/extensions/mozIExtensionAPIRequestHandling.idl @@ -35,7 +35,7 @@ interface mozIExtensionListenerCallOptions : nsISupports // An optional boolean to be set to true if the api object should be // prepended to the rest of the call arguments (by default it is appended). - readonly attribute bool apiObjectPrepended; + readonly attribute boolean apiObjectPrepended; cenum CallbackType: 8 { // Default: no callback argument is passed to the call to the event listener. diff --git a/toolkit/components/extensions/mozIExtensionProcessScript.idl b/toolkit/components/extensions/mozIExtensionProcessScript.idl index 84b33a9d02247..47e442149c09e 100644 --- a/toolkit/components/extensions/mozIExtensionProcessScript.idl +++ b/toolkit/components/extensions/mozIExtensionProcessScript.idl @@ -17,5 +17,5 @@ interface mozIExtensionProcessScript : nsISupports in mozIDOMWindow window); void initExtensionDocument(in nsISupports extension, in Document doc, - in bool privileged); + in boolean privileged); }; diff --git a/toolkit/components/kvstore/nsIKeyValue.idl b/toolkit/components/kvstore/nsIKeyValue.idl index 08cd548af25cb..3d890eaa9602a 100644 --- a/toolkit/components/kvstore/nsIKeyValue.idl +++ b/toolkit/components/kvstore/nsIKeyValue.idl @@ -174,7 +174,7 @@ interface nsIKeyValuePair : nsISupports { */ [scriptable, builtinclass, rust_sync, uuid(b9ba7116-b7ff-4717-9a28-a08e6879b199)] interface nsIKeyValueEnumerator : nsISupports { - bool hasMoreElements(); + boolean hasMoreElements(); nsIKeyValuePair getNext(); }; diff --git a/toolkit/components/places/mozIAsyncHistory.idl b/toolkit/components/places/mozIAsyncHistory.idl index 88690b4798e35..27487ebc9b4a9 100644 --- a/toolkit/components/places/mozIAsyncHistory.idl +++ b/toolkit/components/places/mozIAsyncHistory.idl @@ -107,8 +107,8 @@ interface mozIVisitInfoCallback : nsISupports * handleResult and handleError, respectively, if/once * results/errors occur. */ - readonly attribute bool ignoreResults; - readonly attribute bool ignoreErrors; + readonly attribute boolean ignoreResults; + readonly attribute boolean ignoreErrors; }; [scriptable, function, uuid(994092bf-936f-449b-8dd6-0941e024360d)] diff --git a/toolkit/components/places/mozISyncedBookmarksMirror.idl b/toolkit/components/places/mozISyncedBookmarksMirror.idl index 0ceaeff5ad3f9..701b7a128d24c 100644 --- a/toolkit/components/places/mozISyncedBookmarksMirror.idl +++ b/toolkit/components/places/mozISyncedBookmarksMirror.idl @@ -34,7 +34,7 @@ interface mozISyncedBookmarksMirrorProgressListener : nsISupports { // A callback called when the merge finishes. [scriptable, uuid(d23fdfea-92c8-409d-a516-08ae395d578f)] interface mozISyncedBookmarksMirrorCallback : nsISupports { - void handleSuccess(in bool result); + void handleSuccess(in boolean result); void handleError(in nsresult code, in AString message); }; diff --git a/toolkit/components/reputationservice/nsIApplicationReputation.idl b/toolkit/components/reputationservice/nsIApplicationReputation.idl index ea7f92038e96d..50a923ad2dd6f 100644 --- a/toolkit/components/reputationservice/nsIApplicationReputation.idl +++ b/toolkit/components/reputationservice/nsIApplicationReputation.idl @@ -59,7 +59,7 @@ interface nsIApplicationReputationService : nsISupports { * @param aFilename * The filename to check. */ - bool isBinary(in AUTF8String aFilename); + boolean isBinary(in AUTF8String aFilename); /** * Check if a file with this name should be treated as an executable, @@ -70,7 +70,7 @@ interface nsIApplicationReputationService : nsISupports { * @param aFilename * The filename to check. */ - bool isExecutable(in AUTF8String aFilename); + boolean isExecutable(in AUTF8String aFilename); }; /** @@ -141,7 +141,7 @@ interface nsIApplicationReputationCallback : nsISupports { * This may be set to a value different than "VERDICT_SAFE" even if * aShouldBlock is false, so you should always check aShouldBlock. */ - void onComplete(in bool aShouldBlock, + void onComplete(in boolean aShouldBlock, in nsresult aStatus, in unsigned long aVerdict); }; diff --git a/toolkit/components/satchel/nsIFormHistoryAutoComplete.idl b/toolkit/components/satchel/nsIFormHistoryAutoComplete.idl index 8d7b7828a74f8..279b09f51e8fc 100644 --- a/toolkit/components/satchel/nsIFormHistoryAutoComplete.idl +++ b/toolkit/components/satchel/nsIFormHistoryAutoComplete.idl @@ -20,7 +20,7 @@ interface nsIFormHistoryAutoComplete: nsISupports { in AString aSearchString, in HTMLInputElement aField, in nsIAutoCompleteResult aPreviousResult, - in bool aAddDatalist, + in boolean aAddDatalist, in nsIFormFillCompleteObserver aListener); /** diff --git a/toolkit/components/search/nsISearchService.idl b/toolkit/components/search/nsISearchService.idl index dae36d316e47b..b59e9a9399109 100644 --- a/toolkit/components/search/nsISearchService.idl +++ b/toolkit/components/search/nsISearchService.idl @@ -290,13 +290,13 @@ interface nsISearchService : nsISupports * @return |true| if the search service is now initialized, |false| if * initialization has not been triggered yet. */ - readonly attribute bool isInitialized; + readonly attribute boolean isInitialized; /** * Determine whether initialization has been completed successfully. * */ - readonly attribute bool hasSuccessfullyInitialized; + readonly attribute boolean hasSuccessfullyInitialized; /** diff --git a/toolkit/components/startup/public/nsIAppStartup.idl b/toolkit/components/startup/public/nsIAppStartup.idl index dec948b503ee3..e8b407faeb328 100644 --- a/toolkit/components/startup/public/nsIAppStartup.idl +++ b/toolkit/components/startup/public/nsIAppStartup.idl @@ -81,7 +81,7 @@ interface nsIAppStartup : nsISupports * was called (and therefore the application crashed). * @return whether safe mode is necessary */ - bool trackStartupCrashBegin(); + boolean trackStartupCrashBegin(); /** * We have succesfully started without crashing. Clear flags that were @@ -149,7 +149,7 @@ interface nsIAppStartup : nsISupports * of a hidden window or if the user disallowed a window * to be closed. */ - bool quit(in uint32_t aMode, [optional] in int32_t aExitCode); + boolean quit(in uint32_t aMode, [optional] in int32_t aExitCode); /** * These values must match the xpcom/base/ShutdownPhase.h values. @@ -190,7 +190,7 @@ interface nsIAppStartup : nsISupports * * @return true if we are in or beyond the given phase. */ - bool isInOrBeyondShutdownPhase(in nsIAppStartup_IDLShutdownPhase aPhase); + boolean isInOrBeyondShutdownPhase(in nsIAppStartup_IDLShutdownPhase aPhase); /** * True if the application is in the process of shutting down. @@ -240,7 +240,7 @@ interface nsIAppStartup : nsISupports /** * Whether or not we showed the startup skeleton UI. */ - readonly attribute bool showedPreXULSkeletonUI; + readonly attribute boolean showedPreXULSkeletonUI; /** * Returns an object with main, process, firstPaint, sessionRestored properties. diff --git a/toolkit/components/xulstore/nsIXULStore.idl b/toolkit/components/xulstore/nsIXULStore.idl index 832c07dc90f8c..488a99c50b7dc 100644 --- a/toolkit/components/xulstore/nsIXULStore.idl +++ b/toolkit/components/xulstore/nsIXULStore.idl @@ -46,7 +46,7 @@ interface nsIXULStore: nsISupports * @param id - identifier of the node * @param attr - attribute */ - bool hasValue(in AString doc, in AString id, in AString attr); + boolean hasValue(in AString doc, in AString id, in AString attr); /** * Retrieves a value in the store, or an empty string if it does not exist. diff --git a/toolkit/mozapps/defaultagent/nsIWindowsMutex.idl b/toolkit/mozapps/defaultagent/nsIWindowsMutex.idl index 69090aa76421e..39ab84bf1f84f 100644 --- a/toolkit/mozapps/defaultagent/nsIWindowsMutex.idl +++ b/toolkit/mozapps/defaultagent/nsIWindowsMutex.idl @@ -36,7 +36,7 @@ interface nsIWindowsMutex : nsISupports * * @return {boolean} true if locked, false if unlocked. */ - bool isLocked(); + boolean isLocked(); /** * Unlocks the mutex. diff --git a/toolkit/mozapps/update/nsIUpdateService.idl b/toolkit/mozapps/update/nsIUpdateService.idl index ab1712587c4b8..972d0f4f55cfb 100644 --- a/toolkit/mozapps/update/nsIUpdateService.idl +++ b/toolkit/mozapps/update/nsIUpdateService.idl @@ -380,7 +380,7 @@ interface nsIApplicationUpdateService : nsISupports * check starting does not necessarily mean that the check will * succeed or that an update will be downloaded. */ - bool checkForBackgroundUpdates(); + boolean checkForBackgroundUpdates(); /** * Selects the best update to install from a list of available updates. @@ -654,7 +654,7 @@ interface nsIUpdateProcessor : nsISupports * @throws NS_ERROR_NOT_IMPLEMENTED * If this is called on a non-Windows platform. */ - bool getServiceRegKeyExists(); + boolean getServiceRegKeyExists(); /** * Attempts to restart the application manually on program exit with the same @@ -724,7 +724,7 @@ interface nsIUpdateSyncManager : nsISupports * Returns whether another instance of this application is running. * @returns true if another instance has the lock open, false if not */ - bool isOtherInstanceRunning(); + boolean isOtherInstanceRunning(); /** * Should only be used for testing. diff --git a/toolkit/profile/nsIToolkitProfileService.idl b/toolkit/profile/nsIToolkitProfileService.idl index f8519f1101891..66cc5a6977bbd 100644 --- a/toolkit/profile/nsIToolkitProfileService.idl +++ b/toolkit/profile/nsIToolkitProfileService.idl @@ -79,11 +79,11 @@ interface nsIToolkitProfileService : nsISupports * This returns true if a new profile was created. * This method is primarily for testing. It can be called only once. */ - bool selectStartupProfile(in Array aArgv, - in boolean aIsResetting, in AUTF8String aUpdateChannel, - in AUTF8String aLegacyInstallHash, - out nsIFile aRootDir, out nsIFile aLocalDir, - out nsIToolkitProfile aProfile); + boolean selectStartupProfile(in Array aArgv, + in boolean aIsResetting, in AUTF8String aUpdateChannel, + in AUTF8String aLegacyInstallHash, + out nsIFile aRootDir, out nsIFile aLocalDir, + out nsIToolkitProfile aProfile); /** * Get a profile by name. This is mainly for use by the -P diff --git a/uriloader/exthandler/nsIContentDispatchChooser.idl b/uriloader/exthandler/nsIContentDispatchChooser.idl index 00d61e575bc5f..c0130038d46d4 100644 --- a/uriloader/exthandler/nsIContentDispatchChooser.idl +++ b/uriloader/exthandler/nsIContentDispatchChooser.idl @@ -36,5 +36,5 @@ interface nsIContentDispatchChooser : nsISupports { in nsIURI aURI, in nsIPrincipal aTriggeringPrincipal, in BrowsingContext aBrowsingContext, - [optional] in bool aWasTriggeredExternally); + [optional] in boolean aWasTriggeredExternally); }; diff --git a/uriloader/exthandler/nsIExternalProtocolService.idl b/uriloader/exthandler/nsIExternalProtocolService.idl index 7d714035e633a..5c544a967d2a0 100644 --- a/uriloader/exthandler/nsIExternalProtocolService.idl +++ b/uriloader/exthandler/nsIExternalProtocolService.idl @@ -129,8 +129,8 @@ interface nsIExternalProtocolService : nsISupports [optional] in nsIPrincipal aTriggeringPrincipal, [optional] in nsIPrincipal aRedirectPrincipal, [optional] in BrowsingContext aBrowsingContext, - [optional] in bool aWasTriggeredExternally, - [optional] in bool aHasValidUserGestureActivation); + [optional] in boolean aWasTriggeredExternally, + [optional] in boolean aHasValidUserGestureActivation); /** * Gets a human-readable description for the application responsible for @@ -151,5 +151,5 @@ interface nsIExternalProtocolService : nsISupports * * @param aScheme The scheme to look up. For example, "mms". */ - bool isCurrentAppOSDefaultForProtocol(in AUTF8String aScheme); + boolean isCurrentAppOSDefaultForProtocol(in AUTF8String aScheme); }; diff --git a/widget/nsIDragSession.idl b/widget/nsIDragSession.idl index e96e6fc1c78d8..8dbf93e719621 100644 --- a/widget/nsIDragSession.idl +++ b/widget/nsIDragSession.idl @@ -135,7 +135,7 @@ interface nsIDragSession : nsISupports /** * Returns true if current session was started with synthesized drag start. */ - [notxpcom, nostdcall] bool isSynthesizedForTests(); + [notxpcom, nostdcall] boolean isSynthesizedForTests(); /** * Sets drag end point of synthesized session when the test does not dispatch @@ -147,5 +147,5 @@ interface nsIDragSession : nsISupports * Returns true if the session is for dragging text in a text in text control * element. */ - [notxpcom, nostdcall] bool isDraggingTextInTextControl(); + [notxpcom, nostdcall] boolean isDraggingTextInTextControl(); }; diff --git a/widget/nsIMacDockSupport.idl b/widget/nsIMacDockSupport.idl index 04d6dca7741e0..6f0f1adbaeda2 100644 --- a/widget/nsIMacDockSupport.idl +++ b/widget/nsIMacDockSupport.idl @@ -41,7 +41,7 @@ interface nsIMacDockSupport : nsISupports * True if this app is in the list of apps that are persisted to the macOS * Dock (as if the user selected "Keep in Dock"). */ - readonly attribute bool isAppInDock; + readonly attribute boolean isAppInDock; /** * Ensure that there is a tile for this app in the list of apps that are @@ -66,6 +66,6 @@ interface nsIMacDockSupport : nsISupports * @return true if the app was already in the list of persisted apps or if it * was successfully added, else returns false. */ - bool ensureAppIsPinnedToDock([optional] in AString aAppPath, - [optional] in AString aAppToReplacePath); + boolean ensureAppIsPinnedToDock([optional] in AString aAppPath, + [optional] in AString aAppToReplacePath); }; diff --git a/widget/nsIPrintSettings.idl b/widget/nsIPrintSettings.idl index efed9efce64a2..2355e776e0121 100644 --- a/widget/nsIPrintSettings.idl +++ b/widget/nsIPrintSettings.idl @@ -203,7 +203,7 @@ interface nsIPrintSettings : nsISupports * to make best use of the space on the sheet. Specifically, this returns * true IFF `numPagesPerSheet` is set to 2 or 6 pages-per-sheet. */ - [noscript, notxpcom, nostdcall] bool HasOrthogonalPagesPerSheet(); + [noscript, notxpcom, nostdcall] boolean HasOrthogonalPagesPerSheet(); /** * Makes a new copy @@ -220,7 +220,7 @@ interface nsIPrintSettings : nsISupports * therefore print. The printer name is ignored and it allows for a small * delta in sizes to allow for rounding differences. */ - bool equivalentTo(in nsIPrintSettings aPrintSettings); + boolean equivalentTo(in nsIPrintSettings aPrintSettings); /** * The edge measurements define the positioning of the headers diff --git a/xpcom/base/nsIDebug2.idl b/xpcom/base/nsIDebug2.idl index 4672fea7ead27..f60a8eafa50f7 100644 --- a/xpcom/base/nsIDebug2.idl +++ b/xpcom/base/nsIDebug2.idl @@ -33,7 +33,7 @@ interface nsIDebug2 : nsISupports * Whether a debugger is currently attached. * Supports Windows + Mac */ - readonly attribute bool isDebuggerAttached; + readonly attribute boolean isDebuggerAttached; /** * Show an assertion and trigger nsIDebug2.break(). diff --git a/xpcom/base/nsIMacPreferencesReader.idl b/xpcom/base/nsIMacPreferencesReader.idl index 470fd92ec9694..29461f862a1aa 100644 --- a/xpcom/base/nsIMacPreferencesReader.idl +++ b/xpcom/base/nsIMacPreferencesReader.idl @@ -22,7 +22,7 @@ interface nsIMacPreferencesReader : nsISupports * * @return true if macOS policies are enabled, false otherwise. */ - bool policiesEnabled(); + boolean policiesEnabled(); /** * This method reads and returns the macOS preferences. diff --git a/xpcom/base/nsIMemoryInfoDumper.idl b/xpcom/base/nsIMemoryInfoDumper.idl index 79b03a709df06..83290b57ab7a0 100644 --- a/xpcom/base/nsIMemoryInfoDumper.idl +++ b/xpcom/base/nsIMemoryInfoDumper.idl @@ -36,7 +36,7 @@ interface nsIDumpGCAndCCLogsCallback : nsISupports */ void onDump(in nsIFile aGCLog, in nsIFile aCCLog, - in bool aIsParent); + in boolean aIsParent); /** * Called when GC/CC logging has finished, after all calls to |onDump|. @@ -153,8 +153,8 @@ interface nsIMemoryInfoDumper : nsISupports * */ void dumpGCAndCCLogsToFile(in AString aIdentifier, - in bool aDumpAllTraces, - in bool aDumpChildProcesses, + in boolean aDumpAllTraces, + in boolean aDumpChildProcesses, in nsIDumpGCAndCCLogsCallback aCallback); /** @@ -162,6 +162,6 @@ interface nsIMemoryInfoDumper : nsISupports * sink object instead of accessing the filesystem directly, and * dumps the current process only. */ - void dumpGCAndCCLogsToSink(in bool aDumpAllTraces, + void dumpGCAndCCLogsToSink(in boolean aDumpAllTraces, in nsICycleCollectorLogSink aSink); }; diff --git a/xpcom/base/nsrootidl.idl b/xpcom/base/nsrootidl.idl index 292ea54890112..167750ef54be0 100644 --- a/xpcom/base/nsrootidl.idl +++ b/xpcom/base/nsrootidl.idl @@ -38,7 +38,6 @@ class Promise; // [substitute] typedefs emit the underlying builtin type directly, and // avoid polluting bindings for other languages with C++ stdint types. -[substitute] typedef boolean bool ; [substitute] typedef octet uint8_t ; [substitute] typedef unsigned short uint16_t ; [substitute] typedef unsigned long uint32_t ; diff --git a/xpcom/io/nsIFile.idl b/xpcom/io/nsIFile.idl index 535a7a88eeb71..89c2155e945cf 100644 --- a/xpcom/io/nsIFile.idl +++ b/xpcom/io/nsIFile.idl @@ -106,7 +106,7 @@ interface nsIFile : nsISupports * ancestor directories (and return an error instead). */ [must_use] void create(in unsigned long type, in unsigned long permissions, - [optional,default(false)] in bool skipAncestors); + [optional,default(false)] in boolean skipAncestors); /** * Accessor to the leaf name of the file itself. diff --git a/xpcom/io/nsILocalFileMac.idl b/xpcom/io/nsILocalFileMac.idl index 38559517e71a7..a9de769b86c59 100644 --- a/xpcom/io/nsILocalFileMac.idl +++ b/xpcom/io/nsILocalFileMac.idl @@ -176,7 +176,7 @@ interface nsILocalFileMac : nsIFile * * @return Whether or not the extended attribute is present. */ - bool hasXAttr(in ACString aAttrName); + boolean hasXAttr(in ACString aAttrName); /** * Get the value of the extended attribute. diff --git a/xpcom/io/nsILocalFileWin.idl b/xpcom/io/nsILocalFileWin.idl index a3f80d391b6e1..1195e2aa5851e 100644 --- a/xpcom/io/nsILocalFileWin.idl +++ b/xpcom/io/nsILocalFileWin.idl @@ -53,7 +53,7 @@ interface nsILocalFileWin : nsIFile * Throws NS_ERROR_FILE_INVALID_PATH for an invalid file. * Throws NS_ERROR_FAILURE if the set or get fails. */ - attribute bool readOnly; + attribute boolean readOnly; /** * Setting this to true will prepend the prefix "\\?\" to all parsed file diff --git a/xpcom/io/nsIRandomAccessStream.idl b/xpcom/io/nsIRandomAccessStream.idl index 20421def17e4d..87bc3626f35ec 100644 --- a/xpcom/io/nsIRandomAccessStream.idl +++ b/xpcom/io/nsIRandomAccessStream.idl @@ -58,5 +58,5 @@ interface nsIRandomAccessStream : nsISeekableStream [notxpcom, nostdcall] RandomAccessStreamParams serialize(in nsIInterfaceRequestor aCallbacks); - [notxpcom, nostdcall] bool deserialize(inout RandomAccessStreamParamsRef params); + [notxpcom, nostdcall] boolean deserialize(inout RandomAccessStreamParamsRef params); }; diff --git a/xpcom/system/nsICrashReporter.idl b/xpcom/system/nsICrashReporter.idl index 6fd0967e752d5..dbbc36f0e0192 100644 --- a/xpcom/system/nsICrashReporter.idl +++ b/xpcom/system/nsICrashReporter.idl @@ -27,7 +27,7 @@ interface nsICrashReporter : nsISupports * because the JS engine relies on proper exception handler chaining. */ [noscript] - void setEnabled(in bool enabled); + void setEnabled(in boolean enabled); /** * Get or set the URL to which crash reports will be submitted. diff --git a/xpcom/system/nsIDeviceSensors.idl b/xpcom/system/nsIDeviceSensors.idl index a173421ebf6be..488e9428a859e 100644 --- a/xpcom/system/nsIDeviceSensors.idl +++ b/xpcom/system/nsIDeviceSensors.idl @@ -39,7 +39,7 @@ interface nsIDeviceSensors : nsISupports /** * Returns true if the given window has any listeners of the given type */ - bool hasWindowListener(in unsigned long aType, in nsIDOMWindow aWindow); + boolean hasWindowListener(in unsigned long aType, in nsIDOMWindow aWindow); // Holds pointers, not AddRef objects -- it is up to the caller // to call RemoveWindowListener before the window is deleted. diff --git a/xpcom/threads/nsIDirectTaskDispatcher.idl b/xpcom/threads/nsIDirectTaskDispatcher.idl index 7d446087082b7..dd5142e39c28a 100644 --- a/xpcom/threads/nsIDirectTaskDispatcher.idl +++ b/xpcom/threads/nsIDirectTaskDispatcher.idl @@ -43,7 +43,7 @@ interface nsIDirectTaskDispatcher : nsISupports /** * Returns true if any direct tasks are pending. */ - [noscript] bool haveDirectTasks(); + [noscript] boolean haveDirectTasks(); %{C++ // Infallible version of the above. Will assert that it is successful. diff --git a/xpcom/threads/nsIThreadInternal.idl b/xpcom/threads/nsIThreadInternal.idl index ecc0f540f1cff..03104db0fa162 100644 --- a/xpcom/threads/nsIThreadInternal.idl +++ b/xpcom/threads/nsIThreadInternal.idl @@ -106,5 +106,5 @@ interface nsIThreadObserver : nsISupports * |mayWait| flag was false when calling nsIThread::ProcessNextEvent(). */ void afterProcessNextEvent(in nsIThreadInternal thread, - in bool eventWasProcessed); + in boolean eventWasProcessed); }; diff --git a/xpcom/threads/nsIThreadManager.idl b/xpcom/threads/nsIThreadManager.idl index 879ec05e3ad34..9629cb630aa57 100644 --- a/xpcom/threads/nsIThreadManager.idl +++ b/xpcom/threads/nsIThreadManager.idl @@ -23,7 +23,7 @@ interface nsINestedEventLoopCondition : nsISupports /** * Returns true if the current nested event loop should stop spinning. */ - bool isDone(); + boolean isDone(); }; /** diff --git a/xpfe/appshell/nsIAppShellService.idl b/xpfe/appshell/nsIAppShellService.idl index d8de8ae14933d..3f793c4ec80a6 100644 --- a/xpfe/appshell/nsIAppShellService.idl +++ b/xpfe/appshell/nsIAppShellService.idl @@ -52,7 +52,7 @@ interface nsIAppShellService : nsISupports * @param aChromeMask Used to specify chrome flags that should be set on the * window. See nsIWebBrowserChrome for flag definitions. */ - nsIWindowlessBrowser createWindowlessBrowser([optional] in bool aIsChrome, + nsIWindowlessBrowser createWindowlessBrowser([optional] in boolean aIsChrome, [optional] in uint32_t aChromeMask); [noscript] @@ -123,6 +123,6 @@ interface nsIAppShellService : nsISupports * is already enabled has no effect. * @return true if tracking succeeded. */ - bool startEventLoopLagTracking(); + boolean startEventLoopLagTracking(); void stopEventLoopLagTracking(); }; diff --git a/xpfe/appshell/nsIAppWindow.idl b/xpfe/appshell/nsIAppWindow.idl index 3c3229071ad27..d373043bac894 100644 --- a/xpfe/appshell/nsIAppWindow.idl +++ b/xpfe/appshell/nsIAppWindow.idl @@ -101,7 +101,7 @@ interface nsIAppWindow : nsISupports * Locks the aspect ratio for a window. * @param aShouldLock boolean */ - void lockAspectRatio(in bool aShouldLock); + void lockAspectRatio(in boolean aShouldLock); const unsigned long lowestZ = 0; const unsigned long loweredZ = 4; /* "alwaysLowered" attribute */