DEV Community

Bharathvaj
Bharathvaj

Posted on • Originally published at bharathvaj.me on

1

What the heck is instantSearchSDKJS BridgeClearHighlight captured by Sentry?

Recently at work, encountered this interesting error on Sentry logs and there were multiple events for this one so as usual started debugging.

When Googled, landed on a StackOverflow Q&A which was the only post available regarding this issue.

explain image

After going through all the answers and comments in Q&A, the issue seems to occur only on Edge on iOS mobile. This is a harmless cross-browser issue that we can ignore in Sentry.

The reason for this one is Edge uses Safari’s WkWebView instead of its own Blink. In order to implement features like Bing’s instant search, etc Edge injected these methods into the loaded pages and then the outer browser calls those JavaScript functions that were injected.

Here, someone had goofed and got rid of (or renamed) the injected JavaScript function, but failed to remove/update the browser code that tries to call that injected JavaScript. Since Sentry captures all the errors logged to the console, it is logged to our app errors. So for me, it is one less issue to worry about, I assume the same for you.

success image

Happy Hacking!!!

Sentry blog image

The Visual Studio App Center’s retiring

But sadly….you’re not. See how to make the switch to Sentry for all your crash reporting needs.

Read more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay