Bug 1802289 - enforce license linter for .idl and .webidl files r=linter-reviewers,sylvestre,saschanaz DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D192134
This commit is contained in:
Logan Rosen 2023-11-06 10:18:23 +00:00
parent 9c63e4079d
commit 35c6578473
10 changed files with 34 additions and 0 deletions

View File

@ -1,3 +1,7 @@
/* 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 https://mozilla.org/MPL/2.0/. */
enum PlacesEventType {
"none",

View File

@ -1,3 +1,7 @@
/* 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 https://mozilla.org/MPL/2.0/. */
#include "nsIThread.idl"
#include "nsIDOMWindow.idl"
#include "nsIPropertyBag2.idl"

View File

@ -1,3 +1,7 @@
/* 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 https://mozilla.org/MPL/2.0/. */
[Func="mozilla::AddonManagerWebAPI::IsAPIEnabled",
Exposed=Window]
interface AddonEvent : Event {

View File

@ -1,3 +1,7 @@
/* 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 https://mozilla.org/MPL/2.0/. */
[Exposed=(Window, Worker), Pref="dom.enable_web_task_scheduling"]
interface TaskPriorityChangeEvent : Event {
constructor (DOMString type , TaskPriorityChangeEventInit priorityChangeEventInitDict);

View File

@ -1,3 +1,7 @@
/* 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 https://mozilla.org/MPL/2.0/. */
enum TaskPriority {
"user-blocking",
"user-visible",

View File

@ -1,3 +1,7 @@
/* 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 https://mozilla.org/MPL/2.0/. */
#include "nsISupports.idl"
interface mozIDOMWindow;

View File

@ -1,3 +1,7 @@
/* 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 https://mozilla.org/MPL/2.0/. */
#include "nsISupports.idl"
interface nsISimpleEnumerator;

View File

@ -187,6 +187,7 @@ license:
- '**/*.ftl'
- '**/*.h'
- '**/*.html'
- '**/*.idl'
- '**/*.js'
- '**/*.jsm'
- '**/*.jsx'
@ -197,6 +198,7 @@ license:
- '**/*.py'
- '**/*.rs'
- '**/*.svg'
- '**/*.webidl'
- '**/*.xhtml'
- '**/*.xml'
- '**/*.xul'

View File

@ -77,6 +77,7 @@ license:
- .ftl
- .h
- .html
- .idl
- .java
- .js
- .jsm
@ -88,6 +89,7 @@ license:
- .py
- .rs
- .svg
- .webidl
- .xhtml
- .xml
- .xul

View File

@ -133,6 +133,8 @@ def fix_me(log, filename):
".jsm",
".jsx",
".css",
".idl",
".webidl",
]:
for i, l in enumerate(license_template):
start = " "