зеркало из https://github.com/mozilla/gecko-dev.git
Bug 842147 - Translate JS exception from CaptivePortalDetector into informative debug message. r=vchang
This commit is contained in:
Родитель
4766e33cac
Коммит
3a831e50dd
|
@ -868,8 +868,12 @@ let CaptivePortalDetectionHelper = (function() {
|
|||
capService.abort(_ongoingInterface);
|
||||
_ongoingInterface = null;
|
||||
}
|
||||
capService.checkCaptivePortal(interfaceName, capCallback);
|
||||
_ongoingInterface = interfaceName;
|
||||
try {
|
||||
capService.checkCaptivePortal(interfaceName, capCallback);
|
||||
_ongoingInterface = interfaceName;
|
||||
} catch (e) {
|
||||
debug('Fail to detect captive portal due to: ' + e.message);
|
||||
}
|
||||
};
|
||||
|
||||
let _abort = function (interfaceName) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче