diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-05-20 17:56:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-20 17:56:58 +0200 |
| commit | 247e2e24ebd427ddeb254cec9337de2803adfa0a (patch) | |
| tree | f56d953de098627d721a9c62830c288a0ede8859 /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | 0918348eaf27f20bb998942533f38c99d99155e7 (diff) | |
| parent | 222126adaf048950af6ef5c854e32a5ce8c02760 (diff) | |
| download | rust-247e2e24ebd427ddeb254cec9337de2803adfa0a.tar.gz rust-247e2e24ebd427ddeb254cec9337de2803adfa0a.zip | |
Rollup merge of #85509 - GuillaumeGomez:search-null-title, r=jsha
Prevent tab title to "null" if the URL is a search one
When we arrive on page with a search parameter in the URL, until the results are displayed, the page title is "null". It's because of this code:
```js
if (params.search !== undefined) {
var search = searchState.outputElement();
search.innerHTML = "<h3 style=\"text-align: center;\">" +
searchState.loadingText + "</h3>";
searchState.showResults(search);
loadSearch();
}
```
In `searchState.showResults`, we have this:
```js
document.title = searchState.title;
```
But since it's `null`, we set it as title. This PR fixes it.
r? `@jsha`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions
