See my note on line 196 of browser.py.