Bug 1894958: Render more complex WebGL canvases r=timhuang,sylvestre,frontend-codestyle-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D209595
This commit is contained in:
Tom Ritter 2024-06-05 02:04:39 +00:00
parent de531f8443
commit 22bfbc6ea9
9 changed files with 413 additions and 0 deletions

View File

@ -1447,6 +1447,7 @@ toolkit/components/normandy/vendor/
toolkit/components/passwordmgr/PasswordRulesParser.sys.mjs
toolkit/components/protobuf/
toolkit/components/reader/readability/
toolkit/components/resistfingerprinting/content/gl-matrix.js
toolkit/components/translation/cld2/
toolkit/components/translations/bergamot-translator/thirdparty
toolkit/components/translations/bergamot-translator/bergamot-translator.js

View File

@ -0,0 +1,19 @@
Copyright (c) 2015-2021, Brandon Jones, Colin MacKenzie IV.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,20 @@
schema: 1
bugzilla:
product: "Core"
component: "Privacy: Anti-Tracking"
origin:
name: "gl-matrix"
description: "High performance matrix and vector operations"
url: "https://github.com/toji/gl-matrix/tree/master"
license: "MIT"
license-file: "gl-matrix.LICENSE"
release: 2.7.0
revision: b836df92c5a959ebf766b53d50148123d0844db4
notes: >
This library is not exposed to attacker input and indeed only given fixed input from usercharacteristics.js
so although it is out of date, this is not a concern.

View File

@ -196,7 +196,31 @@
</tr>
</table>
</div>
<div>
<h3>WebGL Canvas</h3>
<canvas
class="testcanvas"
width="250"
height="250"
id="glcanvas"
></canvas>
<table>
<tr>
<td>ImageData:</td>
<td>
<input
type="text"
name="glcanvasdata"
id="glcanvasdata"
readonly
/>
</td>
</tr>
</table>
</div>
</div>
<script src="chrome://global/content/usercharacteristics/gl-matrix.js"></script>
<script src="chrome://global/content/usercharacteristics/usercharacteristics.js"></script>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,7 @@
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
toolkit.jar:
content/global/usercharacteristics/gl-matrix.js (content/gl-matrix.js)
content/global/usercharacteristics/usercharacteristics.css (content/usercharacteristics.css)
content/global/usercharacteristics/usercharacteristics.html (content/usercharacteristics.html)
content/global/usercharacteristics/usercharacteristics.js (content/usercharacteristics.js)

View File

@ -3628,6 +3628,7 @@ SOFTWARE.
<li><code>third_party/rust/void</code></li>
<li><code>js/src/zydis</code> (unless otherwise specified)</li>
<li><code>js/src/vm/Float16.h</code>(the code contained in the half namespace)</li>
<li><code>toolkit/components/resistfingerprinting/content/gl-matrix.js</code></li>
</ul>
See the individual LICENSE files or headers for copyright owners.</p>

View File

@ -189,6 +189,7 @@ toolkit/components/normandy/vendor/
toolkit/components/passwordmgr/PasswordRulesParser.sys.mjs
toolkit/components/protobuf/
toolkit/components/reader/readability/
toolkit/components/resistfingerprinting/content/gl-matrix.js
toolkit/components/translation/cld2/
toolkit/components/translations/bergamot-translator/thirdparty
toolkit/components/translations/bergamot-translator/bergamot-translator.js