mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
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:
parent
f98659b375
commit
c91739f1ee
@ -60,11 +60,14 @@ NS_IMPL_RELEASE_INHERITED(PaymentRequest, DOMEventTargetHelper)
|
|||||||
bool
|
bool
|
||||||
PaymentRequest::PrefEnabled(JSContext* aCx, JSObject* aObj)
|
PaymentRequest::PrefEnabled(JSContext* aCx, JSObject* aObj)
|
||||||
{
|
{
|
||||||
|
#ifdef NIGHTLY_BUILD
|
||||||
if (!XRE_IsContentProcess()) {
|
if (!XRE_IsContentProcess()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return StaticPrefs::dom_payments_request_enabled();
|
return StaticPrefs::dom_payments_request_enabled();
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
nsresult
|
nsresult
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
[payment-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html]
|
[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.]
|
[Feature-Policy allow="payment" allows same-origin relocation.]
|
||||||
expected:
|
expected:
|
||||||
if not e10s: FAIL
|
if not e10s: FAIL
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
[payment-allowed-by-feature-policy-attribute.https.sub.html]
|
[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]
|
[Feature policy "payment" can be enabled in same-origin iframe using allow="payment" attribute]
|
||||||
expected:
|
expected:
|
||||||
if not e10s: FAIL
|
if not e10s: FAIL
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
[payment-allowed-by-feature-policy.https.sub.html]
|
[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.]
|
[Feature-Policy header {"payment" : ["*"\]} allows the top-level document.]
|
||||||
expected:
|
expected:
|
||||||
if not e10s: FAIL
|
if not e10s: FAIL
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
[payment-default-feature-policy.https.sub.html]
|
[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.]
|
[Default "payment" feature policy ["self"\] allows the top-level document.]
|
||||||
expected:
|
expected:
|
||||||
if not e10s: FAIL
|
if not e10s: FAIL
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
[payment-disabled-by-feature-policy.https.sub.html]
|
[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.]
|
[Feature-Policy header {"payment" : [\]} disallows the top-level document.]
|
||||||
expected:
|
expected:
|
||||||
if not e10s: FAIL
|
if not e10s: FAIL
|
||||||
|
@ -1 +1,3 @@
|
|||||||
prefs: [dom.payments.request.enabled:true]
|
prefs: [dom.payments.request.enabled:true]
|
||||||
|
disabled:
|
||||||
|
if not nightly_build: https://bugzilla.mozilla.org/show_bug.cgi?id=1495301
|
||||||
|
Loading…
Reference in New Issue
Block a user