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
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
nsIScreencastService.idl
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
WebMFileWriter.h