gecko-dev/toolkit
Mike de Boer 3052a476c3 Bug 1298438 - add modal highlighting stylesheet to each document, not only for each window. r=jaws
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
2016-08-31 09:53:35 +02:00
..
components Merge m-c to autoland, a=merge 2016-08-30 18:15:33 -07:00
content Backed out changeset 219efbc6aadb (bug 1277504) 2016-08-30 19:58:29 +02:00
crashreporter Bug 1298701 - Separate the two strings (StartupCrash & TelemetryEnvironment) in the kCrashEventAnnotations structure r=njn 2016-08-28 21:54:48 +02:00
forgetaboutsite Bug 1294547 - Enable the comma-spacing rule for eslint. r=felipe 2016-08-16 15:44:15 -04:00
identity Bug 1296316 - Convert nsNSSShutDownObject::CalledFromType to an enum class. r=mgoodwin 2016-08-20 23:00:19 +08:00
library Bug 1294650 - Install shim 'qipcap' dlls into the Firefox folder to circumvent dll injection by the 3rd party Websense product. r=aklotz a=jimm 2016-08-22 06:53:38 -05:00
locales Bug 1298311 - Remove unused resource data for print dialog and narrate from Fennec. r=sebastian 2016-08-30 14:52:33 +09:00
modules Bug 1298438 - add modal highlighting stylesheet to each document, not only for each window. r=jaws 2016-08-31 09:53:35 +02:00
mozapps Backed out changesets 63812e8894ce and 809e880145b1 (bug 557710) for xpcshell failures. 2016-08-30 20:26:28 -04:00
obsolete Bug 1292042 - Enable the keyword-spacing rule for eslint. Most of this patch was autogenerated by 'eslint --fix'. Files with .xml extension needed to be changed by hand due to limitations of custom plugin. r=markh 2016-08-04 03:28:58 -04:00
pluginproblem Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
profile Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
system Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
themes Bug 1292593 - Add missing border to autocomplete popups. r=gijs 2016-08-26 10:50:41 +02:00
xre Backed out changeset 4a42968b790d (bug 1250901) for Mochitest M(oth) failures on OS X 2016-08-30 16:54:29 +08:00
.eslintrc Bug 1294542 - Enable the block-spacing rule for eslint. r=felipe 2016-08-16 21:27:37 -04:00
moz.build Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
moz.configure Merge m-c to autoland. a=merge 2016-08-26 09:38:49 -04:00
nss.configure Bug 1295480 - Move --enable-dbm to python configure. r=chmanchester 2016-08-17 11:01:44 +09:00
toolkit.mozbuild Bug 1231764 - part 6 - build rust code via cargo; r=chmanchester 2016-08-06 00:49:26 -04:00