Closed Bug 1397938 Opened 7 years ago Closed 7 years ago

Download protection whitelist and blacklist are not available for the Android platform

Categories

(Toolkit :: Safe Browsing, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: francois, Assigned: ethan)

References

(Blocks 1 open bug)

Details

(Whiteboard: #sbv4-m10)

Attachments

(1 file, 1 obsolete file)

Since the download protection lists are not available on Fennec, we should override these prefs in mobile/android/app/mobile.js:

urlclassifier.downloadAllowTable = ""
urlclassifier.downloadBlockTable = ""

It won't have any immediate effect since download protection is currently disabled on Fennec.
Priority: -- → P3
Assignee: nobody → ettseng
Attached patch bug-1397938.patch (obsolete) — Splinter Review
Thomas,
What would you suggest me to test the patch?
Should we write a test case for it?  Or just verify it manually?
Flags: needinfo?(tnguyen)
Comment 0, you may not need to test the patch. In current Fennec, even if you manually try to enable download protection in android, you still may not see the tables appears in your database (both with and with out your patch).
Flags: needinfo?(tnguyen)
(In reply to Thomas Nguyen[:tnguyen] ni plz from comment #2)
> Comment 0, you may not need to test the patch. In current Fennec, even if
> you manually try to enable download protection in android, you still may not
> see the tables appears in your database (both with and with out your patch).

Sure. But I thought we should at least check the preference values manually, no?
Ah, yes, of course. Just go to about:config to see if the pref is changed. But no test case is needed
Comment on attachment 8906883 [details] [diff] [review]
bug-1397938.patch

I verified the pref values manually on Fennec.
Attachment #8906883 - Flags: review?(francois)
Comment on attachment 8906883 [details] [diff] [review]
bug-1397938.patch

Review of attachment 8906883 [details] [diff] [review]:
-----------------------------------------------------------------

::: mobile/android/app/mobile.js
@@ +145,4 @@
>  pref("browser.sessionstore.privacy_level", 0); // saving data: 0 = all, 1 = unencrypted sites, 2 = never
>  pref("browser.sessionstore.debug_logging", false);
>  
> +/* Safe Browsing */

nit: no need for this comment
Attachment #8906883 - Flags: review?(francois) → review+
(In reply to François Marier [:francois] from comment #6)
> > +/* Safe Browsing */ 
> nit: no need for this comment

Thanks, Francois!
Fixed the nit and refreshed the commit message "r=francois."
Attachment #8906883 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Try result looks good.
All the failures are known intermittent failures not relevant to this patch.
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/8e62c82e6dac
Download protection whitelist and blacklist are not available for the Android platform. r=francois
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/8e62c82e6dac
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: