Closed Bug 1393128 Opened 7 years ago Closed 7 years ago

Custom tabs: make downloads work

Categories

(Firefox for Android Graveyard :: General, enhancement)

enhancement
Not set
normal

Tracking

(firefox57 fixed)

VERIFIED FIXED
Firefox 57
Tracking Status
firefox57 --- fixed

People

(Reporter: jchen, Assigned: jchen)

References

Details

Attachments

(4 files)

No description provided.
Comment on attachment 8900552 [details] Bug 1393128 - 1. Make IntentHelper available globally; https://reviewboard.mozilla.org/r/171948/#review177302 ::: mobile/android/base/java/org/mozilla/gecko/BrowserApp.java (Diff revision 1) > if (mFormAssistPopup != null) > mFormAssistPopup.destroy(); > if (mTextSelection != null) > mTextSelection.destroy(); > NotificationHelper.destroy(); > - IntentHelper.destroy(); Now that this is a global singleton I guess we can remove destroy() completely?
Attachment #8900552 - Flags: review+
Comment on attachment 8900554 [details] Bug 1393128 - 3. Initialize DownloadNotifications outside of browser.js; https://reviewboard.mozilla.org/r/171952/#review177392
Attachment #8900554 - Flags: review?(esawin) → review+
Attachment #8900552 - Flags: review?(cnevinchen) → review+
Attachment #8900553 - Flags: review?(s.kaspari) → review+
Pushed by nchen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fd1b29a99163 1. Make IntentHelper available globally; r=nechen,sebastian https://hg.mozilla.org/integration/autoland/rev/bfc42d1135a7 2. Support showing Snackbars globally; r=sebastian https://hg.mozilla.org/integration/autoland/rev/b89c2fffc332 3. Initialize DownloadNotifications outside of browser.js; r=esawin
Hi all, Tested today for pre-Release SignOff and the behavior of this bug is odd. I have a page opened in Custom tab and If I press on PDF file to download, nothing happen. Also, if I want to download a picture or a video, like in Firefox, I'm unable to do that. My question is, what behavior do we expect here? Thanks
Flags: needinfo?(snorp)
(In reply to Sorina Florean [:sorina] from comment #14) > Hi all, > Tested today for pre-Release SignOff and the behavior of this bug is odd. > I have a page opened in Custom tab and If I press on PDF file to download, > nothing happen. PDF works fine here for me. If I search for 'pdf example' in Google and click one of the PDF results, it opens in the Google Drive PDF reader. There does seem to be something going on with other downloads, though. If I try https://httpbin.org/bytes/1024, the page load seems to just hang and I don't get a download prompt.
Flags: needinfo?(snorp) → needinfo?(nchen)
Yeah looks like there are still some prompts that we're not showing correctly.
Flags: needinfo?(nchen)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Ah, I wonder if this is fallout from bug 1329154. Eugen?
Flags: needinfo?(esawin)
Probably not. I think just I missed a few spots in the original patch.
Flags: needinfo?(esawin)
Add a `window` parameter to all Prompt.jsm usages, so the prompt will appear in the correct window. This includes HelperAppDialog.js, which was preventing the download chooser dialog from appearing in a custom tab window. The patch also moves `getActiveDispatcher` from GeckoViewPermission to GeckoViewUtils, and makes several improvements to `getChromeWindow` and `getDispatcherForWindow`. Prompt.jsm now uses the active WindowDispatcher in the fallback scenario where we don't have a window.
Attachment #8908755 - Flags: review?(snorp)
Attachment #8908755 - Flags: review?(snorp) → review+
Pushed by nchen@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/9e45f48ecf55 4. Add window to all Prompt usages; r=snorp
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → FIXED
Depends on: 1412681
Verified as fixed on latest Nightly build, 59.0b13 and release with Nexus 6(Android 6.0.1), HTC 10(Android 8.1.0) and Samsung Galaxy S8(Android 7.0).
Status: RESOLVED → VERIFIED
Depends on: 1478735
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: