Closed Bug 1899874 Opened 8 months ago Closed 6 months ago

Implement forceSoftwareRendering for canvas contextes

Categories

(Core :: Privacy: Anti-Tracking, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox129 --- wontfix
firefox130 --- wontfix
firefox131 --- fixed

People

(Reporter: tjr, Assigned: fkilic)

References

Details

Attachments

(2 files)

In addition to Bug 1894958, we would like to collect the same canvases; rendered with software rendering. We have long assumed that software-rendering canvases would remove entropy from the result; but we need to validate this.

willReadFrequently does basically what we want for Canvas2D;
however it won't work on Windows and it doesn't exist for WebGL

So we will just add our own (privileged) attribute we can set

willReadFrequently already implies this; however that can't
be enabled on Windows. We can use our own attribute to control
the value as it plumbs into the depths of Canvas2D

Assignee: nobody → fkilic
Status: NEW → ASSIGNED
Blocks: 1900828
Summary: Collect software-rendered test canvas renderings → Implement forceSoftwareRendering for canvas contextes
Attachment #9404880 - Attachment description: WIP: Bug 1899874: Add a privileged forceSoftwareRendering attribute to Canvas Attributes → Bug 1899874: Add a privileged forceSoftwareRendering attribute to Canvas Attributes. r?jgilbert
Attachment #9404881 - Attachment description: WIP: Bug 1899874: Plumb forceSoftwareRendering down the stack → Bug 1899874: Plumb forceSoftwareRendering down the stack. r?jgilbert
Pushed by tihuang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b73df6e562de Add a privileged forceSoftwareRendering attribute to Canvas Attributes. r=jgilbert,webidl,smaug https://hg.mozilla.org/integration/autoland/rev/693209b2919f Plumb forceSoftwareRendering down the stack. r=jgilbert

Backed out for causing multiple failures.


  • Push with failures - build bustages
  • Failure Log
  • Failure line: /builds/worker/checkouts/gecko/gfx/gl/GLContextProviderWGL.cpp(475,8): error: no viable conversion from 'mozilla::CastableTypedEnumResult<CreateContextFlags>' to 'bool'


Pushed by tihuang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/347c3fe4a18f Add a privileged forceSoftwareRendering attribute to Canvas Attributes. r=jgilbert,webidl,smaug https://hg.mozilla.org/integration/autoland/rev/cd0e7d18bbff Plumb forceSoftwareRendering down the stack. r=jgilbert
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
Regressions: 1906687

Backed out, It is crashing the browser on windows and linux, Bug 1906687.

Status: RESOLVED → REOPENED
Flags: needinfo?(fkilic)
Resolution: FIXED → ---

Updated revisions to fix the crashing issue. Thank you!

Flags: needinfo?(fkilic)
Pushed by fkilic@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0755e1ce963d Add a privileged forceSoftwareRendering attribute to Canvas Attributes. r=jgilbert,webidl,smaug https://hg.mozilla.org/integration/autoland/rev/373176b6f4ad Plumb forceSoftwareRendering down the stack. r=jgilbert
Status: REOPENED → RESOLVED
Closed: 7 months ago6 months ago
Resolution: --- → FIXED

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

Was backed out of Firefox 129

Target Milestone: 129 Branch → 131 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: