mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Merge mozilla-central and b2g-inbound
This commit is contained in:
commit
70fa2e3454
@ -738,7 +738,8 @@ let DoCommandHelper = {
|
||||
|
||||
handleEvent: function docommand_handleEvent(cmd) {
|
||||
if (this._event) {
|
||||
shell.sendEvent(this._event.target, 'mozdocommand', { cmd: cmd });
|
||||
Services.obs.notifyObservers({ wrappedJSObject: this._event.target },
|
||||
'copypaste-docommand', cmd);
|
||||
this._event = null;
|
||||
}
|
||||
}
|
||||
|
@ -15,7 +15,7 @@
|
||||
<project name="platform_build" path="build" remote="b2g" revision="3a2947df41a480de1457a6dcdbf46ad0af70d8e0">
|
||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||
</project>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="37b8a812c642ca616bf9457cb9b71e45261cdfa8"/>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="4baea432fe0486b56823f2e9cb5272ffb46360d2"/>
|
||||
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="b81855b6b67f285d6f27a4f8c1cfe2e0387ea57c"/>
|
||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||
|
@ -19,7 +19,7 @@
|
||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||
</project>
|
||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="37b8a812c642ca616bf9457cb9b71e45261cdfa8"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="4baea432fe0486b56823f2e9cb5272ffb46360d2"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="b81855b6b67f285d6f27a4f8c1cfe2e0387ea57c"/>
|
||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||
<project name="platform_hardware_ril" path="hardware/ril" remote="b2g" revision="cd88d860656c31c7da7bb310d6a160d0011b0961"/>
|
||||
|
@ -17,7 +17,7 @@
|
||||
</project>
|
||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="37b8a812c642ca616bf9457cb9b71e45261cdfa8"/>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="4baea432fe0486b56823f2e9cb5272ffb46360d2"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="b81855b6b67f285d6f27a4f8c1cfe2e0387ea57c"/>
|
||||
<project name="moztt" path="external/moztt" remote="b2g" revision="562d357b72279a9e35d4af5aeecc8e1ffa2f44f1"/>
|
||||
<project name="apitrace" path="external/apitrace" remote="apitrace" revision="f3e998242fb9a857cf50f5bf3a02304a530ea617"/>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<project name="platform_build" path="build" remote="b2g" revision="3a2947df41a480de1457a6dcdbf46ad0af70d8e0">
|
||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||
</project>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="37b8a812c642ca616bf9457cb9b71e45261cdfa8"/>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="4baea432fe0486b56823f2e9cb5272ffb46360d2"/>
|
||||
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="b81855b6b67f285d6f27a4f8c1cfe2e0387ea57c"/>
|
||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||
|
@ -19,7 +19,7 @@
|
||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||
</project>
|
||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="37b8a812c642ca616bf9457cb9b71e45261cdfa8"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="4baea432fe0486b56823f2e9cb5272ffb46360d2"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="b81855b6b67f285d6f27a4f8c1cfe2e0387ea57c"/>
|
||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||
<project name="platform_hardware_ril" path="hardware/ril" remote="b2g" revision="cd88d860656c31c7da7bb310d6a160d0011b0961"/>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<project name="platform_build" path="build" remote="b2g" revision="3a2947df41a480de1457a6dcdbf46ad0af70d8e0">
|
||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||
</project>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="37b8a812c642ca616bf9457cb9b71e45261cdfa8"/>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="4baea432fe0486b56823f2e9cb5272ffb46360d2"/>
|
||||
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="b81855b6b67f285d6f27a4f8c1cfe2e0387ea57c"/>
|
||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||
|
@ -17,7 +17,7 @@
|
||||
</project>
|
||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="37b8a812c642ca616bf9457cb9b71e45261cdfa8"/>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="4baea432fe0486b56823f2e9cb5272ffb46360d2"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="b81855b6b67f285d6f27a4f8c1cfe2e0387ea57c"/>
|
||||
<project name="moztt" path="external/moztt" remote="b2g" revision="562d357b72279a9e35d4af5aeecc8e1ffa2f44f1"/>
|
||||
<project name="apitrace" path="external/apitrace" remote="apitrace" revision="f3e998242fb9a857cf50f5bf3a02304a530ea617"/>
|
||||
|
@ -4,6 +4,6 @@
|
||||
"remote": "",
|
||||
"branch": ""
|
||||
},
|
||||
"revision": "6890cdf5807b0c9a4341b97ee39fd692dc95fd0c",
|
||||
"revision": "9ec69eadd70e09ea7afff13e88c1b33d631377bd",
|
||||
"repo_path": "/integration/gaia-central"
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||
</project>
|
||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="37b8a812c642ca616bf9457cb9b71e45261cdfa8"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="4baea432fe0486b56823f2e9cb5272ffb46360d2"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="b81855b6b67f285d6f27a4f8c1cfe2e0387ea57c"/>
|
||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||
</project>
|
||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="37b8a812c642ca616bf9457cb9b71e45261cdfa8"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="4baea432fe0486b56823f2e9cb5272ffb46360d2"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="b81855b6b67f285d6f27a4f8c1cfe2e0387ea57c"/>
|
||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||
|
@ -17,7 +17,7 @@
|
||||
</project>
|
||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="37b8a812c642ca616bf9457cb9b71e45261cdfa8"/>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="4baea432fe0486b56823f2e9cb5272ffb46360d2"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="b81855b6b67f285d6f27a4f8c1cfe2e0387ea57c"/>
|
||||
<project name="moztt" path="external/moztt" remote="b2g" revision="562d357b72279a9e35d4af5aeecc8e1ffa2f44f1"/>
|
||||
<project name="apitrace" path="external/apitrace" remote="apitrace" revision="f3e998242fb9a857cf50f5bf3a02304a530ea617"/>
|
||||
|
@ -17,7 +17,7 @@
|
||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||
</project>
|
||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="37b8a812c642ca616bf9457cb9b71e45261cdfa8"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="4baea432fe0486b56823f2e9cb5272ffb46360d2"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="b81855b6b67f285d6f27a4f8c1cfe2e0387ea57c"/>
|
||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||
|
@ -85,6 +85,7 @@ function BrowserElementParent(frameLoader, hasRemoteFrame, isPendingFrame) {
|
||||
|
||||
Services.obs.addObserver(this, 'ask-children-to-exit-fullscreen', /* ownsWeak = */ true);
|
||||
Services.obs.addObserver(this, 'oop-frameloader-crashed', /* ownsWeak = */ true);
|
||||
Services.obs.addObserver(this, 'copypaste-docommand', /* ownsWeak = */ true);
|
||||
|
||||
let defineMethod = function(name, fn) {
|
||||
XPCNativeWrapper.unwrap(self._frameElement)[name] = function() {
|
||||
@ -169,14 +170,6 @@ function BrowserElementParent(frameLoader, hasRemoteFrame, isPendingFrame) {
|
||||
/* wantsUntrusted = */ false);
|
||||
}
|
||||
|
||||
this._doCommandHandlerBinder = this._doCommandHandler.bind(this);
|
||||
this._frameElement.addEventListener('mozdocommand',
|
||||
this._doCommandHandlerBinder,
|
||||
/* useCapture = */ false,
|
||||
/* wantsUntrusted = */ false);
|
||||
|
||||
Services.obs.addObserver(this, 'ipc:browser-destroyed', /* ownsWeak = */ true);
|
||||
|
||||
this._window._browserElementParents.set(this, null);
|
||||
|
||||
// Insert ourself into the prompt service.
|
||||
@ -498,11 +491,6 @@ BrowserElementParent.prototype = {
|
||||
this._frameElement.dispatchEvent(evt);
|
||||
},
|
||||
|
||||
_doCommandHandler: function(e) {
|
||||
e.stopPropagation();
|
||||
this._sendAsyncMsg('do-command', { command: e.detail.cmd });
|
||||
},
|
||||
|
||||
_createEvent: function(evtName, detail, cancelable) {
|
||||
// This will have to change if we ever want to send a CustomEvent with null
|
||||
// detail. For now, it's OK.
|
||||
@ -926,11 +914,9 @@ BrowserElementParent.prototype = {
|
||||
}
|
||||
Services.obs.removeObserver(this, 'remote-browser-frame-shown');
|
||||
}
|
||||
case 'ipc:browser-destroyed':
|
||||
if (this._isAlive() && subject == this._frameLoader) {
|
||||
Services.obs.removeObserver(this, 'ipc:browser-destroyed');
|
||||
this._frameElement.removeEventListener('mozdocommand',
|
||||
this._doCommandHandlerBinder)
|
||||
case 'copypaste-docommand':
|
||||
if (this._isAlive() && this._frameElement.isEqualNode(subject.wrappedJSObject)) {
|
||||
this._sendAsyncMsg('do-command', { command: data });
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
@ -8,6 +8,7 @@ SimpleTest.waitForExplicitFinish();
|
||||
browserElementTestHelpers.setEnabledPref(true);
|
||||
browserElementTestHelpers.setSelectionChangeEnabledPref(true);
|
||||
browserElementTestHelpers.addPermission();
|
||||
const { Services } = SpecialPowers.Cu.import('resource://gre/modules/Services.jsm');
|
||||
var gTextarea = null;
|
||||
var mm;
|
||||
var iframe;
|
||||
@ -60,10 +61,8 @@ function runTest() {
|
||||
}
|
||||
|
||||
function doCommand(cmd) {
|
||||
let doc = iframe.ownerDocument;
|
||||
let event = doc.createEvent('CustomEvent');
|
||||
event.initCustomEvent('mozdocommand', true, true, { cmd: cmd });
|
||||
SpecialPowers.wrap(iframe).dispatchEvent(event);
|
||||
Services.obs.notifyObservers({wrappedJSObject: iframe},
|
||||
'copypaste-docommand', cmd);
|
||||
}
|
||||
|
||||
function dispatchTest(e) {
|
||||
|
@ -741,7 +741,7 @@ NetworkManager.prototype = {
|
||||
#endif
|
||||
},
|
||||
|
||||
_requestCount: 0,
|
||||
_usbTetheringRequestCount: 0,
|
||||
|
||||
handle: function(aName, aResult) {
|
||||
switch(aName) {
|
||||
@ -776,12 +776,17 @@ NetworkManager.prototype = {
|
||||
|
||||
if (this._oldUsbTetheringEnabledState === this.tetheringSettings[SETTINGS_USB_ENABLED]) {
|
||||
debug("No changes for SETTINGS_USB_ENABLED flag. Nothing to do.");
|
||||
this.handlePendingWifiTetheringRequest();
|
||||
break;
|
||||
}
|
||||
|
||||
this._requestCount++;
|
||||
if (this._requestCount === 1) {
|
||||
this.handleUSBTetheringToggle(aResult);
|
||||
this._usbTetheringRequestCount++;
|
||||
if (this._usbTetheringRequestCount === 1) {
|
||||
if (this._wifiTetheringRequestOngoing) {
|
||||
debug('USB tethering request is blocked by ongoing wifi tethering request.');
|
||||
} else {
|
||||
this.handleLastUsbTetheringRequest();
|
||||
}
|
||||
}
|
||||
break;
|
||||
};
|
||||
@ -819,24 +824,31 @@ NetworkManager.prototype = {
|
||||
// External and internal interface name.
|
||||
_tetheringInterface: null,
|
||||
|
||||
handleLastRequest: function() {
|
||||
if (this._requestCount === 1) {
|
||||
this._requestCount = 0;
|
||||
handleLastUsbTetheringRequest: function() {
|
||||
debug('handleLastUsbTetheringRequest... ' + this._usbTetheringRequestCount);
|
||||
|
||||
if (this._usbTetheringRequestCount === 0) {
|
||||
if (this.wantConnectionEvent) {
|
||||
if (this.tetheringSettings[SETTINGS_USB_ENABLED]) {
|
||||
this.wantConnectionEvent.call(this);
|
||||
}
|
||||
this.wantConnectionEvent = null;
|
||||
}
|
||||
this.handlePendingWifiTetheringRequest();
|
||||
return;
|
||||
}
|
||||
|
||||
if (this._requestCount > 1) {
|
||||
// Set this._requestCount to 1 to prevent from subsequent usb tethering toggles
|
||||
// triggering |handleUSBTetheringToggle|.
|
||||
this._requestCount = 1;
|
||||
this.handleUSBTetheringToggle(this.tetheringSettings[SETTINGS_USB_ENABLED]);
|
||||
this.wantConnectionEvent = null;
|
||||
// Cancel the accumlated count to 1 since we only care about the
|
||||
// last state.
|
||||
this._usbTetheringRequestCount = 1;
|
||||
this.handleUSBTetheringToggle(this.tetheringSettings[SETTINGS_USB_ENABLED]);
|
||||
this.wantConnectionEvent = null;
|
||||
},
|
||||
|
||||
handlePendingWifiTetheringRequest: function() {
|
||||
if (this._pendingWifiTetheringRequestArgs) {
|
||||
this.setWifiTethering.apply(this, this._pendingWifiTetheringRequestArgs);
|
||||
this._pendingWifiTetheringRequestArgs = null;
|
||||
}
|
||||
},
|
||||
|
||||
@ -932,14 +944,16 @@ NetworkManager.prototype = {
|
||||
(this._usbTetheringAction === TETHERING_STATE_ONGOING ||
|
||||
this._usbTetheringAction === TETHERING_STATE_ACTIVE)) {
|
||||
debug("Usb tethering already connecting/connected.");
|
||||
this._requestCount = 0;
|
||||
this._usbTetheringRequestCount = 0;
|
||||
this.handlePendingWifiTetheringRequest();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!enable &&
|
||||
this._usbTetheringAction === TETHERING_STATE_IDLE) {
|
||||
debug("Usb tethering already disconnected.");
|
||||
this._requestCount = 0;
|
||||
this._usbTetheringRequestCount = 0;
|
||||
this.handlePendingWifiTetheringRequest();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1034,16 +1048,21 @@ NetworkManager.prototype = {
|
||||
debug("setWifiTethering: " + (msg ? msg : "success"));
|
||||
|
||||
if (callback) {
|
||||
callback.wifiTetheringEnabledChange(msg);
|
||||
// Callback asynchronously to avoid netsted toggling.
|
||||
Services.tm.currentThread.dispatch(() => {
|
||||
callback.wifiTetheringEnabledChange(msg);
|
||||
}, Ci.nsIThread.DISPATCH_NORMAL);
|
||||
}
|
||||
},
|
||||
|
||||
_wifiTetheringRequestOngoing: false,
|
||||
enableWifiTethering: function(enable, config, callback) {
|
||||
// Fill in config's required fields.
|
||||
config.ifname = this._tetheringInterface[TETHERING_TYPE_WIFI].internalInterface;
|
||||
config.internalIfname = this._tetheringInterface[TETHERING_TYPE_WIFI].internalInterface;
|
||||
config.externalIfname = this._tetheringInterface[TETHERING_TYPE_WIFI].externalInterface;
|
||||
|
||||
this._wifiTetheringRequestOngoing = true;
|
||||
gNetworkService.setWifiTethering(enable, config, (function(error) {
|
||||
#ifdef MOZ_B2G_RIL
|
||||
// Disconnect dun on error or when wifi tethering is disabled.
|
||||
@ -1053,10 +1072,17 @@ NetworkManager.prototype = {
|
||||
}
|
||||
#endif
|
||||
let resetSettings = error;
|
||||
debug('gNetworkService.setWifiTethering finished');
|
||||
this.notifyError(resetSettings, callback, error);
|
||||
this._wifiTetheringRequestOngoing = false;
|
||||
if (this._usbTetheringRequestCount > 0) {
|
||||
debug('Perform pending USB tethering requests.');
|
||||
this.handleLastUsbTetheringRequest();
|
||||
}
|
||||
}).bind(this));
|
||||
},
|
||||
|
||||
_pendingWifiTetheringRequestArgs: null,
|
||||
// Enable/disable WiFi tethering by sending commands to netd.
|
||||
setWifiTethering: function(enable, network, config, callback) {
|
||||
debug("setWifiTethering: " + enable);
|
||||
@ -1070,6 +1096,16 @@ NetworkManager.prototype = {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this._usbTetheringRequestCount > 0) {
|
||||
// If there's still pending usb tethering request, save
|
||||
// the request params and redo |setWifiTethering| on
|
||||
// usb tethering task complete.
|
||||
debug('USB tethering request is being processed. Queue this wifi tethering request.');
|
||||
this._pendingWifiTetheringRequestArgs = Array.prototype.slice.call(arguments);
|
||||
debug('Pending args: ' + JSON.stringify(this._pendingWifiTetheringRequestArgs));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!enable) {
|
||||
this.enableWifiTethering(false, config, callback);
|
||||
return;
|
||||
@ -1143,20 +1179,24 @@ NetworkManager.prototype = {
|
||||
this._tetheringInterface[TETHERING_TYPE_USB],
|
||||
this.usbTetheringResultReport.bind(this, enable));
|
||||
} else {
|
||||
this.usbTetheringResultReport("Failed to set usb function");
|
||||
this.usbTetheringResultReport(enable, "enableUsbRndisResult failure");
|
||||
throw new Error("failed to set USB Function to adb");
|
||||
}
|
||||
},
|
||||
|
||||
usbTetheringResultReport: function(enable, error) {
|
||||
this._usbTetheringRequestCount--;
|
||||
|
||||
let settingsLock = gSettingsService.createLock();
|
||||
|
||||
debug('usbTetheringResultReport callback. enable: ' + enable + ', error: ' + error);
|
||||
|
||||
// Disable tethering settings when fail to enable it.
|
||||
if (error) {
|
||||
this.tetheringSettings[SETTINGS_USB_ENABLED] = false;
|
||||
settingsLock.set("tethering.usb.enabled", false, null);
|
||||
// Skip others request when we found an error.
|
||||
this._requestCount = 0;
|
||||
this._usbTetheringRequestCount = 0;
|
||||
this._usbTetheringAction = TETHERING_STATE_IDLE;
|
||||
#ifdef MOZ_B2G_RIL
|
||||
if (this.tetheringSettings[SETTINGS_DUN_REQUIRED]) {
|
||||
@ -1174,7 +1214,8 @@ NetworkManager.prototype = {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
this.handleLastRequest();
|
||||
|
||||
this.handleLastUsbTetheringRequest();
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -12,17 +12,17 @@ b2g = true
|
||||
skip = false
|
||||
|
||||
; webapi tests
|
||||
[include:../../../../../dom/bluetooth/tests/marionette/manifest.ini]
|
||||
[include:../../../../../dom/telephony/test/marionette/manifest.ini]
|
||||
[include:../../../../../dom/voicemail/test/marionette/manifest.ini]
|
||||
[include:../../../../../dom/battery/test/marionette/manifest.ini]
|
||||
[include:../../../../../dom/mobilemessage/tests/marionette/manifest.ini]
|
||||
[include:../../../../../dom/mobileconnection/tests/marionette/manifest.ini]
|
||||
[include:../../../../../dom/system/gonk/tests/marionette/manifest.ini]
|
||||
[include:../../../../../dom/icc/tests/marionette/manifest.ini]
|
||||
[include:../../../../../dom/system/tests/marionette/manifest.ini]
|
||||
[include:../../../../../dom/nfc/tests/marionette/manifest.ini]
|
||||
[include:../../../../../dom/events/test/marionette/manifest.ini]
|
||||
[include:../../../../../dom/wifi/test/marionette/manifest.ini]
|
||||
[include:../../../../../dom/bluetooth/tests/marionette/manifest.ini]
|
||||
[include:../../../../../dom/cellbroadcast/tests/marionette/manifest.ini]
|
||||
[include:../../../../../dom/tethering/tests/marionette/manifest.ini]
|
||||
[include:../../../../../dom/events/test/marionette/manifest.ini]
|
||||
[include:../../../../../dom/icc/tests/marionette/manifest.ini]
|
||||
[include:../../../../../dom/mobileconnection/tests/marionette/manifest.ini]
|
||||
[include:../../../../../dom/mobilemessage/tests/marionette/manifest.ini]
|
||||
[include:../../../../../dom/nfc/tests/marionette/manifest.ini]
|
||||
[include:../../../../../dom/system/gonk/tests/marionette/manifest.ini]
|
||||
[include:../../../../../dom/system/tests/marionette/manifest.ini]
|
||||
[include:../../../../../dom/telephony/test/marionette/manifest.ini]
|
||||
[include:../../../../../dom/tethering/tests/marionette/manifest.ini]
|
||||
[include:../../../../../dom/voicemail/test/marionette/manifest.ini]
|
||||
[include:../../../../../dom/wifi/test/marionette/manifest.ini]
|
||||
|
Loading…
Reference in New Issue
Block a user