Commit a6aabba5 authored by Tooru Fujisawa's avatar Tooru Fujisawa
Browse files

Bug 1780543 - Part 1: Use eslint-env mozilla/frame-script consistently in...

Bug 1780543 - Part 1: Use eslint-env mozilla/frame-script consistently in frame script. r=Standard8,webdriver-reviewers,geckoview-reviewers,jdescottes,calu

Differential Revision: https://phabricator.services.mozilla.com/D152426
parent 60be63b7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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
+2 −0
Original line number Diff line number Diff line
@@ -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(
+2 −1
Original line number Diff line number Diff line
@@ -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);
+3 −2
Original line number Diff line number Diff line
/* 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(
@@ -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;