Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm
MozReview-Commit-ID: 1Nc3XDu0wGl
This commit is contained in:
@@ -20,12 +20,12 @@
|
||||
/* eslint-env mozilla/frame-script */
|
||||
|
||||
const { classes: Cc, interfaces: Ci, results: Cr, utils: Cu } = Components;
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
let PaymentFrameScript = {
|
||||
init() {
|
||||
XPCOMUtils.defineLazyGetter(this, "log", () => {
|
||||
let {ConsoleAPI} = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||
let {ConsoleAPI} = ChromeUtils.import("resource://gre/modules/Console.jsm", {});
|
||||
return new ConsoleAPI({
|
||||
maxLogLevelPref: "dom.payments.loglevel",
|
||||
prefix: "paymentDialogFrameScript",
|
||||
|
||||
Reference in New Issue
Block a user