This website requires JavaScript.
Explore
Help
Register
Sign In
Filip
/
playwright
Watch
1
Star
0
Fork
You've already forked playwright
0
Code
Issues
Pull requests
Actions
Packages
Projects
Releases
Wiki
Activity
ab2714ed29
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 11:10:34 +02:00
1176
Changed: lushnikov@chromium.org Wed Sep 30 03:06:09 MDT 2020
Reference in a new issue
Copy permalink