summaryrefslogtreecommitdiffstats
path: root/toolkit/components/webextensions/test/mochitest/file_ext_test_api_injection.js
blob: 06dfae65ecfe4dcadbc0aef90889c7bc780362bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
"use strict";

var {interfaces: Ci} = Components;

Components.utils.import("resource://gre/modules/Services.jsm");

Services.console.registerListener(function listener(message) {
  if (/WebExt Privilege Escalation/.test(message.message)) {
    Services.console.unregisterListener(listener);
    sendAsyncMessage("console-message", {message: message.message});
  }
});