try to fix pbs proxy issue (#3375)

This commit is contained in:
LawyZheng
2025-09-05 16:19:10 +08:00
committed by GitHub
parent fb7bc7aa04
commit 115c46ff8b

View File

@@ -662,7 +662,7 @@ class BrowserState:
pages = [
http_page
for http_page in self.browser_context.pages
if urlparse(http_page.url).scheme in ["http", "https"]
if http_page.url == "about:blank" or urlparse(http_page.url).scheme in ["http", "https"]
]
if len(pages) > 0:
page = pages[0]