Closed Bug 1715690 Opened 3 years ago Closed 3 years ago

Bucket WebGL RENDERER strings

Categories

(Core :: Graphics: CanvasWebGL, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: jgilbert, Assigned: jgilbert)

References

(Regressed 1 open bug)

Details

Attachments

(1 file, 2 obsolete files)

While RENDERER is useful, it also exposes more info than necessary. E.g. there's no strong reason for websites to see that a user has a RTX 3070 instead of an RTX 3060. It is, however, useful to distinguish e.g. an 8800 GTX from a 1080, and websites can probably already distinguish them somewhat based on extensions, limits, and possibly rendering differences.

My goal here is to roughly bucket things, but neither too coarse nor too fine.

After we have something safer like this, we might want to consider replacing webgl's RENDERER with this bucketized UNMASKED_RENDERER, disable the extension by default, and let UNMASKED_RENDERER return the real RENDERER again.

I'm hesitant though, since I expect many websites don't even bother with RENDERER, and just jump to UNMASKED_RENDERER-or-bust. For example, Safari does always return the same "Apple GPU" for all GPUs, this is still its UNMASKED_RENDERER. Its RENDERER is still "WebKit WebGL".

  • Minor reduction in unused flexibility of limits.
  • Minor reduction in unused flexibility of limits.
  • Minor reduction in unused flexibility of limits.
Attachment #9226430 - Attachment is obsolete: true
Attachment #9226431 - Attachment is obsolete: true
Pushed by jgilbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/67b696ec70a9
Generalize WebGL RENDERER into large buckets. r=lsalzman

Backed out for causing build bustages on SanitizeRenderer.cpp.

Push with failures

Failure log

Backout link

Flags: needinfo?(jgilbert)
Pushed by jgilbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/45887183c584
Generalize WebGL RENDERER into large buckets. r=lsalzman
Pushed by jgilbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/40a0274fbc99
Generalize WebGL RENDERER into large buckets. r=lsalzman
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
Blocks: 1722113
Flags: needinfo?(jgilbert)
Regressions: 1726977
Regressions: 1730846
See Also: → 1736389
See Also: → 1784543
See Also: → 1908088
See Also: → 1916271
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: