VulpesOS/gaia/apps/costcontrol/test/marionette/mocks/configure_icc.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

22 lines
491 B
JavaScript
Executable file

/* global Components, Services */
'use strict';
const Cu = Components.utils;
Cu.import('resource://gre/modules/Services.jsm');
Services.obs.addObserver(function(document) {
if (!document || !document.location) {
return;
}
var window = document.defaultView;
Object.defineProperty(window.wrappedJSObject, 'MockIccInfo', {
writable: true,
value: Components.utils.cloneInto({
mcc: '724',
mnc: '6'
}, window)
});
}, 'document-element-inserted', false);