зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1884623 - Update more jsm references in production code and docs in dom/. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D204183
This commit is contained in:
Родитель
9fe8bde13c
Коммит
0453db814c
|
@ -18702,7 +18702,7 @@ nsIPrincipal* Document::EffectiveStoragePrincipal() const {
|
|||
}
|
||||
|
||||
// Calling StorageAllowedForDocument will notify the ContentBlockLog. This
|
||||
// loads TrackingDBService.jsm, which in turn pulls in osfile.jsm, making us
|
||||
// loads TrackingDBService.sys.mjs, making us potentially
|
||||
// fail // browser/base/content/test/performance/browser_startup.js. To avoid
|
||||
// that, we short-circuit the check here by allowing storage access to system
|
||||
// and addon principles, avoiding the test-failure.
|
||||
|
|
|
@ -3583,7 +3583,7 @@ nsresult nsFrameLoader::PopulateOriginContextIdsFromAttributes(
|
|||
mOwnerContent->GetAttr(nsGkAtoms::geckoViewSessionContextId,
|
||||
attributeValue) &&
|
||||
!attributeValue.IsEmpty()) {
|
||||
// XXX: Should we check the format from `GeckoViewNavigation.jsm` here?
|
||||
// XXX: Should we check the format from `GeckoViewNavigation.sys.mjs` here?
|
||||
aAttr.mGeckoViewSessionContextId = attributeValue;
|
||||
}
|
||||
|
||||
|
|
|
@ -5082,7 +5082,7 @@ nsGlobalWindowInner::ShowSlowScriptDialog(JSContext* aCx,
|
|||
}
|
||||
|
||||
// Reached only on non-e10s - once per slow script dialog.
|
||||
// On e10s - we probe once at ProcessHangsMonitor.jsm
|
||||
// On e10s - we probe once at ProcessHangsMonitor.sys.mjs
|
||||
Telemetry::Accumulate(Telemetry::SLOW_SCRIPT_NOTICE_COUNT, 1);
|
||||
|
||||
// Get the nsIPrompt interface from the docshell
|
||||
|
|
|
@ -417,7 +417,7 @@ partial namespace IOUtils {
|
|||
* but it would use u16-based strings, so it would basically be a separate
|
||||
* copy of the bindings.)
|
||||
*
|
||||
* This interface was added for use by `Subprocess.sys.jsm`; other would-be
|
||||
* This interface was added for use by `Subprocess.sys.mjs`; other would-be
|
||||
* callers may want to just use Subprocess instead of calling this directly.
|
||||
*
|
||||
* @param argv The command to run and its arguments.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Implementation of Image Object processing algorithms from:
|
||||
* http://www.w3.org/TR/appmanifest/#image-object-and-its-members
|
||||
*
|
||||
* This is intended to be used in conjunction with ManifestProcessor.jsm
|
||||
* This is intended to be used in conjunction with ManifestProcessor.sys.mjs
|
||||
*
|
||||
* Creates an object to process Image Objects as defined by the
|
||||
* W3C specification. This is used to process things like the
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/*
|
||||
* Manifest.jsm is the top level api for managing installed web applications
|
||||
* Manifest.sys.mjs is the top level api for managing installed web applications
|
||||
* https://www.w3.org/TR/appmanifest/
|
||||
*
|
||||
* It is used to trigger the installation of a web application via .install()
|
||||
|
|
|
@ -410,7 +410,7 @@ mozilla::ipc::IPCResult MediaTransportChild::RecvOnGatheringStateChange(
|
|||
MutexAutoLock lock(mMutex);
|
||||
if (mUser) {
|
||||
mUser->OnGatheringStateChange(transportId,
|
||||
static_cast<dom::RTCIceGathererState>(state));
|
||||
static_cast<dom::RTCIceGathererState>(state));
|
||||
}
|
||||
return ipc::IPCResult::Ok();
|
||||
}
|
||||
|
@ -419,8 +419,8 @@ mozilla::ipc::IPCResult MediaTransportChild::RecvOnConnectionStateChange(
|
|||
const string& transportId, const int& state) {
|
||||
MutexAutoLock lock(mMutex);
|
||||
if (mUser) {
|
||||
mUser->OnConnectionStateChange(transportId,
|
||||
static_cast<dom::RTCIceTransportState>(state));
|
||||
mUser->OnConnectionStateChange(
|
||||
transportId, static_cast<dom::RTCIceTransportState>(state));
|
||||
}
|
||||
return ipc::IPCResult::Ok();
|
||||
}
|
||||
|
|
|
@ -406,9 +406,9 @@ void RTCRtpTransceiver::Unlink() {
|
|||
// TODO: Only called from one place in PeerConnectionImpl, synchronously, when
|
||||
// the JSEP engine has successfully completed an offer/answer exchange. This is
|
||||
// a bit squirrely, since identity validation happens asynchronously in
|
||||
// PeerConnection.jsm. This probably needs to happen once all the "in parallel"
|
||||
// steps have succeeded, but before we queue the task for JS observable state
|
||||
// updates.
|
||||
// PeerConnection.sys.mjs. This probably needs to happen once all the "in
|
||||
// parallel" steps have succeeded, but before we queue the task for JS
|
||||
// observable state updates.
|
||||
nsresult RTCRtpTransceiver::UpdateTransport() {
|
||||
if (!mHasTransport) {
|
||||
return NS_OK;
|
||||
|
@ -444,9 +444,9 @@ void RTCRtpTransceiver::ResetSync() { mSyncGroup = std::string(); }
|
|||
// TODO: Only called from one place in PeerConnectionImpl, synchronously, when
|
||||
// the JSEP engine has successfully completed an offer/answer exchange. This is
|
||||
// a bit squirrely, since identity validation happens asynchronously in
|
||||
// PeerConnection.jsm. This probably needs to happen once all the "in parallel"
|
||||
// steps have succeeded, but before we queue the task for JS observable state
|
||||
// updates.
|
||||
// PeerConnection.sys.mjs. This probably needs to happen once all the "in
|
||||
// parallel" steps have succeeded, but before we queue the task for JS
|
||||
// observable state updates.
|
||||
nsresult RTCRtpTransceiver::SyncWithMatchingVideoConduits(
|
||||
nsTArray<RefPtr<RTCRtpTransceiver>>& transceivers) {
|
||||
if (mStopped) {
|
||||
|
|
|
@ -6,7 +6,7 @@ var gift = require("gift"),
|
|||
fs = require("fs"),
|
||||
argv = require("optimist")
|
||||
.usage(
|
||||
"Update vtt.jsm with the latest from a vtt.js directory.\nUsage:" +
|
||||
"Update vtt.sys.mjs with the latest from a vtt.js directory.\nUsage:" +
|
||||
" $0 -d [dir]"
|
||||
)
|
||||
.demand("d")
|
||||
|
@ -22,7 +22,7 @@ var gift = require("gift"),
|
|||
.options("w", {
|
||||
alias: "write",
|
||||
describe: "Path to file to write to.",
|
||||
default: "./vtt.jsm",
|
||||
default: "./vtt.sys.mjs",
|
||||
}).argv;
|
||||
|
||||
var repo = gift(argv.d);
|
||||
|
|
|
@ -40,7 +40,7 @@ const OBSERVER_TOPIC_SUBSCRIPTION_MODIFIED = "push-subscription-modified";
|
|||
* similar to the Push DOM API, but does not require service workers.
|
||||
*
|
||||
* Push service methods may be called from the parent or content process. The
|
||||
* parent process implementation loads `PushService.jsm` at app startup, and
|
||||
* parent process implementation loads `PushService.sys.mjs` at app startup, and
|
||||
* calls its methods directly. The content implementation forwards calls to
|
||||
* the parent Push service via IPC.
|
||||
*
|
||||
|
@ -102,7 +102,7 @@ PushServiceBase.prototype = {
|
|||
|
||||
/**
|
||||
* The parent process implementation of `nsIPushService`. This version loads
|
||||
* `PushService.jsm` at startup and calls its methods directly. It also
|
||||
* `PushService.sys.mjs` at startup and calls its methods directly. It also
|
||||
* receives and responds to requests from the content process.
|
||||
*/
|
||||
let parentInstance;
|
||||
|
|
|
@ -91,9 +91,9 @@ mozilla::ipc::IPCResult ServiceWorkerManagerParent::RecvPropagateUnregister(
|
|||
// one and only ServiceWorkerManager, but it is necessary for us to have run
|
||||
// the unregister call above because until Bug 1183245 is fixed,
|
||||
// nsIServiceWorkerManager.propagateUnregister() is a de facto API for
|
||||
// clearing ServiceWorker registrations by Sanitizer.jsm via
|
||||
// ServiceWorkerCleanUp.jsm, as well as devtools "unregister" affordance and
|
||||
// the no-longer-relevant about:serviceworkers UI.
|
||||
// clearing ServiceWorker registrations by Sanitizer.sys.mjs via
|
||||
// ServiceWorkerCleanUp.sys.mjs, as well as devtools "unregister" affordance
|
||||
// and the no-longer-relevant about:serviceworkers UI.
|
||||
|
||||
return IPC_OK();
|
||||
}
|
||||
|
|
|
@ -35,9 +35,9 @@ interface Addon {
|
|||
[ChromeOnly, JSImplementation="dummy",
|
||||
Exposed=Window]
|
||||
interface AddonInstall : EventTarget {
|
||||
// One of the STATE_* symbols from AddonManager.jsm
|
||||
// One of the STATE_* symbols from AddonManager.sys.mjs
|
||||
readonly attribute DOMString state;
|
||||
// One of the ERROR_* symbols from AddonManager.jsm, or null
|
||||
// One of the ERROR_* symbols from AddonManager.sys.mjs, or null
|
||||
readonly attribute DOMString? error;
|
||||
// How many bytes have been downloaded
|
||||
readonly attribute long long progress;
|
||||
|
|
Загрузка…
Ссылка в новой задаче