Bug 1495301 - Disbale payment-request web-platform tests on non-nightly build. r=a=test-only,revert

--HG--
extra : rebase_source : 750491c3776bb2154991d18c2e174b9ac83b3fb2
This commit is contained in:
Eden Chuang 2018-10-12 14:40:43 +02:00
parent f98659b375
commit c91739f1ee
7 changed files with 16 additions and 1 deletions

View File

@ -60,11 +60,14 @@ NS_IMPL_RELEASE_INHERITED(PaymentRequest, DOMEventTargetHelper)
bool
PaymentRequest::PrefEnabled(JSContext* aCx, JSObject* aObj)
{
#ifdef NIGHTLY_BUILD
if (!XRE_IsContentProcess()) {
return false;
}
return StaticPrefs::dom_payments_request_enabled();
#else
return false;
#endif
}
nsresult

View File

@ -1,4 +1,6 @@
[payment-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html]
disabled:
if not nightly_build: https://bugzilla.mozilla.org/show_bug.cgi?id=1495301
[Feature-Policy allow="payment" allows same-origin relocation.]
expected:
if not e10s: FAIL

View File

@ -1,4 +1,6 @@
[payment-allowed-by-feature-policy-attribute.https.sub.html]
disabled:
if not nightly_build: https://bugzilla.mozilla.org/show_bug.cgi?id=1495301
[Feature policy "payment" can be enabled in same-origin iframe using allow="payment" attribute]
expected:
if not e10s: FAIL

View File

@ -1,4 +1,6 @@
[payment-allowed-by-feature-policy.https.sub.html]
disabled:
if not nightly_build: https://bugzilla.mozilla.org/show_bug.cgi?id=1495301
[Feature-Policy header {"payment" : ["*"\]} allows the top-level document.]
expected:
if not e10s: FAIL

View File

@ -1,4 +1,6 @@
[payment-default-feature-policy.https.sub.html]
disabled:
if not nightly_build: https://bugzilla.mozilla.org/show_bug.cgi?id=1495301
[Default "payment" feature policy ["self"\] allows the top-level document.]
expected:
if not e10s: FAIL

View File

@ -1,4 +1,6 @@
[payment-disabled-by-feature-policy.https.sub.html]
disabled:
if not nightly_build: https://bugzilla.mozilla.org/show_bug.cgi?id=1495301
[Feature-Policy header {"payment" : [\]} disallows the top-level document.]
expected:
if not e10s: FAIL

View File

@ -1 +1,3 @@
prefs: [dom.payments.request.enabled:true]
disabled:
if not nightly_build: https://bugzilla.mozilla.org/show_bug.cgi?id=1495301