Bug 256706 - SyntaxError on Back Navigation: Duplicate variable 'schemaOrgTypeDomain'
Summary: SyntaxError on Back Navigation: Duplicate variable 'schemaOrgTypeDomain'
Status: RESOLVED MOVED
Alias: None
Product: WebKit
Classification: Unclassified
Component: History (show other bugs)
Version: Safari 16
Hardware: iPhone / iPad iOS 16
: P2 Trivial
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-05-12 08:58 PDT by Alistair Chisholm
Modified: 2024-01-12 05:38 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alistair Chisholm 2023-05-12 08:58:39 PDT
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.
Comment 1 Alexey Proskuryakov 2023-05-14 12:11:30 PDT
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.
Comment 2 Radar WebKit Bug Importer 2023-05-19 08:59:18 PDT
<rdar://problem/109569094>
Comment 3 Alexey Proskuryakov 2023-05-19 09:04:46 PDT
Will be tracked by Apple internally as <rdar://problem/109569094>.
Comment 4 Miha Valencic 2024-01-12 05:38:00 PST
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.