electron: fallback to load archived version instead of 404 if full url given

dependency: update to latest electron 11 minor version (11.4.8)
This commit is contained in:
Ilya Kreymer
2021-06-04 15:37:28 -07:00
parent f81789c296
commit e542d25a82
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ v1.4.4
- Loading: Fix loading from sources that don't support range requests for HEAD, don't send If-Range header (fixes in wabac.js 2.7.8) - Loading: Fix loading from sources that don't support range requests for HEAD, don't send If-Range header (fixes in wabac.js 2.7.8)
- Loading: Cleanup of any partial data loaded when collection load fails (from wabac.js) - Loading: Cleanup of any partial data loaded when collection load fails (from wabac.js)
- Fidelity: Improved fidelity of certain sites that use eval() (from wabac.js) - Fidelity: Improved fidelity of certain sites that use eval() (from wabac.js)
- Dependencies: bump to wabac.js 2.7.8, wombat 1.3.8 - Dependencies: bump to wabac.js 2.7.8, wombat 1.3.8, Electron 11.4.8
v1.4.3 v1.4.3
- Loading: Various fixes to index loading for compessed WACZ index - Loading: Various fixes to index loading for compessed WACZ index
+1 -1
View File
@@ -28,7 +28,7 @@
"devDependencies": { "devDependencies": {
"copy-webpack-plugin": "^6.3.0", "copy-webpack-plugin": "^6.3.0",
"css-loader": "^3.5.3", "css-loader": "^3.5.3",
"electron": "^11.4.3", "electron": "^11.4.8",
"electron-builder": "^22.7.0", "electron-builder": "^22.7.0",
"electron-notarize": "^1.0.0", "electron-notarize": "^1.0.0",
"http-server": "^0.12.3", "http-server": "^0.12.3",
+1 -1
View File
@@ -28,7 +28,7 @@
"devDependencies": { "devDependencies": {
"copy-webpack-plugin": "^6.3.0", "copy-webpack-plugin": "^6.3.0",
"css-loader": "^3.5.3", "css-loader": "^3.5.3",
"electron": "^11.4.3", "electron": "^11.4.8",
"electron-builder": "^22.7.0", "electron-builder": "^22.7.0",
"electron-notarize": "^1.0.0", "electron-notarize": "^1.0.0",
"http-server": "^0.12.3", "http-server": "^0.12.3",
+2 -2
View File
@@ -310,9 +310,9 @@ class ElectronReplayApp
} }
} }
// possible 'live leak' attempt, just return not found // possible 'live leak' attempt, return archived version, if any
if (request.referrer && request.referrer.startsWith(REPLAY_PREFIX)) { if (request.referrer && request.referrer.startsWith(REPLAY_PREFIX)) {
return this.notFound(request.url, callback); return await this.resolveArchiveResponse(request, callback);
} }
await this.proxyLive(request, callback); await this.proxyLive(request, callback);
+5 -5
View File
@@ -782,7 +782,7 @@
warcio "^1.4.6" warcio "^1.4.6"
wbn "^0.0.3" wbn "^0.0.3"
"@webrecorder/wombat@^3.1.8", "@webrecorder/wombat@github:webrecorder/wombat": "@webrecorder/wombat@^3.1.8":
version "3.1.8" version "3.1.8"
resolved "https://codeload.github.com/webrecorder/wombat/tar.gz/9265b84fa189bca77b7f25fb6c5f4aadbabc379a" resolved "https://codeload.github.com/webrecorder/wombat/tar.gz/9265b84fa189bca77b7f25fb6c5f4aadbabc379a"
@@ -2840,10 +2840,10 @@ electron-updater@^4.3.5:
lodash.isequal "^4.5.0" lodash.isequal "^4.5.0"
semver "^7.3.2" semver "^7.3.2"
electron@^11.4.3: electron@^11.4.8:
version "11.4.3" version "11.4.8"
resolved "https://registry.yarnpkg.com/electron/-/electron-11.4.3.tgz#74319635417c24fd19e31cfce5a39c8792e4014b" resolved "https://registry.yarnpkg.com/electron/-/electron-11.4.8.tgz#6f89be903bd917bda52afacf7cd3bdf2154b5c79"
integrity sha512-RhCWJqiYK5oIRGOheilhg/nngCgk0fPgaf00KvbxorlvFZAz8OeMT5ShCpVsMSoyYhk4XEnn4orRly5ltaFYJg== integrity sha512-NrxlDZN1sWiDCWWOm5aX+tPGtiLgsCUwNqNFP3eJfY+RPdYLsxYRJDFa1vc4GcuCZEp9kZusINjmpPWsvJdspQ==
dependencies: dependencies:
"@electron/get" "^1.0.1" "@electron/get" "^1.0.1"
"@types/node" "^12.0.12" "@types/node" "^12.0.12"