Bug 276225
| Summary: | [WPE][WebDriver] WebKitWebView warn if current WebContext doesn't allow automation for automated views | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Lauro Moura <lmoura> |
| Component: | WPE WebKit | Assignee: | Lauro Moura <lmoura> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | bugs-noreply |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Lauro Moura
The usual way of setting up automation in WebKitGTK/WPEWebkit is to first call `webkit_web_context_is_automation_allowed` and then create `WebKitWebViews` with `is-controlled-by-automation` enabled.
This ensures the `WebKitWebContext` will create ephemeral network sessions (and thus ephemeral data directories) for the automated sessions, as usually expected.
For now, we could just put a warning/critical message, without enforcing it.
In another commit, we can start enforcing the ephemeral sessions while providing a capability/flag to allow persistent automated sessions.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Lauro Moura
Pull request: https://github.com/WebKit/WebKit/pull/30491
EWS
Committed 280695@main (1a21c42e7e1c): <https://commits.webkit.org/280695@main>
Reviewed commits have been landed. Closing PR #30491 and removing active labels.