mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1178851
- Remove unused send_after_paint_to_content pref flipping. r=pbrosset
This commit is contained in:
parent
36250e5bd3
commit
3e288dde91
@ -657,32 +657,11 @@ exports.settleAll = values => {
|
||||
* production mode, typically to enable easier testing or enhanced debugging.
|
||||
*/
|
||||
let testing = false;
|
||||
let savedSendAfterPaintToContentPref;
|
||||
Object.defineProperty(exports, "testing", {
|
||||
get: function() {
|
||||
return testing;
|
||||
},
|
||||
set: function(state) {
|
||||
let oldState = testing;
|
||||
testing = state;
|
||||
|
||||
// For the highlighter, we also set dom.send_after_paint_to_content to false
|
||||
// to prevent infinite MozAfterPaint loops and not autohiding the
|
||||
// highlighter.
|
||||
// TODO: This should move to a shared head.js file.
|
||||
if (state !== oldState && Services && Services.prefs) {
|
||||
if (state) {
|
||||
savedSendAfterPaintToContentPref =
|
||||
Services.prefs.getBoolPref("dom.send_after_paint_to_content");
|
||||
|
||||
// dom.send_after_paint_to_content is set to true (non-default) in
|
||||
// testing/profiles/prefs_general.js so lets set it to the same as it is
|
||||
// in a default browser profile for the duration of the test.
|
||||
Services.prefs.setBoolPref("dom.send_after_paint_to_content", false);
|
||||
} else {
|
||||
Services.prefs.setBoolPref("dom.send_after_paint_to_content",
|
||||
savedSendAfterPaintToContentPref);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user