I can confirm that the patch on bugs.freedesktop.org works correctly with Firefox's bundled Cairo.
Here's the patch in a form suitable for inclusion in Firefox's debian/patches. The authors header has been retained.
I can confirm that the patch on bugs.freedeskto p.org works correctly with Firefox's bundled Cairo.
Here's the patch in a form suitable for inclusion in Firefox's debian/patches. The authors header has been retained.