Bug 454059 Comment 23 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(In reply to kaz from comment #22)
> (In reply to Stewart Gordon from comment #21)
> > (In reply to kaz from comment #16)
> > > The document is rendered such that the links look like links: they are rendered in blue, and underlined.
> > 
> > This is handled by CSS.  In order to not have links highlighted, there would need to be a CSS rule specified as @media print, either in the webpage CSS or in the default stylesheet.
> 
> Well, let's see. It's not going to be handled in the web page CSS, is it. 
> 
> Because the web page author doesn't care that you're using Firefox to save the page as PDF, and that it happens to strip hyperlinks of their functionality while retaining their styling.

I disagree.  To "strip hyperlinks of their functionality while retaining their styling", as you put it, is equally what happens when printing to paper.  So some web page authors might set such CSS to counteract this behaviour.

> Maybe the save-to-PDF feature should pull a piece of CSS from behind the magic curtain, and apply it to de-style the links that it has no intention of making work.

This is somewhat off-topic for this bug report, which is about what happens when one uses the built-in feature of macOS to generate a PDF from the print dialog.  Bug 162659 would be a better place to discuss this.

> I'm pretty sure this entire bug is not about using a "PDF driver under any OS" but saving a PDF from Firefox to a file.

Firefox doesn't have the latter functionality at the moment.  It's requested in bug 162659.
(In reply to kaz from comment #22)
> (In reply to Stewart Gordon from comment #21)
> > (In reply to kaz from comment #16)
> > > The document is rendered such that the links look like links: they are rendered in blue, and underlined.
> > 
> > This is handled by CSS.  In order to not have links highlighted, there would need to be a CSS rule specified as @media print, either in the webpage CSS or in the default stylesheet.
> 
> Well, let's see. It's not going to be handled in the web page CSS, is it. 
> 
> Because the web page author doesn't care that you're using Firefox to save the page as PDF, and that it happens to strip hyperlinks of their functionality while retaining their styling.

I disagree.  To "strip hyperlinks of their functionality while retaining their styling", as you put it, is equally what happens when printing to paper.  So some web page authors might set such CSS to counteract this behaviour.

> Maybe the save-to-PDF feature should pull a piece of CSS from behind the magic curtain, and apply it to de-style the links that it has no intention of making work.

This is somewhat off-topic for this bug report, which is about what happens when one uses the built-in feature of macOS to generate a PDF from the print dialog.  Bug 162659 would be a better place to discuss this.

> I'm pretty sure this entire bug is not about using a "PDF driver under any OS" but saving a PDF from Firefox to a file.

It's about the Save as PDF functionality built into macOS as part of its printing provision.  Firefox doesn't have the latter functionality at the moment.  It's requested in bug 162659.
(In reply to kaz from comment #22)
> (In reply to Stewart Gordon from comment #21)
> > (In reply to kaz from comment #16)
> > > The document is rendered such that the links look like links: they are rendered in blue, and underlined.
> > 
> > This is handled by CSS.  In order to not have links highlighted, there would need to be a CSS rule specified as @media print, either in the webpage CSS or in the default stylesheet.
> 
> Well, let's see. It's not going to be handled in the web page CSS, is it. 
> 
> Because the web page author doesn't care that you're using Firefox to save the page as PDF, and that it happens to strip hyperlinks of their functionality while retaining their styling.

I disagree.  To "strip hyperlinks of their functionality while retaining their styling", as you put it, is equally what happens when printing to paper.  So some web page authors might set such CSS to counteract this behaviour.

> Maybe the save-to-PDF feature should pull a piece of CSS from behind the magic curtain, and apply it to de-style the links that it has no intention of making work.

This is somewhat off-topic for this bug report, which is about what happens when one uses the built-in feature of macOS to generate a PDF from the print dialog.  Bug 162659 would be a better place to discuss this.

> I'm pretty sure this entire bug is not about using a "PDF driver under any OS" but saving a PDF from Firefox to a file.

It's about what happens under the Save as PDF functionality built into macOS as part of its printing provision.  Firefox doesn't have the latter functionality at the moment.  It's requested in bug 162659.

Back to Bug 454059 Comment 23