An element with a redirect link has no effect when clicked
Categories
(Firefox :: PDF Viewer, defect, P1)
Tracking
()
People
(Reporter: danibodea, Assigned: calixte)
References
(Blocks 1 open bug)
Details
(Whiteboard: [pdfjs-form-xfa-js])
Attachments
(7 files)
Note
- When the user loads the corresponding PDF file and clicks the "Visit Assure Dynamics for more solutions | www.assuredynamics.com" linked header, he will notice that the redirect is not happening.
Affected versions
- Nightly v91.0a1
Affected platforms
- all
Steps to reproduce
- Launch browser.
- Flip the pdfjs.enableXfa to true.
- Load the attached PDF file.
- Click on the linked header.
Expected result
- The corresponding link is being opened in a new tab.
Actual result
- No redirect is observed.
Regression range
- Not a recent regression, but an implementation flaw.
Comment 1•4 years ago
|
||
This is a dynamic PDF feature that we are not going to support soon.
Updated•4 years ago
|
Comment 2•4 years ago
|
||
Same behaviour has the link from the second attached PDF.
Comment 3•4 years ago
|
||
| Reporter | ||
Updated•4 years ago
|
| Reporter | ||
Updated•4 years ago
|
| Reporter | ||
Comment 4•4 years ago
|
||
Links from inside this PDF form aren't redirecting (clicking them has no effect).
| Reporter | ||
Comment 5•4 years ago
|
||
Most links from this PDF have no redirect when clicked (ex. Old Age Security Act).
| Reporter | ||
Comment 6•4 years ago
|
||
A similar issue is seen on this document with several links:
-
link "209.2" on page 1, section 2.
-
mail links "IRCC.CMBIMPInvestigations-EnquetesPMIDGRC.IRCC@cic.gc.ca", page 2
-
link "infosource" in the footer.
-
Weirdly enough, the "Personal Information Bank" link from the footer works correctly.
| Assignee | ||
Comment 7•4 years ago
•
|
||
So this pdf (3e263476-df05-4803-bd04-9f9d0e058012.pdf ) is a bit painful:
- about "209.2" the JS behind is:
if (xfa.host.name == "Acrobat") {
app.launchURL("http://laws-lois.justice.gc.ca/eng/regulations/SOR-2002-227/section-209.2.html", true);
}
else {
xfa.host.gotoURL("http://laws-lois.justice.gc.ca/eng/regulations/SOR-2002-227/section-209.2.html");
}
- about the IRCC... is an underlined text in blue.
- about the "infosource", same problem as "209.2"
- and finally about "Personal...", it's a real
<a href...link.
In the first case it's a bit hard to guess what's the url to use (it's possible of course but...).
About 0f5a3305-976f-4749-9ff4-41dd9720682b.pdf, the pattern is a bit different (app.launchURL(....) and we already used a workaround for such case in pdf.js:
https://github.com/mozilla/pdf.js/blob/c3ca78fdf8759d8cf7c8c4f35627c25a64e6bc7b/src/core/catalog.js#L1403-L1423
Comment 8•4 years ago
|
||
Comment 9•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 10•4 years ago
|
||
The latest update fixed some of the PDFs in this bug, but not all.
Updated•4 years ago
|
| Assignee | ||
Updated•4 years ago
|
Description
•