puppeteer/test
Andrey Lushnikov 20988775bf
fix: gracefully handle multiple contexts for secondary DOM World (#4276)
In case of multiple sessions to the same target, there's a race between
sessions to create a secondary isolated world. As a result, we might
end up having 2 execution contexts created for the needs of the
secondary isolated world.

This patch starts handling this race gracefully: instead of crashing,
we can use either of the execution contexts and ignore the rest.

Notably, the same race condition might happen if page reloads itself
in-between the calls to `page.addEvaluateOnNewDocument` and
`page.createIsolatedWorld`.

Fixes #4197.
2019-04-11 16:26:18 -04:00
..
assets fix(firefox): keyboard tests (#4082) 2019-02-27 15:13:17 -08:00
fixtures test: split out fixture tests and make them work with FF (#4067) 2019-02-25 12:40:17 -08:00
golden-chromium chore: further unify Puppeteer-Firefox tests with Puppeteer (#3931) 2019-02-06 13:49:14 -08:00
golden-firefox fix(firefox): properly round clip when doing element screenshots (#4001) 2019-02-13 19:47:14 -08:00
accessibility.spec.js feat(firefox): page.accessibility.snapshot() (#4071) 2019-02-25 21:57:33 -08:00
browser.spec.js test: split out all chromium-specific tests into chromiumonly.spec.js (#4068) 2019-02-25 12:51:06 -08:00
browsercontext.spec.js feat(firefox): implement cookies api (#4076) 2019-02-26 16:24:30 -08:00
CDPSession.spec.js test: cleanup tests (#4078) 2019-02-26 20:36:55 -08:00
chromiumonly.spec.js test: split out all chromium-specific tests into chromiumonly.spec.js (#4068) 2019-02-25 12:51:06 -08:00
click.spec.js test: add a failing test that tries to click a fixed button in an iframe (#4130) 2019-03-06 18:46:40 -08:00
cookies.spec.js test: Change cookies unsecure test title (#4187) 2019-03-20 11:36:27 -07:00
coverage.spec.js test(coverage): add failing test for skipping all debugger statements (#3779) 2019-01-15 14:49:57 -08:00
dialog.spec.js test: split out dialog tests (#3586) 2018-11-20 20:18:57 -08:00
diffstyle.css Implement FrameManager 2017-06-21 14:11:52 -07:00
elementhandle.spec.js feat(firefox): support Page.emualteMedia (#4056) 2019-02-22 14:04:40 -08:00
emulation.spec.js feat(firefox): support Page.emualteMedia (#4056) 2019-02-22 14:04:40 -08:00
evaluation.spec.js feat(executioncontext): support bigints transferring (#4016) 2019-03-15 10:20:48 -07:00
fixtures.spec.js test: fix fixtures test when run with env DUMPIO=1 (#4123) 2019-03-13 16:26:28 -07:00
frame.spec.js test: make sure frames are reported from-inside shadow DOM (#4167) 2019-03-15 21:01:36 -07:00
golden-utils.js fix: set JPG background to white when omitBackground option is used (#3240) 2018-09-14 11:03:33 +01:00
headful.spec.js chore(test): prepare tests to be run with Puppeteer-Firefox (#3833) 2019-01-24 01:04:42 -05:00
ignorehttpserrors.spec.js feat(firefox): basic request interception support (#4034) 2019-02-19 14:51:56 -08:00
input.spec.js test: cleanup tests (#4078) 2019-02-26 20:36:55 -08:00
jshandle.spec.js fix(firefox): enable more firefox tests (#4007) 2019-02-13 23:59:38 -08:00
keyboard.spec.js fix(firefox): keyboard tests (#4082) 2019-02-27 15:13:17 -08:00
launcher.spec.js fix: gracefully handle multiple contexts for secondary DOM World (#4276) 2019-04-11 16:26:18 -04:00
mouse.spec.js fix(firefox): keyboard tests (#4082) 2019-02-27 15:13:17 -08:00
navigation.spec.js feat: support Response.buffer(), Response.json() and Response.text() (#4063) 2019-02-24 19:31:35 -08:00
network.spec.js fix: Use new requestId for interception request matching (#4248) 2019-04-08 14:17:57 -07:00
page.spec.js fix: cache disabling should stick when toggling request interception (#4260) 2019-04-10 00:42:42 -04:00
puppeteer.spec.js feat(firefox): page.accessibility.snapshot() (#4071) 2019-02-25 21:57:33 -08:00
queryselector.spec.js test: split queryselector tests into separate file (#3579) 2018-11-20 18:45:37 -08:00
run_static_server.js chore(testserver): prepare test server (#3294) 2018-09-24 12:46:39 -07:00
screenshot.spec.js fix(firefox): properly round clip when doing element screenshots (#4001) 2019-02-13 19:47:14 -08:00
target.spec.js feat(firefox): support Browser.target() (#4028) 2019-02-17 10:23:48 -08:00
test.js test: split out fixture tests and make them work with FF (#4067) 2019-02-25 12:40:17 -08:00
touchscreen.spec.js feat(firefox): implement Page.touchscreen (#4070) 2019-02-25 15:36:38 -08:00
tracing.spec.js chore(test): prepare tests to be run with Puppeteer-Firefox (#3833) 2019-01-24 01:04:42 -05:00
utils.js feat(firefox): Page.waitForRequest/Page.waitForResponse (#3989) 2019-02-12 19:10:14 -08:00
waittask.spec.js fix(firefox): enable more tests (#4037) 2019-02-19 22:36:02 -08:00
worker.spec.js chore(firefox): mark all Puppeteer tests that are failing on FF (#3924) 2019-02-05 22:32:41 -08:00