-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wptrunner] Fix
--leak-check
plumbing for some Chrome-based products
Forward-fixes #47850 `ChromeBrowser` plumbs `--leak-check` via `ExecutorBrowser`, a view of the browser (settings) from the executor process. Unfortunately, this broke `ChromeDriverPrintRefTestExecutor` for `ChromeAndroidBrowserBase` subclasses, since they inherit from `WebDriverBrowser`, not `ChromeBrowser`, and therefore don't receive the plumbing. Fix the layering by passing `--leak-check` to the `WebDriver*Executor`s directly where the setting is consumed (disabled by default). Also, introduce `ProtocolPart.after_connect()` so that the part can call other parts after they're initialized. This avoids a hidden invariant that `BaseProtocolPart` must be defined before `LeakProtocolPart`.
- Loading branch information
1 parent
6335957
commit 383a754
Showing
4 changed files
with
28 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters