Bug 1562642 - Part 2 - Add missing MPL2 headers r=Gijs
authorSylvestre Ledru <sledru@mozilla.com>
Mon, 08 Jul 2019 09:27:47 +0000
changeset 481598 50d73bfcb2a111be4f816945d8e9eebb6d40c5e4
parent 481597 c022b93b0777887604e40cddb51413ef9ec2048c
child 481599 324c7b90a7ccab5c1979021adf011b89ee8fdf04
push id36261
push usernbeleuzu@mozilla.com
push dateTue, 09 Jul 2019 03:44:14 +0000
treeherdermozilla-central@b782ed36b2e8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1562642
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1562642 - Part 2 - Add missing MPL2 headers r=Gijs Differential Revision: https://phabricator.services.mozilla.com/D37146
build/clang-plugin/ThirdPartyPaths.h
build/clang-plugin/VariableUsageHelpers.cpp
extensions/pref/autoconfig/src/nsJSConfigTriggers.h
gfx/2d/ShadersD2D.h
gfx/vr/service/VRSession.cpp
gfx/webrender_bindings/RendererScreenshotGrabber.cpp
intl/l10n/Localization.cpp
intl/l10n/Localization.h
ipc/glue/IPDLParamTraits.h
js/src/devtools/rootAnalysis/t/exceptions/source.cpp
js/src/devtools/rootAnalysis/t/hazards/source.cpp
js/src/devtools/rootAnalysis/t/sixgill-tree/source.cpp
js/src/devtools/rootAnalysis/t/suppression/source.cpp
js/src/devtools/rootAnalysis/t/virtual/source.cpp
media/gmp-clearkey/0.1/ClearKeyCDM.cpp
media/gmp-clearkey/0.1/ClearKeyCDM.h
media/webrtc/signaling/src/media-conduit/RtpSourceObserver.cpp
media/webrtc/signaling/src/media-conduit/RtpSourceObserver.h
media/webrtc/webrtc_version.h
mozglue/linker/XZStream.cpp
mozglue/misc/StackWalk_windows.h
toolkit/components/alerts/AlertNotification.cpp
toolkit/components/backgroundhangmonitor/HangDetails.cpp
toolkit/components/url-classifier/nsUrlClassifierInfo.cpp
toolkit/components/url-classifier/nsUrlClassifierInfo.h
toolkit/crashreporter/rust/rust_demangle.h
tools/coverity/model.cpp
uriloader/exthandler/ContentHandlerService.cpp
uriloader/exthandler/ContentHandlerService.h
uriloader/exthandler/HandlerServiceChild.h
uriloader/exthandler/HandlerServiceParent.cpp
uriloader/exthandler/HandlerServiceParent.h
widget/android/AndroidBridgeUtilities.h
widget/android/jni/Accessors.h
widget/android/jni/Natives.h
widget/android/jni/Refs.h
widget/android/jni/Types.h
widget/android/jni/Utils.cpp
widget/android/jni/Utils.h
widget/gtk/compat-gtk3/gdk/gdkversionmacros.h
widget/gtk/mozgtk/mozgtk.c
xpcom/base/GkRustUtils.h
--- a/build/clang-plugin/ThirdPartyPaths.h
+++ b/build/clang-plugin/ThirdPartyPaths.h
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #ifndef ThirdPartyPaths_h__
 #define ThirdPartyPaths_h__
 
 #include <stdint.h>
 
 // These two values are defined in ThirdPartyPaths.cpp, which is a file
 // generated by ThirdPartyPaths.py.
 
--- a/build/clang-plugin/VariableUsageHelpers.cpp
+++ b/build/clang-plugin/VariableUsageHelpers.cpp
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #include "VariableUsageHelpers.h"
 #include "Utils.h"
 
 std::vector<const Stmt *> getUsageAsRvalue(const ValueDecl *ValueDeclaration,
                                            const FunctionDecl *FuncDecl) {
   std::vector<const Stmt *> UsageStatements;
 
   // We check the function declaration has a body.
--- a/extensions/pref/autoconfig/src/nsJSConfigTriggers.h
+++ b/extensions/pref/autoconfig/src/nsJSConfigTriggers.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #ifndef nsConfigTriggers_h
 #define nsConfigTriggers_h
 
 #include "nscore.h"
 #include "js/TypeDecls.h"
 
 nsresult EvaluateAdminConfigScript(const char* js_buffer, size_t length,
                                    const char* filename, bool bGlobalContext,
--- a/gfx/2d/ShadersD2D.h
+++ b/gfx/2d/ShadersD2D.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #if 0
 //
 // FX Version: fx_4_0
 // Child effect (requires effect pool): false
 //
 // 4 local buffer(s)
 //
 cbuffer $Globals
--- a/gfx/vr/service/VRSession.cpp
+++ b/gfx/vr/service/VRSession.cpp
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #include "VRSession.h"
 
 #include "moz_external_vr.h"
 
 #if defined(XP_WIN)
 #  include <d3d11.h>
 #endif  // defined(XP_WIN)
 
--- a/gfx/webrender_bindings/RendererScreenshotGrabber.cpp
+++ b/gfx/webrender_bindings/RendererScreenshotGrabber.cpp
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #include "RendererScreenshotGrabber.h"
 
 using mozilla::layers::ProfilerScreenshots;
 
 namespace mozilla {
 namespace wr {
 
 RendererScreenshotGrabber::RendererScreenshotGrabber() {
--- a/intl/l10n/Localization.cpp
+++ b/intl/l10n/Localization.cpp
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #include "Localization.h"
 #include "nsImportModule.h"
 #include "nsContentUtils.h"
 
 #define INTL_APP_LOCALES_CHANGED "intl:app-locales-changed"
 #define L10N_PSEUDO_PREF "intl.l10n.pseudo"
 #define INTL_UI_DIRECTION_PREF "intl.uidirection"
 
@@ -331,9 +337,9 @@ void Localization::ConvertL10nArgsToJSVa
     aRv.Throw(NS_ERROR_UNEXPECTED);
     return;
   }
   JS::Rooted<JSObject*> jsObj(aCx, &jsVal.toObject());
   if (!JS_GetProperty(aCx, jsObj, "args", aRetVal)) {
     aRv.Throw(NS_ERROR_UNEXPECTED);
     return;
   }
-}
\ No newline at end of file
+}
--- a/intl/l10n/Localization.h
+++ b/intl/l10n/Localization.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+~
 #ifndef mozilla_intl_l10n_Localization_h
 #define mozilla_intl_l10n_Localization_h
 
 #include "nsWeakReference.h"
 #include "nsIObserver.h"
 #include "mozILocalization.h"
 #include "mozilla/ErrorResult.h"
 #include "mozilla/dom/Promise.h"
@@ -75,9 +81,9 @@ class Localization : public nsIObserver,
   nsCOMPtr<nsIGlobalObject> mGlobal;
   nsCOMPtr<mozILocalization> mLocalization;
   bool mIsSync;
 };
 
 }  // namespace intl
 }  // namespace mozilla
 
-#endif
\ No newline at end of file
+#endif
--- a/ipc/glue/IPDLParamTraits.h
+++ b/ipc/glue/IPDLParamTraits.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #ifndef mozilla_ipc_IPDLParamTraits_h
 #define mozilla_ipc_IPDLParamTraits_h
 
 #include "chrome/common/ipc_message_utils.h"
 #include "mozilla/UniquePtr.h"
 
 namespace mozilla {
 namespace ipc {
--- a/js/src/devtools/rootAnalysis/t/exceptions/source.cpp
+++ b/js/src/devtools/rootAnalysis/t/exceptions/source.cpp
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #define ANNOTATE(property) __attribute__((annotate(property)))
 
 struct Cell {
   int f;
 } ANNOTATE("GC Thing");
 
 extern void GC() ANNOTATE("GC Call");
 
--- a/js/src/devtools/rootAnalysis/t/hazards/source.cpp
+++ b/js/src/devtools/rootAnalysis/t/hazards/source.cpp
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #include <utility>
 
 #define ANNOTATE(property) __attribute__((annotate(property)))
 
 struct Cell {
   int f;
 } ANNOTATE("GC Thing");
 
--- a/js/src/devtools/rootAnalysis/t/sixgill-tree/source.cpp
+++ b/js/src/devtools/rootAnalysis/t/sixgill-tree/source.cpp
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #define ANNOTATE(property) __attribute__((annotate(property)))
 
 namespace js {
 namespace gc {
 struct Cell {
   int f;
 } ANNOTATE("GC Thing");
 }  // namespace gc
--- a/js/src/devtools/rootAnalysis/t/suppression/source.cpp
+++ b/js/src/devtools/rootAnalysis/t/suppression/source.cpp
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #define ANNOTATE(property) __attribute__((annotate(property)))
 
 struct Cell {
   int f;
 } ANNOTATE("GC Thing");
 
 class AutoSuppressGC_Base {
  public:
--- a/js/src/devtools/rootAnalysis/t/virtual/source.cpp
+++ b/js/src/devtools/rootAnalysis/t/virtual/source.cpp
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #define ANNOTATE(property) __attribute__((annotate(property)))
 
 extern void GC() ANNOTATE("GC Call");
 
 void GC() {
   // If the implementation is too trivial, the function body won't be emitted at
   // all.
   asm("");
--- a/media/gmp-clearkey/0.1/ClearKeyCDM.cpp
+++ b/media/gmp-clearkey/0.1/ClearKeyCDM.cpp
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #include "ClearKeyCDM.h"
 
 #include "ClearKeyUtils.h"
 
 using namespace cdm;
 
 ClearKeyCDM::ClearKeyCDM(Host_10* aHost) {
   mHost = aHost;
--- a/media/gmp-clearkey/0.1/ClearKeyCDM.h
+++ b/media/gmp-clearkey/0.1/ClearKeyCDM.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #ifndef ClearKeyCDM_h_
 #define ClearKeyCDM_h_
 
 #include "ClearKeySessionManager.h"
 
 // This include is required in order for content_decryption_module to work
 // on Unix systems.
 #include "stddef.h"
--- a/media/webrtc/signaling/src/media-conduit/RtpSourceObserver.cpp
+++ b/media/webrtc/signaling/src/media-conduit/RtpSourceObserver.cpp
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #include "RtpSourceObserver.h"
 #include "nsThreadUtils.h"
 #include "webrtc/system_wrappers/include/clock.h"
 #include "webrtc/modules/include/module_common_types.h"
 
 namespace mozilla {
 
 using EntryType = dom::RTCRtpSourceEntryType;
--- a/media/webrtc/signaling/src/media-conduit/RtpSourceObserver.h
+++ b/media/webrtc/signaling/src/media-conduit/RtpSourceObserver.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #ifndef AUDIOLEVELOBSERVER_H
 #define AUDIOLEVELOBSERVER_H
 
 #include <vector>
 #include <map>
 
 #include "mozilla/Mutex.h"
 #include "nsISupportsImpl.h"
@@ -165,9 +171,9 @@ class RtpSourceObserver : public webrtc:
   friend void InsertAudioLevelForContributingSource(RtpSourceObserver& observer,
                                                     uint32_t aCsrcSource,
                                                     int64_t aTimestamp,
                                                     bool aHasAudioLevel,
                                                     uint8_t aAudioLevel);
 };
 }  // namespace mozilla
 #undef NG
-#endif  // AUDIOLEVELOBSERVER_H
\ No newline at end of file
+#endif  // AUDIOLEVELOBSERVER_H
--- a/media/webrtc/webrtc_version.h
+++ b/media/webrtc/webrtc_version.h
@@ -1,2 +1,8 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #define WEBRTC_SVNVERSION 7864
 #define WEBRTC_PULL_DATE "Wed Dec 10 12:23:33 EST 2014"
--- a/mozglue/linker/XZStream.cpp
+++ b/mozglue/linker/XZStream.cpp
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #include "XZStream.h"
 
 #include <algorithm>
 #include <cstring>
 #include "mozilla/Assertions.h"
 #include "mozilla/CheckedInt.h"
 #include "Logging.h"
 
--- a/mozglue/misc/StackWalk_windows.h
+++ b/mozglue/misc/StackWalk_windows.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #ifndef mozilla_StackWalk_windows_h
 #define mozilla_StackWalk_windows_h
 
 #include "mozilla/Types.h"
 
 #if defined(_M_AMD64) || defined(_M_ARM64)
 /**
  * Allow stack walkers to work around the egregious win64 dynamic lookup table
--- a/toolkit/components/alerts/AlertNotification.cpp
+++ b/toolkit/components/alerts/AlertNotification.cpp
@@ -1,10 +1,12 @@
-/* This Source Code Form is subject to the terms of the Mozilla Pub
- * License, v. 2.0. If a copy of the MPL was not distributed with t
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "mozilla/AlertNotification.h"
 
 #include "imgIContainer.h"
 #include "imgINotificationObserver.h"
 #include "imgIRequest.h"
 #include "imgLoader.h"
--- a/toolkit/components/backgroundhangmonitor/HangDetails.cpp
+++ b/toolkit/components/backgroundhangmonitor/HangDetails.cpp
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #include "HangDetails.h"
 #include "nsIHangDetails.h"
 #include "nsPrintfCString.h"
 #include "mozilla/gfx/GPUParent.h"
 #include "mozilla/dom/ContentChild.h"
 #include "mozilla/dom/ContentParent.h"  // For RemoteTypePrefix
 #include "mozilla/Unused.h"
 #include "mozilla/GfxMessageUtils.h"  // For ParamTraits<GeckoProcessType>
--- a/toolkit/components/url-classifier/nsUrlClassifierInfo.cpp
+++ b/toolkit/components/url-classifier/nsUrlClassifierInfo.cpp
@@ -1,9 +1,11 @@
-/* This Source Code Form is subject to the terms of the Mozilla
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsComponentManagerUtils.h"
 #include "nsIMutableArray.h"
 #include "nsUrlClassifierInfo.h"
 
 NS_IMPL_ISUPPORTS(nsUrlClassifierPositiveCacheEntry,
--- a/toolkit/components/url-classifier/nsUrlClassifierInfo.h
+++ b/toolkit/components/url-classifier/nsUrlClassifierInfo.h
@@ -1,9 +1,11 @@
-/* This Source Code Form is subject to the terms of the Mozilla
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef nsUrlClassifierInfo_h_
 #define nsUrlClassifierInfo_h_
 
 #include "nsIUrlClassifierInfo.h"
 #include "nsComponentManagerUtils.h"
--- a/toolkit/crashreporter/rust/rust_demangle.h
+++ b/toolkit/crashreporter/rust/rust_demangle.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #ifndef __RUST_DEMANGLE_H__
 #define __RUST_DEMANGLE_H__
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 extern char* rust_demangle(const char*);
--- a/tools/coverity/model.cpp
+++ b/tools/coverity/model.cpp
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 /*
 Coverity model file in order to avoid false-positive
 */
 
 #define NULL (void*)0
 
 typedef unsigned char jsbytecode;
 typedef unsigned short uint16_t;
--- a/uriloader/exthandler/ContentHandlerService.cpp
+++ b/uriloader/exthandler/ContentHandlerService.cpp
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #include "ContentHandlerService.h"
 #include "HandlerServiceChild.h"
 #include "ContentChild.h"
 #include "nsIMutableArray.h"
 #include "nsIMIMEInfo.h"
 #include "nsIStringEnumerator.h"
 
 using mozilla::dom::ContentChild;
--- a/uriloader/exthandler/ContentHandlerService.h
+++ b/uriloader/exthandler/ContentHandlerService.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #ifndef ContentHandlerService_h
 #define ContentHandlerService_h
 
 #include "mozilla/dom/PHandlerService.h"
 #include "nsIHandlerService.h"
 #include "nsClassHashtable.h"
 #include "nsIMIMEInfo.h"
 
--- a/uriloader/exthandler/HandlerServiceChild.h
+++ b/uriloader/exthandler/HandlerServiceChild.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #ifndef handler_service_child_h
 #define handler_service_child_h
 
 #include "mozilla/dom/PHandlerServiceChild.h"
 
 namespace mozilla {
 
 class HandlerServiceChild final : public mozilla::dom::PHandlerServiceChild {
--- a/uriloader/exthandler/HandlerServiceParent.cpp
+++ b/uriloader/exthandler/HandlerServiceParent.cpp
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #include "mozilla/ipc/ProtocolUtils.h"
 #include "mozilla/Logging.h"
 #include "HandlerServiceParent.h"
 #include "nsIHandlerService.h"
 #include "nsIMIMEInfo.h"
 #include "ContentHandlerService.h"
 #include "nsStringEnumerator.h"
 #ifdef MOZ_WIDGET_GTK
--- a/uriloader/exthandler/HandlerServiceParent.h
+++ b/uriloader/exthandler/HandlerServiceParent.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #ifndef handler_service_parent_h
 #define handler_service_parent_h
 
 #include "mozilla/dom/PHandlerServiceParent.h"
 #include "nsIMIMEInfo.h"
 
 class nsIHandlerApp;
 
--- a/widget/android/AndroidBridgeUtilities.h
+++ b/widget/android/AndroidBridgeUtilities.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #ifndef ALOG
 #  if defined(DEBUG) || defined(FORCE_ALOG)
 #    define ALOG(args...) __android_log_print(ANDROID_LOG_INFO, "Gecko", ##args)
 #  else
 #    define ALOG(args...) ((void)0)
 #  endif
 #endif
 
--- a/widget/android/jni/Accessors.h
+++ b/widget/android/jni/Accessors.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #ifndef mozilla_jni_Accessors_h__
 #define mozilla_jni_Accessors_h__
 
 #include <jni.h>
 
 #include "mozilla/jni/Refs.h"
 #include "mozilla/jni/Types.h"
 #include "mozilla/jni/Utils.h"
--- a/widget/android/jni/Natives.h
+++ b/widget/android/jni/Natives.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #ifndef mozilla_jni_Natives_h__
 #define mozilla_jni_Natives_h__
 
 #include <jni.h>
 #include <utility>
 
 #include "nsThreadUtils.h"
 
--- a/widget/android/jni/Refs.h
+++ b/widget/android/jni/Refs.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #ifndef mozilla_jni_Refs_h__
 #define mozilla_jni_Refs_h__
 
 #include <jni.h>
 
 #include "mozilla/Move.h"
 #include "mozilla/jni/Utils.h"
 
--- a/widget/android/jni/Types.h
+++ b/widget/android/jni/Types.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #ifndef mozilla_jni_Types_h__
 #define mozilla_jni_Types_h__
 
 #include <jni.h>
 
 #include "mozilla/jni/Refs.h"
 
 namespace mozilla {
--- a/widget/android/jni/Utils.cpp
+++ b/widget/android/jni/Utils.cpp
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #include "Utils.h"
 #include "Types.h"
 
 #include <android/log.h>
 #include <pthread.h>
 
 #include "mozilla/Assertions.h"
 
--- a/widget/android/jni/Utils.h
+++ b/widget/android/jni/Utils.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #ifndef mozilla_jni_Utils_h__
 #define mozilla_jni_Utils_h__
 
 #include <jni.h>
 
 #include "nsIRunnable.h"
 
 #include "mozilla/UniquePtr.h"
--- a/widget/gtk/compat-gtk3/gdk/gdkversionmacros.h
+++ b/widget/gtk/compat-gtk3/gdk/gdkversionmacros.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #ifndef GDKVERSIONMACROS_WRAPPER_H
 #define GDKVERSIONMACROS_WRAPPER_H
 
 /**
  * Suppress all GTK3 deprecated warnings as deprecated functions are often
  * used for GTK2 compatibility.
  *
  * GDK_VERSION_MIN_REQUIRED cannot be used to suppress warnings for functions
--- a/widget/gtk/mozgtk/mozgtk.c
+++ b/widget/gtk/mozgtk/mozgtk.c
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #include "mozilla/Types.h"
 #include "mozilla/Assertions.h"
 
 #define STUB(symbol) \
   MOZ_EXPORT void symbol(void) { MOZ_CRASH(); }
 
 #ifdef COMMON_SYMBOLS
 STUB(gdk_atom_intern)
--- a/xpcom/base/GkRustUtils.h
+++ b/xpcom/base/GkRustUtils.h
@@ -1,8 +1,14 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 #ifndef __mozilla_GkRustUtils_h
 #define __mozilla_GkRustUtils_h
 
 #include "nsString.h"
 
 class GkRustUtils {
  public:
   static void GenerateUUID(nsACString& aResult);