TheGoddessInari
297f0f061b
Redo preventBlink in WebView with textContent instead of innerHTML.
...
If it ever comes up again, look into Trusted Types to set the value.
Fixes #287 .
3 years ago
TheGoddessInari
27226145f7
Fix popups/link opening in general.
...
Fixes #280 .
Fixes #255 .
Fixes #232 .
Fixes #220 .
Fixes #121 .
Co-authored-by: Ramiro Saenz <[email protected] >
Reference c91ef575e3
4 years ago
TheGoddessInari
1df5645d9e
Update electron to 13.5.1, and switch back to electron-contextmenu-wrapper.
...
Also update electron-builder to 22.14.4.
4 years ago
TheGoddessInari
5c9df38848
Explicitly enable remote module. 'electron/@remote' replacement is not yet ready.
4 years ago
TheGoddessInari
3becc15121
Add manual sync points to the service store.
4 years ago
TheGoddessInari
cd01cec016
Change Google login URLs to match more broadly. Spoof FF 80.
5 years ago
TheGoddessInari
c56e25bde7
Put empty tabs in an array to prevent pushing errors.
5 years ago
TheGoddessInari
4508c9ec9e
Fix User Agent overrides for Google properties.
5 years ago
TheGoddessInari
63ef9554dd
Escape title user inputs. Fix our version of CVE-2019-17625.
...
We take the simple/cheap way out and use ExtJS htmlEncode on all
entry points for this.
This is still mostly limited to 'doing it to yourself'.
The main fix is in app/view/main/Main.js where the title is rendered
out, and will apparently execute arbitrary javascript within a title
tag(!). This is an ExtJS thing, apparently, so we make it
unconditionally encode it to render on the bar.
Apparently this isn't the only place arbitrary execution can occur,
so just be safe(r).
5 years ago
TheGoddessInari
8871b6c33a
Attempt to fix MacOS user agent.
5 years ago
TheGoddessInari
1588c5e459
Enable spellcheck.
5 years ago
TheGoddessInari
aff217eded
Revert sandboxing until we discover why window.open no longer works.
5 years ago
TheGoddessInari
7ed63a46ee
Fix sandboxing for webview. Update electron-contextmenu-wrapper to 4.0.0.
5 years ago
TheGoddessInari
f98f0846ab
Remove redundant "Windows NT" marker.
5 years ago
TheGoddessInari
09cb3da387
Revamp userAgent code for services.
...
You can put in your own arbitrary UA string, as well as
separately select OSes from a menu and type in your own Chrome
version string.
5 years ago
TheGoddessInari
f8ba232215
WebView: Switch back to our own User Agent builder.
5 years ago
TheGoddessInari
ac49485445
New style of getWebContents.
5 years ago
Daniel Peukert
4b97805f41
Replaced deprecated .setZoomLevel() with .zoomLevel
5 years ago
Ivan Kadochnikov
7964a36b69
Fix electron dialog api for backup/restore
...
Use promises instead of callbacks
6 years ago
TheGoddessInari
3ae5f84ec3
Revert "Normalize badge updates at the source."
...
This reverts commit 461052bdcf
.
6 years ago
TheGoddessInari
461052bdcf
Normalize badge updates at the source.
6 years ago
TheGoddessInari
f492d8441d
WebView: Fix User Agent builder usage of Electron Remote.
6 years ago
TheGoddessInari
cb24232b47
Rename baseline from Rambox-OS to Hamsket.
6 years ago
Noah Vesely
9475a17b77
Enable sandbox for WebViews
...
Since v5.0.0 Electron has enabled the mixed sandbox by default. This
means we can sandbox the WebViews, while leaving the main application
un-sandboxed.
6 years ago
TheGoddessInari
97837a7e92
Replace var with let or const as appropriate.
6 years ago
TheGoddessInari
07201f2b15
Replace property functions with object/class method functions.
6 years ago
TheGoddessInari
55fe946f58
Fix backup/restore functions.
6 years ago
TheGoddessInari
c7c7ce7dab
Uppercase font glyph literals to make them less ambiguous.
6 years ago
TheGoddessInari
3a26c65efd
Prepare for electron v5: Make requires in WebView use electron remote as appropriate.
...
https://github.com/electron/electron/blob/master/docs/api/breaking-changes.md#require-in-sandboxed-renderers
6 years ago
TheGoddessInari
243d9fcbdc
Limit passive listeners to the specific types that Chrome >= 57 makes passive by default.
6 years ago
TheGoddessInari
dea40d0e22
Locally scope requires in FileBackup.
...
This shouldn't be logically different, but when packing everything
it escapes the file scope, so limit it in scope explicitly.
6 years ago
TheGoddessInari
7937d8d720
Explicitly focus the BrowserWindow after showing.
...
Workaround for electron/electron#18034
Fixes #92 .
6 years ago
TheGoddessInari
cad7c06030
WebView: Remove 'mouseup' and 'mousedown' from passive listeners.
...
Fixes some Discord clicks and it seems unlikely this would save CPU.
6 years ago
TheGoddessInari
69ea8edb2b
Fix FreeBSD OSArch string. Just in case.
6 years ago
TheGoddessInari
4aab913087
Strip userAgent of Electron/app name. Remove default userAgent overrides.
...
I've kept around an entire custom User Agent builder, just in case.
Mostly fixes #75 .
Everything else is due to them expecting stable Chrome
instead of whatever Electron stable is using.
It'll be easier to add a version override specifically for that now.
6 years ago
TheGoddessInari
fe3f7bc6a2
WebView: Several different cleanups. Fix zoom level logic. Restore zoom level on start.
...
Now using getWebView consistently.
Added getWebContents and setZoomLevel methods.
Added blur and focus methods.
6 years ago
TheGoddessInari
43da607d6e
Change redirect logic for tweetdeck due to deprecation.
6 years ago
TheGoddessInari
26b0b1f78e
Also apply workaround from 3264112
(last commit) to our notifications.
6 years ago
Jakob Struye
772adb7ed0
Fixed slowed timers to also pass the params for the function to be
...
called along
6 years ago
TheGoddessInari
d7f70fd9c3
Remove the last vestiges of Auth0 support.
7 years ago
TheGoddessInari
3da4a439ea
FileBackup: check for null and removing a debugging print.
7 years ago
TheGoddessInari
b8548f2b5f
Fix FileBackup function typo. Backup now works from the button.
7 years ago
TheGoddessInari
b8d448210c
Clear all of the Sencha warnings.
7 years ago
TheGoddessInari
4456ca89b8
Remove electron-context-menu, replace with our own
...
electron-contextmenu-wrapper.
This fixes our context menus. Yay!
7 years ago
TheGoddessInari
5940fa1111
Replace Auth0 with file backup, fix service removal.
...
This took some doing, but fixed the service removal thanks to ES6
Promises and a lot of detective work.
Also removed Auth0, and replaced it with a human-readable JSON
exporter/importer that works in the same way.
7 years ago
TheGoddessInari
c3202d3763
Fix a missed GroupEnd for logging injected code.
7 years ago
TheGoddessInari
c6b85e94ea
This should finally fix the passive/timer logic.
...
Works with extensive testing.
Note to self: The record and service names are effectively backwards.
7 years ago
TheGoddessInari
952d9f36cf
Add the promised blacklist for timer granularity and passive listeners.
...
Also add our first happy blacklister, 'whatapp' looks to have some
sort of race condition when the timers aren't exactly as fast as it
expects.
7 years ago
TheGoddessInari
5d38e9d6a6
Rename project to Rambox-OS to disambiguate from upstream.
...
OS for open source.
7 years ago
TheGoddessInari
c61ffb5f64
Remove electron "browser plugin" support, as AFAICT, there's no use of
...
it and none of the apps should be using plugins.
If I'm wrong, let me know. Eg, I can call using Hangouts/GMail without
it.
Mobile webview support requires browser plugins to be disabled anyway.
7 years ago