Skip to content

Commit 543d3d2

Browse files
committed
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 jquerygh-3541 Ref jquerygh-4269 Ref c7c2855
1 parent c7c2855 commit 543d3d2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/unit/manipulation.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2850,8 +2850,11 @@ testIframe(
28502850
} );
28512851
},
28522852

2853-
// Support: Edge 18+
2853+
// Support: Edge 18+, iOS 7-9 only, Android 4.0-4.4 only
28542854
// Edge doesn't support nonce in non-inline scripts.
28552855
// See https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/13246371/
2856-
QUnit[ /\bedge\//i.test( navigator.userAgent ) ? "skip" : "test" ]
2856+
// Old iOS & Android Browser versions support script-src but not nonce, making this test
2857+
// impossible to run. Browsers not supporting CSP at all are not a problem as they'll skip
2858+
// script-src restrictions completely.
2859+
QUnit[ /\bedge\/|iphone os [789]|android 4\./i.test( navigator.userAgent ) ? "skip" : "test" ]
28572860
);

0 commit comments

Comments
 (0)