Граф коммитов

42 Коммитов

Автор SHA1 Сообщение Дата
Milan Burda e7c201288c
chore: enable Trusted Types in default app (#27453) 2021-01-25 11:08:58 -05:00
Samuel Attard c9aa68e32c
build: update octicons (#24492) 2020-07-09 18:12:18 -07:00
Samuel Attard 0090616f7b
feat: add a new contextBridge module (#20307)
* feat: add a new contextBridge module

* chore: fix docs linting

* feat: add support for function arguments being proxied

* chore: ensure that contextBridge can only be used when contextIsolation is enabled

* docs: getReverseBinding can be null

* docs: fix broken links in md file

* feat: add support for promises in function parameters

* fix: linting failure for explicit constructor

* Update atom_api_context_bridge.cc

* chore: update docs and API design as per feedback

* refactor: remove reverse bindings and handle GC'able functions across the bridge

* chore: only expose debugGC in testing builds

* fix: do not proxy promises as objects

* spec: add complete spec coverage for contextBridge

* spec: add tests for null/undefined and the anti-overwrite logic

* chore: fix linting

* spec: add complex nested back-and-forth function calling

* fix: expose contextBridge in sandboxed renderers

* refactor: improve security of default_app using the new contextBridge module

* s/bindAPIInMainWorld/exposeInMainWorld

* chore: sorry for this commit, its a big one, I fixed like everything and refactored a lot

* chore: remove PassedValueCache as it is unused now

Values transferred from context A to context B are now cachde in the RenderFramePersistenceStore

* chore: move to anonymous namespace

* refactor: remove PassValueToOtherContextWithCache

* chore: remove commented unused code blocks

* chore: remove .only

* chore: remote commented code

* refactor: extract RenderFramePersistenceStore

* spec: ensure it works with numbered keys

* fix: handle number keys correctly

* fix: sort out the linter

* spec: update default_app asar spec for removed file

* refactor: change signatures to return v8 objects directly rather than the mate dictionary handle

* refactor: use the v8 serializer to support cloneable buffers and other object types

* chore: fix linting

* fix: handle hash collisions with a linked list in the map

* fix: enforce a recursion limit on the context bridge

* chore: fix linting

* chore: remove TODO

* chore: adapt for PR feedback

* chore: remove .only

* chore: clean up docs and clean up the proxy map when objects are released

* chore: ensure we cache object values that are cloned through the V8 serializer
2019-10-18 12:57:09 -07:00
Milan Burda a8698d092b chore: increase security of default_app (#17318) 2019-03-11 16:13:46 -07:00
Samuel Attard b202ad1e24
refactor: remove js2asar.py and port logic to JS in more readable / GN-style way (#16718)
* refactor: remove js2asar.py and port logic to JS in more readable / GN-style way

* refactor: further clean up ASAR impl, add new node_action GN template
2019-02-05 12:10:15 -08:00
Samuel Attard 32a9df2940
refactor: clean up the default app implementation (#14719)
* Disable nodeIntegration
* Enable contextIsolation
* Re-implement the CSP security check to handle running in
contextIsolation
* Disable bad DCHECKS for the promise helper
* Remove the unused "-d" flag for the electron binary
* Added a way to hide the default help output for electron devs who
don't want to see it every time
2018-09-21 15:24:42 +10:00
Samuel Attard 1b7418fb7b
Revert "sec: deprecate some webPreference defaults to be secure-by-default (#14284)" (#14380)
This reverts commit 66d6ba8689.
2018-08-30 09:57:49 +12:00
Samuel Attard 66d6ba8689 sec: deprecate some webPreference defaults to be secure-by-default (#14284)
* feat: deprecate default value of nodeIntegration

* Use DeprecationStatus::Stable as the default instead of shadowing

* change wording of deprecations

* chore: also deprecate kWebviewTag and kContextIsolation

* chore: do as we preach, lets be secure-by-default in the default app
2018-08-29 13:14:04 -05:00
Samuel Attard 12fcac59a2
refactor: clean up the default app, add CSP (#13437)
* refactor: clean up the default app, add CSP

* chore: appease the linter

* refactor: make js2asar more generic, dont assume default_app as target
2018-07-17 10:26:58 +10:00
Ronald Eddy 14c6e78147 Update electron.atom.io -> electronjs.org
Update electron.atom.io -> electronjs.org to reduce redirects and speed navigation.
2017-11-19 04:01:33 -08:00
Zeke Sikelianos 56581b416d improve command prompt styles 2017-09-29 12:13:31 -07:00
Zeke Sikelianos a2f178b664 fix octicon alignment 2017-09-29 12:03:28 -07:00
Zeke Sikelianos 01ca3ae07f make nav link text clickable 2017-09-29 12:03:12 -07:00
Zeke Sikelianos cc6803b358 remove unused styles 2017-09-29 11:35:39 -07:00
Zeke Sikelianos 33394f76d4 make styles more consistent with website 2017-09-29 11:35:22 -07:00
Shelley Vohr 0f34967648
redesign and add versions/links 2017-09-27 23:51:53 -04:00
Shelley Vohr 24913a5ef9
remove drag functions 2017-09-27 14:50:46 -04:00
Kevin Sawicki ca5a8b6166 Extract script tags to renderer.js file 2017-04-25 08:27:57 -07:00
Kevin Sawicki 5f038cb3cb Don't use document.write in default app 2017-04-24 08:57:10 -07:00
Zeke Sikelianos 166bf7ab8c link to default docs URL from default app nav 2017-02-28 21:21:34 -08:00
Zeke Sikelianos 69f0cb26e7 use https for all Electron website URLs 2017-02-28 21:19:55 -08:00
Kevin Sawicki 7bc45c328b Use const instead of var 2016-09-06 11:58:06 -07:00
Kevin Sawicki 8aee04bb24 Improve text and link contrast ratio 2016-07-08 11:31:00 -07:00
Kevin Sawicki a4754212dc Add lang attribute to html element 2016-07-08 11:26:22 -07:00
Cheng Zhao 0f52a6da39 Merge branch '1-0-release' 2016-05-11 15:14:56 +09:00
Steve Kinney b6fd4fed38 💄 Update default_app to ES6 conventions
Add space before object literal method
2016-05-07 08:18:22 -06:00
Cheng Zhao 28d12166fd Fix margin of elements in flex 2016-05-04 18:01:29 +09:00
Cheng Zhao 7074789011 Remove some unnecessary css rules 2016-05-04 18:01:29 +09:00
Cheng Zhao 5e73b0372d Make the drag box fill the remaining height of window 2016-05-04 18:01:29 +09:00
Kevin Sawicki b0dc7ff841 Remove header link hover color 2016-04-28 09:12:13 -07:00
Kevin Sawicki 80bece5640 Add links to nav bar 2016-04-28 09:12:13 -07:00
simurai 5995e3f400 Make drag&drop text wrap-able 2016-04-28 09:12:13 -07:00
simurai 3e4ecd6d6e Fix logo
So the inner dot is filled
2016-04-28 09:12:12 -07:00
Kevin Sawicki 6979ea7fda Use default cursor on holder area 2016-04-28 09:12:12 -07:00
Kevin Sawicki 068909dc03 Tweak header text color 2016-04-28 09:12:12 -07:00
Kevin Sawicki dd337640f5 🎨 2016-04-28 09:12:12 -07:00
Kevin Sawicki c6edab0950 Tweak link style 2016-04-28 09:12:12 -07:00
Kevin Sawicki 7e9d790070 Tweak font weight on holder div 2016-04-28 09:12:12 -07:00
Kevin Sawicki 54aa458ba4 Tweak font 2016-04-28 09:12:12 -07:00
Kevin Sawicki 09b036f07b Update header colors 2016-04-28 09:12:12 -07:00
Kevin Sawicki fc84c952f2 Update source code for new org 2016-04-04 12:07:22 -07:00
Kevin Sawicki c47ad29124 Move default_app to root of repo 2016-03-08 11:14:21 -08:00