From 8efe4b806bde8642807e7f942178ff85147dc77b Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 13 Nov 2017 20:09:19 +0300 Subject: [PATCH] revert 3cf32048: Chrome 49+ XML viewer works with styles under --- content/apply.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/content/apply.js b/content/apply.js index 7ddbce3d..9b8c3213 100644 --- a/content/apply.js +++ b/content/apply.js @@ -189,14 +189,6 @@ function applyStyles(styles) { doExposeIframes(styles.exposeIframes); delete styles.exposeIframes; } - if (document.head - && document.head.firstChild - && document.head.firstChild.id === 'xml-viewer-style') { - // when site response is application/xml Chrome displays our style elements - // under document.documentElement as plain text so we need to move them into HEAD - // which is already autogenerated at this moment - ROOT = document.head; - } if (styles.needTransitionPatch) { // CSS transition bug workaround: since we insert styles asynchronously, // the browsers, especially Firefox, may apply all transitions on page load