[evolution/gnome-3-36] I#824 - EWebView: Should not force EWebView colors on IFrame body
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-36] I#824 - EWebView: Should not force EWebView colors on IFrame body
- Date: Fri, 13 Mar 2020 09:09:18 +0000 (UTC)
commit 6ca6c4fc7cbd7319a7ba00ad19d5fb6475e6a542
Author: Milan Crha <mcrha redhat com>
Date: Fri Mar 13 10:09:53 2020 +0100
I#824 - EWebView: Should not force EWebView colors on IFrame body
Closes https://gitlab.gnome.org/GNOME/evolution/issues/824
data/webkit/e-web-view.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/data/webkit/e-web-view.js b/data/webkit/e-web-view.js
index e84fd7eb95..8b54bf429f 100644
--- a/data/webkit/e-web-view.js
+++ b/data/webkit/e-web-view.js
@@ -588,7 +588,7 @@ Evo.initialize = function(elem)
Evo.initializeAndPostContentLoaded(elems[ii]);
}
- if (!doc.body.hasAttribute("class"))
+ if (doc.defaultView && !doc.defaultView.frameElement && !doc.body.hasAttribute("class"))
doc.body.className = "-e-web-view-background-color -e-web-view-text-color";
if (doc.documentElement.style.getPropertyValue("color") == "" ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]