[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser] 164/311: Bug 1759706 - Ensure we initialize TexImageSourceAdapter::mOut_error for OffscreenCanvas. r=gfx-reviewers, nical a=dmeehan



This is an automated email from the git hooks/post-receive script.

pierov pushed a commit to branch geckoview-99.0.1-11.0-1
in repository tor-browser.

commit 8ef5a28d0417e75d0b340552388d1e94bae4166c
Author: Andrew Osmond <aosmond@xxxxxxxxxxx>
AuthorDate: Tue Mar 15 15:08:05 2022 +0000

    Bug 1759706 - Ensure we initialize TexImageSourceAdapter::mOut_error for OffscreenCanvas. r=gfx-reviewers,nical a=dmeehan
    
    The ErrorResult is actually used by FromOffscreenCanvas and setting this
    properly will avoid a crash.
    
    Differential Revision: https://phabricator.services.mozilla.com/D141103
---
 dom/canvas/ClientWebGLContext.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dom/canvas/ClientWebGLContext.h b/dom/canvas/ClientWebGLContext.h
index 84e6ac1d86c6b..7d19bcc11c072 100644
--- a/dom/canvas/ClientWebGLContext.h
+++ b/dom/canvas/ClientWebGLContext.h
@@ -682,8 +682,9 @@ struct TexImageSourceAdapter final : public TexImageSource {
   }
 
   TexImageSourceAdapter(const dom::OffscreenCanvas* offscreenCanvas,
-                        ErrorResult*) {
+                        ErrorResult* const out_error) {
     mOffscreenCanvas = offscreenCanvas;
+    mOut_error = out_error;
   }
 
   TexImageSourceAdapter(const dom::Element* domElem,

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits