Closed Bug 1297018 Opened 8 years ago Closed 8 years ago

Download notification is not displayed in the android notification bar

Categories

(Firefox for Android Graveyard :: Download Manager, defect, P1)

51 Branch
ARM
Android
defect

Tracking

(fennec51+, firefox50 unaffected, firefox51 verified)

VERIFIED FIXED
Firefox 51
Tracking Status
fennec 51+ ---
firefox50 --- unaffected
firefox51 --- verified

People

(Reporter: TeoVermesan, Assigned: schien)

References

Details

(Keywords: regression, Whiteboard: [TPE-1])

Attachments

(1 file, 1 obsolete file)

Steps to reproduce:
1. Open a website
2. Go to Menu -> Page -> Save as PDF 

Expected results:
- A download notification is displayed in the android notification bar

Actual results:
- no download notification is displayed 
- download appears in about:download

Note:
- regression window:
good build: 17-08
bad build: 18-08
pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=fe895421dfbe1f1f8f1fc6a39bb20774423a6d74&tochange=97a52326b06a07930216ebefa5af333271578904
tracking-fennec: --- → ?
Priority: -- → P1
Whiteboard: [TPE-1]
(In reply to Teodora Vermesan (:TeoVermesan) from comment #0)
> Steps to reproduce:
> 1. Open a website
> 2. Go to Menu -> Page -> Save as PDF 

To clarify: All downloads are affected. Not only "Save as PDF".
bisect says:

> The first bad revision is:
> changeset:   309691:5f9021b0c901
> user:        Shih-Chiang Chien <schien@mozilla.com>
> date:        Fri Jun 03 19:50:30 2016 +0800
> summary:     Bug 1278205 - use preference for exposing presentation API. r=smaug.

I don't know why this broke all our download notifications / events yet, though.
Flags: needinfo?(schien)
I just verified with a local backout that this is indeed the breaking changeset.
I'm seeing this in the console, which looks related - and I've seen multiple things break when there's just one JS error in the past:
TypeError: window.navigator.mozPresentationDeviceInfo is undefined - CastingApps.js:102:5
The patch I've posted is enough to fix our problems - however I don't have any understanding of:

A) why the presentation WebAPI was disabled for mobile in Bug 1278205?
B) if/how we should fix the Casting code to handle the presentation WebAPI being disabled?
My bad, I'll upload a fix for the solution B mentioned in comment #7.
Assignee: nobody → schien
Flags: needinfo?(schien)
(In reply to Andrzej Hunt :ahunt from comment #7)
> A) why the presentation WebAPI was disabled for mobile in Bug 1278205?

Here is the reason I disable Presentation API in Bug 1278205
1) Presentation API is not yet ready to be exposed to web content.
2) The availability of TV that supports video casting via Presentation API is unknown at this point, so we can disable this API for browser chrome as well.
tracking-fennec: ? → 51+
Comment on attachment 8783789 [details]
Bug 1297018 - disable video casting to FxOS TV while presentation API is not supported. .

https://reviewboard.mozilla.org/r/73470/#review71724

Thank you for looking into this : ) !
Attachment #8783789 - Flags: review?(ahunt) → review+
Attachment #8783770 - Attachment is obsolete: true
Pushed by schien@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/54caa97ec316
disable video casting to FxOS TV while presentation API is not supported. r=ahunt.
https://hg.mozilla.org/mozilla-central/rev/54caa97ec316
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 51
Verified as fixed with Samsung Galaxy Note 5(6.0.1) on Nightly(2016-08-31)
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: