Closed Bug 1896892 Opened 18 days ago Closed 17 days ago

Don't double backslashes in URLs when writing links into PDF output

Categories

(Core :: Printing: Output, defect)

defect

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox126 --- unaffected
firefox127 + fixed
firefox128 + fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Spun off from bug 1896076 comment 3. Since updating to cairo-1.18.0, we no longer need to workaround broken backslash handling in the pdf backend, and should remove the code in DrawTargetCairo that is now resulting in duplicated backslashes.

This reverts part of bug 1748077, which was working around a quirk of
the cairo pdf backend. The behavior there was fixed upstream in
https://gitlab.freedesktop.org/cairo/cairo/-/issues/526, so since we've
updated to cairo-1.18.0 we no longer need this; it would in fact make
links with backslashes be recorded incorrectly.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
See Also: → 1896076

[Tracking Requested - why for this release]:
Regression related to the recent cairo update. This only affects a really obscure edge-case (generating a PDF with a link to a URL with literal backslash in it), but we should avoid shipping the regression to release.

Severity: -- → S3

Set release status flags based on info from the regressing bug 1892913

Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b526146bf14b
Remove the double-escaping of backslashes when writing links to the cairo-pdf backend. r=gfx-reviewers,jrmuizel
Status: ASSIGNED → RESOLVED
Closed: 17 days ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch

This reverts part of bug 1748077, which was working around a quirk of
the cairo pdf backend. The behavior there was fixed upstream in
https://gitlab.freedesktop.org/cairo/cairo/-/issues/526, so since we've
updated to cairo-1.18.0 we no longer need this; it would in fact make
links with backslashes be recorded incorrectly.

Original Revision: https://phabricator.services.mozilla.com/D210479

Attachment #9402162 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: link in generated PDF may be incorrect when it includes a literal backslash
  • Code covered by automated testing: no
  • Fix verified in Nightly: no
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: n/a
  • Risk associated with taking this patch: minimal
  • Explanation of risk level: simple removal of a hack we added to workaround a bug in older cairo version
  • String changes made/needed: none
  • Is Android affected?: yes
Attachment #9402162 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: