Closed Bug 1247609 Opened 8 years ago Closed 5 years ago

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

Categories

(Firefox for Android Graveyard :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1414935

People

(Reporter: vinoth.r, Unassigned)

References

Details

(Whiteboard: [webcompat])

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
Severity: normal → blocker
Priority: -- → P1
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
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
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
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE

This bug is still present in 80.1.3

Product: Firefox for Android → Firefox for Android Graveyard

Downloading and window.print() are two complete different issues.

Any updates on this? IIRC there was actually a 'print page' button in the menue in firefox android - don't know why this was removed. I would like to use Firefox for this feature and not fallback to other apps or browsers like Chrome, which supports calling androids print dialogue. It's required not just for printing on a printer but also to pdf to store a file or page.

You need to log in before you can comment on or make changes to this bug.