aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/notifications.js
Commit message (Collapse)AuthorAge
* Revert "chore: update outdated node_modules (#1807)"Libravatar Vijay A2021-08-16
| | | | This reverts commit 26a9dba22236bc22a7612107630282cfe02d20e0.
* chore: update outdated node_modules (#1807)Libravatar Markus Hatvan2021-08-16
| | | | - upgrade 'uuid', '@types/uuid', 'macos-version', 'normalize-url' and 'os-name' dependencies to latest - updated 'macos-version' imports to named imports
* chore: migrate from tslint to @typescript-eslint (#1706)Libravatar Markus Hatvan2021-07-30
| | | | | | | | | | - update .eslintrc to work for .js and .ts - update devDependencies - lint properly both root /src and nested /packages - update webhint recommended setting for tsconfig.json to shrink output - Manage all eslint rules from the repo root - escape single quotes in scripts to please windows build Co-authored-by: Vijay A <avijayr@protonmail.com>
* 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>
* Use ferdi namespace on debuggerLibravatar vantezzen2019-09-12
|
* chore(Recipe): Refactor recipe pluginLibravatar Stefan Malzner2018-12-07
|
* Check that notification onclick is a function before callingLibravatar Danny Qiu2017-12-28
|
* Fix application of onNotifyLibravatar Danny Qiu2017-11-14
|
* Recipe Notification API refactorLibravatar Stefan Malzner2017-10-30
| | | | Fixes: #104
* Add onNotify event to let recipes update/change notifications before send them.Libravatar Gustavo Sampaio2017-10-27
| | | | Add additional checks in ServiceStore.
* initial commitLibravatar Stefan Malzner2017-10-13