зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f691a36dc0
Коммит
1110c2bfad
|
@ -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()
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче