Specification change of windows.open for Safari

We are experiencing a problem that seems to be caused by a specification changes for Safari. We would like to discuss how to solve this problem.

Sample JavaScript:

<html>
<head>
<script>
function jumpPage(code) {
	document.main.code.value = code;

	win1=window.open("","win1","toolbar=no,resizable=yes,menubar=no,scrollbars=yes,status=yes,left=0,top=0");
	win1.resizeTo(width=screen.availWidth,height=screen.availHeight);
	document.main.action="details";
	document.main.target="win1";
	document.main.submit();
}
</script>
</head>
<body>
<form name="main" method="post" action="" target="">
<a href="javascript:jumpPage('001')">details</a>

<input type="hidden" name="code" value="">
</body>
</html>

This JavaScript performs the following actions when a link is clicked.

  1. Open a window using window.open in JavaScript
  2. Submit the above opened window by post method to the target in JavaScript.

When this operation is performed, the process in (2) could submit to the target page with “POST” method before iOS18.1, but will transition to the page with“GET”method from iOS18.2 onward.

All protocols are http. This problem does not occur if the URL is specified as an IP address, but it does occur if the host name is specified as.

Please let me know how to use with“POST”method as in iOS 18.2 or earlier.

Best regards,

Specification change of windows.open for Safari
 
 
Q