mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Tests: Skip nonce tests in old iOS/Android as well
Old iOS & Android Browser versions support script-src but not nonce, making the
nonce test impossible to run. Browsers not supporting CSP at all are not
a problem as they'll skip script-src restrictions completely.
Ref gh-3541
Ref gh-4269
Ref c7c2855ed1
This commit is contained in:
parent
c7c2855ed1
commit
543d3d24ea
@ -2850,8 +2850,11 @@ testIframe(
|
||||
} );
|
||||
},
|
||||
|
||||
// Support: Edge 18+
|
||||
// Support: Edge 18+, iOS 7-9 only, Android 4.0-4.4 only
|
||||
// Edge doesn't support nonce in non-inline scripts.
|
||||
// See https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/13246371/
|
||||
QUnit[ /\bedge\//i.test( navigator.userAgent ) ? "skip" : "test" ]
|
||||
// Old iOS & Android Browser versions support script-src but not nonce, making this test
|
||||
// impossible to run. Browsers not supporting CSP at all are not a problem as they'll skip
|
||||
// script-src restrictions completely.
|
||||
QUnit[ /\bedge\/|iphone os [789]|android 4\./i.test( navigator.userAgent ) ? "skip" : "test" ]
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user