Bug 1576206 - Remove inline Style that causes CSP Violations r=Gijs
authorSebastian Streich <sstreich@mozilla.com>
Mon, 26 Aug 2019 16:40:46 +0000
changeset 553660 1fd9a3f8f1306eb6719c08b6ce5b1d456d288648
parent 553659 f277c58a8bcb52c8d18dbdeb63de50dd8a8973d1
child 553670 8a23deb104ae69f5a511c6fc5da9373cf119ce81
push id2165
push userffxbld-merge
push dateMon, 14 Oct 2019 16:30:58 +0000
treeherdermozilla-release@0eae18af659f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1576206
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1576206 - Remove inline Style that causes CSP Violations r=Gijs Differential Revision: https://phabricator.services.mozilla.com/D43453
toolkit/content/widgets/tree.js
toolkit/themes/shared/tree.inc.css
--- a/toolkit/content/widgets/tree.js
+++ b/toolkit/content/widgets/tree.js
@@ -594,25 +594,25 @@
         <html:link rel="stylesheet" href="chrome://global/content/widgets.css" />
         <html:slot name="treecols"></html:slot>
         <stack class="tree-stack" flex="1">
           <hbox class="tree-rows" flex="1">
             <hbox flex="1" class="tree-bodybox">
               <html:slot name="treechildren"></html:slot>
             </hbox>
             <scrollbar height="0" minwidth="0" minheight="0" orient="vertical"
-                       class="hidevscroll-scrollbar"
-                       style="position:relative; z-index:2147483647;"></scrollbar>
+                       class="hidevscroll-scrollbar scrollbar-topmost"
+                       ></scrollbar>
           </hbox>
           <box class="tree-input-wrapper" left="0" top="0" hidden="true">
             <html:input class="tree-input" type="text"/>
           </box>
         </stack>
         <hbox class="hidehscroll-box">
-          <scrollbar orient="horizontal" flex="1" increment="16" style="position:relative; z-index:2147483647;"></scrollbar>
+          <scrollbar orient="horizontal" flex="1" increment="16" class="scrollbar-topmost" ></scrollbar>
           <scrollcorner class="hidevscroll-scrollcorner"></scrollcorner>
         </hbox>
       `);
       let handledElements = fragment.querySelectorAll("scrollbar,scrollcorner");
       let stopAndPrevent = e => {
         e.stopPropagation();
         e.preventDefault();
       };
--- a/toolkit/themes/shared/tree.inc.css
+++ b/toolkit/themes/shared/tree.inc.css
@@ -194,8 +194,13 @@ html|input.tree-input {
   -moz-appearance: none;
   -moz-box-flex: 1;
   font: inherit;
   border: 1px solid Highlight;
   margin: 0;
   margin-inline-start: -4px;
   padding: 1px;
 }
+
+.scrollbar-topmost {
+  position: relative;
+  z-index: 2147483647;
+}