The iOS Safari extension crashes our web app
Hello,
several users have reported that they encounter a full crash (meaning our catch-all error component is displayed instead of the document) in our webapp, grid.is, when opening GRID document pages in it, in Safari 17.5 and upwards, on iPhone, consistently, in any GRID document
... until they disabled the 1password extension in their Safari, at which time the documents loaded without problems.
They have further reported that the problem did not come back right away when they re-enabled the extension (possibly while something that loaded successfully was cached?), but it did come back later, when the extension had been re-enabled for some time.
The crash gets reported to Sentry as an exception with a single stack frame:
TypeError: undefined is not an object (evaluating 'n.features')
at @webkit-masked-url(://hidden/:42:68938)
and that @webkit-masked-url(://hidden/:*) pattern apparently indicates that the exception originates from extension code in Safari, see https://github.com/getsentry/sentry-javascript/discussions/5875 and https://bugs.webkit.org/show_bug.cgi?id=246010
It is hard for us to troubleshoot this further, given this masking of the stack trace. But it seems clear that the cause (or certainly part of it) lies within the 1password Safari extension.
Our Sentry monitoring shows a small trickle of this same error earlier, exclusively in Safari on Mac (5 occurrences in June, 2 in July, 3 in August) but the iPhone occurrences started on Aug 10 (I see you released 8.10.38 on Aug 6) and are much more frequent, averaging 6-7 occurrences per day. The error has been seen from 53 distinct IP addresses, so not some lone outlier with a corrupted phone. Possibly the Mac occurrences are due to some other Safari extension, and just get lumped together with this because Sentry gets very little detail to use for the issue grouping.
You ought to be able to reproduce this problem by signing up on grid.is (it is free; a user has told me he does not get the problem when logged out) and visiting any GRID document in Safari 17.5+ with the 1password extension enabled, e.g. https://grid.is/@grid/what-is-grid-yBYeOyirSSKBlknj25F98A or some other public document listed at https://grid.is/@grid/
Hope this help you narrow down the problem!
Cheers,
Gulli at GRID.
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: iOS 17.5.1, 17.6, 17.6.1
Browser: Mobile Safari 17.5, 17.6
