mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
3052a476c3
The reason this works is because the window object stays the same between location changes, but the document object changes. Since stylesheets are applied to documents, not windows, we need to make sure to inject a stylesheet for each document, otherwise the find toolbar highlights will look unstyled and wonky. In bug 1279695 I made a change - to make tests pass and patch landable - to keep track of all the things (state, mainly range sets) mapped to window objects, because I hadn't thought of the fact that the content scripts and JSMs that are loaded in its scope will see many different window objects. As many as there are tabs open, actually (not counting frames). The mistake I made there was to keep track of the state flag 'did I already install the stylesheet?' on a per-window basis, unlike I did before. This patch corrects this back to the way it was and should be, really. MozReview-Commit-ID: 2t0mer2s10x --HG-- extra : rebase_source : 6e793b695a4a86874898ca470639b60d5a91a001 |
||
---|---|---|
.. | ||
components | ||
content | ||
crashreporter | ||
forgetaboutsite | ||
identity | ||
library | ||
locales | ||
modules | ||
mozapps | ||
obsolete | ||
pluginproblem | ||
profile | ||
system | ||
themes | ||
xre | ||
.eslintrc | ||
moz.build | ||
moz.configure | ||
nss.configure | ||
toolkit.mozbuild |