electron/spec/fixtures/module
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
..
access-blink-apis.js spec: add test for syncronous access to blink APIs (#14637) 2018-09-25 10:40:15 +12:00
answer.js refactor: replace var with const / let (#14866) 2018-09-29 09:17:00 +10:00
asar.js refactor: replace var with const / let (#14866) 2018-09-29 09:17:00 +10:00
call.js autoformat more files 2016-03-30 17:00:31 -07:00
check-arguments.js refactor: replace var with const / let (#14866) 2018-09-29 09:17:00 +10:00
circular.js Add spec for circular array/object references 2016-07-11 09:52:50 -07:00
class.js mostly more globals 2016-03-30 17:00:32 -07:00
crash.js fix: Expose missing Add/RemoveExtraParameter methods to macOS node child processes (#15790) 2019-07-29 09:46:35 +09:00
create_socket.js refactor: replace var with const / let (#14866) 2018-09-29 09:17:00 +10:00
declare-buffer.js Add declared const Buffer spec 2017-02-14 08:42:34 -08:00
declare-global.js Redeclare process/global as strings 2017-01-30 09:58:44 -08:00
declare-process.js Redeclare process/global as strings 2017-01-30 09:58:44 -08:00
delay-exit.js fix: ensure the inspector agent is shutdown before cleaning up the node env (#18028) 2019-04-30 15:44:40 -07:00
delete-buffer.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
echo-renamed.js feat: Upgrade to Chromium 71.0.3578.98 (#15966) 2019-01-11 17:00:43 -08:00
echo.js feat: Upgrade to Chromium 71.0.3578.98 (#15966) 2019-01-11 17:00:43 -08:00
empty.js fix: ensure the sandboxed preloads globals do not leak (#17712) 2019-04-16 10:57:02 -07:00
error-properties.js Add spec for remote setter not surfacing error 2017-04-03 09:10:46 -07:00
exception.js handle remote exception (#12694) 2018-04-24 08:40:19 -04:00
export-function-with-properties.js Remove lint from fixtures 2016-08-22 17:07:17 -07:00
fork_ping.js refactor: replace var with const / let (#14866) 2018-09-29 09:17:00 +10:00
function-with-args.js Add spec for remote callback length 2017-02-08 11:59:43 -08:00
function-with-missing-properties.js Allow spec to be run multiple times in same runner 2016-09-14 11:16:44 -07:00
function-with-properties.js Use Proxy for accessing properties of remote function 2016-08-22 17:07:18 -07:00
function.js do more manual cleanup and specify globals 2016-03-30 17:00:32 -07:00
get-global-preload.js fix: ignore non-absolute session preload script paths when sandboxed (#19066) 2019-07-03 08:05:45 -07:00
hello-child.js Add test for #9387 2017-05-16 09:07:41 -03:00
hello.js Add test for #9387 2017-05-16 09:07:41 -03:00
id.js autoformat more files 2016-03-30 17:00:31 -07:00
inspector-binding.js spec: update inspector-binding.js 2018-12-03 20:07:42 +05:30
isolated-ping.js fix: register webview in main world when using contextIsolation (#16067) 2018-12-14 15:38:35 +09:00
locale-compare.js do more manual cleanup and specify globals 2016-03-30 17:00:32 -07:00
no-asar.js fix: allow paths to asar archives to contain the .asar extension in directories (#20342) 2019-10-02 13:33:07 +09:00
no-prototype.js Fix spec linting issues 2016-10-13 12:47:43 +11:00
noop.js chore: add spec for --inspect after a -- (#15237) 2018-11-20 16:23:50 -05:00
original-fs.js autoformat more files 2016-03-30 17:00:31 -07:00
ping.js autoformat more files 2016-03-30 17:00:31 -07:00
preload-context.js fix: add native function to create preload script (#13032) 2018-07-13 11:17:11 +09:00
preload-disable-remote.js feat: add webPreferences.enableRemoteModule option (#13028) 2018-10-13 20:50:07 +03:00
preload-error-exception.js feat: add preload-error event to webContents (#16411) 2019-01-18 12:03:43 +01:00
preload-error-syntax.js feat: add preload-error event to webContents (#16411) 2019-01-18 12:03:43 +01:00
preload-ipc-ping-pong.js fix: emit IPC event in correct context if isolation and sandbox enabled (#16352) 2019-01-12 14:19:20 +01:00
preload-ipc.js refactor: replace var with const / let (#14866) 2018-09-29 09:17:00 +10:00
preload-node-off-wrapper.js Add failing spec for Buffer from preload required module 2017-02-24 09:57:32 -08:00
preload-node-off.js Refactor <webview> tag tests (#12886) 2018-05-14 17:00:49 -05:00
preload-pdf-loaded-in-nested-subframe.js refactor: replace var with const / let (#14866) 2018-09-29 09:17:00 +10:00
preload-pdf-loaded-in-subframe.js refactor: replace var with const / let (#14866) 2018-09-29 09:17:00 +10:00
preload-pdf-loaded.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
preload-remote-function.js Fix missing remote object error when calling remote function created in preload script (#15444) 2018-10-31 11:26:57 -04:00
preload-remote.js feat: add webPreferences.enableRemoteModule option (#13028) 2018-10-13 20:50:07 +03:00
preload-required-module.js Refactor <webview> tag tests (#12886) 2018-05-14 17:00:49 -05:00
preload-sandbox.js refactor: use v8 serialization for ipc (#20214) 2019-10-09 13:59:08 -04:00
preload-sandboxæø åü.js Preload doesn't load in sandboxed render if preload path contains special chars (#12037) 2018-03-07 11:40:00 -05:00
preload-set-global.js Add explicit spec for removing preload from webview 2017-05-17 13:47:00 -07:00
preload-webview.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
preload.js Refactor <webview> tag tests (#12886) 2018-05-14 17:00:49 -05:00
print_name.js perf: don't use JSON to send the result of ipcRenderer.sendSync. (#8953) 2018-06-13 17:38:31 +10:00
process-stdout.js spec: child_process.fork shouble be able to pipe stdio 2016-05-31 11:05:58 +09:00
process_args.js autoformat more files 2016-03-30 17:00:31 -07:00
promise.js autoformat more files 2016-03-30 17:00:31 -07:00
property.js Add tests for setting remote function properties 2016-08-22 17:07:18 -07:00
rejected-promise.js Add failing spec for rejected remote promise 2016-05-23 15:06:46 -07:00
remote-object-set.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
remote-static.js Remove lint from fixtures 2016-08-22 17:07:17 -07:00
run-as-node.js Add basic test of spawned ELECTRON_RUN_AS_NODE process 2016-10-12 13:48:49 -07:00
send-later.js refactor: replace var with const / let (#14866) 2018-09-29 09:17:00 +10:00
set-global-preload-1.js Add a SessionPreferences to manage session related data 2017-12-05 15:59:15 +09:00
set-global-preload-2.js Add a SessionPreferences to manage session related data 2017-12-05 15:59:15 +09:00
set-global-preload-3.js fix: ignore non-absolute session preload script paths when sandboxed (#19066) 2019-07-03 08:05:45 -07:00
set-global.js Add ability to set global preload scripts 2017-12-05 11:35:27 +09:00
set-immediate.js autoformat more files 2016-03-30 17:00:31 -07:00
test.coffee Add spec for registering/requiring Coffeescript 2017-02-08 09:00:14 -08:00
to-string-non-function.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
unhandled-rejection.js Add default error handler to remote promises (#6151) 2016-06-21 00:54:15 +00:00