Closed Bug 1066671 Opened 11 years ago Closed 11 years ago

Regression: Downloading is broken

Categories

(Firefox for Android Graveyard :: General, defect)

35 Branch
ARM
Android
defect
Not set
major

Tracking

(firefox35 verified, fennec35+)

VERIFIED FIXED
Firefox 35
Tracking Status
firefox35 --- verified
fennec 35+ ---

People

(Reporter: aaronmt, Assigned: mfinkle)

References

Details

(Keywords: regression, reproducible)

Attachments

(2 files)

Currently downloading is broken in Nightly based on mozilla-central. Last good revision: 152ef25e89ae (2014-09-10) First bad revision: 98ea98c8191a (2014-09-11) Pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=152ef25e89ae&tochange=98ea98c8191a
Flags: in-testsuite?
Last good revision: 02fbb6ada9cb First bad revision: bc7deafdac4b Pushlog: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=02fbb6ada9cb&tochange=bc7deafdac4b bf52063ed95f Wes Johnston — Bug 1058150 - Use restricted profiles for guest mode. r=mfinkle
Blocks: 1058150
Severity: normal → major
This patch fixes some stuff that Wes missed the first time. Well, he had a patch that fixed it but it's not what landed.
Assignee: nobody → mark.finkle
Attachment #8489047 - Flags: review?(wjohnston)
This patch fixes the download issue. The trouble starts with the fact that we keep flipping boolean contexts. 1. Android state values: "no_download_files" means the false allows downloads 2. nsIPCS.isAllowed(DOWNLOADS): means true allows downloads. We already do a boolean flip and I added a comment making it more explicit. 3. nsIPCS.GetBlockFileDownloadsEnabled(...) returns the blocked state meaning false allows downloads. This is the bug. We were not flipping the boolean. This patch does that. I am now wondering if we should change nsIPCS.isAllowed to nsIPCS.isBlocked so we can stop worrying about flipping booleans. Thoughts?
Attachment #8489049 - Flags: review?(wjohnston)
Comment on attachment 8489049 [details] [diff] [review] rprofiles-dload-bug v0.1 I'd be fine with the isBlocked switch. I noticed this when I was doing it, but decided I just hated BlockFileDownloadEnabled so I stubbornly didn't change my interface :) Not super attached though.
Attachment #8489049 - Flags: review?(wjohnston) → review+
Wes - any reason we shouldn't review the patch0 as well? As for the change to isBlocked, I'll file a followup bug.
Flags: needinfo?(wjohnston)
Attachment #8489047 - Flags: review?(wjohnston) → review+
https://hg.mozilla.org/integration/fx-team/rev/8201c5f8e7c8 https://hg.mozilla.org/integration/fx-team/rev/f403a0e6db85 And I added the lost changes to the test file too. At the same time, I added a simple check for pc.blockFileDownloadsEnabled which would have caught this bug. https://hg.mozilla.org/integration/fx-team/rev/db8fb4f403a0
Flags: needinfo?(wjohnston)
Flags: in-testsuite? → in-testsuite+
tracking-fennec: ? → 35+
Verified as fixed in Build: Firefox for Android 35.0a1 (2014-09-17) Device: Asus Transformer Pad TF300T (Android 4.2.1)
Status: RESOLVED → VERIFIED
Flags: qe-verify+
Flags: qe-verify+
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: