Backed out changeset 8eb2b7857f62 (bug 1608588) for ESlint failure at mobile/android/components/geckoview/GeckoViewPermission.js on a CLOSED TREE

This commit is contained in:
Coroiu Cristina 2020-01-23 18:17:48 +02:00
Родитель f691a36dc0
Коммит 1110c2bfad
2 изменённых файлов: 0 добавлений и 8 удалений

Просмотреть файл

@ -236,13 +236,6 @@ GeckoViewPermission.prototype = {
}
let perm = types.queryElementAt(0, Ci.nsIContentPermissionType);
if (perm.type === "desktop-notification" && !aRequest.isHandlingUserInput &&
Services.prefs.getBoolPref("dom.webnotifications.requireuserinteraction", true)) {
// We need user interaction and don't have it.
aRequest.cancel();
return;
}
let dispatcher = GeckoViewUtils.getDispatcherForWindow(
aRequest.window ? aRequest.window : aRequest.element.ownerGlobal
);

Просмотреть файл

@ -219,7 +219,6 @@ class PermissionDelegateTest : BaseSessionTest() {
}
@Test fun notification() {
sessionRule.setPrefsUntilTestEnd(mapOf("dom.webnotifications.requireuserinteraction" to false))
mainSession.loadTestPath(HELLO_HTML_PATH)
mainSession.waitForPageStop()