[tbb-commits] [tor-browser] 14/37: Bug 1771381 - Use entries in TabAttributesInternal.set(). r=Gijs, a=RyanVM

gitolite role git at cupani.torproject.org
Wed Jun 22 18:27:23 UTC 2022


This is an automated email from the git hooks/post-receive script.

richard pushed a commit to branch tor-browser-91.11.0esr-11.5-1
in repository tor-browser.

commit 060ab5af3c02c24052623ccdfebf0fc7f56ccd7b
Author: Andrew McCreight <continuation at gmail.com>
AuthorDate: Fri May 27 13:15:11 2022 +0000

    Bug 1771381 - Use entries in TabAttributesInternal.set(). r=Gijs, a=RyanVM
    
    Differential Revision: https://phabricator.services.mozilla.com/D147457
---
 browser/components/sessionstore/TabAttributes.jsm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/browser/components/sessionstore/TabAttributes.jsm b/browser/components/sessionstore/TabAttributes.jsm
index ebed5220a5bb2..37a40ca977f4b 100644
--- a/browser/components/sessionstore/TabAttributes.jsm
+++ b/browser/components/sessionstore/TabAttributes.jsm
@@ -67,9 +67,9 @@ var TabAttributesInternal = {
     }
 
     // Set attributes.
-    for (let name in data) {
+    for (let [name, value] of Object.entries(data)) {
       if (!ATTRIBUTES_TO_SKIP.has(name)) {
-        tab.setAttribute(name, data[name]);
+        tab.setAttribute(name, value);
       }
     }
   },

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tbb-commits mailing list