Skip to content

Commit

Permalink
Bug 1780543 - Part 1: Use eslint-env mozilla/frame-script consistentl…
Browse files Browse the repository at this point in the history
…y in frame script. r=Standard8,webdriver-reviewers,geckoview-reviewers,jdescottes,calu

Differential Revision: https://phabricator.services.mozilla.com/D152426
  • Loading branch information
arai-a committed Jul 26, 2022
1 parent 60be63b commit a6aabba
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions devtools/server/startup/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
* 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/. */

/* eslint-env mozilla/frame-script */

"use strict";

/* global content, docShell, addEventListener, addMessageListener, removeMessageListener,
sendAsyncMessage */
/* global addEventListener */

/*
* Frame script that listens for requests to start a `DevToolsServer` for a frame in a
Expand Down
2 changes: 2 additions & 0 deletions mobile/android/chrome/geckoview/SessionStateAggregator.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* 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/. */

/* eslint-env mozilla/frame-script */

"use strict";

const { GeckoViewChildModule } = ChromeUtils.import(
Expand Down
3 changes: 2 additions & 1 deletion remote/cdp/sessions/frame-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
* 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/. */

/* eslint-env mozilla/frame-script */

"use strict";

const { ContentProcessSession } = ChromeUtils.import(
"chrome://remote/content/cdp/sessions/ContentProcessSession.jsm"
);

/* global content, docShell */
new ContentProcessSession(this, docShell.browsingContext, content, docShell);
5 changes: 3 additions & 2 deletions toolkit/components/extensions/ext-browser-content.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* 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/. */

/* eslint-env mozilla/frame-script */

"use strict";

var { XPCOMUtils } = ChromeUtils.importESModule(
Expand All @@ -13,8 +16,6 @@ XPCOMUtils.defineLazyModuleGetters(this, {
setTimeout: "resource://gre/modules/Timer.jsm",
});

/* eslint-env mozilla/frame-script */

// Minimum time between two resizes.
const RESIZE_TIMEOUT = 100;

Expand Down

0 comments on commit a6aabba

Please sign in to comment.