electron/spec-main
Jeremy Apthorp 2fad53e66b refactor: use v8 serialization for ipc (#20214)
* refactor: use v8 serialization for ipc

* cloning process.env doesn't work

* serialize host objects by enumerating key/values

* new serialization can handle NaN, Infinity, and undefined correctly

* can't allocate v8 objects during GC

* backport microtasks fix

* fix compile

* fix node_stream_loader reentrancy

* update subframe spec to expect undefined instead of null

* write undefined instead of crashing when serializing host objects

* fix webview spec

* fix download spec

* buffers are transformed into uint8arrays

* can't serialize promises

* fix chrome.i18n.getMessage

* fix devtools tests

* fix zoom test

* fix debug build

* fix lint

* update ipcRenderer tests

* fix printToPDF test

* update patch

* remove accidentally re-added remote-side spec

* wip

* don't attempt to serialize host objects

* jump through different hoops to set options.webContents sometimes

* whoops

* fix lint

* clean up error-handling logic

* fix memory leak

* fix lint

* convert host objects using old base::Value serialization

* fix lint more

* fall back to base::Value-based serialization

* remove commented-out code

* add docs to breaking-changes.md

* Update breaking-changes.md

* update ipcRenderer and WebContents docs

* lint

* use named values for format tag

* save a memcpy for ~30% speedup

* get rid of calls to ShallowClone

* extra debugging for paranoia

* d'oh, use the correct named tags

* apparently msstl doesn't like this DCHECK

* funny story about that DCHECK

* disable remote-related functions when enable_remote_module = false

* nits

* use EnableIf to disable remote methods in mojom

* fix include

* review comments
2019-10-09 13:59:08 -04:00
..
fixtures fix: ensure document.visibilityState aligns with the visibility of the TopLevelWindow (#19988) 2019-09-05 10:56:06 -07:00
.eslintrc spec: initial spike of main-process based tests 2019-03-14 12:50:06 -07:00
.gitignore spec: add tests for the autoUpdater on macOS that actually test if it works (#17442) 2019-03-29 17:32:52 -07:00
ambient.d.ts test: tsify more web contents specs (#19969) 2019-08-29 19:45:41 -05:00
api-app-spec.ts refactor: use v8 serialization for ipc (#20214) 2019-10-09 13:59:08 -04:00
api-auto-updater-spec.ts test: move autoUpdater specs to main process (#19440) 2019-07-26 10:52:57 -07:00
api-autoupdater-darwin-spec.ts spec: don't run codesigning spec on forks (#19418) 2019-07-24 10:55:16 -07:00
api-browser-view-spec.ts test: close window before destroying browserView (#20411) 2019-10-04 09:30:44 +09:00
api-browser-window-affinity-spec.ts test: tsify affinity spec (#19961) 2019-08-29 09:59:27 -07:00
api-browser-window-spec.ts refactor: use v8 serialization for ipc (#20214) 2019-10-09 13:59:08 -04:00
api-callbacks-registry-spec.ts build: add enable_remote_module build flag (#19821) 2019-09-18 09:52:06 -07:00
api-content-tracing-spec.ts test: move contentTracing specs to main process (#19229) 2019-07-15 17:23:35 +09:00
api-deprecate-spec.ts test: tsify deprecate spec (#20089) 2019-09-04 11:13:37 -07:00
api-desktop-capturer-spec.ts refactor: use v8 serialization for ipc (#20214) 2019-10-09 13:59:08 -04:00
api-dialog-spec.ts test: move dialog spec to main process (#19231) 2019-07-26 09:37:59 -04:00
api-global-shortcut-spec.ts test: move globalShortcut spec (#19233) 2019-07-15 17:29:29 +09:00
api-in-app-purchase-spec.ts test: move inAppPurchase spec (#19232) 2019-07-15 17:28:55 +09:00
api-ipc-main-spec.ts test: move ipcMain spec (#19230) 2019-07-15 17:23:59 +09:00
api-ipc-renderer-spec.ts refactor: use v8 serialization for ipc (#20214) 2019-10-09 13:59:08 -04:00
api-ipc-spec.ts fix: ensure correct ordering of sendSync w.r.t. send (#18630) 2019-06-04 17:10:31 -07:00
api-menu-item-spec.ts doc: add missing MenuItem roles (#19329) 2019-07-31 14:13:56 -07:00
api-menu-spec.ts test: move menu spec to main process (#19412) 2019-07-26 10:17:14 -04:00
api-native-theme-spec.ts build: remove .only 2019-09-16 16:08:41 -07:00
api-net-log-spec.ts test: tsify netlog spec (#19605) 2019-08-05 09:47:42 +09:00
api-net-spec.ts chore: bump chromium to 63be48daea281d4f8c834c2e707a7 (master) (#19923) 2019-09-18 15:58:00 -04:00
api-notification-dbus-spec.ts feat: set urgency on linux notifications (#20152) 2019-09-18 22:35:20 -07:00
api-notification-spec.ts test: move Notification spec to main process (#19414) 2019-07-24 17:18:11 -07:00
api-power-monitor-spec.ts test: tsify powerMonitor spec (#19963) 2019-08-28 13:54:50 -07:00
api-power-save-blocker-spec.ts spec: move powerSaveBlocker spec to main process (#19236) 2019-07-15 17:38:01 +09:00
api-protocol-spec.ts fix: allow paths to asar archives to contain the .asar extension in directories (#20342) 2019-10-02 13:33:07 +09:00
api-remote-spec.ts build: add enable_remote_module build flag (#19821) 2019-09-18 09:52:06 -07:00
api-screen-spec.ts move screen api test to main process (#18956) 2019-06-24 11:30:47 -07:00
api-session-spec.ts fix: cookies.get should be able to filter domain (#20471) 2019-10-09 15:57:40 +09:00
api-shell-spec.ts test: remove usage of remote in shell.openExternal test (#20101) 2019-09-04 11:12:31 -07:00
api-subframe-spec.ts refactor: use v8 serialization for ipc (#20214) 2019-10-09 13:59:08 -04:00
api-system-preferences-spec.ts chore: add error throwing utility (#19803) 2019-08-19 09:10:18 -07:00
api-touch-bar-spec.ts test: move the TouchBar specs to the main process (#19413) 2019-07-25 11:30:42 -07:00
api-tray-spec.ts test: clean up and augment Tray module spec (#19410) 2019-07-24 21:22:08 -07:00
api-view-spec.ts test: tsify spec for experimental views api (#19966) 2019-08-27 16:37:30 +09:00
api-web-contents-spec.ts refactor: use v8 serialization for ipc (#20214) 2019-10-09 13:59:08 -04:00
api-web-contents-view-spec.ts test: move WebContentsView spec (#19990) 2019-08-29 16:17:44 +09:00
api-web-request-spec.ts test: move webRequest spec to main runner (#19992) 2019-08-28 13:56:15 -07:00
chromium-spec.ts chore: bump chromium to 32e0bab929213da1019992bf31d29 (master) (#19488) 2019-08-02 16:56:46 -07:00
content-script-spec.ts test: move content-script tests to main runner (#20056) 2019-09-03 16:01:42 +09:00
events-helpers.ts fix: ensure document.visibilityState aligns with the visibility of the TopLevelWindow (#19988) 2019-09-05 10:56:06 -07:00
extensions-spec.ts test: move chrome extensions spec to main runner (#20030) 2019-09-03 10:10:33 -07:00
index.js ci: run tests on WOA hardware (#20031) 2019-09-03 13:13:06 -04:00
internal-spec.ts test: tsify internal-spec (#19962) 2019-08-28 13:54:42 -07:00
node-spec.ts refactor: use v8 serialization for ipc (#20214) 2019-10-09 13:59:08 -04:00
package.json spec: initial spike of main-process based tests 2019-03-14 12:50:06 -07:00
security-warnings-spec.ts test: move security warnings spec to main runner (#20055) 2019-09-03 16:02:22 +09:00
spec-helpers.ts fix: emit updated on NativeTheme on the UI thread to avoid DCHECK (#20137) 2019-09-16 16:08:01 -07:00
types-spec.ts build: ensure that we bundle the correct version of @types/node (#19102) 2019-07-03 16:36:59 -07:00
version-bump-spec.ts test: move version-bump spec to main process (#19415) 2019-07-24 10:16:28 -07:00
visibility-state-spec.ts fix: ensure document.visibilityState aligns with the visibility of the TopLevelWindow (#19988) 2019-09-05 10:56:06 -07:00
webview-spec.ts refactor: use v8 serialization for ipc (#20214) 2019-10-09 13:59:08 -04:00
window-helpers.ts fix: move window.open postMessage test to main runner to fix flake (#18735) 2019-06-12 08:35:58 +09:00