aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/services/content/ServiceWebview.js
Commit message (Collapse)AuthorAge
* 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
|
* Merge branch 'develop' into feature/mute-serviceLibravatar Stefan Malzner2017-11-10
|\ | | | | | | | | | | | | | | # Conflicts: # src/components/services/content/ServiceWebview.js # src/components/services/content/Services.js # src/components/services/tabs/TabItem.js # src/containers/layout/AppLayoutContainer.js
| * feat(Service): Add option to display disabled services in tabsLibravatar Stefan Malzner2017-11-09
| |
* | feat(App): Add option to mute all services in sidebarLibravatar Stefan Malzner2017-11-10
| | | | | | | | Closes #8 #162
* | feat(Service): Add option to mute serviceLibravatar Stefan Malzner2017-11-09
|/
* feature(Service): Add webview crash handler to display a user friendly messageLibravatar Stefan Malzner2017-11-07
|
* cleanup & minor style adaptionLibravatar Stefan Malzner2017-10-22
|
* Show url when mouse enters a linkLibravatar Gustavo Sampaio2017-10-21
| | | | This resolves #47
* initial commitLibravatar Stefan Malzner2017-10-13