This repository was archived by the owner on Apr 19, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ Cookie.prototype = {
7272 this . value = nv . join ( '=' ) || '' ;
7373
7474 var n , v ;
75- for each ( p in parts ) {
75+ for ( p of parts ) {
7676 nv = p . split ( "=" ) ;
7777 switch ( n = nv [ 0 ] . toLowerCase ( ) ) {
7878 case 'expires' :
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ const HTTPS = {
141141 }
142142 if ( ! cookies ) return ;
143143 var c ;
144- for each ( var cs in cookies . split ( "\n" ) ) {
144+ for ( var cs of cookies . split ( "\n" ) ) {
145145 this . log ( DBUG , "Examining cookie: " ) ;
146146 c = new Cookie ( cs , host ) ;
147147 if ( ! c . secure && HTTPSRules . shouldSecureCookie ( alist , c , true ) ) {
@@ -229,7 +229,7 @@ const HTTPS = {
229229
230230 var cs = CC [ '@mozilla.org/cookieService;1' ] . getService ( CI . nsICookieService ) . getCookieString ( uri , req ) ;
231231
232- for each ( c in dcookies ) {
232+ for ( c of dcookies ) {
233233 c . secure = dsecure ;
234234 c . save ( ) ;
235235 this . log ( WARN , "Toggled secure flag on " + c ) ;
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ const IOUtil = {
127127 } ,
128128
129129 findWindow : function ( channel ) {
130- for each ( var cb in [ channel . notificationCallbacks ,
130+ for ( var cb of [ channel . notificationCallbacks ,
131131 channel . loadGroup && channel . loadGroup . notificationCallbacks ] ) {
132132 if ( cb instanceof Ci . nsIInterfaceRequestor ) {
133133 if ( Ci . nsILoadContext ) try {
You can’t perform that action at this time.
0 commit comments