aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/services/content/ServiceWebview.js
Commit message (Collapse)AuthorAge
* chore: change values inside mobx actions to fix console warnings (#532)Libravatar André Oliveira2022-08-03
|
* chore: Mobx & React-Router upgrade (#406)Libravatar Ricardo Cino2022-07-07
| | | Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
* fix: webview did-attach race condition (#302)Libravatar Kristóf Marussy2022-06-19
| | | | | | | | | 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>
* Preload safe debug shim (#29)Libravatar Kristóf Marussy2022-04-22
| | | | | | | | | | | | | | | | 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>
* Turn off usage of 'debug' npm package using with electron-16 (fixes #17)Libravatar Vijay Aravamudhan2022-04-22
|
* Upgrade electron to '18.0.4'Libravatar Vijay A2022-04-19
| | | | Remove deprecated 'nativeWindowOpen' flag
* Upgrade electron to '16.2.2'Libravatar Vijay A2022-04-19
| | | | Remove deprecated 'webPreference' flag
* Matched casing for almost all replacementsLibravatar Aditya Mangalampalli2022-04-16
|
* chore: use 'nativeWindowOpen' to see if this resolves issues with opening ↵Libravatar Vijay Aravamudhan2021-12-08
| | | | | browser window on clicking links (#2308) (based on https://github.com/TheGoddessInari/hamsket/commit/27226145f7ac0c5acf7aa13e6c8b26687b4e1013)
* chore: upgrade react-jss to latest (#2302)Libravatar Markus Hatvan2021-12-04
|
* chore: convert various files to TS (#2246)Libravatar Markus Hatvan2021-11-18
| | | | | | * convert various files to TS * removed outdated docs/example-feature folder * turn off unicorn/no-empty-file * update eslint config
* chore: use caret for dependencies instead of locked versions (#2162)Libravatar Markus Hatvan2021-10-29
| | | | | - use caret for all dependencies except brittle ones like e.g. typescript - remove 'save-exact' true from .npmrc - fix various prettier formatting issues
* Add feature to display document title along with current title (#2143)Libravatar Chandrika Priya Bogadi2021-10-26
| | | Co-authored by: Rachel Cynthia <rachel883omega@gmail.com>
* chore: update eslint setup (#2074)Libravatar Markus Hatvan2021-10-15
|
* chore: upgrade react to latest (#2030)Libravatar Markus Hatvan2021-10-07
|
* chore: upgraded electron to 14.1.0 (#1860)Libravatar Vijay Aravamudhan2021-10-04
| | | | * upgrade 'electron-react-titlebar' to 1.0.0 * fix issue with 'contextIsolation' and 'enabelRemoteModule' for service-webview
* style: consistent syntax style [skip ci]Libravatar Vijay A2021-08-21
|
* refactor: path-references refactoring and using 'import' instead of ↵Libravatar Vijay Raghavan Aravamudhan2021-08-08
| | | | | | '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/
* Recipe context isolation (#1456)Libravatar Kristóf Marussy2021-07-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Electron 12 and nodejs 14 support (#1308)Libravatar Kristóf Marussy2021-04-29
|
* Synchronize with Franz 5.6.0 (#1033)Libravatar Amine El Mouafik2021-02-08
| | | | | | | 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 setting of webview disablewebsecurity attribute (#772)Libravatar Danny Qiu2020-05-27
|
* Refocus Webview only for active service (#610)Libravatar Mahadevan Sreenivasan2020-04-20
| | | | | | | | | | | | | | | | | | | | | | * 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>
* Use absolute file path to preload recipeLibravatar vantezzen2019-10-27
|
* Merge branch 'master' of https://github.com/meetfranz/franz into franz-5.4.0Libravatar vantezzen2019-10-09
|\
| * fix adding event listener when webview.view does not existLibravatar Stefan Malzner2019-10-04
| |
| * Revert "fix(Workspaces): Only initialize active Workspace services when app ↵Libravatar Stefan Malzner2019-10-04
| | | | | | | | | | | | | | is starting" This reverts commit b521a232ac7c79527d0f3c9baa46695fa5d5e62d, reversing changes made to 5668a7ad1276a5117bba912a883442961ac54728.
| * Reference electron webview view more defensivelyLibravatar Dominik Guzei2019-10-04
| |
| * Add workaround for electron webview issue with disappearing cursorsLibravatar Dominik Guzei2019-10-02
| |
* | Merge branch 'release/5.4.0' of https://github.com/meetfranz/franz into ↵Libravatar vantezzen2019-10-02
|\| | | | | | | franz-5.4.0
| * add disablewebsecurity optionLibravatar Stefan Malzner2019-09-27
| |
* | Fix webview logger throwing errorsLibravatar vantezzen2019-10-02
| |
* | Fix lintLibravatar vantezzen2019-09-23
|/
* Fix/service webview unmounting (#1328)Libravatar Dominik Guzei2019-03-08
| | | | | | * detach service when underlying webview unmounts * disable no-param-reassign eslint rule
* fix(App): Fix notification sounds when app or services are mutedLibravatar Stefan Malzner2018-12-14
| | | | Closes #1184 #900 #460 #1049
* Improve webview loaderLibravatar Stefan Malzner2018-12-11
|
* Only render service handler when service is selectedLibravatar Stefan Malzner2018-12-09
|
* Only show loader when service is enabledLibravatar Stefan Malzner2018-12-09
|
* Fix linting issuesLibravatar Stefan Malzner2018-12-09
|
* Add React 16 didCatch/ErrorBoundary componentLibravatar Stefan Malzner2018-12-09
|
* Dispose autorun on component unmountLibravatar Stefan Malzner2018-12-08
|
* Only show loader on initial service loadLibravatar Stefan Malzner2018-12-08
|
* feat(Service): Add error screen for services that failed to loadLibravatar Stefan Malzner2018-12-08
|
* chore(Recipe): Refactor recipe pluginLibravatar Stefan Malzner2018-12-07
|
* Fix linting errorsLibravatar Stefan Malzner2018-11-15
|
* Merge pull request #494 from heavypackets/websecurity-enable-patchLibravatar Stefan Malzner2017-12-22
|\ | | | | Removing explicit disabling of web security setting for the WebView controls
| * Removing explicit disabling of web security setting for the WebView controlsLibravatar Sabree Blackmon2017-12-21
| | | | | | | | | | This fixes issue #30 where certain Google Voice issues are no longer functioning. This is also required to support other Google application integrations.
* | fix missing webview wrapper classLibravatar Stefan Malzner2017-12-08
|/
* fix merging issueLibravatar Stefan Malzner2017-11-21
|
* fix merging issuesLibravatar Stefan Malzner2017-11-10
|