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:
@@ -4,7 +4,7 @@ add_task(async function() {
|
||||
let uri = "data:text/html;charset=utf-8,<html/>"
|
||||
|
||||
let eventPromise = ContentTask.spawn(tab.linkedBrowser, null, function() {
|
||||
Cu.import("resource://gre/modules/PromiseUtils.jsm");
|
||||
ChromeUtils.import("resource://gre/modules/PromiseUtils.jsm");
|
||||
let deferred = PromiseUtils.defer();
|
||||
|
||||
let listener = (event) => {
|
||||
|
||||
Reference in New Issue
Block a user