| Commit message (Collapse) | Author | Age |
| |
|
|
|
| |
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
| |
Make sure the event handler for attached webviews runs in a separate
task to avoid race conditions like
https://github.com/electron/electron/issues/31918
This should hopefully fix #157
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In https://github.com/ferdium/ferdium-app/pull/23 we removed usages of
the debug package due to an electron bug.
This patch aims to restore some debug functionality by introducing a
shim. The shim detect whether if it is being introduced in a preload
script where the electron but would be triggered, and falls back to a
simple replacement for debug. However, in the main and renderer
processes, where a preload script is not being used, we still get full
debug functionality.
In this way, a module can be used both in a preload script and outside
of it, while still preserving debug functionality whenever possible.
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
|
| |
|
|
|
|
| |
Remove deprecated 'nativeWindowOpen' flag
|
|
|
|
| |
Remove deprecated 'webPreference' flag
|
| |
|
|
|
|
|
| |
browser window on clicking links (#2308)
(based on https://github.com/TheGoddessInari/hamsket/commit/27226145f7ac0c5acf7aa13e6c8b26687b4e1013)
|
| |
|
|
|
|
|
|
| |
* convert various files to TS
* removed outdated docs/example-feature folder
* turn off unicorn/no-empty-file
* update eslint config
|
|
|
|
|
| |
- use caret for all dependencies except brittle ones like e.g. typescript
- remove 'save-exact' true from .npmrc
- fix various prettier formatting issues
|
|
|
| |
Co-authored by: Rachel Cynthia <rachel883omega@gmail.com>
|
| |
|
| |
|
|
|
|
| |
* upgrade 'electron-react-titlebar' to 1.0.0
* fix issue with 'contextIsolation' and 'enabelRemoteModule' for service-webview
|
| |
|
|
|
|
|
|
| |
'require' (#1752)
* refactor references to 'userData' and 'appData' directories to move hardcoding into single location
* convert to es6 for lower memory usage as per https://codesource.io/the-difference-between-import-and-require-in-javascript/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Enable service contextIsolation
* Enable contextIsolation on the service webviews
* Expose a new API window.ferdi in the service main world to allow
calling back into the service isolated world
* Expose a new IPC message inject-js-unsafe from the service isolated
world to execute Javascript in the service main world (i.e., run code
without context isolation). While the name contains the "unsafe"
suffix to show the lack of context isolation, this should mostly be
safe, as no nodejs APIs are available in the injected code.
* Refactor the Notifications shim into a part in the isolated world that
handles displaying and modifying notifications, and a shim in the main
world for the Notifications class. The two communicate via the
window.ferdi endpoint and a Promise object can be used to detect
notification clicks.
* Refactor the screen sharing shim into a part in the isolated world
that enumerated shareable screens and windows and a shim in the main
world that displays the media selector and completes the media
selection promise.
* Expose the injectJSUnsafe API to recipes to inject javascript code
into the main world without context isolation.
* Expose setBadge to the main world
The window.ferdi.setBadge API can be used to update the service badge
from injected unsafe Javascript
* Safer script injection into the service main world
Make sure that we don't try to serialize stray objects back from the
main world to the isolated world by always surrounding the script to be
executed by an anonymous function.
* Always read recipe assets as utf8
* Remove window.log from recipes
We didn't use it anywhere and its behavior was confusing in production
mode.
* Inject multiple unsafe scripts at the same time
* Find in page without remote module
Remove the @electron/remote dependency from the find in page (Ctrl+F)
functionality. The remote webContents is replaced with Electron IPC.
Synchronous IPC messages are handled in the main Electron process,
because the renderer process cannot reply to IPC messages synchronously.
* Update to latest contextIsolation recipes
* Fixing issue with missing 'fs' functions.
Co-authored-by: Vijay A <avijayr@protonmail.com>
|
| |
|
|
|
|
|
|
|
| |
Co-authored-by: FranzBot <i18n@meetfranz.com>
Co-authored-by: vantezzen <hello@vantezzen.io>
Co-authored-by: Makazzz <makazzzpro@live.ca>
Co-authored-by: Stefan Malzner <stefan@adlk.io>
Co-authored-by: Amine Mouafik <amine@mouafik.fr>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix: Refocus Webview only for active service
- add check to identify if the webview belongs to the active service during refocussing a webview.
- blur and focus the webview only for the active service.
Co-Authored-By: Sampath Kumar Krishnan <sampathblam@users.noreply.github.com>
* fix: Focus on Active Service
- replace document.activeElement.blur() with service.webview.blur()
Co-Authored-By: Sampath Kumar Krishnan <sampathblam@users.noreply.github.com>
* refactor
- lint fixes
Co-Authored-By: Sampath Kumar Krishnan <sampathblam@users.noreply.github.com>
Co-authored-by: Sampath Kumar Krishnan <sampathblam@users.noreply.github.com>
|
| |
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
is starting"
This reverts commit b521a232ac7c79527d0f3c9baa46695fa5d5e62d, reversing
changes made to 5668a7ad1276a5117bba912a883442961ac54728.
|
| | |
|
| | |
|
|\|
| |
| |
| | |
franz-5.4.0
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
|
| |
* detach service when underlying webview unmounts
* disable no-param-reassign eslint rule
|
|
|
|
| |
Closes #1184 #900 #460 #1049
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Removing explicit disabling of web security setting for the WebView controls
|
| |
| |
| |
| |
| | |
This fixes issue #30 where certain Google Voice issues are no longer functioning.
This is also required to support other Google application integrations.
|
|/ |
|
| |
|
| |
|