I tried the WebExtension in Chromium. Works perfectly over there.
What I’m actually doing is working on my Ad Limiter, which you can get from the Mozillla add-on store. It gets ratings for sites (I have a server for that) and displays them on search results. My usual test is to search for “Hacker news”, a non ad-heavy topic. On Bing search result pages, the first search result often disappears. That’s not supposed to happen.
In the debugger, I see the page being updated properly, and a green checkmark appears next to the search result. That’s done internally in the DOM by wrapping the search result in a DIV with the checkmark icon and some other stuff, followed by the search result content. I see those DOM changes going in fine. The page displays accordingly. Then, after the add-on code has finished, something deletes the first search result, everything inside the LI. The page updates and that content disappears. It’s gone from the DOM.
So I’m trying to find what’s doing that. Something in Bing’s code? Something in my code? If I could step through in the debugger, this would be easy to find. I have console.log calls all through my code, and with them enabled, there’s nothing which seems likely to be the cause of the problem. There’s a thing for deleting some ads, but I have that turned off, logging for it turned on, and a debugger breakpoint to catch control going through there. Not happening.
This is starting to look like some obscure Firefox bug, especially since it doesn’t appear under Chrome. Any ideas?
Latest comment on the debugger bug is to try some new debugger in Nightly Firefox that might work.