window.print() doesn't respond in Firefox for Android

NEW
Unassigned

Status

()

Firefox for Android
General
--
enhancement
2 years ago
4 months ago

People

(Reporter: vinoth.r, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
User Agent: Mozilla/5.0 (iPad; CPU OS 9_2 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) FxiOS/1.2 Mobile/13C75 Safari/601.1.46
Firefox for Android

Steps to reproduce:

1. Open this url  http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_print on your Firefox in iPad or android tablet.
2. Click print this page button



Actual results:

It doesn't  open print dialogue but it does in desktop browsers, Safari for iPad and chrome for Android 


Expected results:

it should promot print dialogue to print page
(Reporter)

Updated

2 years ago
Severity: normal → blocker
Priority: -- → P1

Updated

2 years ago
Severity: blocker → normal
Component: Untriaged → DOM: Core & HTML
Priority: P1 → --
Product: Firefox → Core
Summary: Window.print doesn't respond in iPad Firefox and android tablet → window.print() doesn't respond in Firefox for iOS and Android
reporter, Firefox for iOS is different code base, so could you file a new bug for Firefox for iOS?

Also, Firefox for Android doesn't have printing dialog service, so dialog isn't shown.

layout/printing/nsPrintEngine.cpp
nsresult:q
nsPrintEngine::DoCommonPrint(bool                    aIsPrintPreview,
                             nsIPrintSettings*       aPrintSettings,
                             nsIWebProgressListener* aWebProgressListener,
                             nsIDOMDocument*         aDoc)
...
        } else if (rv == NS_ERROR_NOT_IMPLEMENTED) {
          // This means the Dialog service was there,
          // but they choose not to implement this dialog and
          // are looking for default behavior from the toolkit
          rv = NS_OK;
Component: DOM: Core & HTML → Printing: Output

Comment 2

2 years ago
The bug is that that FxAndroid doesn't support printing. Moving to their world for triage. Do file a separate bug for FxiOS.
Component: Printing: Output → General
Product: Core → Firefox for Android

Updated

2 years ago
Severity: normal → enhancement
Summary: window.print() doesn't respond in Firefox for iOS and Android → window.print() doesn't respond in Firefox for Android
Needs to hook into the new printing code https://dxr.mozilla.org/mozilla-central/source/mobile/android/base/java/org/mozilla/gecko/PrintHelper.java
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.