Commit Graph

2141 Commits

Author SHA1 Message Date
Pavel Feldman
2bd427ad1d
feat(exposeBinding): a more powerful exposeFunction with source attribution (#2263) 2020-05-18 14:28:06 -07:00
Dmitry Gozman
40ea0dd23b
browser(firefox): make default viewport work in default context (#2277) 2020-05-18 09:47:40 -07:00
David Gilbertson
9e2733d520
docs(test-runners.md): add WebStorm comment (#2279) 2020-05-17 20:43:00 -07:00
David Gilbertson
125312f78b
docs(core-concepts.md): fix typo (#2273) 2020-05-17 08:58:33 -07:00
Yury Semikhatsky
74ba03b195
feat(webkit): bump revision to 1235 (#2262) 2020-05-15 17:36:40 -07:00
Dmitry Gozman
4bf5742d47
fix(chromium): abort fetch requests that lack networkId (#2254)
These requests are usually internal ones, and we can safely abort them.
An example would be DevTools loading cached resources to show the content.
There will never be a matching Network.requestWillBeSent event, so we do not
report them to the user.
2020-05-15 15:22:29 -07:00
Pavel Feldman
99b7aaace8
chore: refactor injected script harness (#2259) 2020-05-15 15:21:49 -07:00
Yury Semikhatsky
9c7e43a83b browser(webkit): roll to 05/15/20 (#2260) 2020-05-15 13:47:23 -07:00
Arjun Attam
73a2612793
docs: fix webkit badge 2020-05-15 11:42:26 -07:00
Joel Einbinder
04aae1c063
chore(electron): mark version 0.3.0 (#2255) 2020-05-14 23:13:06 -07:00
Joel Einbinder
5a883a5877
browser(firefox): support internal drag and drop (#2243) 2020-05-14 18:30:02 -07:00
Andrey Lushnikov
a38ac3fb62
fix: report hash in page.url() (#2252)
Fixes #2247
2020-05-14 17:23:19 -07:00
Andrey Lushnikov
e035bf3b33
fix: update webkit version (#2250)
Fix #2245
2020-05-14 16:47:18 -07:00
Yury Semikhatsky
4d27aadb13
browser(webkit): fix compilation on Mac (#2253) 2020-05-14 16:45:39 -07:00
Yury Semikhatsky
8fb2c7e8fa
browser(webkit): fix compilation on Win (#2251) 2020-05-14 16:29:07 -07:00
Yury Semikhatsky
2073bcb867
browser(webkit): fix compilation on Mac (#2249) 2020-05-14 16:14:09 -07:00
Yury Semikhatsky
f743cd9763
browser(webkit): introduce screencast agent in web process (#2248) 2020-05-14 15:48:05 -07:00
Dmitry Gozman
63cc126805
fix(webkit): do not swallow init errors (#2242)
This is a speculative fix to the following issue from the bots:

NON-TEST ERROR #0: UNHANDLED ERROR
  TypeError: Cannot read property 'url' of undefined
      at WKPage._onTargetCreated (/Users/runner/runners/2.169.1/work/playwright/playwright/src/webkit/wkPage.ts:274:12)
      at process._tickCallback (internal/process/next_tick.js:68:7)

I assume that _initializeSession did swallow an error, so we erroneously
consider Page to be fully initialized (and having main frame).
2020-05-14 15:43:23 -07:00
Dmitry Gozman
e8e761f77f
chore: use internal BrowserOptions to unify browsers (#2230) 2020-05-14 13:22:33 -07:00
Dmitry Gozman
696b40a508
docs: update click.md 2020-05-14 10:44:20 -07:00
Pavel Feldman
919659a66b
browser(webkit): roll to r1230 (#2241) 2020-05-14 10:41:52 -07:00
Pavel Feldman
17286ab712
feat(webkit): roll to r1228 (#2232) 2020-05-14 07:57:29 -07:00
Pavel Feldman
62ae079035
browser(webkit): destroy main window after the view (#2233) 2020-05-13 22:54:43 -07:00
Dmitry Gozman
76e106605f
fix(screenshot): use innerW/H instead of offsetW/H to determine viewport size (#2229)
When capturing a screenshot with null viewport, we determine the screenshot size
based on body.offsetHeight. This is a very large number for long pages. We should
use window.innerHeight instead.
2020-05-13 20:53:11 -07:00
Joel Einbinder
dbef7de42a
feat(electron): types (#2231) 2020-05-13 20:51:53 -07:00
Pavel Feldman
5c43fb4a96
browser(webkit): unfork windows bits (#2228) 2020-05-13 19:28:59 -07:00
Dmitry Gozman
2bca64a023
test: mark failing headful tests as such (#2226) 2020-05-13 18:33:07 -07:00
Pavel Feldman
a4b670464e
test: update download test failure expectation (#2225) 2020-05-13 18:32:43 -07:00
Pavel Feldman
34373b3ace
browser(webkit): compute non-header suggested name on windows (#2227) 2020-05-13 18:24:05 -07:00
Dmitry Gozman
650d73445c
fix(actions): do not wait for the created popups (#2219)
Since we are recommending Promise.all pattern anyway, this special
logic just adds to the possibility of timeout if something goes wrong.

For example, Firefox sometimes send Page.willOpenNewWindowAsynchronously
later than the new target arrives and input action just hangs.
2020-05-13 17:20:33 -07:00
Dmitry Gozman
884860b803
test: unflake launcher test (#2224)
We throw an exception and then gracefully close the browser.
If something went wrong, we should timeout before the test times out,
kill the process and report the original exception.
2020-05-13 17:19:07 -07:00
Yury Semikhatsky
03cae92ff2
browser(webkit): remove BackendDispatcher::Mode (#2223) 2020-05-13 16:46:25 -07:00
Yury Semikhatsky
e081ba7256
chore: improve error message (#2222) 2020-05-13 15:57:26 -07:00
Yury Semikhatsky
d611ca9278
browser(webkit): do not transform about:blank to about:///blank (#2221) 2020-05-13 15:35:43 -07:00
Dmitry Gozman
e96e471e40
docs: draft for the various click scenarios doc (#2218) 2020-05-13 15:15:14 -07:00
Pavel Feldman
f63ea3ffd2
feat(downloads): expose suggested filename (#2062) 2020-05-12 19:23:08 -07:00
Arjun Attam
84f966c301
docs: fix typo 2020-05-12 18:32:47 -07:00
Dmitry Gozman
072dcba94a
api(viewport): do not allow isMobile and deviceScaleFactor for null viewports (#2190)
Also make sure we do not alter viewport when passed null.
2020-05-12 18:31:17 -07:00
Dmitry Gozman
6361e07ae4
fix(docs): clarify repeating calls to setHTTPCredentials (#2212) 2020-05-12 18:29:55 -07:00
Andrey Lushnikov
1f3f42a905
devops: remove custom caching on travis (#2215)
Travis custom-caching seems to be unfortunate for us as it disables
`~/.npm` caching. Removing it.

Fixes #2191
2020-05-12 16:49:28 -07:00
Yury Semikhatsky
f10e8c4d47
chore(chromium): nicer error when running as root without --no-sandbox (#2214) 2020-05-12 16:43:15 -07:00
Andrey Lushnikov
5d49c5d612
docs: refer to "working with selectors" from all 'selector' arguments (#2213)
The "working with selectors" section elaborates on rules that we use
to parse selectors.

Fixes #2197
2020-05-12 16:15:14 -07:00
Pavel Feldman
8b5e4398b1 docs: update electron docs 2020-05-12 15:57:53 -07:00
Andrey Lushnikov
b4acc56d63
docs(api.md): elaborate on visibility options in waitForSelector (#2208)
Fixes #2202
2020-05-12 15:46:19 -07:00
Pavel Feldman
624ca4d85d
chore: restore copyright for SerializedAXNode type 2020-05-12 15:33:51 -07:00
Pavel Feldman
414ae0025e
fix(electron): handle in-event await errors (#2207) 2020-05-12 15:28:37 -07:00
Yury Semikhatsky
ebceaf4328
chore: make prepare_checkaout update browser_upstream/master (#2209) 2020-05-12 15:20:12 -07:00
Dmitry Gozman
28845e5ccc
feat(firefox): bump and use context setters (#2194) 2020-05-12 15:13:48 -07:00
Pavel Feldman
cb465bc698
fix(abort): abort waiting with error upon disconnect (#2204) 2020-05-12 13:38:24 -07:00
Pavel
54b056bddb chore: make electron permanently depend on playwright-core@next 2020-05-12 09:20:55 -07:00