Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc18dc49

Browse files
authored
Tests: Skip the "jQuery.ajax() on unload" test in Safari
The test has been already skipped in Chrome as it dropped support for suchrequests and now Safari has joined the squad.This will resolve AJAX test errors we've had for a while in Safari 13 & iOS 13.Closesgh-4779
1 parent8612018 commitc18dc49

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎test/unit/ajax.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2280,7 +2280,10 @@ if ( typeof window.ArrayBuffer === "undefined" || typeof new XMLHttpRequest().re
22802280
// Chrome 78 dropped support for synchronous XHR requests inside of
22812281
// beforeunload, unload, pagehide, and visibilitychange event handlers.
22822282
// See https://bugs.chromium.org/p/chromium/issues/detail?id=952452
2283-
if(!/chrome/i.test(navigator.userAgent)){
2283+
// Safari 13 did similar changes. The below check will catch them both.
2284+
// Edge Legacy fakes Chrome which fakes Safari in their user agents so we need
2285+
// to exclude Edge specifically here so that the test continues to run there.
2286+
if(!/safari/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent)){
22842287
testIframe(
22852288
"#14379 - jQuery.ajax() on unload",
22862289
"ajax/onunload.html",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp