mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
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:
parent
9c63e4079d
commit
35c6578473
@ -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",
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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 {
|
||||
|
@ -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);
|
||||
|
@ -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",
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -187,6 +187,7 @@ license:
|
||||
- '**/*.ftl'
|
||||
- '**/*.h'
|
||||
- '**/*.html'
|
||||
- '**/*.idl'
|
||||
- '**/*.js'
|
||||
- '**/*.jsm'
|
||||
- '**/*.jsx'
|
||||
@ -197,6 +198,7 @@ license:
|
||||
- '**/*.py'
|
||||
- '**/*.rs'
|
||||
- '**/*.svg'
|
||||
- '**/*.webidl'
|
||||
- '**/*.xhtml'
|
||||
- '**/*.xml'
|
||||
- '**/*.xul'
|
||||
|
@ -77,6 +77,7 @@ license:
|
||||
- .ftl
|
||||
- .h
|
||||
- .html
|
||||
- .idl
|
||||
- .java
|
||||
- .js
|
||||
- .jsm
|
||||
@ -88,6 +89,7 @@ license:
|
||||
- .py
|
||||
- .rs
|
||||
- .svg
|
||||
- .webidl
|
||||
- .xhtml
|
||||
- .xml
|
||||
- .xul
|
||||
|
@ -133,6 +133,8 @@ def fix_me(log, filename):
|
||||
".jsm",
|
||||
".jsx",
|
||||
".css",
|
||||
".idl",
|
||||
".webidl",
|
||||
]:
|
||||
for i, l in enumerate(license_template):
|
||||
start = " "
|
||||
|
Loading…
Reference in New Issue
Block a user