]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #53405 - oconnor663:search_esc, r=GuillaumeGomez
authorkennytm <kennytm@gmail.com>
Mon, 20 Aug 2018 17:20:18 +0000 (01:20 +0800)
committerkennytm <kennytm@gmail.com>
Tue, 21 Aug 2018 09:51:42 +0000 (17:51 +0800)
commit2a0d72075e8b4d13f20f10c9e58ef0728a687583
tree4df3f0be3bf419bca89fb72198530ff390aa203b
parentb21e956f2733cce6304926cc51ee542c036c1c9e
parent207550981fb3f152ceacaf23fa5ac1727dad17ab
Rollup merge of #53405 - oconnor663:search_esc, r=GuillaumeGomez

restore the page title after escaping out of a search

Currently if I start a search in the docs, but then hit ESC, the "Results for..." title is still there in my browser tab. This is a simple attempt to fix that. I see that there's a separate `var previousTitle = document.title` thing happening in `startSearch()`, but as far as I can tell that's only related to the back stack? I'd also appreciate feedback on the right place to declare the `titleBeforeSearch` variable.

Testing-wise, I've confirmed by hand that the tab title restores correctly after building with `./x.py doc --stage 1 src/libstd`, but nothing more involved than that. What else should I test?