Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is instantSearchSDKJSBridgeClearHighlight?

Sometimes I get ReferenceError in my sentry with this instantSearchSDKJSBridgeClearHighlight. Google says nothing.
All I found is https://github.com/algolia/instantsearch-android and https://github.com/algolia/instantsearch-ios that may be related to my issue.

I got 53 issues from 5 different users and all of them Edge Mobile on iphone. Maybe someone knows what this thing is (or know method how to know)?

Edit: I also found this issue using github search. Same issue as mine and created by bot

like image 895
zerdox Avatar asked Sep 20 '21 22:09

zerdox


1 Answers

This is a bug in the Bing Instant Search feature in Edge on iOS; the feature tries to call a function that no longer exists. Thanks for the bug; I've passed it along to the feature owners.

The basic idea is that for Edge on iOS the actual web engine is not our normal one (Blink); it is instead Safari's WkWebView.

In order to implement features like Bing's instant search, we have to inject JavaScript into the pages we load. Then our outer browser calls those JavaScript functions we injected.

Here, someone 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.

So users who are watching the browser's error logs see an error message saying "Hey, there's no such function."

This is normally harmless, but if you have "Sentry" code that watches for error messages and complains about them to the website developers, it starts complaining about this error message we're causing.

like image 132
EricLaw Avatar answered Sep 25 '22 00:09

EricLaw