[tbb-commits] [tor-browser] 164/311: Bug 1759706 - Ensure we initialize TexImageSourceAdapter::mOut_error for OffscreenCanvas. r=gfx-reviewers, nical a=dmeehan
gitolite role
git at cupani.torproject.org
Tue Apr 26 15:29:24 UTC 2022
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 at mozilla.com>
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.
More information about the tbb-commits
mailing list