File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ let dfPaneBuilt = false;
56
56
let dfHotspots = null ;
57
57
const allHostnameRows = [ ] ;
58
58
let cachedPopupHash = '' ;
59
+ let forceReloadFlag = 0 ;
59
60
60
61
// https://github.com/gorhill/uBlock/issues/2550
61
62
// Solution inspired from
@@ -130,6 +131,7 @@ const hashFromPopupData = function(reset = false) {
130
131
const hash = hasher . join ( '' ) ;
131
132
if ( reset ) {
132
133
cachedPopupHash = hash ;
134
+ forceReloadFlag = 0 ;
133
135
}
134
136
dom . cl . toggle ( dom . body , 'needReload' ,
135
137
hash !== cachedPopupHash || popupData . hasUnprocessedRequest === true
@@ -1167,7 +1169,7 @@ const reloadTab = function(bypassCache = false) {
1167
1169
tabId : popupData . tabId ,
1168
1170
url : popupData . rawURL ,
1169
1171
select : vAPI . webextFlavor . soup . has ( 'mobile' ) ,
1170
- bypassCache,
1172
+ bypassCache : bypassCache || forceReloadFlag !== 0 ,
1171
1173
} ) ;
1172
1174
1173
1175
// Polling will take care of refreshing the popup content
@@ -1344,6 +1346,10 @@ const toggleHostnameSwitch = async function(ev) {
1344
1346
persist : ev . ctrlKey || ev . metaKey ,
1345
1347
} ) ;
1346
1348
1349
+ if ( switchName === 'no-scripting' ) {
1350
+ forceReloadFlag ^= 1 ;
1351
+ }
1352
+
1347
1353
cachePopupData ( response ) ;
1348
1354
hashFromPopupData ( ) ;
1349
1355
You can’t perform that action at this time.
0 commit comments