News for hackers. Stuff that matters.
Re:Firefox 86.0 by matsemann on Friday February 26, 2021 @07:55AM (#26274283)
Wow, Ctrl+P has now started to open the proper print-interface with a preview! I've helped loads of people over the years complaining about printing in Fx vs Chrome. It used to be so in Fx that selecting Print from the menu opened an interface for printing (ala Chrome), but pressing Ctrl+P just opened standard OS print dialog. So power users never saw the nice print preview.
Re:Firefox 86.0 by betamaxthetape on Friday February 26, 2021 @08:31AM (#26274553)
As someone who always used the Ctrl-P keyboard shortcut, I never even knew that a print-with-preview interface existed in Firefox.
Re:Firefox 86.0 by dtx1 on Friday February 26, 2021 @09:07AM (#26274849)
It never even occured to me to use the menu version. What an upgrade
Re:Firefox 86.0 by agumonkey on Friday February 26, 2021 @10:57AM (#26276050)
you guys made me read the menu shortcuts .. didn't know reader mode and all-tabs had them (in order CTRL-ALT-R and CTRL-SHIFT-TAB)
Re:Firefox 86.0 by _Microft on Friday February 26, 2021 @11:48AM (#26276754)
May I blow your mind? ;)

Ctrl-1 to Ctrl-8 accesses the first eight tabs directly, Ctrl-9 jumps to the last tab. Enjoy!

Re:Firefox 86.0 by jdfellow on Friday February 26, 2021 @12:21PM (#26277219)
I didn't know about the Ctrl-9. Thanks.
Re:Firefox 86.0 by agumonkey on Friday February 26, 2021 @12:36PM (#26277424)
I think you meant Alt-N and yeah I did know (don't even know how but I use it every day since forever..)
Re:Firefox 86.0 by Raphael_Amiard on Friday February 26, 2021 @01:24PM (#26277995)
It'll be alt-n on mac's I think!
Re:Firefox 86.0 by dotancohen on Friday February 26, 2021 @02:05PM (#26278484)
Try Tridactyl. You can access any tab directly with `b`.
Re:Firefox 86.0 by iso1631 on Friday February 26, 2021 @09:36AM (#26275169)
I'm on Firefox 84, pressing file/print or ctrl-p brings up a preview window on the left, printer selection on the right.
Re:Firefox 86.0 by jwatt on Friday February 26, 2021 @10:11AM (#26275496)
The new print interface has been progressively released to a subset of users over multiple releases. It's only gone to 100% of users as of Firefox 86.
Re:Firefox 86.0 by runarberg on Friday February 26, 2021 @12:10PM (#26277072)
I guess I was in the early rollout. I was in the middle of designing a print layout about a month or two ago when firefox got updated. After a restart I suddenly was missing the print preview option in the menu to test my design. I was really glad to see that I could from now on just press Ctrl + P and get a much better experience.
Re:Firefox 86.0 by pabpab on Saturday February 27, 2021 @04:55AM (#26283798)
it does not work here the `print.tab_modal.enabled` preference to `false´ fix described below helped
Re:Firefox 86.0 by callmeal on Friday February 26, 2021 @09:54AM (#26275339)
For those of us that prefer the OS print dialog, how can we stop this madness?
Re:Firefox 86.0 by jwatt on Friday February 26, 2021 @10:28AM (#26275683)
We intend to add a keyboard shortcut for this[1]. In the meantime you can revert to the old printing interface by setting the `print.tab_modal.enabled` preference to `false` via the page `about:config`. In a few releases time, after we've finished integrating user feedback and polishing rough edges, we intend to remove that preference though.

1. https://bugzilla.mozilla.org/show_bug.cgi?id=1667950

Re:Firefox 86.0 by nogridbag on Friday February 26, 2021 @11:29AM (#26276500)
We have an application using a web based PDF viewer (PDFTron) and printing PDFs has always been a pain point. That library supports "embedded printing" which only works on Chrome (https://www.pdftron.com/documentation/web/guides/print/overv...). So for now we're advising our customers to use Chrome for our application. Do you know if this is something being improved upon? Sorry this is a bit OT!
Re:Firefox 86.0 by jwatt on Friday February 26, 2021 @11:53AM (#26276812)
Offhand I'm not sure what functionality Firefox is missing that has caused them to only support Chrome. I'd be interested in taking a look though if you have their paid support and can persuade them to either file a bug[1] (or to give you sufficient technical information so that you can file a bug).

1. https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&comp...

Re:Firefox 86.0 by nogridbag on Friday February 26, 2021 @02:40PM (#26278945)
Thanks! I'll get in contact with their support. Too late to edit my earlier post. The link to their embedded printing is: https://www.pdftron.com/documentation/web/guides/print/overv...
Re:Firefox 86.0 by JadeNB on Friday February 26, 2021 @01:36PM (#26278122)
Why is Firefox, with its devotion to hearing the user's voice, always in such a hurry to remove toggles that express user preferences?
Re:Firefox 86.0 by jwatt on Friday February 26, 2021 @03:58PM (#26279778)
In the general case where that's true I expect it mostly comes down to trying to balance features against available resources and the amount/complexity of the code that needs to be written/maintained. As noted elsewhere in this thread, there were a bunch of layoffs at Mozilla the last year, but even without that it's sometimes necessary to make tough, pragmatic decisions.

In the case of the new print preview/workflow, however, I expect it will provide virtually everyone with a better workflow once we've finished polishing any rough edges. The feedback on places like Reddit indicates that it's already a very clear net win for most users, and I think we can address most of the complaints on support.mozilla.org etc. The eventual removal of the `print.tab_modal.enabled` preference and the old code will simply be because having two print preview implementations adds code complexity and is a maintenance burden.

Re:Firefox 86.0 by JadeNB on Friday February 26, 2021 @05:11PM (#26280464)
Thank you for the reply, which you must get tired of giving but which you nonetheless gave politely.

I understand that the needs of any one user, such as me, with a particular idiosyncratic set of needs and preferences are at odds with those of the body of users as a whole, who need an appropriate balance between customiseability and useability, together with, of course, deliverability—it's no good having a product custom-tailored to fit every possible combination of needs if the developers collapse under the maintenance weight.

I didn't really mean what I said as anything other than a cri de cœur: it sometimes seems that Firefox rode to its current position on the wave of the love and passion of power users, a group of which I am on the periphery, but now cares more about its numerically larger but less devoted casual user base. This is probably the right decision, but it's still frustrating as one of those long-time users (from back in the Phoenix days!).

Re:Firefox 86.0 by jwatt on Friday February 26, 2021 @06:05PM (#26280912)
No problem, and as a Mozilla user/contributor since the early Mozilla Suite days I sympathize with your cri de cœur. Power users had and will always have an outsized influence on Mozilla's market share and thus relevance and ability to fulfill its mission. At the same time performance, polish and usability need to keep up with the competition to keep the less technical majority. It's a tough balancing act when resource constrained.
Re:Firefox 86.0 by pabpab on Saturday February 27, 2021 @05:01AM (#26283827)
thanks, this helped , things went back to 'working'
Re:Firefox 86.0 by berelig on Friday February 26, 2021 @09:57AM (#26275366)
There is an option to print using the system dialog on the right panel after you press COMMAND + P
Re:Firefox 86.0 by lucideer on Friday February 26, 2021 @09:57AM (#26275369)
There's a link to the OS print dialog in the new print preview view (not perfect, but better than nothing if you prefer it)
Re:Firefox 86.0 by Wowfunhappy on Friday February 26, 2021 @10:15AM (#26275550)
:( So there's no way to just default to that? In chrome there's a `defaults write` command that does it.

I really dislike this philosophy of replacing the system functionality. Particularly on Mac where the system functionality is quite good. (On Windows and Linux, I admittedly don't care as much, because nothing is ever consistent anyway...)

Re:Firefox 86.0 by benhurmarcel on Saturday February 27, 2021 @06:05AM (#26284040)
Reminds me of that: https://xkcd.com/1172/
Re:Firefox 86.0 by bradstewart on Friday February 26, 2021 @09:54AM (#26275334)
Wow. I switched to Firefox around the same time I switched a Mac for work, and just assumed the lack of print preview was a weird macOS thing.

This makes me happy.

Re:Firefox 86.0 by jwatt on Friday February 26, 2021 @10:15AM (#26275548)
Actually, you were correct. Firefox on Windows and Linux has provided a print preview "since forever", but this is the first time Firefox has had print preview functionality on macOS (outside of using the system print dialog to generate and open a PDF in the Preview app).
Re:Firefox 86.0 by bradstewart on Friday February 26, 2021 @10:21AM (#26275618)
Right. I just assumed Chrome and Safari also lacked print preview on macOS, didn't even think to check.
Re:Firefox 86.0 by lucideer on Friday February 26, 2021 @09:58AM (#26275377)
fwiw Firefox always had a print preview; it was just behind a different shortcut rather than integrated into the default flow.
Re:Firefox 86.0 by frosted-flakes on Friday February 26, 2021 @10:29AM (#26275700)
The old Print Preview actually allowed you to inspect the page with the Developer Tools. Which was great for debugging print-specific CSS. I don't think that's possible with the new Print Preview, but the new one is better in every other way.
Re:Firefox 86.0 by folknor on Friday February 26, 2021 @02:19PM (#26278668)
Should be possible using the Browser Toolbox to inspect the entire interface? I just checked and the HTML is definitely in the inspector at least, but I'm not sure what your requirements are.
Re:Firefox 86.0 by lights0123 on Friday February 26, 2021 @04:33PM (#26280079)
What do you mean by "Browser Toolbox"? Firefox doesn't have Chrome's @media (print) emulation.
Re:Firefox 86.0 by folknor on Saturday February 27, 2021 @03:16PM (#26287760)
https://developer.mozilla.org/en-US/docs/Tools/Browser_Toolb...

The Browser Toolbox is the normal DOM inspector, just extended to the whole user interface. If you open the print preview, then open the Browser Toolbox, you can inspect the preview and edit styles just like any other document.

Also, @media print {} works fine, I just tested it. But I'm not sure how that relates to the original question.

Re:Firefox 86.0 by folknor on Saturday February 27, 2021 @03:24PM (#26287820)
https://imgur.com/a/S6XryYW screenshot of browser toolbox with the print preview DOM visible + site with @media print background color change. Note that you need to expand "More settings" in the print preview and enable "Print backgrounds" for that specific test to work.
Re:Firefox 86.0 by bradstewart on Friday February 26, 2021 @10:17AM (#26275578)
I would have literally never discovered that without this post. I honestly forgot there was a File->Print button until I read this. Ctrl/cmd+P is jus burned into my muscle memory.
Re:Firefox 86.0 by purerandomness on Friday February 26, 2021 @12:03PM (#26276974)
Oh my god! I've never seen the proper print interface and always assumed Mozilla simply didn't care about printing.
Re:Firefox 86.0 by drewzero1 on Friday February 26, 2021 @12:19PM (#26277172)
I noticed that! I've been using the print preview from the File menu (a bit cumbersome with menus hidden and without a dedicated shortcut) and noticed that I didn't have the option this week.

I seem to remember the controls for page fit being a little better with the old print preview, but my real complaint is with websites that don't scale well to print rather than Firefox's method of printing them.

Re:Firefox 86.0 by limeblack on Monday March 01, 2021 @02:32PM (#26307150)
They really should have option to match chrome shortcuts and windows.

Ctrl+Shift+N works in Chrome but in Firefox its Ctrl+Shift+P.

Re:Firefox 86.0 by driverdan on Friday February 26, 2021 @10:38AM (#26275815)
This doesn't appear to be new in 86. I'm on 85 and it has preview when I hit Cmd+P.