Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

www.theaa.com - print preview is blank #117996

Open
webcompat-bot opened this issue Feb 8, 2023 · 4 comments
Open

www.theaa.com - print preview is blank #117996

webcompat-bot opened this issue Feb 8, 2023 · 4 comments
Assignees
Labels
browser-firefox diagnosis-priority-p1 engine-gecko The browser uses the Gecko rendering engine priority-normal severity-important A non-core broken piece of functionality, not behaving the way you would expect. sitepatch-applied There is an UA override/intervention in place for this site type-printing Issues with printing and related functionality
Milestone

Comments

@webcompat-bot
Copy link

webcompat-bot commented Feb 8, 2023

URL: https://www.theaa.com/route-planner/route(modal:print-preview)?from=Haslingden,%20Rossendale,%20UK&to=Chorley,%20UK

Browser / Version: Firefox 109.0
Operating System: Windows 10
Tested Another Browser: Yes Chrome

Problem type: Something else
Description: AA Route Planner shows result on screen but all "Print" commands (save/print to PDF, Fax, One Note etc.) produce only one blank page. I have had the same problem with SOME Daily Telegraph prints (but not many). Using Chrome to do the same job works perfectly.
Steps to Reproduce:
I used Google to search for AA Planner and then went to the AA route planner page. I selected one of the three alternative routes and clicked the "Print" button which took me to a screen showing the map and the route. This screen had another "Print" button but clicking on this to "print" it (save to PDF) produced only a blank page in "Preview" and when I saved the document.

View the screenshot Screenshot
View the screenshot Screenshot
Browser Configuration
  • None

From webcompat.com with ❤️

@webcompat-bot webcompat-bot added the action-needsmoderation The moderation has not yet been completed label Feb 8, 2023
@webcompat-bot webcompat-bot added this to the needstriage milestone Feb 8, 2023
@webcompat-bot webcompat-bot added the browser-fixme This requires manual assignment for the browser name label Feb 8, 2023
@webcompat-bot webcompat-bot changed the title In the moderation queue. www.theaa.com - see bug description Feb 8, 2023
@webcompat-bot webcompat-bot added browser-firefox engine-gecko The browser uses the Gecko rendering engine and removed browser-fixme This requires manual assignment for the browser name action-needsmoderation The moderation has not yet been completed labels Feb 8, 2023
@sv-calin
Copy link

sv-calin commented Feb 8, 2023

Thank you for reporting this issue, I was able to reproduce it.

image

Tested on:
• Browser / Version: Firefox Nightly 111.0a1 (2023-02-07) / Firefox Release 109.0.1 / Chrome 109.0.5414.75
• Operating System: Windows 10

Notes:

  1. Reproducible on both Firefox Release and Nightly
  2. Not reproducible on Chrome

Moving to Needsdiagnosis.

[qa_06/2023]

@sv-calin sv-calin changed the title www.theaa.com - see bug description www.theaa.com - print preview is blank Feb 8, 2023
@sv-calin sv-calin added priority-normal severity-important A non-core broken piece of functionality, not behaving the way you would expect. type-printing Issues with printing and related functionality labels Feb 8, 2023
@sv-calin sv-calin modified the milestones: needstriage, needsdiagnosis Feb 8, 2023
@wisniewskit
Copy link
Member

I figured this out by taking a "snapshot" of the page using Testcase Reducer, then manually removing CSS until I found it. For some reason, their page is adding this CSS using script:

@media print {
   @page { size: 16px; }
}

It's in this bit:

      var Qx = Wl({
        encapsulation: 2,
        styles: [
          ['/* snip a ton of CSS */@page{size:16px}/* more snip snip*/']
        ],
        data: {
        }
      });

If I drop that CSS rule in the style editor, the print preview works. But oddly, Testcase Reducer is also finding this bit of CSS, which appears earlier in the CSS, and so is overridden:

@media print {
    @page { size: a3; }
}

Either way, I have no idea why they would apply a size of 16px, but the same stylesheet also seems to be being added by Chrome. Indeed, a simple local test-case confirms that it is a webcompat issue, where Chrome seems to just ignore @page sizes that are ridiculously small. I've filed bz1838732 to see how this is best resolved, but we can resolve this with a simple site intervention as well:

@media print {
    @page { size: a3 !important; }
}

@wisniewskit wisniewskit self-assigned this Jun 15, 2023
@wisniewskit wisniewskit added the action-needssitepatch This web bug needs a GoFaster site patch. label Jun 15, 2023
@wisniewskit
Copy link
Member

Note that it would be good to figure out which Daily Telegraph print-outs the reporter of this bug is discussing, so we can see if it's the same issue, so if anyone can point us to such a page, please do!

@ksy36
Copy link
Contributor

ksy36 commented Aug 23, 2023

Shipped an intervention in https://bugzilla.mozilla.org/show_bug.cgi?id=1848849

@ksy36 ksy36 added sitepatch-applied There is an UA override/intervention in place for this site and removed action-needssitepatch This web bug needs a GoFaster site patch. labels Aug 23, 2023
@ksy36 ksy36 modified the milestones: needsdiagnosis, needscontact Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser-firefox diagnosis-priority-p1 engine-gecko The browser uses the Gecko rendering engine priority-normal severity-important A non-core broken piece of functionality, not behaving the way you would expect. sitepatch-applied There is an UA override/intervention in place for this site type-printing Issues with printing and related functionality
Projects
None yet
Development

No branches or pull requests

5 participants