Bug 1511132 - Disable ServiceWindowClients.openWindow() under GeckoView r=asuth

This also disables test_openWindow.html when running in GeckoView.

Differential Revision: https://phabricator.services.mozilla.com/D14556

--HG--
extra : moz-landing-system : lando
This commit is contained in:
James Willcox 2018-12-14 21:28:14 +00:00
Родитель 30201ae152
Коммит 6042d9482d
2 изменённых файлов: 8 добавлений и 0 удалений

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

@ -363,6 +363,13 @@ RefPtr<ClientOpPromise> ClientOpenWindowInCurrentProcess(
new ClientOpPromise::Private(__func__);
#ifdef MOZ_WIDGET_ANDROID
// This isn't currently available on GeckoView because we have no way of
// knowing which app to launch. Bug 1511033.
if (!jni::IsFennec()) {
promise->Reject(NS_ERROR_NOT_IMPLEMENTED, __func__);
return promise.forget();
}
// This fires an intent that will start launching Fennec and foreground it,
// if necessary. We create an observer so that we can determine when
// the launch has completed.

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

@ -282,6 +282,7 @@ tags = mcb
[test_onmessageerror.html]
[test_opaque_intercept.html]
[test_openWindow.html]
skip-if = toolkit == 'android' && !isFennec
tags = openwindow
[test_origin_after_redirect.html]
[test_origin_after_redirect_cached.html]