playwright/browser_patches/firefox-beta/juggler/screencast
Yury Semikhatsky 02aa31048c
browser(firefox): cross thread sync in screencast (#16320)
* nsIScreencastServiceClient is not thread safe refcounted so we make nsScreencastService::Session a thread safe refcounted object and keep it alive while there are inflight frames. Once such frames get handled on the main thread we check if the session has been stopped.
* Removed mCaptureCallbackCs in favor of atomic counter (mClient is not accessed only on the main thread).
* HeadlessWindowCapturer now holds RefPtr to the headless window object to avoid use after free when clearing it as a listener on the widget.
* ScreencastEncoder is not ref counted anymore.

Pretty-diff: 5f5042ff1e
2022-08-05 15:25:26 -07:00
..
components.conf chore: swap firefox-stable and firefox (#6950) 2021-06-07 17:05:51 -07:00
HeadlessWindowCapturer.cpp browser(ff-beta): roll Firefox-Beta to 103.0b5 (#15394) 2022-07-05 15:47:35 -07:00
HeadlessWindowCapturer.h browser(firefox): cross thread sync in screencast (#16320) 2022-08-05 15:25:26 -07:00
moz.build browser(firefox-beta): roll Firefox beta to 96.0b5 (#10924) 2021-12-14 23:24:25 -08:00
nsIScreencastService.idl chore: swap firefox-stable and firefox (#6950) 2021-06-07 17:05:51 -07:00
nsScreencastService.cpp browser(firefox): cross thread sync in screencast (#16320) 2022-08-05 15:25:26 -07:00
nsScreencastService.h browser(firefox): cross thread sync in screencast (#16320) 2022-08-05 15:25:26 -07:00
ScreencastEncoder.cpp browser(firefox): cross thread sync in screencast (#16320) 2022-08-05 15:25:26 -07:00
ScreencastEncoder.h browser(firefox): cross thread sync in screencast (#16320) 2022-08-05 15:25:26 -07:00
WebMFileWriter.cpp chore: swap firefox-stable and firefox (#6950) 2021-06-07 17:05:51 -07:00
WebMFileWriter.h chore: swap firefox-stable and firefox (#6950) 2021-06-07 17:05:51 -07:00