From e95edb30a9d85df5852d8def1fd030d302caed75 Mon Sep 17 00:00:00 2001 From: Kyle Huey Date: Sat, 30 Jan 2016 09:05:36 -0800 Subject: [PATCH] Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug --- accessible/base/DocManager.cpp | 9 +- accessible/base/FocusManager.cpp | 2 +- accessible/base/Logging.cpp | 4 +- accessible/generic/ApplicationAccessible.cpp | 3 +- accessible/generic/HyperTextAccessible.cpp | 2 +- accessible/generic/ImageAccessible.cpp | 4 +- accessible/generic/RootAccessible.cpp | 10 +- .../interfaces/nsIAccessibleDocument.idl | 6 +- .../interfaces/nsIAccessibleRetrieval.idl | 1 - accessible/windows/msaa/nsWinUtils.cpp | 3 +- accessible/xpcom/xpcAccessibleDocument.cpp | 2 +- accessible/xpcom/xpcAccessibleDocument.h | 2 +- chrome/nsChromeRegistry.cpp | 14 +- chrome/nsChromeRegistry.h | 4 +- docshell/base/LoadContext.cpp | 4 +- docshell/base/nsDSURIContentListener.cpp | 13 +- docshell/base/nsDocShell.cpp | 88 +-- docshell/base/nsDocShell.h | 4 +- docshell/base/nsDocShellEditorData.cpp | 12 +- docshell/base/nsIDocShell.idl | 2 +- docshell/base/nsIDocShellTreeItem.idl | 6 +- docshell/base/nsILoadContext.idl | 8 +- dom/activities/Activity.cpp | 4 +- dom/activities/Activity.h | 6 +- .../interfaces/nsIActivityProxy.idl | 6 +- dom/archivereader/ArchiveReader.cpp | 4 +- dom/archivereader/ArchiveReader.h | 6 +- dom/archivereader/ArchiveRequest.cpp | 4 +- dom/archivereader/ArchiveRequest.h | 4 +- dom/audiochannel/AudioChannelAgent.cpp | 44 +- dom/audiochannel/AudioChannelAgent.h | 11 +- dom/audiochannel/AudioChannelService.cpp | 77 +- dom/audiochannel/AudioChannelService.h | 23 +- dom/audiochannel/nsIAudioChannelAgent.idl | 8 +- dom/audiochannel/nsIAudioChannelService.idl | 14 +- dom/base/BarProps.cpp | 4 +- dom/base/BarProps.h | 2 +- dom/base/ChromeNodeList.cpp | 2 +- dom/base/Comment.cpp | 2 +- dom/base/Console.cpp | 26 +- dom/base/Console.h | 6 +- dom/base/DOMCursor.cpp | 2 +- dom/base/DOMCursor.h | 2 +- dom/base/DOMError.cpp | 10 +- dom/base/DOMError.h | 15 +- dom/base/DOMParser.cpp | 2 +- dom/base/DOMRequest.cpp | 17 +- dom/base/DOMRequest.h | 4 +- dom/base/DocumentFragment.cpp | 2 +- dom/base/Element.cpp | 5 +- dom/base/EventSource.cpp | 18 +- dom/base/EventSource.h | 6 +- dom/base/File.cpp | 6 +- dom/base/FragmentOrElement.cpp | 2 +- dom/base/MultipartBlobImpl.cpp | 4 +- dom/base/MultipartBlobImpl.h | 4 +- dom/base/Navigator.cpp | 51 +- dom/base/Navigator.h | 20 +- dom/base/PerformanceObserver.cpp | 4 +- dom/base/PerformanceObserver.h | 4 +- dom/base/PostMessageEvent.cpp | 20 +- dom/base/PostMessageEvent.h | 1 - dom/base/ScreenOrientation.cpp | 10 +- dom/base/ScreenOrientation.h | 2 +- dom/base/ScriptSettings.cpp | 35 +- dom/base/ScriptSettings.h | 8 +- dom/base/StructuredCloneHolder.cpp | 2 +- dom/base/Text.cpp | 2 +- dom/base/TextInputProcessor.cpp | 8 +- dom/base/TextInputProcessor.h | 2 +- dom/base/ThirdPartyUtil.cpp | 17 +- dom/base/WebSocket.cpp | 53 +- dom/base/WebSocket.h | 4 +- dom/base/WindowNamedPropertiesHandler.cpp | 10 +- dom/base/WindowOrientationObserver.cpp | 2 +- dom/base/moz.build | 2 + dom/base/mozIDOMWindow.idl | 16 + dom/base/nsCCUncollectableMarker.cpp | 9 +- dom/base/nsContentAreaDragDrop.cpp | 8 +- dom/base/nsContentAreaDragDrop.h | 4 +- dom/base/nsContentPermissionHelper.cpp | 17 +- dom/base/nsContentPermissionHelper.h | 11 +- dom/base/nsContentPolicy.cpp | 4 +- dom/base/nsContentPolicyUtils.h | 4 +- dom/base/nsContentSink.cpp | 2 +- dom/base/nsContentUtils.cpp | 105 ++- dom/base/nsContentUtils.h | 20 +- dom/base/nsCopySupport.cpp | 4 +- dom/base/nsDOMClassInfo.cpp | 55 +- dom/base/nsDOMDataChannel.cpp | 15 +- dom/base/nsDOMDataChannel.h | 6 +- dom/base/nsDOMDataChannelDeclarations.h | 4 +- dom/base/nsDOMMutationObserver.cpp | 4 +- dom/base/nsDOMMutationObserver.h | 4 +- dom/base/nsDOMWindowList.cpp | 10 +- dom/base/nsDOMWindowList.h | 2 +- dom/base/nsDOMWindowUtils.cpp | 104 +-- dom/base/nsDataDocumentContentPolicy.cpp | 3 +- dom/base/nsDocument.cpp | 107 ++- dom/base/nsDocument.h | 2 +- dom/base/nsFocusManager.cpp | 199 +++-- dom/base/nsFocusManager.h | 50 +- dom/base/nsFrameLoader.cpp | 25 +- dom/base/nsFrameMessageManager.cpp | 2 +- dom/base/nsGlobalWindow.cpp | 705 +++++++++--------- dom/base/nsGlobalWindow.h | 191 ++--- dom/base/nsGlobalWindowCommands.cpp | 28 +- dom/base/nsHistory.cpp | 26 +- dom/base/nsHistory.h | 6 +- dom/base/nsIDOMDOMRequest.idl | 8 +- dom/base/nsIDocument.h | 18 +- dom/base/nsIMessageManager.idl | 8 +- dom/base/nsINode.cpp | 6 +- dom/base/nsINode.h | 2 +- dom/base/nsISiteSpecificUserAgent.idl | 6 +- dom/base/nsInProcessTabChildGlobal.cpp | 12 +- dom/base/nsInProcessTabChildGlobal.h | 2 +- dom/base/nsJSEnvironment.cpp | 20 +- dom/base/nsJSEnvironment.h | 3 - dom/base/nsJSUtils.cpp | 4 +- dom/base/nsLocation.cpp | 16 +- dom/base/nsLocation.h | 6 +- dom/base/nsMimeTypeArray.cpp | 10 +- dom/base/nsMimeTypeArray.h | 14 +- dom/base/nsNodeUtils.cpp | 3 +- dom/base/nsObjectLoadingContent.cpp | 4 +- dom/base/nsPIDOMWindow.h | 401 +++++----- dom/base/nsPIDOMWindowInlines.h | 132 ++++ dom/base/nsPIWindowRoot.h | 4 +- dom/base/nsPerformance.cpp | 4 +- dom/base/nsPerformance.h | 4 +- dom/base/nsPluginArray.cpp | 8 +- dom/base/nsPluginArray.h | 13 +- dom/base/nsRange.cpp | 2 +- dom/base/nsScreen.cpp | 28 +- dom/base/nsScreen.h | 14 +- dom/base/nsScriptLoader.cpp | 6 +- dom/base/nsWindowMemoryReporter.cpp | 37 +- dom/base/nsWindowRoot.cpp | 22 +- dom/base/nsWindowRoot.h | 11 +- dom/base/nsXMLHttpRequest.cpp | 28 +- dom/base/nsXMLHttpRequest.h | 4 +- dom/battery/BatteryManager.cpp | 2 +- dom/battery/BatteryManager.h | 6 +- dom/bindings/BindingUtils.cpp | 65 +- dom/bindings/BindingUtils.h | 13 +- dom/bindings/Bindings.conf | 3 +- dom/bindings/CallbackObject.cpp | 2 +- dom/bindings/Exceptions.cpp | 2 +- dom/bindings/Exceptions.h | 4 +- dom/bindings/Nullable.h | 6 +- .../test/TestInterfaceIterableDouble.cpp | 6 +- .../test/TestInterfaceIterableDouble.h | 8 +- .../test/TestInterfaceIterableSingle.cpp | 6 +- .../test/TestInterfaceIterableSingle.h | 8 +- dom/bindings/test/TestInterfaceMaplike.cpp | 6 +- dom/bindings/test/TestInterfaceMaplike.h | 8 +- .../test/TestInterfaceMaplikeObject.cpp | 6 +- .../test/TestInterfaceMaplikeObject.h | 8 +- dom/bindings/test/TestInterfaceSetlike.cpp | 6 +- dom/bindings/test/TestInterfaceSetlike.h | 8 +- .../test/TestInterfaceSetlikeNode.cpp | 6 +- dom/bindings/test/TestInterfaceSetlikeNode.h | 8 +- .../common/webapi/BluetoothAdapter.cpp | 32 +- .../common/webapi/BluetoothAdapter.h | 6 +- .../common/webapi/BluetoothClassOfDevice.cpp | 4 +- .../common/webapi/BluetoothClassOfDevice.h | 8 +- .../common/webapi/BluetoothDevice.cpp | 4 +- dom/bluetooth/common/webapi/BluetoothDevice.h | 6 +- .../webapi/BluetoothDiscoveryHandle.cpp | 8 +- .../common/webapi/BluetoothDiscoveryHandle.h | 8 +- dom/bluetooth/common/webapi/BluetoothGatt.cpp | 2 +- dom/bluetooth/common/webapi/BluetoothGatt.h | 4 +- .../webapi/BluetoothGattCharacteristic.cpp | 4 +- .../webapi/BluetoothGattCharacteristic.h | 8 +- .../common/webapi/BluetoothGattDescriptor.cpp | 4 +- .../common/webapi/BluetoothGattDescriptor.h | 8 +- .../common/webapi/BluetoothGattServer.cpp | 2 +- .../common/webapi/BluetoothGattServer.h | 6 +- .../common/webapi/BluetoothGattService.cpp | 6 +- .../common/webapi/BluetoothGattService.h | 8 +- .../common/webapi/BluetoothManager.cpp | 4 +- .../common/webapi/BluetoothManager.h | 8 +- .../webapi/BluetoothMapRequestHandle.cpp | 4 +- .../common/webapi/BluetoothMapRequestHandle.h | 8 +- .../common/webapi/BluetoothObexAuthHandle.cpp | 4 +- .../common/webapi/BluetoothObexAuthHandle.h | 8 +- .../common/webapi/BluetoothPairingHandle.cpp | 4 +- .../common/webapi/BluetoothPairingHandle.h | 8 +- .../webapi/BluetoothPairingListener.cpp | 4 +- .../common/webapi/BluetoothPairingListener.h | 6 +- .../webapi/BluetoothPbapRequestHandle.cpp | 10 +- .../webapi/BluetoothPbapRequestHandle.h | 8 +- dom/broadcastchannel/BroadcastChannel.cpp | 9 +- dom/broadcastchannel/BroadcastChannel.h | 4 +- .../BrowserElementAudioChannel.cpp | 36 +- .../BrowserElementAudioChannel.h | 10 +- dom/browser-element/BrowserElementParent.cpp | 9 +- dom/browser-element/BrowserElementParent.h | 4 +- dom/cache/CacheStorage.cpp | 3 +- dom/camera/DOMCameraCapabilities.cpp | 2 +- dom/camera/DOMCameraCapabilities.h | 6 +- dom/camera/DOMCameraControl.cpp | 2 +- dom/camera/DOMCameraControl.h | 8 +- dom/camera/DOMCameraManager.cpp | 12 +- dom/camera/DOMCameraManager.h | 12 +- dom/canvas/CanvasRenderingContext2D.cpp | 12 +- dom/canvas/CanvasRenderingContext2D.h | 6 +- dom/canvas/DocumentRendererChild.cpp | 7 +- dom/canvas/DocumentRendererChild.h | 2 +- dom/cellbroadcast/CellBroadcast.cpp | 6 +- dom/cellbroadcast/CellBroadcast.h | 8 +- dom/cellbroadcast/CellBroadcastMessage.cpp | 4 +- dom/cellbroadcast/CellBroadcastMessage.h | 14 +- dom/datastore/DataStore.cpp | 5 +- dom/datastore/DataStore.h | 2 +- dom/datastore/DataStoreService.cpp | 15 +- dom/datastore/DataStoreService.h | 6 +- dom/datastore/nsIDataStore.idl | 6 +- dom/datastore/nsIDataStoreService.idl | 6 +- dom/devicestorage/DeviceStorage.h | 19 +- .../DeviceStorageAreaListener.cpp | 2 +- dom/devicestorage/DeviceStorageAreaListener.h | 2 +- dom/devicestorage/nsDeviceStorage.cpp | 22 +- dom/devicestorage/nsDeviceStorage.h | 1 - dom/events/CompositionEvent.cpp | 20 +- dom/events/CompositionEvent.h | 16 +- dom/events/ContentEventHandler.cpp | 4 +- dom/events/DOMEventTargetHelper.cpp | 25 +- dom/events/DOMEventTargetHelper.h | 12 +- dom/events/DataContainerEvent.cpp | 3 +- dom/events/DragEvent.cpp | 64 +- dom/events/DragEvent.h | 5 +- dom/events/Event.cpp | 29 +- dom/events/Event.h | 2 +- dom/events/EventDispatcher.cpp | 6 +- dom/events/EventListenerManager.cpp | 64 +- dom/events/EventListenerManager.h | 6 +- dom/events/EventStateManager.cpp | 38 +- dom/events/EventStateManager.h | 2 +- dom/events/EventTarget.h | 4 +- dom/events/FocusEvent.cpp | 13 +- dom/events/FocusEvent.h | 12 +- dom/events/InputEvent.cpp | 5 +- dom/events/KeyboardEvent.cpp | 11 +- dom/events/KeyboardEvent.h | 11 +- dom/events/MessageEvent.cpp | 52 +- dom/events/MessageEvent.h | 13 +- dom/events/MouseEvent.cpp | 56 +- dom/events/MouseEvent.h | 50 +- dom/events/MouseScrollEvent.cpp | 35 +- dom/events/MouseScrollEvent.h | 19 +- dom/events/ScrollAreaEvent.cpp | 26 +- dom/events/ScrollAreaEvent.h | 15 +- dom/events/SimpleGestureEvent.cpp | 20 +- dom/events/SimpleGestureEvent.h | 13 +- dom/events/TouchEvent.cpp | 2 +- dom/events/TouchEvent.h | 2 +- dom/events/UIEvent.cpp | 27 +- dom/events/UIEvent.h | 10 +- dom/events/WheelEvent.cpp | 67 +- dom/events/WheelEvent.h | 16 +- dom/events/XULCommandEvent.cpp | 7 +- dom/events/XULCommandEvent.h | 11 +- dom/fetch/Fetch.cpp | 2 +- dom/fetch/Response.cpp | 2 +- dom/filesystem/DeviceStorageFileSystem.cpp | 6 +- dom/filesystem/DeviceStorageFileSystem.h | 2 +- dom/filesystem/Directory.cpp | 2 +- dom/filesystem/Directory.h | 2 +- dom/filesystem/FileSystemBase.cpp | 2 +- dom/filesystem/FileSystemBase.h | 4 +- .../FileSystemPermissionRequest.cpp | 2 +- dom/filesystem/FileSystemPermissionRequest.h | 4 +- dom/filesystem/OSFileSystem.cpp | 4 +- dom/filesystem/OSFileSystem.h | 6 +- dom/fmradio/FMRadio.cpp | 22 +- dom/fmradio/FMRadio.h | 6 +- dom/gamepad/Gamepad.cpp | 2 +- dom/gamepad/GamepadService.cpp | 14 +- dom/geolocation/nsGeolocation.cpp | 37 +- dom/geolocation/nsGeolocation.h | 5 +- dom/html/HTMLAudioElement.cpp | 2 +- dom/html/HTMLBodyElement.cpp | 11 +- dom/html/HTMLCanvasElement.cpp | 4 +- dom/html/HTMLFormElement.cpp | 8 +- dom/html/HTMLFrameElement.cpp | 6 - dom/html/HTMLFrameSetElement.cpp | 11 +- dom/html/HTMLIFrameElement.cpp | 6 - dom/html/HTMLImageElement.cpp | 2 +- dom/html/HTMLInputElement.cpp | 6 +- dom/html/HTMLMediaElement.cpp | 17 +- dom/html/HTMLObjectElement.cpp | 2 +- dom/html/HTMLObjectElement.h | 2 +- dom/html/HTMLOptionElement.cpp | 2 +- dom/html/HTMLTrackElement.cpp | 2 +- dom/html/HTMLVideoElement.cpp | 3 +- dom/html/ImageDocument.cpp | 2 +- dom/html/MediaDocument.cpp | 3 +- dom/html/TextTrackManager.cpp | 4 +- dom/html/nsBrowserElement.cpp | 13 +- dom/html/nsBrowserElement.h | 2 +- dom/html/nsGenericHTMLElement.cpp | 45 +- dom/html/nsGenericHTMLFrameElement.cpp | 15 +- dom/html/nsGenericHTMLFrameElement.h | 3 +- dom/html/nsHTMLDocument.cpp | 44 +- dom/html/nsHTMLDocument.h | 13 +- dom/html/nsIFormSubmitObserver.idl | 6 +- dom/html/nsTextEditorState.cpp | 2 +- dom/icc/Icc.cpp | 2 +- dom/icc/Icc.h | 4 +- dom/icc/IccCallback.cpp | 6 +- dom/icc/IccCallback.h | 6 +- dom/icc/IccCardLockError.cpp | 4 +- dom/icc/IccCardLockError.h | 2 +- dom/icc/IccInfo.cpp | 6 +- dom/icc/IccInfo.h | 12 +- dom/icc/IccManager.cpp | 2 +- dom/icc/IccManager.h | 4 +- dom/indexedDB/ActorsChild.cpp | 6 +- dom/indexedDB/IDBCursor.cpp | 2 +- dom/indexedDB/IDBCursor.h | 4 +- dom/indexedDB/IDBDatabase.cpp | 8 +- dom/indexedDB/IDBDatabase.h | 4 +- dom/indexedDB/IDBFactory.cpp | 11 +- dom/indexedDB/IDBFactory.h | 12 +- dom/indexedDB/IDBFileHandle.h | 4 +- dom/indexedDB/IDBFileRequest.cpp | 4 +- dom/indexedDB/IDBFileRequest.h | 6 +- dom/indexedDB/IDBIndex.cpp | 2 +- dom/indexedDB/IDBIndex.h | 4 +- dom/indexedDB/IDBMutableFile.h | 4 +- dom/indexedDB/IDBObjectStore.cpp | 2 +- dom/indexedDB/IDBObjectStore.h | 4 +- dom/indexedDB/IDBRequest.cpp | 6 +- dom/indexedDB/IDBRequest.h | 10 +- dom/indexedDB/IDBTransaction.cpp | 2 +- dom/indexedDB/IDBTransaction.h | 4 +- dom/indexedDB/IDBWrapperCache.cpp | 2 +- dom/indexedDB/IDBWrapperCache.h | 4 +- dom/inputport/AVInputPort.cpp | 4 +- dom/inputport/AVInputPort.h | 4 +- dom/inputport/DisplayPortInputPort.cpp | 4 +- dom/inputport/DisplayPortInputPort.h | 11 +- dom/inputport/HDMIInputPort.cpp | 4 +- dom/inputport/HDMIInputPort.h | 11 +- dom/inputport/InputPort.cpp | 2 +- dom/inputport/InputPort.h | 2 +- dom/inputport/InputPortManager.cpp | 6 +- dom/inputport/InputPortManager.h | 11 +- dom/interfaces/base/nsIBrowserDOMWindow.idl | 8 +- .../base/nsIContentPermissionPrompt.idl | 6 +- .../base/nsIDOMGlobalPropertyInitializer.idl | 8 +- .../base/nsIDOMWindowCollection.idl | 8 +- dom/interfaces/base/nsIFocusManager.idl | 33 +- .../base/nsIServiceWorkerManager.idl | 25 +- dom/interfaces/base/nsITextInputProcessor.idl | 8 +- dom/interfaces/core/nsIDOMDocument.idl | 5 +- dom/interfaces/core/nsIDOMXMLDocument.idl | 2 +- dom/interfaces/events/moz.build | 2 - .../events/nsIDOMCompositionEvent.idl | 21 - dom/interfaces/events/nsIDOMDragEvent.idl | 19 +- dom/interfaces/events/nsIDOMFocusEvent.idl | 2 +- dom/interfaces/events/nsIDOMKeyEvent.idl | 4 +- dom/interfaces/events/nsIDOMMessageEvent.idl | 56 -- dom/interfaces/events/nsIDOMMouseEvent.idl | 36 +- .../events/nsIDOMMouseScrollEvent.idl | 21 +- .../events/nsIDOMScrollAreaEvent.idl | 17 +- .../events/nsIDOMSimpleGestureEvent.idl | 22 +- dom/interfaces/events/nsIDOMUIEvent.idl | 9 +- dom/interfaces/events/nsIDOMWheelEvent.idl | 35 +- dom/interfaces/html/nsIDOMHTMLDocument.idl | 2 +- .../html/nsIDOMHTMLFrameElement.idl | 3 +- .../html/nsIDOMHTMLIFrameElement.idl | 1 - dom/interfaces/smil/nsIDOMTimeEvent.idl | 7 +- .../storage/nsIDOMStorageManager.idl | 8 +- .../xul/nsIDOMXULCommandDispatcher.idl | 6 +- dom/interfaces/xul/nsIDOMXULCommandEvent.idl | 4 +- dom/interfaces/xul/nsIDOMXULDocument.idl | 2 +- dom/ipc/ColorPickerParent.cpp | 2 +- dom/ipc/ContentChild.cpp | 14 +- dom/ipc/ContentChild.h | 4 +- dom/ipc/ContentParent.cpp | 17 +- dom/ipc/FilePickerParent.cpp | 2 +- dom/ipc/TabChild.cpp | 34 +- dom/ipc/TabChild.h | 19 +- dom/ipc/TabParent.cpp | 20 +- dom/ipc/TabParent.h | 2 +- dom/jsurl/nsJSProtocolHandler.cpp | 14 +- dom/media/AudioTrackList.h | 2 +- dom/media/CanvasCaptureMediaStream.cpp | 2 +- dom/media/CanvasCaptureMediaStream.h | 2 +- dom/media/DOMMediaStream.cpp | 31 +- dom/media/DOMMediaStream.h | 36 +- dom/media/GetUserMediaRequest.cpp | 2 +- dom/media/GetUserMediaRequest.h | 2 +- dom/media/MediaDevices.cpp | 4 +- dom/media/MediaDevices.h | 2 +- dom/media/MediaManager.cpp | 145 ++-- dom/media/MediaManager.h | 16 +- dom/media/MediaPermissionGonk.cpp | 28 +- dom/media/MediaRecorder.cpp | 16 +- dom/media/MediaRecorder.h | 8 +- dom/media/MediaStreamError.cpp | 2 +- dom/media/MediaStreamError.h | 8 +- dom/media/MediaTrack.cpp | 2 +- dom/media/MediaTrack.h | 2 +- dom/media/MediaTrackList.cpp | 2 +- dom/media/MediaTrackList.h | 2 +- dom/media/TextTrack.cpp | 6 +- dom/media/TextTrack.h | 4 +- dom/media/TextTrackCue.cpp | 8 +- dom/media/TextTrackCue.h | 6 +- dom/media/TextTrackList.cpp | 4 +- dom/media/TextTrackList.h | 4 +- dom/media/TextTrackRegion.cpp | 2 +- dom/media/VideoTrackList.h | 3 +- dom/media/WebVTTListener.cpp | 2 +- dom/media/eme/MediaKeySession.cpp | 2 +- dom/media/eme/MediaKeySession.h | 2 +- dom/media/eme/MediaKeyStatusMap.cpp | 4 +- dom/media/eme/MediaKeyStatusMap.h | 8 +- dom/media/eme/MediaKeySystemAccess.cpp | 6 +- dom/media/eme/MediaKeySystemAccess.h | 8 +- dom/media/eme/MediaKeySystemAccessManager.cpp | 2 +- dom/media/eme/MediaKeySystemAccessManager.h | 4 +- dom/media/eme/MediaKeys.cpp | 9 +- dom/media/eme/MediaKeys.h | 7 +- dom/media/gmp/GMPService.cpp | 10 +- dom/media/gmp/GMPService.h | 6 +- dom/media/imagecapture/ImageCapture.cpp | 4 +- dom/media/imagecapture/ImageCapture.h | 5 +- dom/media/mediasource/MediaSource.cpp | 6 +- dom/media/mediasource/MediaSource.h | 6 +- dom/media/webaudio/AudioBuffer.h | 4 +- dom/media/webaudio/AudioContext.cpp | 10 +- dom/media/webaudio/AudioContext.h | 6 +- dom/media/webaudio/AudioDestinationNode.cpp | 4 +- dom/media/webaudio/MediaBufferDecoder.cpp | 3 +- .../webaudio/MediaStreamAudioSourceNode.cpp | 3 +- .../webrtc/MediaEngineTabVideoSource.cpp | 21 +- dom/media/webrtc/MediaEngineTabVideoSource.h | 2 +- dom/media/webrtc/nsITabSource.idl | 11 +- .../recognition/SpeechRecognition.cpp | 6 +- .../webspeech/recognition/SpeechRecognition.h | 2 +- dom/media/webspeech/synth/SpeechSynthesis.cpp | 7 +- dom/media/webspeech/synth/SpeechSynthesis.h | 6 +- .../synth/SpeechSynthesisUtterance.cpp | 4 +- .../synth/SpeechSynthesisUtterance.h | 2 +- .../webspeech/synth/nsSynthVoiceRegistry.cpp | 4 +- dom/media/webvtt/nsIWebVTTParserWrapper.idl | 10 +- dom/messagechannel/MessageChannel.cpp | 6 +- dom/messagechannel/MessageChannel.h | 10 +- dom/messagechannel/MessagePort.cpp | 15 +- dom/messagechannel/MessagePort.h | 8 +- dom/mobileconnection/MobileCellInfo.cpp | 2 +- dom/mobileconnection/MobileCellInfo.h | 6 +- dom/mobileconnection/MobileConnection.cpp | 3 +- dom/mobileconnection/MobileConnection.h | 4 +- .../MobileConnectionArray.cpp | 4 +- dom/mobileconnection/MobileConnectionArray.h | 6 +- .../MobileConnectionCallback.cpp | 2 +- .../MobileConnectionCallback.h | 4 +- dom/mobileconnection/MobileConnectionInfo.cpp | 2 +- dom/mobileconnection/MobileConnectionInfo.h | 6 +- dom/mobileconnection/MobileNetworkInfo.cpp | 2 +- dom/mobileconnection/MobileNetworkInfo.h | 6 +- .../interfaces/nsIMobileIdentityService.idl | 6 +- dom/mobilemessage/DOMMobileMessageError.cpp | 4 +- dom/mobilemessage/DOMMobileMessageError.h | 4 +- dom/mobilemessage/MmsMessage.cpp | 2 +- dom/mobilemessage/MmsMessage.h | 8 +- dom/mobilemessage/MobileMessageCallback.cpp | 4 +- .../MobileMessageCursorCallback.cpp | 2 +- .../MobileMessageCursorCallback.h | 2 +- dom/mobilemessage/MobileMessageManager.cpp | 26 +- dom/mobilemessage/MobileMessageManager.h | 4 +- dom/mobilemessage/MobileMessageThread.cpp | 2 +- dom/mobilemessage/MobileMessageThread.h | 8 +- dom/mobilemessage/SmsMessage.cpp | 2 +- dom/mobilemessage/SmsMessage.h | 8 +- dom/network/Connection.cpp | 2 +- dom/network/Connection.h | 2 +- dom/network/TCPServerSocket.h | 2 +- dom/network/TCPSocket.cpp | 7 +- dom/network/TCPSocket.h | 2 +- dom/network/UDPSocket.cpp | 4 +- dom/network/UDPSocket.h | 4 +- dom/nfc/MozIsoDepTech.cpp | 4 +- dom/nfc/MozIsoDepTech.h | 6 +- dom/nfc/MozNfcATech.cpp | 4 +- dom/nfc/MozNfcATech.h | 6 +- dom/notification/DesktopNotification.cpp | 8 +- dom/notification/DesktopNotification.h | 10 +- dom/notification/Notification.cpp | 34 +- dom/notification/Notification.h | 7 +- dom/offline/nsDOMOfflineResourceList.cpp | 5 +- dom/offline/nsDOMOfflineResourceList.h | 4 +- dom/payment/PaymentProviderUtils.cpp | 2 +- dom/permission/PermissionStatus.cpp | 8 +- dom/permission/PermissionStatus.h | 4 +- dom/permission/Permissions.cpp | 6 +- dom/permission/Permissions.h | 6 +- dom/plugins/base/nsNPAPIPlugin.cpp | 8 +- dom/plugins/base/nsNPAPIPluginInstance.cpp | 14 +- dom/plugins/base/nsNPAPIPluginInstance.h | 2 +- dom/plugins/base/nsPluginInstanceOwner.cpp | 13 +- .../base/nsPluginStreamListenerPeer.cpp | 3 +- dom/plugins/ipc/PluginHangUIParent.cpp | 5 +- dom/power/PowerManager.cpp | 4 +- dom/power/PowerManager.h | 10 +- dom/power/PowerManagerService.cpp | 7 +- dom/power/PowerManagerService.h | 2 +- dom/power/WakeLock.cpp | 19 +- dom/power/WakeLock.h | 4 +- dom/power/nsIPowerManagerService.idl | 6 +- dom/presentation/Presentation.cpp | 4 +- dom/presentation/Presentation.h | 4 +- dom/presentation/PresentationAvailability.cpp | 4 +- dom/presentation/PresentationAvailability.h | 5 +- dom/presentation/PresentationCallbacks.cpp | 2 +- dom/presentation/PresentationConnection.cpp | 18 +- dom/presentation/PresentationConnection.h | 4 +- dom/presentation/PresentationReceiver.cpp | 4 +- dom/presentation/PresentationReceiver.h | 4 +- dom/presentation/PresentationRequest.cpp | 4 +- dom/presentation/PresentationRequest.h | 2 +- dom/promise/Promise.cpp | 4 +- dom/quota/ActorsParent.cpp | 2 +- dom/quota/QuotaManager.h | 4 +- dom/smil/TimeEvent.cpp | 26 +- dom/smil/TimeEvent.h | 10 +- dom/smil/nsSMILTimeValueSpec.cpp | 2 +- dom/speakermanager/SpeakerManager.cpp | 6 +- dom/speakermanager/SpeakerManager.h | 4 +- dom/storage/DOMStorage.cpp | 4 +- dom/storage/DOMStorage.h | 12 +- dom/storage/DOMStorageManager.cpp | 10 +- dom/storage/DOMStorageManager.h | 4 +- dom/svg/DOMSVGNumber.cpp | 6 +- dom/system/gonk/AudioChannelManager.cpp | 7 +- dom/system/gonk/AudioChannelManager.h | 4 +- dom/system/nsDeviceSensors.cpp | 4 +- dom/telephony/CallsList.cpp | 2 +- dom/telephony/CallsList.h | 2 +- dom/telephony/MMICall.cpp | 4 +- dom/telephony/MMICall.h | 8 +- dom/telephony/Telephony.cpp | 4 +- dom/telephony/Telephony.h | 8 +- dom/telephony/TelephonyCall.cpp | 4 +- dom/telephony/TelephonyCall.h | 6 +- dom/telephony/TelephonyCallGroup.cpp | 2 +- dom/telephony/TelephonyCallGroup.h | 4 +- dom/telephony/TelephonyCallId.cpp | 2 +- dom/telephony/TelephonyCallId.h | 8 +- dom/telephony/TelephonyDialCallback.cpp | 2 +- dom/telephony/TelephonyDialCallback.h | 6 +- dom/telephony/USSDSession.cpp | 7 +- dom/telephony/USSDSession.h | 6 +- dom/time/TimeChangeObserver.cpp | 30 +- dom/time/TimeChangeObserver.h | 6 +- dom/time/TimeManager.h | 6 +- dom/tv/TVChannel.cpp | 4 +- dom/tv/TVChannel.h | 9 +- dom/tv/TVManager.cpp | 4 +- dom/tv/TVManager.h | 4 +- dom/tv/TVSource.cpp | 4 +- dom/tv/TVSource.h | 9 +- dom/tv/TVTuner.cpp | 8 +- dom/tv/TVTuner.h | 4 +- dom/tv/nsITVSimulatorService.idl | 7 +- dom/voicemail/Voicemail.cpp | 10 +- dom/voicemail/Voicemail.h | 8 +- dom/workers/Navigator.cpp | 4 +- dom/workers/RuntimeService.cpp | 30 +- dom/workers/RuntimeService.h | 16 +- dom/workers/ServiceWorker.cpp | 4 +- dom/workers/ServiceWorker.h | 4 +- dom/workers/ServiceWorkerClient.cpp | 4 +- dom/workers/ServiceWorkerClients.cpp | 19 +- dom/workers/ServiceWorkerContainer.cpp | 13 +- dom/workers/ServiceWorkerContainer.h | 4 +- dom/workers/ServiceWorkerManager.cpp | 111 ++- dom/workers/ServiceWorkerManager.h | 11 +- dom/workers/ServiceWorkerRegistration.cpp | 13 +- dom/workers/ServiceWorkerRegistration.h | 8 +- dom/workers/SharedWorker.cpp | 2 +- dom/workers/SharedWorker.h | 4 +- dom/workers/WorkerPrivate.cpp | 70 +- dom/workers/WorkerPrivate.h | 11 +- dom/workers/WorkerRunnable.cpp | 2 +- dom/workers/Workers.h | 14 +- dom/workers/XMLHttpRequest.cpp | 17 +- dom/workers/nsIWorkerDebugger.idl | 6 +- dom/xbl/nsXBLPrototypeHandler.cpp | 28 +- dom/xbl/nsXBLWindowKeyHandler.cpp | 4 +- dom/xml/nsXMLPrettyPrinter.cpp | 16 +- dom/xslt/xslt/txMozillaXMLOutput.cpp | 2 +- dom/xslt/xslt/txMozillaXSLTProcessor.cpp | 9 +- dom/xul/XULDocument.cpp | 2 +- dom/xul/nsXULCommandDispatcher.cpp | 35 +- dom/xul/nsXULCommandDispatcher.h | 2 +- dom/xul/nsXULElement.cpp | 8 +- dom/xul/nsXULPopupListener.cpp | 4 +- dom/xul/templates/nsXULTemplateBuilder.cpp | 7 +- editor/composer/nsComposerCommandsUpdater.cpp | 14 +- editor/composer/nsComposerCommandsUpdater.h | 4 +- editor/composer/nsEditingSession.cpp | 143 ++-- editor/composer/nsEditingSession.h | 15 +- editor/composer/nsIEditingSession.idl | 24 +- editor/libeditor/nsEditor.cpp | 4 +- editor/libeditor/nsEditorEventListener.cpp | 2 +- editor/libeditor/nsHTMLEditor.cpp | 8 +- embedding/browser/nsCommandHandler.cpp | 13 +- embedding/browser/nsCommandHandler.h | 5 +- embedding/browser/nsContextMenuInfo.cpp | 11 +- embedding/browser/nsDocShellTreeOwner.cpp | 20 +- embedding/browser/nsICommandHandler.idl | 6 +- .../browser/nsIPrintingPromptService.idl | 10 +- embedding/browser/nsIWebBrowser.idl | 5 +- embedding/browser/nsIWebBrowserFocus.idl | 6 +- embedding/browser/nsIWebBrowserPrint.idl | 8 +- embedding/browser/nsWebBrowser.cpp | 30 +- embedding/browser/nsWebBrowser.h | 1 - .../commandhandler/nsCommandManager.cpp | 17 +- .../commandhandler/nsCommandManager.h | 4 +- .../commandhandler/nsICommandManager.idl | 12 +- .../commandhandler/nsPICommandUpdater.idl | 7 +- .../components/find/nsIWebBrowserFind.idl | 8 +- .../components/find/nsWebBrowserFind.cpp | 103 +-- embedding/components/find/nsWebBrowserFind.h | 17 +- .../printingui/ipc/PrintDataUtils.cpp | 4 +- .../printingui/ipc/PrintingParent.cpp | 8 +- .../printingui/ipc/PrintingParent.h | 4 +- .../printingui/ipc/nsPrintingProxy.cpp | 12 +- .../printingui/mac/nsPrintProgress.cpp | 9 +- .../printingui/mac/nsPrintProgress.h | 4 +- .../mac/nsPrintingPromptServiceX.mm | 20 +- .../printingui/unixshared/nsPrintProgress.cpp | 17 +- .../unixshared/nsPrintingPromptService.cpp | 28 +- .../unixshared/nsPrintingPromptService.h | 2 +- .../printingui/win/nsPrintProgress.cpp | 15 +- .../win/nsPrintingPromptService.cpp | 22 +- .../printingui/win/nsPrintingPromptService.h | 4 +- .../WebBrowserPersistLocalDocument.cpp | 4 +- .../windowwatcher/nsAutoWindowStateHelper.cpp | 2 +- .../windowwatcher/nsAutoWindowStateHelper.h | 6 +- .../windowwatcher/nsIPromptFactory.idl | 6 +- .../windowwatcher/nsIPromptService.idl | 22 +- .../windowwatcher/nsIPromptService2.idl | 8 +- .../windowwatcher/nsIWindowWatcher.idl | 22 +- .../windowwatcher/nsPIWindowWatcher.idl | 20 +- .../windowwatcher/nsWindowWatcher.cpp | 150 ++-- .../windowwatcher/nsWindowWatcher.h | 28 +- embedding/nsIWindowProvider.idl | 22 +- extensions/cookie/nsCookiePromptService.cpp | 10 +- extensions/cookie/nsICookiePromptService.idl | 6 +- extensions/cookie/nsPermissionManager.cpp | 12 +- hal/Hal.cpp | 11 +- hal/Hal.h | 6 +- hal/WindowIdentifier.cpp | 13 +- hal/WindowIdentifier.h | 12 +- hal/sandbox/SandboxHal.cpp | 14 +- js/xpconnect/src/XPCConvert.cpp | 15 +- js/xpconnect/src/XPCJSRuntime.cpp | 6 +- js/xpconnect/src/nsScriptError.cpp | 2 +- js/xpconnect/src/xpcpublic.h | 2 +- js/xpconnect/wrappers/AccessCheck.cpp | 2 +- js/xpconnect/wrappers/XrayWrapper.cpp | 21 +- layout/base/AccessibleCaretManager.cpp | 2 +- layout/base/ActiveLayerTracker.cpp | 2 +- layout/base/MobileViewportManager.cpp | 2 +- layout/base/ZoomConstraintsClient.cpp | 2 +- layout/base/nsDocumentViewer.cpp | 43 +- layout/base/nsIPresShell.h | 4 +- layout/base/nsLayoutUtils.cpp | 4 +- layout/base/nsLayoutUtils.h | 4 +- layout/base/nsPresContext.cpp | 20 +- layout/base/nsPresShell.cpp | 48 +- layout/base/nsPresShell.h | 4 +- layout/base/nsRefreshDriver.cpp | 3 +- layout/forms/nsComboboxControlFrame.cpp | 2 +- layout/generic/nsGfxScrollFrame.cpp | 3 +- layout/generic/nsPluginFrame.cpp | 6 +- layout/inspector/inLayoutUtils.cpp | 2 +- layout/printing/nsIPrintProgress.idl | 6 +- layout/printing/nsIPrintStatusFeedback.idl | 10 +- layout/printing/nsPrintData.h | 3 +- layout/printing/nsPrintEngine.cpp | 58 +- layout/printing/nsPrintEngine.h | 15 +- layout/printing/nsPrintObject.cpp | 2 +- layout/printing/nsPrintPreviewListener.cpp | 2 +- layout/style/FontFace.cpp | 4 +- layout/style/FontFaceSet.cpp | 2 +- layout/style/FontFaceSet.h | 5 +- layout/svg/nsSVGOuterSVGFrame.cpp | 3 +- .../src/nsILayoutDebuggingTools.idl | 6 +- .../src/nsILayoutRegressionTester.idl | 8 +- .../layout-debug/src/nsLayoutDebugCLH.cpp | 2 +- .../src/nsLayoutDebuggingTools.cpp | 6 +- .../layout-debug/src/nsRegressionTester.cpp | 20 +- .../layout-debug/src/nsRegressionTester.h | 4 - layout/xul/nsMenuPopupFrame.cpp | 3 +- layout/xul/nsResizerFrame.cpp | 3 +- layout/xul/nsTitleBarFrame.cpp | 2 +- layout/xul/nsXULPopupManager.cpp | 15 +- layout/xul/nsXULPopupManager.h | 4 +- layout/xul/nsXULTooltipListener.cpp | 2 +- .../src/peerconnection/PeerConnectionImpl.cpp | 4 +- .../src/peerconnection/PeerConnectionImpl.h | 4 +- .../webrtc/signaling/test/FakeMediaStreams.h | 6 +- moz.build | 2 + netwerk/base/LoadInfo.cpp | 10 +- netwerk/base/LoadInfo.h | 4 +- netwerk/base/mozIThirdPartyUtil.idl | 10 +- netwerk/base/nsChannelClassifier.cpp | 11 +- netwerk/base/nsIPermissionManager.idl | 6 +- netwerk/base/nsISecureBrowserUI.idl | 6 +- netwerk/protocol/http/HttpBaseChannel.cpp | 24 +- netwerk/protocol/http/HttpChannelParent.cpp | 10 +- netwerk/protocol/http/nsHttpHandler.cpp | 2 +- parser/htmlparser/nsExpatDriver.cpp | 16 +- security/manager/pki/nsNSSDialogHelper.cpp | 6 +- security/manager/pki/nsNSSDialogHelper.h | 4 +- security/manager/pki/nsNSSDialogs.cpp | 20 +- .../manager/ssl/nsSecureBrowserUIImpl.cpp | 21 +- toolkit/components/alerts/nsXULAlerts.cpp | 16 +- toolkit/components/alerts/nsXULAlerts.h | 8 +- .../downloads/nsDownloadManager.cpp | 4 +- .../perfmonitoring/nsPerformanceStats.cpp | 16 +- .../components/remote/nsGTKRemoteService.cpp | 11 +- .../components/remote/nsIRemoteService.idl | 6 +- .../satchel/nsFormFillController.cpp | 14 +- .../components/satchel/nsFormFillController.h | 8 +- toolkit/components/startup/nsAppStartup.cpp | 6 +- .../statusfilter/nsBrowserStatusFilter.cpp | 2 +- .../typeaheadfind/nsITypeAheadFind.idl | 5 +- .../typeaheadfind/nsTypeAheadFind.cpp | 36 +- .../typeaheadfind/nsTypeAheadFind.h | 3 +- .../mozapps/extensions/AddonContentPolicy.cpp | 2 +- .../update/tests/unit_aus_update/xpcshell.ini | 6 +- toolkit/xre/ProfileReset.cpp | 4 +- toolkit/xre/nsAppRunner.cpp | 2 +- toolkit/xre/nsNativeAppSupportCocoa.mm | 19 +- toolkit/xre/nsNativeAppSupportWin.cpp | 33 +- uriloader/base/nsDocLoader.cpp | 12 +- uriloader/base/nsIWebProgress.idl | 6 +- .../exthandler/nsExternalHelperAppService.cpp | 11 +- .../exthandler/nsExternalHelperAppService.h | 4 +- .../prefetch/OfflineCacheUpdateChild.cpp | 11 +- uriloader/prefetch/OfflineCacheUpdateChild.h | 6 +- .../prefetch/OfflineCacheUpdateParent.cpp | 4 +- uriloader/prefetch/nsIOfflineCacheUpdate.idl | 8 +- uriloader/prefetch/nsOfflineCacheUpdate.h | 2 +- .../prefetch/nsOfflineCacheUpdateService.cpp | 29 +- widget/SharedWidgetUtils.cpp | 5 +- widget/WidgetUtils.h | 6 +- widget/android/AndroidBridge.cpp | 15 +- widget/android/AndroidBridge.h | 4 +- widget/android/nsAppShell.cpp | 4 +- widget/android/nsIAndroidBridge.idl | 7 +- widget/android/nsWindow.cpp | 7 +- widget/cocoa/nsColorPicker.h | 4 +- widget/cocoa/nsColorPicker.mm | 2 +- widget/cocoa/nsMenuItemIconX.mm | 6 +- widget/cocoa/nsMenuUtilsX.mm | 2 +- widget/cocoa/nsPrintDialogX.h | 4 +- widget/cocoa/nsPrintDialogX.mm | 4 +- widget/gtk/nsApplicationChooser.cpp | 6 +- widget/gtk/nsColorPicker.cpp | 3 +- widget/gtk/nsPrintDialogGTK.cpp | 11 +- widget/gtk/nsPrintDialogGTK.h | 4 +- widget/nsBaseFilePicker.cpp | 17 +- widget/nsBaseFilePicker.h | 7 +- widget/nsBaseWidget.cpp | 2 +- widget/nsColorPickerProxy.cpp | 2 +- widget/nsFilePickerProxy.cpp | 7 +- widget/nsFilePickerProxy.h | 4 +- widget/nsIApplicationChooser.idl | 7 +- widget/nsIColorPicker.idl | 6 +- widget/nsIFilePicker.idl | 8 +- widget/nsIPrintDialogService.h | 6 +- widget/nsIWinTaskbar.idl | 8 +- widget/nsNativeTheme.cpp | 2 +- widget/nsPrintOptionsImpl.cpp | 4 +- widget/windows/WinTaskbar.cpp | 12 +- widget/windows/nsColorPicker.cpp | 4 +- widget/windows/nsColorPicker.h | 2 +- widget/windows/nsFilePicker.cpp | 4 +- widget/windows/nsFilePicker.h | 2 +- xpcom/base/nsIMemoryReporter.idl | 10 +- xpcom/base/nsMemoryReporterManager.cpp | 5 +- xpcom/reflect/xptinfo/ShimInterfaceInfo.cpp | 5 - xpcom/system/nsIExternalApplication.idl | 6 +- xpfe/appshell/nsAppShellService.cpp | 22 +- xpfe/appshell/nsAppShellWindowEnumerator.cpp | 2 +- xpfe/appshell/nsChromeTreeOwner.cpp | 5 +- xpfe/appshell/nsContentTreeOwner.cpp | 19 +- xpfe/appshell/nsIAppShellService.idl | 10 +- xpfe/appshell/nsIWindowMediator.idl | 17 +- xpfe/appshell/nsWebShellWindow.cpp | 21 +- xpfe/appshell/nsWindowMediator.cpp | 35 +- xpfe/appshell/nsWindowMediator.h | 2 +- xpfe/appshell/nsXULWindow.cpp | 42 +- xpfe/appshell/nsXULWindow.h | 4 +- .../directory/nsDirectoryViewer.cpp | 5 +- 806 files changed, 4708 insertions(+), 5299 deletions(-) create mode 100644 dom/base/mozIDOMWindow.idl create mode 100644 dom/base/nsPIDOMWindowInlines.h delete mode 100644 dom/interfaces/events/nsIDOMCompositionEvent.idl delete mode 100644 dom/interfaces/events/nsIDOMMessageEvent.idl diff --git a/accessible/base/DocManager.cpp b/accessible/base/DocManager.cpp index 6318ce961b1d..c82f2f01b7c8 100644 --- a/accessible/base/DocManager.cpp +++ b/accessible/base/DocManager.cpp @@ -26,7 +26,6 @@ #include "nsDocShellLoadTypes.h" #include "nsIChannel.h" #include "nsIDOMDocument.h" -#include "nsIDOMWindow.h" #include "nsIInterfaceRequestorUtils.h" #include "nsIWebNavigation.h" #include "nsServiceManagerUtils.h" @@ -218,11 +217,11 @@ DocManager::OnStateChange(nsIWebProgress* aWebProgress, (aStateFlags & (STATE_START | STATE_STOP)) == 0) return NS_OK; - nsCOMPtr DOMWindow; + nsCOMPtr DOMWindow; aWebProgress->GetDOMWindow(getter_AddRefs(DOMWindow)); NS_ENSURE_STATE(DOMWindow); - nsCOMPtr piWindow = do_QueryInterface(DOMWindow); + nsPIDOMWindowOuter* piWindow = nsPIDOMWindowOuter::From(DOMWindow); MOZ_ASSERT(piWindow); nsCOMPtr document = piWindow->GetDoc(); @@ -403,7 +402,7 @@ void DocManager::AddListeners(nsIDocument* aDocument, bool aAddDOMContentLoadedListener) { - nsPIDOMWindow* window = aDocument->GetWindow(); + nsPIDOMWindowOuter* window = aDocument->GetWindow(); EventTarget* target = window->GetChromeEventHandler(); EventListenerManager* elm = target->GetOrCreateListenerManager(); elm->AddEventListenerByType(this, NS_LITERAL_STRING("pagehide"), @@ -427,7 +426,7 @@ DocManager::AddListeners(nsIDocument* aDocument, void DocManager::RemoveListeners(nsIDocument* aDocument) { - nsPIDOMWindow* window = aDocument->GetWindow(); + nsPIDOMWindowOuter* window = aDocument->GetWindow(); if (!window) return; diff --git a/accessible/base/FocusManager.cpp b/accessible/base/FocusManager.cpp index 5b8b922e847d..42088c4fe5c9 100644 --- a/accessible/base/FocusManager.cpp +++ b/accessible/base/FocusManager.cpp @@ -389,7 +389,7 @@ FocusManager::FocusedDOMNode() const } // Otherwise the focus can be on DOM document. - nsPIDOMWindow* focusedWnd = DOMFocusManager->GetFocusedWindow(); + nsPIDOMWindowOuter* focusedWnd = DOMFocusManager->GetFocusedWindow(); return focusedWnd ? focusedWnd->GetExtantDoc() : nullptr; } diff --git a/accessible/base/Logging.cpp b/accessible/base/Logging.cpp index a080c35e57ae..f345cc3bcdc5 100644 --- a/accessible/base/Logging.cpp +++ b/accessible/base/Logging.cpp @@ -392,9 +392,9 @@ logging::DocLoad(const char* aMsg, nsIWebProgress* aWebProgress, { MsgBegin(sDocLoadTitle, aMsg); - nsCOMPtr DOMWindow; + nsCOMPtr DOMWindow; aWebProgress->GetDOMWindow(getter_AddRefs(DOMWindow)); - nsCOMPtr window = do_QueryInterface(DOMWindow); + nsPIDOMWindowOuter* window = nsPIDOMWindowOuter::From(DOMWindow); if (!window) { MsgEnd(); return; diff --git a/accessible/generic/ApplicationAccessible.cpp b/accessible/generic/ApplicationAccessible.cpp index 69537e26b82d..ed4594c756ed 100644 --- a/accessible/generic/ApplicationAccessible.cpp +++ b/accessible/generic/ApplicationAccessible.cpp @@ -15,7 +15,6 @@ #include "nsIComponentManager.h" #include "nsIDOMDocument.h" -#include "nsIDOMWindow.h" #include "nsIWindowMediator.h" #include "nsServiceManagerUtils.h" #include "mozilla/Services.h" @@ -193,7 +192,7 @@ ApplicationAccessible::CacheChildren() while (hasMore) { nsCOMPtr window; windowEnumerator->GetNext(getter_AddRefs(window)); - nsCOMPtr DOMWindow = do_QueryInterface(window); + nsCOMPtr DOMWindow = do_QueryInterface(window); if (DOMWindow) { nsCOMPtr docNode = DOMWindow->GetDoc(); if (docNode) { diff --git a/accessible/generic/HyperTextAccessible.cpp b/accessible/generic/HyperTextAccessible.cpp index e344599ecdee..e0da87515bec 100644 --- a/accessible/generic/HyperTextAccessible.cpp +++ b/accessible/generic/HyperTextAccessible.cpp @@ -1360,7 +1360,7 @@ HyperTextAccessible::SetSelectionRange(int32_t aStartPos, int32_t aEndPos) NS_ENSURE_TRUE(mDoc, NS_ERROR_FAILURE); nsIDocument* docNode = mDoc->DocumentNode(); NS_ENSURE_TRUE(docNode, NS_ERROR_FAILURE); - nsCOMPtr window = docNode->GetWindow(); + nsCOMPtr window = docNode->GetWindow(); nsCOMPtr result; DOMFocusManager->MoveFocus(window, nullptr, nsIFocusManager::MOVEFOCUS_CARET, nsIFocusManager::FLAG_BYMOVEFOCUS, getter_AddRefs(result)); diff --git a/accessible/generic/ImageAccessible.cpp b/accessible/generic/ImageAccessible.cpp index cd9a7f443786..0adf5905e891 100644 --- a/accessible/generic/ImageAccessible.cpp +++ b/accessible/generic/ImageAccessible.cpp @@ -132,11 +132,11 @@ ImageAccessible::DoAction(uint8_t aIndex) NS_ConvertUTF8toUTF16 spec(utf8spec); nsIDocument* document = mContent->OwnerDoc(); - nsCOMPtr piWindow = document->GetWindow(); + nsCOMPtr piWindow = document->GetWindow(); if (!piWindow) return false; - nsCOMPtr tmp; + nsCOMPtr tmp; return NS_SUCCEEDED(piWindow->Open(spec, EmptyString(), EmptyString(), getter_AddRefs(tmp))); } diff --git a/accessible/generic/RootAccessible.cpp b/accessible/generic/RootAccessible.cpp index b2077824e4a7..e1acc4b5a8eb 100644 --- a/accessible/generic/RootAccessible.cpp +++ b/accessible/generic/RootAccessible.cpp @@ -485,12 +485,10 @@ RootAccessible::RelationByType(RelationType aType) if (!mDocumentNode || aType != RelationType::EMBEDS) return DocAccessibleWrap::RelationByType(aType); - nsPIDOMWindow* rootWindow = mDocumentNode->GetWindow(); - if (rootWindow) { - nsCOMPtr contentWindow = nsGlobalWindow::Cast(rootWindow)->GetContent(); - nsCOMPtr piWindow = do_QueryInterface(contentWindow); - if (piWindow) { - nsCOMPtr contentDocumentNode = piWindow->GetDoc(); + if (nsPIDOMWindowOuter* rootWindow = mDocumentNode->GetWindow()) { + nsCOMPtr contentWindow = nsGlobalWindow::Cast(rootWindow)->GetContent(); + if (contentWindow) { + nsCOMPtr contentDocumentNode = contentWindow->GetDoc(); if (contentDocumentNode) { DocAccessible* contentDocument = GetAccService()->GetDocAccessible(contentDocumentNode); diff --git a/accessible/interfaces/nsIAccessibleDocument.idl b/accessible/interfaces/nsIAccessibleDocument.idl index bd4334d4d517..7e10bef8f3c0 100644 --- a/accessible/interfaces/nsIAccessibleDocument.idl +++ b/accessible/interfaces/nsIAccessibleDocument.idl @@ -7,7 +7,7 @@ interface nsIAccessiblePivot; interface nsIDOMDocument; -interface nsIDOMWindow; +interface mozIDOMWindowProxy; /** * An interface for in-process accessibility clients @@ -19,7 +19,7 @@ interface nsIDOMWindow; * the root node of a document or you can get one from * nsIAccessible::GetDocument(). */ -[scriptable, uuid(2be938df-0210-4609-9ece-26b197a517e5)] +[scriptable, uuid(5cad5f91-fcce-40e7-913e-4671701d19b4)] interface nsIAccessibleDocument : nsISupports { /** @@ -50,7 +50,7 @@ interface nsIAccessibleDocument : nsISupports /** * The nsIDOMWindow that the document resides in. */ - readonly attribute nsIDOMWindow window; + readonly attribute mozIDOMWindowProxy window; /** * Return the parent document accessible. diff --git a/accessible/interfaces/nsIAccessibleRetrieval.idl b/accessible/interfaces/nsIAccessibleRetrieval.idl index cd9939bbdb3c..168d4a5095d2 100644 --- a/accessible/interfaces/nsIAccessibleRetrieval.idl +++ b/accessible/interfaces/nsIAccessibleRetrieval.idl @@ -9,7 +9,6 @@ interface nsIDOMNode; interface nsIAccessible; interface nsIWeakReference; interface nsIPresShell; -interface nsIDOMWindow; interface nsIAccessiblePivot; /** diff --git a/accessible/windows/msaa/nsWinUtils.cpp b/accessible/windows/msaa/nsWinUtils.cpp index 6fc7f168b3e6..8692244ebb2c 100644 --- a/accessible/windows/msaa/nsWinUtils.cpp +++ b/accessible/windows/msaa/nsWinUtils.cpp @@ -45,8 +45,7 @@ nsWinUtils::GetComputedStyleDeclaration(nsIContent* aContent) return nullptr; // Returns number of items in style declaration - nsCOMPtr window = - do_QueryInterface(elm->OwnerDoc()->GetInnerWindow()); + nsCOMPtr window = elm->OwnerDoc()->GetInnerWindow(); if (!window) return nullptr; diff --git a/accessible/xpcom/xpcAccessibleDocument.cpp b/accessible/xpcom/xpcAccessibleDocument.cpp index 601cf06fd4fc..d4726dbe60d9 100644 --- a/accessible/xpcom/xpcAccessibleDocument.cpp +++ b/accessible/xpcom/xpcAccessibleDocument.cpp @@ -99,7 +99,7 @@ xpcAccessibleDocument::GetDOMDocument(nsIDOMDocument** aDOMDocument) } NS_IMETHODIMP -xpcAccessibleDocument::GetWindow(nsIDOMWindow** aDOMWindow) +xpcAccessibleDocument::GetWindow(mozIDOMWindowProxy** aDOMWindow) { NS_ENSURE_ARG_POINTER(aDOMWindow); *aDOMWindow = nullptr; diff --git a/accessible/xpcom/xpcAccessibleDocument.h b/accessible/xpcom/xpcAccessibleDocument.h index 5d21683e6ad7..7cf45518e020 100644 --- a/accessible/xpcom/xpcAccessibleDocument.h +++ b/accessible/xpcom/xpcAccessibleDocument.h @@ -41,7 +41,7 @@ public: NS_IMETHOD GetMimeType(nsAString& aType) final override; NS_IMETHOD GetDocType(nsAString& aType) final override; NS_IMETHOD GetDOMDocument(nsIDOMDocument** aDOMDocument) final override; - NS_IMETHOD GetWindow(nsIDOMWindow** aDOMWindow) final override; + NS_IMETHOD GetWindow(mozIDOMWindowProxy** aDOMWindow) final override; NS_IMETHOD GetParentDocument(nsIAccessibleDocument** aDocument) final override; NS_IMETHOD GetChildDocumentCount(uint32_t* aCount) final override; diff --git a/chrome/nsChromeRegistry.cpp b/chrome/nsChromeRegistry.cpp index e12fd9555e2a..4ecb3bd2953c 100644 --- a/chrome/nsChromeRegistry.cpp +++ b/chrome/nsChromeRegistry.cpp @@ -313,7 +313,7 @@ nsChromeRegistry::ConvertChromeURL(nsIURI* aChromeURI, nsIURI* *aResult) // theme stuff -static void FlushSkinBindingsForWindow(nsPIDOMWindow* aWindow) +static void FlushSkinBindingsForWindow(nsPIDOMWindowOuter* aWindow) { // Get the document. nsCOMPtr document = aWindow->GetDoc(); @@ -340,7 +340,7 @@ NS_IMETHODIMP nsChromeRegistry::RefreshSkins() nsCOMPtr protoWindow; windowEnumerator->GetNext(getter_AddRefs(protoWindow)); if (protoWindow) { - nsCOMPtr domWindow = do_QueryInterface(protoWindow); + nsCOMPtr domWindow = do_QueryInterface(protoWindow); if (domWindow) FlushSkinBindingsForWindow(domWindow); } @@ -355,7 +355,7 @@ NS_IMETHODIMP nsChromeRegistry::RefreshSkins() nsCOMPtr protoWindow; windowEnumerator->GetNext(getter_AddRefs(protoWindow)); if (protoWindow) { - nsCOMPtr domWindow = do_QueryInterface(protoWindow); + nsCOMPtr domWindow = do_QueryInterface(protoWindow); if (domWindow) RefreshWindow(domWindow); } @@ -377,7 +377,7 @@ nsChromeRegistry::FlushSkinCaches() } // XXXbsmedberg: move this to windowmediator -nsresult nsChromeRegistry::RefreshWindow(nsPIDOMWindow* aWindow) +nsresult nsChromeRegistry::RefreshWindow(nsPIDOMWindowOuter* aWindow) { // Deal with our subframes first. nsCOMPtr frames = aWindow->GetFrames(); @@ -385,9 +385,9 @@ nsresult nsChromeRegistry::RefreshWindow(nsPIDOMWindow* aWindow) frames->GetLength(&length); uint32_t j; for (j = 0; j < length; j++) { - nsCOMPtr childWin; + nsCOMPtr childWin; frames->Item(j, getter_AddRefs(childWin)); - nsCOMPtr piWindow = do_QueryInterface(childWin); + nsCOMPtr piWindow = nsPIDOMWindowOuter::From(childWin); RefreshWindow(piWindow); } @@ -503,7 +503,7 @@ nsChromeRegistry::ReloadChrome() nsCOMPtr protoWindow; rv = windowEnumerator->GetNext(getter_AddRefs(protoWindow)); if (NS_SUCCEEDED(rv)) { - nsCOMPtr domWindow = do_QueryInterface(protoWindow); + nsCOMPtr domWindow = do_QueryInterface(protoWindow); if (domWindow) { nsIDOMLocation* location = domWindow->GetLocation(); if (location) { diff --git a/chrome/nsChromeRegistry.h b/chrome/nsChromeRegistry.h index c9176cb3e2d9..c409e09bd3af 100644 --- a/chrome/nsChromeRegistry.h +++ b/chrome/nsChromeRegistry.h @@ -22,7 +22,7 @@ #include "mozilla/FileLocation.h" -class nsPIDOMWindow; +class nsPIDOMWindowOuter; class nsIPrefBranch; class nsIURL; @@ -95,7 +95,7 @@ protected: nsresult SelectLocaleFromPref(nsIPrefBranch* prefs); - static nsresult RefreshWindow(nsPIDOMWindow* aWindow); + static nsresult RefreshWindow(nsPIDOMWindowOuter* aWindow); static nsresult GetProviderAndPath(nsIURL* aChromeURL, nsACString& aProvider, nsACString& aPath); diff --git a/docshell/base/LoadContext.cpp b/docshell/base/LoadContext.cpp index 6701d45777e9..99d5bfb86012 100644 --- a/docshell/base/LoadContext.cpp +++ b/docshell/base/LoadContext.cpp @@ -69,7 +69,7 @@ LoadContext::LoadContext(nsIPrincipal* aPrincipal, //----------------------------------------------------------------------------- NS_IMETHODIMP -LoadContext::GetAssociatedWindow(nsIDOMWindow**) +LoadContext::GetAssociatedWindow(mozIDOMWindowProxy**) { MOZ_ASSERT(mIsNotNull); @@ -78,7 +78,7 @@ LoadContext::GetAssociatedWindow(nsIDOMWindow**) } NS_IMETHODIMP -LoadContext::GetTopWindow(nsIDOMWindow**) +LoadContext::GetTopWindow(mozIDOMWindowProxy**) { MOZ_ASSERT(mIsNotNull); diff --git a/docshell/base/nsDSURIContentListener.cpp b/docshell/base/nsDSURIContentListener.cpp index 98de0eef0530..72bbdfe1d993 100644 --- a/docshell/base/nsDSURIContentListener.cpp +++ b/docshell/base/nsDSURIContentListener.cpp @@ -148,8 +148,8 @@ nsDSURIContentListener::DoContent(const nsACString& aContentType, } if (loadFlags & nsIChannel::LOAD_RETARGETED_DOCUMENT_URI) { - nsCOMPtr domWindow = do_QueryInterface( - mDocShell ? mDocShell->GetWindow() : nullptr); + nsCOMPtr domWindow = + mDocShell ? mDocShell->GetWindow() : nullptr; NS_ENSURE_TRUE(domWindow, NS_ERROR_FAILURE); domWindow->Focus(); } @@ -294,7 +294,7 @@ nsDSURIContentListener::CheckOneFrameOptionsPolicy(nsIHttpChannel* aHttpChannel, // window, if we're not the top. X-F-O: SAMEORIGIN requires that the // document must be same-origin with top window. X-F-O: DENY requires that // the document must never be framed. - nsCOMPtr thisWindow = mDocShell->GetWindow(); + nsCOMPtr thisWindow = mDocShell->GetWindow(); // If we don't have DOMWindow there is no risk of clickjacking if (!thisWindow) { return true; @@ -302,7 +302,7 @@ nsDSURIContentListener::CheckOneFrameOptionsPolicy(nsIHttpChannel* aHttpChannel, // GetScriptableTop, not GetTop, because we want this to respect //