+17
-3
lines changedFilter options
+17
-3
lines changed Original file line number Diff line number Diff line change
@@ -304,7 +304,7 @@ const onHiddenSettingsReady = async function() {
304
304
});
305
305
}
306
306
307
-
// Matbe override default cache storage
307
+
// Maybe override default cache storage
308
308
const cacheBackend = await cacheStorage.select(
309
309
µb.hiddenSettings.cacheStorageAPI
310
310
);
Original file line number Diff line number Diff line change
@@ -1138,15 +1138,29 @@ const webRequest = {
1138
1138
vAPI.net = new vAPI.Net();
1139
1139
vAPI.net.suspend();
1140
1140
1141
-
return ( ) => {
1141
+
return async ( ) => {
1142
1142
vAPI.net.setSuspendableListener(onBeforeRequest);
1143
1143
vAPI.net.addListener(
1144
1144
'onHeadersReceived',
1145
1145
onHeadersReceived,
1146
1146
{ urls: [ 'http://*/*', 'https://*/*' ] },
1147
1147
[ 'blocking', 'responseHeaders' ]
1148
1148
);
1149
-
vAPI.net.unsuspend(true);
1149
+
vAPI.net.unsuspend({ force: true });
1150
+
// Mitigation: force-reload active tabs for environments not
1151
+
// supporting suspended network request listeners.
1152
+
if (
1153
+
vAPI.net.canSuspend() !== true ||
1154
+
µb.hiddenSettings.suspendTabsUntilReady === 'no'
1155
+
) {
1156
+
const tabs = await vAPI.tabs.query({
1157
+
active: true,
1158
+
windowType: 'normal',
1159
+
});
1160
+
for ( const tab of tabs ) {
1161
+
vAPI.tabs.reload(tab.id);
1162
+
}
1163
+
}
1150
1164
};
1151
1165
})(),
1152
1166
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4