From d7753c226f5387cbe8eeb0216d40330ec40054b4 Mon Sep 17 00:00:00 2001 From: wicknix <39230578+wicknix@users.noreply.github.com> Date: Thu, 7 Apr 2022 18:44:57 -0500 Subject: [PATCH] revert upstream change might fix broken tab function? --- browser/base/content/tab-content.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/browser/base/content/tab-content.js b/browser/base/content/tab-content.js index 839258793..a2d8c6bf1 100644 --- a/browser/base/content/tab-content.js +++ b/browser/base/content/tab-content.js @@ -399,16 +399,16 @@ var AboutReaderListener = { // Post-load fixups can go here. // TenFourFox issue 654: defeat lozad.js lazy image loading. - Array.forEach(content.document.getElementsByTagName('img'), - function(i) { - try { - // Convert data-src to src. - if (i.getAttribute("data-src")) { - i.src = i.getAttribute("data-src"); - i.setAttribute("data-loaded") = "true"; - } - } catch(e) { } - }); +// Array.forEach(content.document.getElementsByTagName('img'), +// function(i) { +// try { +// // Convert data-src to src. +// if (i.getAttribute("data-src")) { +// i.src = i.getAttribute("data-src"); +// i.setAttribute("data-loaded") = "true"; +// } +// } catch(e) { } +// }); // Do this last. this.updateReaderButton();