821 Commits

Author SHA1 Message Date
q66
184b6baa7a
browser(webkit): rebase to 07/15/22 (#15714) 2022-07-19 08:16:15 +02:00
Andrey Lushnikov
1d415312fe
browser(webkit): fix JHBuild on Ubuntu 20.04 (#15683)
Turns out Ubuntu 20.04 has both `libenchant` and `libenchant-2`.
To keep compiling against `libenchant` everywhere it exists,
we change the `aptIfElse` helper method to pick one or another.
2022-07-14 16:43:36 -07:00
Andrey Lushnikov
80bcfe70ec
browser(webkit): fix JHBuild on Debian 11 (#15653)
This patch:
* fixes bash script bug: at least in bash 5, assignment to a **local**
  variable overwrites the `$?` code, so the following condition is never true.
* adds the `libenchant-2-dev` library

Pretty diff: ff6e976044
2022-07-14 06:04:03 -07:00
Andrey Lushnikov
c39df3695a
devops: add WebKit debian 11 build configuration (#15652) 2022-07-14 05:19:27 -07:00
Andrey Lushnikov
38f8c92a28
devops: do not dedupe webkit archives (#15565)
The 2e331715ff7b304529a7ce65a98184681eceaab9 introduced
universal webkit build and tried re-using archive deduping technique
across all our regular JHBuild-based builds.

However, this turns out to be too aggressive and doesn't work. At least
on Ubuntu 18.04:
- `minibrowser-gtk/minibrowser` is identical to
  `minibrowser-wpe/minibrowser`
- WPE gets symlinked into GTK
- Thus we now always start headed
2022-07-12 04:15:27 -07:00
Andrey Lushnikov
d93abcbe42
devops: fix webkit builds (#15546)
This patch:
* removes "deterministic" argument from `rdfind` on Ubuntu 18.04.
  `rdfind` is a new addition, but it's nice to have since it saves 10%
  of the archive size.
* drops `stdc++fs` from dependencies. This doesn't seem to be necessary
  for JHBuild but breaks universal build.

Pretty diff: 256392e8c4
2022-07-11 14:40:23 -07:00
Andrey Lushnikov
67a2f948fd
chore: add missing webkit-mac-11 expected build (#15535) 2022-07-11 07:12:14 -07:00
Andrey Lushnikov
fd1fae97b1
browser(webkit): fix build on Ubuntu 18.04 (#15529)
Turns out default GnuTLS on Ubuntu 18.04 is 3.5.18, so we should
use OpenSSL.

The glib-networking backend selector condition is thus incorrectly
compares version triplets.
2022-07-11 06:01:34 -07:00
Andrey Lushnikov
2e331715ff
devops: support universal webkit builds (#15496) 2022-07-08 16:27:53 -07:00
Yury Semikhatsky
4b4f23fdb8
browser(webkit): replace wpe pasteboard with a hashmap (#15506) 2022-07-08 15:07:39 -07:00
Yury Semikhatsky
be4f27d685
browser(webkit): introduce Runtime.addBinding/bindingCalled (#15468)
References #14745
Pretty-diff: yury-s/WebKit@25c42a1
2022-07-07 12:58:22 -07:00
Max Schmitt
bc4463c472
browser(webkit): disable WebKit PDF viewer (#15462) 2022-07-07 20:13:48 +02:00
Yury Semikhatsky
cc45ac91f5
browser(webkit): grant pasteboard read access for input edit commands (#15390)
This is what WebPageProxy::executeEditCommand does via WebPageProxy::willPerformPasteCommand.

Refs: #8114, #12000
Pretty-diff: yury-s/WebKit@4213f02
2022-07-05 14:14:28 -07:00
Diego Pino
16c9c8a06d
browser(webkit): rebase to 06/30/22 (252021@main) (#15297) 2022-07-01 13:32:42 -07:00
Yury Semikhatsky
a5ddf560e9
browser(webkit): restore old process cache logic (#15249)
Revert https://github.com/microsoft/playwright/pull/15021. Apparently there is another leak of WPEWebProcess even with the upstream fix as [the tests failed ](https://github.com/microsoft/playwright/runs/7120162355?check_suite_focus=true)on the bots on attempt to roll to wk 1669.

Pretty-diff: 2b480bc4d0
2022-06-29 16:33:51 -07:00
Yury Semikhatsky
2a01d0c83c
browser(webkit): build Playwright.app in workspace mode (#15161)
WebKit switched to workspace builds by default upstream in c67ee46115 and Playwright.app project (forked from MiniBrowser.app xcode project) was not a part of the workspace. This PR:

* Adds Tools/Playwright project to the WebKit workspace;
* Adds WebKit.framework to the list of dependencies of Playwright.app (I managed to successfully build without this modification but decided to added to be on the safe side as that was done upstream too);
* Removes `--no-use-workspace` in order to use workspace build mode which is the default upstream.

Pretty-diff: 75f1e79447
2022-06-28 12:30:01 -07:00
Diego Pino
d152f7957a
browser(webkit): rebase to 06/27/22 (251866@main) (#15150) 2022-06-27 11:17:11 -07:00
Diego Pino
e5cf11cb68
browser(webkit): rebase to 06/23/22 (r295757) (#15058) 2022-06-23 09:12:37 -07:00
Yury Semikhatsky
c8e4e737a7
browser(webkit): unfork web process cache (#15021)
Web process leak was fixed upstream by WebKit/WebKit@364ed4f and our workaround is no longer needed.

Pretty-diff: yury-s/WebKit@a1a66a5
2022-06-21 13:47:29 -07:00
Andrey Lushnikov
b648f08821
browser(webkit): fix Ubuntu arm64 build (#15004)
pretty diff: f5183cc210
2022-06-21 03:12:50 -07:00
Diego Pino
2f31e6373a
devops: build WebKit for Mac using --no-use-workspace flag (#14952)
Currently, Mac WebKit builds are failing in CI. It seems this is a regression in upstream WebKit as I'm able to reproduce it in my local environment. 

The error is the following:

``` 
usr/bin/codesign --force --sign - --timestamp\=none --preserve-metadata\=identifier,entitlements,flags --generate-entitlement-der /Users/playwright/webkit/WebKitBuild/Release/InjectedBundleTestWebKitAPI.bundle/Contents/Resources/WebKit.framework
/Users/playwright/webkit/WebKitBuild/Release/InjectedBundleTestWebKitAPI.bundle/Contents/Resources/WebKit.framework: replacing existing signature
/Users/playwright/webkit/WebKitBuild/Release/InjectedBundleTestWebKitAPI.bundle/Contents/Resources/WebKit.framework: unsealed contents present in the root directory of an embedded framework
Command CodeSign failed with a nonzero exit code
```

Bisecting the regression it seems the build started failing on [r295496](https://trac.webkit.org/changeset/295496/webkit)

This changeset also introduced a new flag, _--no-use-workspace__, which allows to build not using WebKit.xcworkspace (I understand this is how builds were done before this changeset). Building with  _--no-use-workspace_ fixes builds for Mac.
2022-06-17 08:40:58 -07:00
Diego Pino
f91b3bb340
browser(webkit) rebase to 06/15/22 (r295573) (#14900) 2022-06-15 17:56:09 -07:00
Diego Pino
6a78500f4d
browser(webkit): rebase to 06/12/22 (r295478) (#14815)
I skipped the Windows specific files this time. I added an extra commit to fix dependencies update in Ubuntu 18.04.

All changes in this PR:

chore(webkit): bootstrap build #1665
[GLIB] Fix build error after r295446
[JHBuild] Fix error use OpenSSL backend when gnutls available in the …
2022-06-13 18:58:23 -07:00
Yury Semikhatsky
dae017c386
browser(webkit): scale down image only if it is larger than screencast frame (#14848)
It fixes should produce screencast frames fit test on macOS in headed mode.

Pretty-diff: yury-s/WebKit@4b7a793
2022-06-13 15:41:33 -07:00
Andrey Lushnikov
e866267917
browser(webkit): fix Ubuntu arm64 build of WebKit (#14753)
Pretty diff: 91e063b839

Credits go to @dpino!

Fixes #14236
2022-06-10 02:08:26 -07:00
Yury Semikhatsky
951ef118c7
browser(webkit): fix mac build - remove unused variable (#14762) 2022-06-09 12:20:28 -07:00
Yury Semikhatsky
686331e5c8
browser(webkit): fix mac build after roll (#14761) 2022-06-09 12:12:37 -07:00
Yury Semikhatsky
6452ac86ff
browser(webkit): roll to 06/09/22 (#14756)
Switched to HTTPCookieStore as the WebCookieManagerProxy was removed in r295365

Pretty-diff: 28eaed1711
2022-06-09 09:38:21 -07:00
Andrey Lushnikov
2b33f76825
browser(webkit): support larger-than-screen window in headed WebKit (#14578) 2022-06-09 06:51:33 -07:00
Max Schmitt
7fc752ef0a
browser(webkit): fix compilation on Ubuntu 22 (#14710) 2022-06-08 19:27:13 +02:00
Yury Semikhatsky
b2d0fae3b1
browser(webkit): restore previous process cache logic (#14695) 2022-06-07 16:38:15 -07:00
Max Schmitt
19dd1f0542
browser(webkit): fix build on Ubuntu 22 (#14674) 2022-06-07 17:34:22 +02:00
Diego Pino
407c4a6e77
WIP: browser(webkit): follow-up after #14664 (#14673)
browser(webkit): follow-up after #14664
2022-06-07 05:03:00 -07:00
Max Schmitt
a800026fc5
devops: add WebKit builds on ubuntu 22 (#14589) 2022-06-07 11:33:18 +02:00
Diego Pino
8202030c60
browser(webkit): rebase to 06/06/22 (r295283) (#14664) 2022-06-06 09:09:28 -07:00
Yury Semikhatsky
789f319eda
browser(webkit): fix curl compilation after recent roll (#14603)
WebSocketTaskCurl.cpp has been implemented upstream since last roll. We now pass ignoreCertificateErrors to it similar to other platforms. This should fix Curl compilation errors on windows.

Pretty-diff: yury-s/WebKit@48cd095
2022-06-02 16:03:00 -07:00
Diego Pino
9ea89d585c
browser(webkit): rebase to 05/31/22 (r295073) (#14556) 2022-06-01 15:15:55 -07:00
Diego Pino
a38c844d71
browser(webkit): rebase to 05/26/22 (r294871) (#14423) 2022-05-26 08:33:17 -07:00
Yury Semikhatsky
df63987eed
browser(webkit): follow-up to recent roll (#14356) 2022-05-23 11:01:50 -07:00
Yury Semikhatsky
2733bcab0b
browser(webkit): delete initiatorIdentifierForEventSource (#14351) 2022-05-23 10:52:52 -07:00
Diego Pino
64c949f5e8
browser(webkit): rebase to 05/20/22 (r294541) (#14319) 2022-05-23 09:19:25 -07:00
Yury Semikhatsky
b58088c9eb
browser(webkit): fix COOP preference after #14087 (#14315) 2022-05-20 14:07:59 -07:00
Yury Semikhatsky
92c02fcaff
browser(webkit): fix process swap related error message in WPE (#14263)
This PR fixes the following error message in WPE:
```
[pid=506430][err] (MiniBrowser:506435): GLib-GObject-CRITICAL **: 11:47:23.538: g_object_new_is_valid_property: object class 'WebKitWebContext' has no property named 'process-swap-on-cross-site-navigation-enabled' +0ms
```

Our changes to WPE port that added support for the parameter were removed in 5a3fae4c5a0703399f5dd8a59076a5e15d361871 as PSON is enabled by default in WPE (see https://bugs.webkit.org/show_bug.cgi?id=240052) and we don't need to set this explicitly in our fork.

Pretty diff: fc28e40f36
2022-05-18 13:01:46 -07:00
Yury Semikhatsky
6e3b065bbe
browser(webkit): fix use after free when context is being destroyed (#14262)
OverridenGeolocationProvider can be destroyed after BrowserContext. Since the provider is owned by WebGeolocationManagerProxy we now store weak pointer to it in the browser context.

Refs: #14081
2022-05-18 11:44:21 -07:00
Yury Semikhatsky
f876a86553
browser(webkit): use WebCookieManager to manipulate cookies (#14206) 2022-05-16 17:54:41 -07:00
Yury Semikhatsky
9159ceafb5
browser(webkit): revert last change and reapply it properly (#14197) 2022-05-16 09:20:34 -07:00
Yury Semikhatsky
b22766f840
browser(webkit): clear extra http headers on successive calls (#14152) 2022-05-13 14:18:05 -07:00
Diego Pino
0558c6c18d
browser(webkit): rebase to 05/11/22 (r294047) (#14087) 2022-05-11 11:11:15 -07:00
Andrey Lushnikov
cff3f31bc8
devops: fallback to xcode 13.2 for webkit (#14052)
Turns out we should use minimal possible xcode on MacOS 12
to compile WebKit: if we use xcode 13.3, then webkit fails
on MacOS 12.2.
2022-05-10 04:05:06 -07:00
Yury Semikhatsky
65d025d82c
browser(webkit): revert upstreamed build fixes (#13978) 2022-05-05 12:45:31 -07:00