import changes from rmottola/Arctic-Fox:

- Bug 932865 - Add ThreadHangStats for collecting background hang telemetry; r=vladan (2f08a076b)
- Bug 932865 - Add way for telemetry to iterate over active threads; r=froydnj (535615d3d)
- Bug 1128768: Part 3 - Update BHR to allow for hang annotations; r=vladan (0b880a667)
- Bug 935092 - Add ThreadStackHelper to get a thread's pesudo-stack; r=BenWa (1422cfe4d)
- Bug 942488 - Don't report pseudo-stacks without SPS profiler. r=nchen (e160a7a08)
- Bug 946817 - Don't assert mPseudoStack on B2G. r=BenWa (9f846df3b)
- Bug 951431 - Don't get stacks during profiler runs on Linux; r=BenWa (15036e907)
- Bug 978262 - Ignore duplicate frames when getting BHR stack. r=froydnj (964721b1b)
- Bug 985155 - Add signal trampoline on ARM Linux to work around kernel bug. r=snorp (cb8a7846c)
- Bug 995730 - Convert xpcom/threads/ to Gecko style. r=froydnj (fe150404e)
- Bug 1013326 - Distinguish chrome and content scripts in pseudostack; r=snorp (81273c977)
- Bug 1023461 - Remove temporary stack buffer in ThreadStackHelper; r=snorp (cf5a717c2)
- Bug 1023461 - Record filename and line number for chrome JS entries; r=snorp (10c89808f)
- Bug 1022456 - Fix modelines in xpcom/{base,glue,io,string,threads}/. (48dbc0416)
- Bug 1016441 - Switch to using real-time signal in ThreadStackHelper; (2c5f818be)
- Bug 1016629 - b. Use RAII class to assign mStackToFill; r=snorp (769eae130)
- Bug 1016629 - c. Add define for ThreadStackHelper pseudostack support; r=snorp (67def0d2f)
- Bug 1016629 - d. Add and implement GetNativeStack method in ThreadStackHelper; r=snorp r=jseward (46c52f2be)
- Bug 1016629 - e. Implement platform-specific code for filling in context; r=snorp r=jseward (e6a66858b)
- Bug 1016629 - g. Avoid ASan flag when copying stack; r=snorp (0159628b5)
- Bug 1045176 - Unbreak build on non-SPS platforms after bug 1016629. (f1d60d838)
- Bug 1047123 - ThreadStackHelper should use UniquePtr<uint8_t[]>, not ScopedDeleteArray. r=jchen (0e4af313c)
- Bug 1049161 - Fix ThreadStackHelper thread handle permissions on Windows; r=snorp (c05172b1c)
- Bug 1050185 - Make ThreadStackHelper::FillThreadContext Valgrind-friendly. r=nchen (368725774)
- Bug 1050440 - Remove repeated js::RunScript frames in ThreadStackHelper (2a79600b3)
- Bug 1046841 - Fix more style violations in previously touched .cpp files in xpcom/. r=froydnj (02afe2493)
- Bug 1069694 - Remove or move around functions in OldDebugAPI. r=shu (177197302)
- Bug 1069694 - Remove OldDebugAPI from the browser. r=shu (b8c917d42)
- Bug 1100911 - For MacOS builds running on Valgrind, make ThreadStackHelper::GetStack be a no-op. r=nchen. (d99c02e16)
- Bug 1091758 - Report full paths for most chrome scripts; r=snorp (2b72e7878)
- Bug 1109291 - Include better paths for hanging chrome scripts in profile extensions directory; r=snorp r=bsmedberg (1997b9532)
- Bug 1113416 - Don't read stack labels inside hang monitor sighandler; r=nfroyd r=snorp (9688f6069)
- bug 1146027 - more final r=froydnj (7b0f295e5)
- Bug 1164090 - Check for Windows path separator in BHR file name; r=snorp (f014b4d78)
- Bug 1169034 - include <cstdlib> in ThreadStackHelper.cpp to declare correct overload for std::abs; r=jseward (874d4447e)
- Bug 1182996 - Fix and add missing namespace comments. rs=ehsan (054fc00b2)
- Bug 932865 - Collect thread hang stats in BackgroundHangMonitor; (ac80c8e9f)
- minor anticipated fixes to get it compiling (2bd701d15)
pull/3/head
Roy Tam 3 years ago
parent 603e20b300
commit 8f529f64f5
  1. 1
      accessible/windows/msaa/AccessibleWrap.h
  2. 2
      caps/DomainPolicy.h
  3. 2
      chrome/RegistryMessageUtils.h
  4. 4
      chrome/nsChromeRegistryChrome.h
  5. 2
      docshell/base/IHistory.h
  6. 5
      docshell/base/nsDocShell.cpp
  7. 6
      dom/alarm/AlarmHalService.cpp
  8. 2
      dom/asmjscache/AsmJSCache.cpp
  9. 2
      dom/asmjscache/AsmJSCache.h
  10. 4
      dom/base/AnonymousContent.cpp
  11. 4
      dom/base/AnonymousContent.h
  12. 4
      dom/base/BlobSet.h
  13. 1
      dom/base/ChildIterator.cpp
  14. 4
      dom/base/Console.h
  15. 4
      dom/base/DOMMatrix.h
  16. 4
      dom/base/DOMPoint.h
  17. 4
      dom/base/DOMQuad.h
  18. 5
      dom/base/DOMRect.h
  19. 4
      dom/base/ElementInlines.h
  20. 4
      dom/base/File.cpp
  21. 6
      dom/base/File.h
  22. 2
      dom/base/FragmentOrElement.cpp
  23. 4
      dom/base/FragmentOrElement.h
  24. 2
      dom/base/ImageEncoder.h
  25. 2
      dom/base/Navigator.cpp
  26. 6
      dom/base/Navigator.h
  27. 4
      dom/base/ShadowRoot.h
  28. 4
      dom/base/URL.cpp
  29. 6
      dom/base/URL.h
  30. 2
      dom/base/URLSearchParams.cpp
  31. 18
      dom/base/WebSocket.cpp
  32. 3
      dom/base/mozFlushType.h
  33. 4
      dom/base/nsAttrValue.h
  34. 4
      dom/base/nsCCUncollectableMarker.h
  35. 4
      dom/base/nsContentAreaDragDrop.h
  36. 4
      dom/base/nsContentList.h
  37. 2
      dom/base/nsContentPermissionHelper.h
  38. 4
      dom/base/nsContentSink.h
  39. 8
      dom/base/nsContentUtils.cpp
  40. 4
      dom/base/nsDOMAttributeMap.h
  41. 4
      dom/base/nsDOMCaretPosition.h
  42. 6
      dom/base/nsDOMDataChannel.h
  43. 8
      dom/base/nsDOMFileReader.h
  44. 6
      dom/base/nsDOMNavigationTiming.h
  45. 4
      dom/base/nsDOMWindowUtils.h
  46. 9
      dom/base/nsDocument.cpp
  47. 6
      dom/base/nsFrameLoader.h
  48. 2
      dom/base/nsFrameMessageManager.cpp
  49. 4
      dom/base/nsGlobalWindow.cpp
  50. 2
      dom/base/nsGlobalWindow.h
  51. 2
      dom/base/nsHTMLContentSerializer.h
  52. 2
      dom/base/nsHostObjectProtocolHandler.cpp
  53. 4
      dom/base/nsHostObjectProtocolHandler.h
  54. 2
      dom/base/nsINode.cpp
  55. 2
      dom/base/nsImageLoadingContent.cpp
  56. 4
      dom/base/nsJSUtils.h
  57. 4
      dom/base/nsNodeInfoManager.h
  58. 4
      dom/base/nsObjectLoadingContent.h
  59. 6
      dom/base/nsPIDOMWindow.h
  60. 4
      dom/base/nsPerformance.h
  61. 6
      dom/base/nsScriptLoader.h
  62. 4
      dom/base/nsStyledElement.h
  63. 4
      dom/base/nsTextFragment.cpp
  64. 2
      dom/base/nsWindowRoot.h
  65. 1
      dom/bindings/BindingUtils.h
  66. 2
      dom/bindings/ErrorIPCUtils.h
  67. 2
      dom/bindings/ErrorResult.h
  68. 1
      dom/bindings/MozMap.h
  69. 2
      dom/bluetooth/BluetoothHidManager.cpp
  70. 2
      dom/bluetooth/bluedroid/BluetoothA2dpManager.cpp
  71. 2
      dom/bluetooth/bluedroid/hfp-fallback/BluetoothHfpManager.cpp
  72. 2
      dom/bluetooth/bluedroid/hfp/BluetoothHfpManager.cpp
  73. 2
      dom/bluetooth/bluez/BluetoothA2dpManager.cpp
  74. 2
      dom/bluetooth/bluez/BluetoothHfpManager.cpp
  75. 6
      dom/broadcastchannel/BroadcastChannel.cpp
  76. 4
      dom/broadcastchannel/BroadcastChannel.h
  77. 4
      dom/broadcastchannel/BroadcastChannelChild.cpp
  78. 6
      dom/broadcastchannel/BroadcastChannelChild.h
  79. 4
      dom/broadcastchannel/BroadcastChannelParent.cpp
  80. 4
      dom/broadcastchannel/BroadcastChannelParent.h
  81. 8
      dom/broadcastchannel/BroadcastChannelService.cpp
  82. 4
      dom/broadcastchannel/BroadcastChannelService.h
  83. 2
      dom/browser-element/BrowserElementParent.cpp
  84. 2
      dom/browser-element/BrowserElementParent.h
  85. 4
      dom/cache/ActorUtils.h
  86. 2
      dom/cache/AutoUtils.cpp
  87. 2
      dom/cache/AutoUtils.h
  88. 2
      dom/cache/Cache.cpp
  89. 2
      dom/cache/CacheChild.cpp
  90. 2
      dom/cache/CacheOpChild.cpp
  91. 2
      dom/cache/CacheOpParent.h
  92. 2
      dom/cache/CacheParent.cpp
  93. 4
      dom/cache/CacheStorage.h
  94. 2
      dom/cache/CacheStorageParent.h
  95. 2
      dom/cache/Context.cpp
  96. 4
      dom/cache/DBSchema.cpp
  97. 2
      dom/cache/Feature.h
  98. 4
      dom/cache/FileUtils.cpp
  99. 2
      dom/cache/IPCUtils.h
  100. 2
      dom/cache/Manager.cpp
  101. Some files were not shown because too many files have changed in this diff Show More

@ -215,6 +215,7 @@ WrapperFor(ProxyAccessible* aProxy)
{
return reinterpret_cast<AccessibleWrap*>(aProxy->GetWrapper());
}
} // namespace a11y
} // namespace mozilla

@ -19,7 +19,7 @@ class nsIContentParent;
namespace ipc {
class URIParams;
};
} // namespace ipc
enum DomainSetChangeType{
ACTIVATE_POLICY,

@ -197,6 +197,6 @@ struct ParamTraits<OverrideMapping>
}
};
}
} // namespace IPC
#endif // RegistryMessageUtils_h

@ -15,8 +15,8 @@
namespace mozilla {
namespace dom {
class PContentParent;
}
}
} // namespace dom
} // namespace mozilla
class nsIPrefBranch;
struct ChromePackage;

@ -16,7 +16,7 @@ namespace mozilla {
namespace dom {
class Link;
}
} // namespace dom
// 0057c9d3-b98e-4933-bdc5-0275d06705e1
#define IHISTORY_IID \

@ -8486,7 +8486,8 @@ private:
mRestorePresentationEvent;
nsRefPtr<nsDocShell::RestorePresentationEvent> mEvent;
};
}
} // namespace
nsresult
nsDocShell::RestoreFromHistory()
@ -9526,7 +9527,7 @@ CopyFavicon(nsIURI* aOldURI, nsIURI* aNewURI, bool aInPrivateBrowsing)
#endif
}
} // anonymous namespace
} // namespace
class InternalLoadEvent : public nsRunnable
{

@ -95,6 +95,6 @@ AlarmHalService::Notify(
aSystemTimezoneChangeInfo.newTimezoneOffsetMinutes());
}
} // alarm
} // dom
} // mozilla
} // namespace alarm
} // namespace dom
} // namespace mozilla

@ -1594,7 +1594,7 @@ OpenFile(nsIPrincipal* aPrincipal,
return JS::AsmJSCache_Success;
}
} // anonymous namespace
} // namespace
typedef uint32_t AsmJSCookieType;
static const uint32_t sAsmJSCookie = 0x600d600d;

@ -19,7 +19,7 @@ namespace dom {
namespace quota {
class Client;
}
} // namespace quota
namespace asmjscache {

@ -137,5 +137,5 @@ AnonymousContent::WrapObject(JSContext* aCx,
return AnonymousContentBinding::Wrap(aCx, this, aGivenProto, aReflector);
}
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla

@ -58,7 +58,7 @@ private:
nsCOMPtr<Element> mContentNode;
};
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla
#endif // mozilla_dom_AnonymousContent_h

@ -82,7 +82,7 @@ protected:
uint64_t mDataBufferLen;
};
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla
#endif // mozilla_dom_BlobSet_h

@ -345,5 +345,6 @@ AllChildrenIterator::GetNextChild()
return nullptr;
}
} // namespace dom
} // namespace mozilla

@ -207,7 +207,7 @@ private:
friend class ConsoleProfileRunnable;
};
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla
#endif /* mozilla_dom_Console_h */

@ -247,7 +247,7 @@ private:
void Ensure3DMatrix();
};
}
}
} // namespace dom
} // namespace mozilla
#endif /*MOZILLA_DOM_DOMMATRIX_H_*/

@ -72,7 +72,7 @@ public:
void SetW(double aW) { mW = aW; }
};
}
}
} // namespace dom
} // namespace mozilla
#endif /*MOZILLA_DOMPOINT_H_*/

@ -64,7 +64,7 @@ protected:
mutable nsRefPtr<QuadBounds> mBounds; // allocated lazily
};
}
}
} // namespace dom
} // namespace mozilla
#endif /*MOZILLA_DOMRECT_H_*/

@ -209,8 +209,7 @@ protected:
nsCOMPtr<nsISupports> mParent;
};
}
}
} // namespace dom
} // namespace mozilla
#endif /*MOZILLA_DOMRECT_H_*/

@ -25,7 +25,7 @@ Element::UnregisterActivityObserver()
OwnerDoc()->UnregisterActivityObserver(this);
}
}
}
} // namespace dom
} // namespace mozilla
#endif // mozilla_dom_ElementInlines_h

@ -1321,5 +1321,5 @@ BlobSet::AppendBlobImpls(const nsTArray<nsRefPtr<FileImpl>>& aBlobImpls)
return NS_OK;
}
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla

@ -43,7 +43,7 @@ namespace dom {
namespace indexedDB {
class FileInfo;
};
} // namespace indexedDB
struct BlobPropertyBag;
struct ChromeFilePropertyBag;
@ -890,7 +890,7 @@ private:
nsISupports *mParent;
};
} // dom namespace
} // file namespace
} // namespace dom
} // namespace mozilla
#endif // mozilla_dom_File_h

@ -2336,7 +2336,7 @@ private:
uint32_t mLength;
};
} // anonymous namespace
} // namespace
static void
AppendEncodedCharacters(const nsTextFragment* aText, StringBuilder& aBuilder)

@ -35,8 +35,8 @@ class nsIURI;
namespace mozilla {
namespace dom {
class Element;
}
}
} // namespace dom
} // namespace mozilla
/**
* Class that implements the nsIDOMNodeList interface (a list of children of

@ -20,7 +20,7 @@ namespace mozilla {
namespace layers {
class Image;
}
} // namespace layers
namespace dom {

@ -743,7 +743,7 @@ VibrateWindowListener::RemoveListener()
true /* use capture */);
}
} // anonymous namespace
} // namespace
void
Navigator::AddIdleObserver(MozIdleObserver& aIdleObserver, ErrorResult& aRv)

@ -38,8 +38,8 @@ class WakeLock;
class ArrayBufferViewOrBlobOrStringOrFormData;
struct MobileIdOptions;
class ServiceWorkerContainer;
}
}
} // namespace dom
} // namespace mozilla
#ifdef MOZ_B2G_RIL
class nsIDOMMozIccManager;
@ -76,7 +76,7 @@ class MozGetUserMediaDevicesSuccessCallback;
namespace network {
class Connection;
} // namespace Connection;
} // namespace network
#ifdef MOZ_B2G_BT
namespace bluetooth {

@ -28,8 +28,8 @@ class HTMLContentElement;
class HTMLShadowElement;
class ShadowRootStyleSheetList;
class ShadowRoot : public DocumentFragment,
public nsStubMutationObserver
class ShadowRoot final : public DocumentFragment,
public nsStubMutationObserver
{
friend class ShadowRootStyleSheetList;
public:

@ -546,5 +546,5 @@ URL::CreateSearchParamsIfNeeded()
}
}
}
}
} // namespace dom
} // namespace mozilla

@ -30,7 +30,7 @@ struct objectURLOptions;
namespace workers {
class URLProxy;
}
} // namespace workers
class URL final : public URLSearchParamsObserver
{
@ -158,7 +158,7 @@ private:
bool IsChromeURI(nsIURI* aURI);
}
}
} // namespace dom
} // namespace mozilla
#endif /* URL_h___ */

@ -357,7 +357,7 @@ void SerializeString(const nsCString& aInput, nsAString& aValue)
}
}
} // anonymous namespace
} // namespace
void
URLSearchParams::Serialize(nsAString& aValue) const

@ -314,7 +314,7 @@ private:
nsresult mRv;
};
} // anonymous namespace
} // namespace
nsresult
WebSocketImpl::PrintErrorOnConsole(const char *aBundleURI,
@ -488,7 +488,7 @@ private:
const nsCString mReasonString;
};
} // anonymous namespace
} // namespace
nsresult
WebSocketImpl::CloseConnection(uint16_t aReasonCode,
@ -628,7 +628,7 @@ private:
WebSocketImpl* mImpl;
};
} // anonymous namespace
} // namespace
nsresult
WebSocketImpl::Disconnect()
@ -1181,7 +1181,7 @@ private:
ErrorResult& mRv;
};
} // anonymous namespace
} // namespace
already_AddRefed<WebSocket>
WebSocket::Constructor(const GlobalObject& aGlobal,
@ -2122,7 +2122,7 @@ private:
WebSocketImpl* mWebSocketImpl;
};
} // anonymous namespace
} // namespace
void
WebSocketImpl::AddRefObject()
@ -2553,7 +2553,7 @@ private:
nsRefPtr<WebSocketImpl> mImpl;
};
} // anonymous namespace
} // namespace
// Window closed, stop/reload button pressed, user navigated away from page, etc.
NS_IMETHODIMP
@ -2724,7 +2724,7 @@ private:
nsCOMPtr<nsIRunnable> mEvent;
};
} // anonymous namespace
} // namespace
NS_IMETHODIMP
WebSocketImpl::Dispatch(nsIRunnable* aEvent, uint32_t aFlags)
@ -2776,5 +2776,5 @@ WebSocket::AssertIsOnTargetThread() const
MOZ_ASSERT(NS_IsMainThread() == mIsMainThread);
}
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla

@ -40,5 +40,6 @@ struct ChangesToFlush {
bool mFlushAnimations;
};
}
} // namespace mozilla
#endif /* mozFlushType_h___ */

@ -34,8 +34,8 @@ namespace css {
class StyleRule;
struct URLValue;
struct ImageValue;
}
}
} // namespace css
} // namespace mozilla
#define NS_ATTRVALUE_MAX_STRINGLENGTH_ATOM 12

@ -44,7 +44,7 @@ private:
namespace mozilla {
namespace dom {
void TraceBlackJS(JSTracer* aTrc, uint32_t aGCNumber, bool aIsShutdownGC);
}
}
} // namespace dom
} // namespace mozilla
#endif

@ -25,8 +25,8 @@ class nsISimpleEnumerator;
namespace mozilla {
namespace dom {
class DataTransfer;
}
}
} // namespace dom
} // namespace mozilla
//
// class nsContentAreaDragDrop, used to generate the dragdata

@ -32,8 +32,8 @@
namespace mozilla {
namespace dom {
class Element;
}
}
} // namespace dom
} // namespace mozilla
class nsBaseContentList : public nsINodeList

@ -25,7 +25,7 @@ class nsContentPermissionRequestProxy;
// That will mess up windows build.
namespace IPC {
class Principal;
}
} // namespace IPC
namespace mozilla {
namespace dom {

@ -43,8 +43,8 @@ class nsIApplicationCache;
namespace mozilla {
namespace css {
class Loader;
}
}
} // namespace css
} // namespace mozilla
#ifdef DEBUG

@ -431,7 +431,7 @@ private:
nsCString mCharset;
};
} // anonymous namespace
} // namespace
/* static */
TimeDuration
@ -1982,9 +1982,9 @@ namespace dom {
namespace workers {
extern bool IsCurrentThreadRunningChromeWorker();
extern JSContext* GetCurrentThreadJSContext();
}
}
}
} // namespace workers
} // namespace dom
} // namespace mozilla
bool
nsContentUtils::ThreadsafeIsCallerChrome()

@ -82,8 +82,8 @@ private:
};
// Helper class that implements the nsIDOMMozNamedAttrMap interface.
class nsDOMAttributeMap : public nsIDOMMozNamedAttrMap
, public nsWrapperCache
class nsDOMAttributeMap final : public nsIDOMMozNamedAttrMap
, public nsWrapperCache
{
public:
typedef mozilla::dom::Attr Attr;

@ -13,8 +13,8 @@
namespace mozilla {
namespace dom {
class DOMRect;
}
}
} // namespace dom
} // namespace mozilla
/**
* Implementation of a DOM Caret Position, which is a node and offset within

@ -24,9 +24,9 @@ class File;
class DataChannel;
};
class nsDOMDataChannel : public mozilla::DOMEventTargetHelper,
public nsIDOMDataChannel,
public mozilla::DataChannelListener
class nsDOMDataChannel final : public mozilla::DOMEventTargetHelper,
public nsIDOMDataChannel,
public mozilla::DataChannelListener
{
public:
nsDOMDataChannel(already_AddRefed<mozilla::DataChannel>& aDataChannel,

@ -30,10 +30,10 @@ class File;
}
}
class nsDOMFileReader : public mozilla::dom::FileIOObject,
public nsIDOMFileReader,
public nsIInterfaceRequestor,
public nsSupportsWeakReference
class nsDOMFileReader final : public mozilla::dom::FileIOObject,
public nsIDOMFileReader,
public nsIInterfaceRequestor,
public nsSupportsWeakReference
{
typedef mozilla::ErrorResult ErrorResult;
typedef mozilla::dom::GlobalObject GlobalObject;

@ -23,9 +23,9 @@ static const nsDOMPerformanceNavigationType TYPE_NAVIGATE = 0;
static const nsDOMPerformanceNavigationType TYPE_RELOAD = 1;
static const nsDOMPerformanceNavigationType TYPE_BACK_FORWARD = 2;
static const nsDOMPerformanceNavigationType TYPE_RESERVED = 255;
}
}
}
} // namespace PerformanceNavigation
} // namespace dom
} // namespace mozilla
class nsDOMNavigationTiming final
{

@ -23,8 +23,8 @@ struct nsPoint;
namespace mozilla {
namespace layers {
class LayerTransactionChild;
}
}
} // namespace layers
} // namespace mozilla
class nsTranslationNodeList final : public nsITranslationNodeList
{

@ -568,6 +568,7 @@ struct PositionComparator
return 1;
}
};
} // namespace
bool
@ -5964,7 +5965,7 @@ public:
NS_IMPL_ISUPPORTS(ProcessStackRunner, nsIRunnable);
} // anonymous namespace
} // namespace
void
nsDocument::EnqueueLifecycleCallback(nsIDocument::ElementCallbackType aType,
@ -9631,7 +9632,7 @@ struct SuppressArgs
uint32_t mIncrease;
};
}
} // namespace
static bool
SuppressEventHandlingInDocument(nsIDocument* aDocument, void* aData)
@ -9869,7 +9870,7 @@ public:
};
NS_IMPL_ISUPPORTS(StubCSSLoaderObserver, nsICSSLoaderObserver)
}
} // namespace
void
nsDocument::PreloadStyle(nsIURI* uri, const nsAString& charset,
@ -9926,7 +9927,7 @@ struct UnsuppressArgs
nsTArray<nsCOMPtr<nsIDocument>> mDocs;
};
}
} // namespace
static bool
GetAndUnsuppressSubDocuments(nsIDocument* aDocument,

@ -41,12 +41,12 @@ class ContentParent;
class PBrowserParent;
class TabParent;
struct StructuredCloneData;
}
} // namespace dom
namespace layout {
class RenderFrameParent;
}
}
} // namespace layout
} // namespace mozilla
#if defined(MOZ_WIDGET_GTK)
typedef struct _GtkWidget GtkWidget;

@ -1305,7 +1305,7 @@ struct MessageManagerReferentCount
nsDataHashtable<nsStringHashKey, uint32_t> mMessageCounter;
};
} // anonymous namespace
} // namespace
namespace mozilla {
namespace dom {

@ -569,8 +569,8 @@ namespace mozilla {
namespace dom {
extern uint64_t
NextWindowID();
}
}
} // namespace dom
} // namespace mozilla
nsPIDOMWindow::nsPIDOMWindow(nsPIDOMWindow *aOuterWindow)
: mFrameElement(nullptr), mDocShell(nullptr), mModalStateDepth(0),

@ -267,7 +267,7 @@ CreateVoidVariant()
//
// We also use the same machinery for |returnValue|, which needs similar origin
// checks.
class DialogValueHolder : public nsISupports
class DialogValueHolder final : public nsISupports
{
public:
NS_DECL_CYCLE_COLLECTING_ISUPPORTS

@ -20,7 +20,7 @@
class nsIContent;
class nsIAtom;
class nsHTMLContentSerializer : public nsXHTMLContentSerializer {
class nsHTMLContentSerializer final : public nsXHTMLContentSerializer {
public:
nsHTMLContentSerializer();
virtual ~nsHTMLContentSerializer();

@ -275,7 +275,7 @@ class BlobURLsReporter final : public nsIMemoryReporter
NS_IMPL_ISUPPORTS(BlobURLsReporter, nsIMemoryReporter)
}
} // namespace mozilla
void
nsHostObjectProtocolHandler::Init(void)

@ -25,8 +25,8 @@ class DOMMediaStream;
namespace dom {
class FileImpl;
class MediaSource;
}
}
} // namespace dom
} // namespace mozilla
class nsHostObjectProtocolHandler : public nsIProtocolHandler
{

@ -2697,7 +2697,7 @@ struct SelectorMatchInfo {
nsCSSSelectorList* const mSelectorList;
TreeMatchContext& mMatchContext;
};
}
} // namespace
// Given an id, find elements with that id under aRoot that match aMatchInfo if
// any is provided. If no SelectorMatchInfo is provided, just find the ones

@ -1317,7 +1317,7 @@ private:
nsCOMPtr<imgIRequest> mRequest;
};
} // anonymous namespace
} // namespace
void
nsImageLoadingContent::MakePendingRequestCurrent()

@ -27,8 +27,8 @@ namespace mozilla {
namespace dom {
class AutoJSAPI;
class Element;
}
}
} // namespace dom
} // namespace mozilla
class nsJSUtils
{

@ -29,8 +29,8 @@ template<class T> struct already_AddRefed;
namespace mozilla {
namespace dom {
class NodeInfo;
}
}
} // namespace dom
} // namespace mozilla
class nsNodeInfoManager final
{

@ -35,8 +35,8 @@ namespace mozilla {
namespace dom {
template<typename T> class Sequence;
struct MozPluginParameter;
}
}
} // namespace dom
} // namespace mozilla
class nsObjectLoadingContent : public nsImageLoadingContent
, public nsIStreamListener

@ -38,11 +38,11 @@ namespace mozilla {
namespace dom {
class AudioContext;
class Element;
}
} // namespace dom
namespace gfx {
class VRHMDInfo;
}
}
} // namespace gfx
} // namespace mozilla
// Popup control state enum. The values in this enum must go from most
// permissive to least permissive so that it's safe to push state in

@ -24,8 +24,8 @@ namespace mozilla {
class ErrorResult;
namespace dom {
class PerformanceEntry;
}
}
} // namespace dom
} // namespace mozilla
// Script "performance.timing" object
class nsPerformanceTiming final : public nsWrapperCache

@ -24,13 +24,13 @@ class nsIURI;
namespace JS {
class SourceBufferHolder;
}
} // namespace JS
namespace mozilla {
namespace dom {
class AutoJSAPI;
}
}
} // namespace dom
} // namespace mozilla
//////////////////////////////////////////////////////////////
// Script loader implementation

@ -20,8 +20,8 @@
namespace mozilla {
namespace css {
class StyleRule;
}
}
} // namespace css
} // namespace mozilla
typedef mozilla::dom::Element nsStyledElementBase;

@ -167,8 +167,8 @@ FirstNon8BitUnvectorized(const char16_t *str, const char16_t *end)
namespace mozilla {
namespace SSE2 {
int32_t FirstNon8Bit(const char16_t *str, const char16_t *end);
}
}
} // namespace SSE2
} // namespace mozilla
#endif
/*

@ -26,7 +26,7 @@ class EventChainPreVisitor;
#include "nsTHashtable.h"
#include "nsHashKeys.h"
class nsWindowRoot : public nsPIWindowRoot
class nsWindowRoot final : public nsPIWindowRoot
{
public:
explicit nsWindowRoot(nsPIDOMWindow* aWindow);

@ -968,6 +968,7 @@ DoGetOrCreateDOMReflector(JSContext* cx, T* value,
return JS_WrapValue(cx, rval);
}
} // namespace binding_detail
// Create a JSObject wrapping "value", if there isn't one already, and store it

@ -65,6 +65,6 @@ struct ParamTraits<mozilla::ErrorResult>
}
};
}
} // namespace IPC
#endif

@ -22,7 +22,7 @@
namespace IPC {
class Message;
template <typename> struct ParamTraits;
}
} // namespace IPC
namespace mozilla {

@ -41,6 +41,7 @@ public:
DataType mData;
};
} // namespace binding_detail
template<typename DataType>

@ -24,7 +24,7 @@ USING_BLUETOOTH_NAMESPACE
namespace {
StaticRefPtr<BluetoothHidManager> sBluetoothHidManager;
bool sInShutdown = false;
} // anonymous namespace
} // namespace
NS_IMETHODIMP
BluetoothHidManager::Observe(nsISupports* aSubject,

@ -32,7 +32,7 @@ namespace {
bool sInShutdown = false;
static BluetoothA2dpInterface* sBtA2dpInterface;
static BluetoothAvrcpInterface* sBtAvrcpInterface;
} // anonymous namespace
} // namespace
/*
* This function maps attribute id and returns corresponding values

@ -18,7 +18,7 @@ USING_BLUETOOTH_NAMESPACE
namespace {
StaticRefPtr<BluetoothHfpManager> sBluetoothHfpManager;
bool sInShutdown = false;
} // anonymous namespace
} // namespace
/**
* nsIObserver function

@ -55,7 +55,7 @@ namespace {
// The mechanism should be revised once we know the exact time at which
// Dialer stops playing.
static int sBusyToneInterval = 3700; //unit: ms
} // anonymous namespace
} // namespace
const int BluetoothHfpManager::MAX_NUM_CLIENTS = 1;

@ -26,7 +26,7 @@ USING_BLUETOOTH_NAMESPACE
namespace {
StaticRefPtr<BluetoothA2dpManager> sBluetoothA2dpManager;
bool sInShutdown = false;
} // anonymous namespace
} // namespace
NS_IMETHODIMP
BluetoothA2dpManager::Observe(nsISupports* aSubject,

@ -97,7 +97,7 @@ namespace {
// Dialer stops playing.
static int sBusyToneInterval = 3700; //unit: ms
#endif // MOZ_B2G_RIL
} // anonymous namespace
} // namespace
#ifdef MOZ_B2G_RIL
/* CallState for sCINDItems[CINDType::CALL].value

@ -378,7 +378,7 @@ private:
bool mEnabled;
};
} // anonymous namespace
} // namespace
/* static */ bool
BroadcastChannel::IsEnabled(JSContext* aCx, JSObject* aGlobal)
@ -791,5 +791,5 @@ NS_INTERFACE_MAP_END_INHERITING(DOMEventTargetHelper)
NS_IMPL_ADDREF_INHERITED(BroadcastChannel, DOMEventTargetHelper)
NS_IMPL_RELEASE_INHERITED(BroadcastChannel, DOMEventTargetHelper)
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla

@ -19,13 +19,13 @@ namespace mozilla {
namespace ipc {
class PrincipalInfo;
}
} // namespace ipc
namespace dom {
namespace workers {
class WorkerFeature;
}
} // namespace workers
class BroadcastChannelChild;
class BroadcastChannelMessage;

@ -127,5 +127,5 @@ BroadcastChannelChild::ActorDestroy(ActorDestroyReason aWhy)
mActorDestroyed = true;
}
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla

@ -11,7 +11,7 @@ namespace mozilla {
namespace ipc {
class BackgroundChildImpl;
}
} // namespace ipc
namespace dom {
@ -51,7 +51,7 @@ private:
bool mActorDestroyed;
};
} // dom namespace
} // mozilla namespace
} // namespace dom
} // namespace mozilla
#endif // mozilla_dom_BroadcastChannelChild_h

@ -116,5 +116,5 @@ BroadcastChannelParent::CheckAndDeliver(const ClonedMessageData& aData,
}
}
} // dom namespace