This website requires JavaScript.
Explore
Help
Register
Sign In
yujunjun
/
playwright
Watch
1
Star
0
Fork
0
You've already forked playwright
mirror of
https://github.com/microsoft/playwright.git
synced
2025-06-26 21:40:17 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
playwright
/
browser_patches
/
firefox
/
BUILD_NUMBER
3 lines
66 B
Plaintext
Raw
Normal View
History
Unescape
Escape
browser(firefox): simplify PageTarget lifecycle (#4014) As of today, we create `PageTarget` instances whenever we get a sync IPC from the content process. This, however, breaks an invariant that `browserContext.pages` always has all pages (and *browsing contexts* - not to be confused with *browser contexts*), associated with browser context. This invariant will be especially important when we move user agent emulation to browser-side. This patch makes `PageTarget` lifecycle symmetrical: - `PageTarget` instance is created when tab is opened - `PageTarget` is destroyed when tab is crashed or closed This should also fix a bunch of race conditions with persistent mode, since sometimes we arrive to the window after its initialization. Drive-by: straighten viewport management and put a nice descriptive comment.
2020-09-30 02:10:34 -07:00
1176
Changed: lushnikov@chromium.org Wed Sep 30 03:06:09 MDT 2020
Reference in New Issue
Copy Permalink