зеркало из https://github.com/mozilla/gecko-dev.git
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 : rebase_source : 25d86a38d8883325d64cde92c961a474fe2acae2
This commit is contained in:
Родитель
afe736f06a
Коммит
4d9897ca16
|
@ -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 += [
|
||||
|
|
Загрузка…
Ссылка в новой задаче