As far as I can tell, the problem is that for some reason, firefox --remote openURL() stopped working. The Debian url_handler script simply calls Firefox with the URL as a parameter, so it does not encounter the problem.