Bug 1524688: Part 58 - Convert SlowScriptDebug to static registration. r=mconley

Differential Revision: https://phabricator.services.mozilla.com/D18468

--HG--
rename : dom/base/SlowScriptDebug.js => dom/base/SlowScriptDebug.jsm
extra : source : 92877cf4fe33df2706fd03ad472f304da03482e5
This commit is contained in:
Kris Maglione 2019-01-30 11:42:53 -08:00
Родитель eab0e66456
Коммит eefb3e95fa
5 изменённых файлов: 8 добавлений и 15 удалений

Просмотреть файл

@ -207,9 +207,6 @@
@RESPATH@/components/Push.manifest
@RESPATH@/components/SlowScriptDebug.manifest
@RESPATH@/components/SlowScriptDebug.js
; Remote control protocol
#ifdef ENABLE_MARIONETTE
@RESPATH@/chrome/marionette@JAREXT@

Просмотреть файл

@ -4,14 +4,10 @@
"use strict";
const {XPCOMUtils} = ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
function SlowScriptDebug() { }
SlowScriptDebug.prototype = {
classID: Components.ID("{e740ddb4-18b4-4aac-8ae1-9b0f4320769d}"),
classDescription: "Slow script debug handler",
contractID: "@mozilla.org/dom/slow-script-debug;1",
QueryInterface: ChromeUtils.generateQI([Ci.nsISlowScriptDebug]),
get activationHandler() { return this._activationHandler; },
@ -21,4 +17,4 @@ SlowScriptDebug.prototype = {
set remoteActivationHandler(cb) { return this._remoteActivationHandler = cb; },
};
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([SlowScriptDebug]);
var EXPORTED_SYMBOLS = ["SlowScriptDebug"];

Просмотреть файл

@ -1,2 +0,0 @@
component {e740ddb4-18b4-4aac-8ae1-9b0f4320769d} SlowScriptDebug.js
contract @mozilla.org/dom/slow-script-debug;1 {e740ddb4-18b4-4aac-8ae1-9b0f4320769d}

Просмотреть файл

@ -22,4 +22,10 @@ Classes = [
'jsm': 'resource://gre/modules/ProcessSelector.jsm',
'constructor': 'MinTabSelector',
},
{
'cid': '{e740ddb4-18b4-4aac-8ae1-9b0f4320769d}',
'contract_ids': ['@mozilla.org/dom/slow-script-debug;1'],
'jsm': 'resource://gre/modules/SlowScriptDebug.jsm',
'constructor': 'SlowScriptDebug',
},
]

Просмотреть файл

@ -452,16 +452,12 @@ if CONFIG['INTEL_ARCHITECTURE']:
SOURCES += ['nsTextFragmentSSE2.cpp']
SOURCES['nsTextFragmentSSE2.cpp'].flags += CONFIG['SSE2_FLAGS']
EXTRA_COMPONENTS += [
'SlowScriptDebug.js',
'SlowScriptDebug.manifest',
]
EXTRA_JS_MODULES += [
'ContentAreaDropListener.jsm',
'DOMRequestHelper.jsm',
'IndexedDBHelper.jsm',
'ProcessSelector.jsm',
'SlowScriptDebug.jsm',
]
XPCOM_MANIFESTS += [