Closed Bug 1072107 Opened 10 years ago Closed 2 years ago

support the CSS Font Loading API in workers

Categories

(Core :: CSS Parsing and Computation, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: heycam, Assigned: aosmond)

References

(Regressed 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(9 files, 3 obsolete files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
Once we support canvas in workers, we should get the CSS Font Loading API working there too.
Blocks: 1746750
No longer blocks: 1746750
Assignee: nobody → aosmond
Severity: normal → N/A
Type: defect → enhancement
Priority: -- → P2

I'm in the process of refactoring FontFace/FontFaceSet and related to support this.

Blocks: 1765545
No longer depends on: 2D-OffscreenCanvas
Depends on: 1771493

Depends on D149242

Also update thread assertions.

Depends on D149252

Attachment #9281186 - Attachment description: WIP: Bug 1072107 - Part 1. Expose bypass cache and private browsing states to workers. → Bug 1072107 - Part 1. Expose bypass cache and private browsing states to workers.
Attachment #9281187 - Attachment description: WIP: Bug 1072107 - Part 2. Expose URLExtraData on workers. → Bug 1072107 - Part 2. Expose URLExtraData on workers.
Attachment #9281188 - Attachment description: WIP: Bug 1072107 - Part 3. Expose method to load user fonts from workers. → Bug 1072107 - Part 3. Expose method to load user fonts from workers.
Attachment #9281189 - Attachment description: WIP: Bug 1072107 - Part 4. Expose FontFaceSet on nsIGlobalObject. → Bug 1072107 - Part 4. Expose FontFaceSet on nsIGlobalObject.
Attachment #9281190 - Attachment description: WIP: Bug 1072107 - Part 5. Skip logging to the console for workers right now → Bug 1072107 - Part 5. Skip logging to the console for workers right now
Attachment #9281201 - Attachment description: WIP: Bug 1072107 - Part 6. Provide worker variant of FontFaceSetImpl. → Bug 1072107 - Part 6. Provide worker variant of FontFaceSetImpl.
Attachment #9281202 - Attachment description: WIP: Bug 1072107 - Part 7. Dispatch font calls and callbacks as necessary. → Bug 1072107 - Part 7. Dispatch font calls and callbacks as necessary.
Attachment #9281203 - Attachment description: WIP: Bug 1072107 - Part 8. Expose FontFaceSet on workers. → Bug 1072107 - Part 8. Expose FontFaceSet on workers.
Attachment #9281188 - Attachment description: Bug 1072107 - Part 3. Expose method to load user fonts from workers. → Bug 1072107 - Part 1. Expose method to load user fonts from workers.
Attachment #9281189 - Attachment description: Bug 1072107 - Part 4. Expose FontFaceSet on nsIGlobalObject. → Bug 1072107 - Part 2. Expose FontFaceSet on nsIGlobalObject.
Attachment #9281203 - Attachment description: Bug 1072107 - Part 8. Expose FontFaceSet on workers. → Bug 1072107 - Part 9. Expose FontFaceSet on workers.
Attachment #9281187 - Attachment is obsolete: true
Attachment #9281186 - Attachment is obsolete: true
Blocks: 1777279
Blocks: 1777287
Attachment #9281203 - Attachment description: Bug 1072107 - Part 9. Expose FontFaceSet on workers. → Bug 1072107 - Part 10. Expose FontFaceSet on workers.
Attachment #9281202 - Attachment description: Bug 1072107 - Part 7. Dispatch font calls and callbacks as necessary. → Bug 1072107 - Part 6. Dispatch font calls and callbacks as necessary.
Attachment #9283357 - Attachment description: Bug 1072107 - Part 8. Make FontFaceLoader check for associated document. → Bug 1072107 - Part 7. Make FontFaceLoader check for associated document.
Attachment #9281201 - Attachment description: Bug 1072107 - Part 6. Provide worker variant of FontFaceSetImpl. → Bug 1072107 - Part 8. Provide worker variant of FontFaceSetImpl.
Attachment #9281203 - Attachment description: Bug 1072107 - Part 10. Expose FontFaceSet on workers. → Bug 1072107 - Part 9. Expose FontFaceSet on workers.
Attachment #9283487 - Attachment is obsolete: true
Pushed by aosmond@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/801c84e2104f
Part 1. Expose method to load user fonts from workers. r=emilio
https://hg.mozilla.org/integration/autoland/rev/e6e8a9629086
Part 2. Expose FontFaceSet on nsIGlobalObject. r=emilio
https://hg.mozilla.org/integration/autoland/rev/574bb6e93b76
Part 3. Expose GetURLExtraData on FontFaceSetImpl. r=emilio
https://hg.mozilla.org/integration/autoland/rev/0c2c42ec82f9
Part 4. Rework gfxFontSrcPrincipal creation to never be lazy. r=emilio
https://hg.mozilla.org/integration/autoland/rev/b4e4f14387b3
Part 5. Skip logging to the console for workers right now r=emilio
https://hg.mozilla.org/integration/autoland/rev/8d804735d037
Part 6. Dispatch font calls and callbacks as necessary. r=emilio
https://hg.mozilla.org/integration/autoland/rev/2d79b8792f06
Part 7. Make FontFaceLoader check for associated document. r=emilio
https://hg.mozilla.org/integration/autoland/rev/d45228a652b4
Part 8. Provide worker variant of FontFaceSetImpl. r=emilio
https://hg.mozilla.org/integration/autoland/rev/7eecad7fdee1
Part 9. Expose FontFaceSet on workers. r=emilio
Blocks: 1778608
Blocks: 1778610

Docs work completed (see tracking bug).

FYI only The actual work done specifically for this bug pretty minimal - addition of browser compatibility information and tagging of worker support. Most of the rest was just improving the existing Font Loading API documentation with working examples and guides.

Regressions: 1792241
No longer regressions: 1793379
Regressions: 1819503
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: