Steps to reproduce: Connect the iOS device to a computer using a USB cable. Open Safari's developer tools on the computer. On the physical iOS device, open any webpage that contains a link (e.g., "https://test-schemaorgtypedomain-js-console-error--tlc-www.netlify.app/templates/test"). Press on the link present on the webpage. Use the back button, or use the swipe gesture to return to the original webpage. Expected Result: The original webpage should load without any errors. Actual Result: A SyntaxError is thrown in the console, indicating a duplicate variable 'schemaOrgTypeDomain'. Console Error: SyntaxError: Can't create duplicate variable 'schemaOrgTypeDomain' Notes: This error only occurs on a physical iOS device and is not reproducible on simulators or emulators. It happens every time the back button is used to return to the original page after clicking a link. The error message suggests that there might be a naming conflict or an issue with the scope of the 'schemaOrgTypeDomain' variable within Safari's JavaScript engine. Impact: The impact of this bug is currently unclear as it depends on how the variable 'schemaOrgTypeDomain' is used in the webpages. It may cause functionality issues or simply be a benign console error. Further investigation is required to understand its impact.
Thank you for the report! This is actually a Safari issue, not a WebKit one. Would you be willing to report it to Apple via https://feedbackassistant.apple.com? We can import it ourselves, but you'd have better visibility into what's going on with it if you report it directly, and also Apple will have the ability to follow up with you.
<rdar://problem/109569094>
Will be tracked by Apple internally as <rdar://problem/109569094>.
Any idea if/when this might be fixed? The JS error reporting integration with MS ApplicationInsights is reporting that as a "Script error", which means that this error report is a false positive... Will look into filtering this out in the mean time.