Closed Bug 343766 Opened 18 years ago Closed 18 years ago

localize anti-phishing reporting urls

Categories

(Toolkit :: Safe Browsing, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 2 beta2

People

(Reporter: tony, Assigned: tony)

Details

(Keywords: fixed1.8.1)

Attachments

(2 files, 1 obsolete file)

Anti-phishing data providers must provide a URL to a report phishing page (see bug 339876).  In particular, up to three URLs are provided: reportGenericURL, reportErrorURL, and reportPhishURL.  These need to be localized to the users language.

We can use {moz:locale} like search plugins do and replace that.
Flags: blocking-firefox2?
OS: Linux → All
Hardware: PC → All
This bug should depend on bug 339876, but since that one isn't blocking yet, this one won't be.
Depends on: 339876
Flags: blocking-firefox2? → blocking-firefox2-
Target Milestone: --- → Firefox 2 beta2
The changes to browser/app/profile/firefox.js is just to demonstrate how this works.  I realize the final urls will be different.
Attachment #229173 - Flags: review?(mmchew)
Comment on attachment 229173 [details] [diff] [review]
v1: use {moz:locale} for locale

This looks fine to me.
Attachment #229173 - Flags: review?(mmchew) → review+
Attachment #229173 - Flags: superreview?(bryner)
Comment on attachment 229173 [details] [diff] [review]
v1: use {moz:locale} for locale

Can you just use @AB_CD@, or do you need these URLs to change if general.useragent.locale is changed after install?
(In reply to comment #4)
> (From update of attachment 229173 [details] [diff] [review] [edit])
> Can you just use @AB_CD@, or do you need these URLs to change if
> general.useragent.locale is changed after install?

I think it'd be better if it changed when the user changes locales.  That said, there ought to be a pref observer for general.useragent.locale so it does actually update without a restart.  I'll cut a new patch.
Attached patch v2: add locale pref observer (obsolete) — Splinter Review
Same as v1 patch + pref observer for locale change.
Attachment #229173 - Attachment is obsolete: true
Attachment #229508 - Flags: superreview?(bryner)
Attachment #229173 - Flags: superreview?(bryner)
Comment on attachment 229173 [details] [diff] [review]
v1: use {moz:locale} for locale

lets go with this one
Attachment #229173 - Attachment is obsolete: false
Attachment #229173 - Flags: superreview+
Attachment #229508 - Attachment is obsolete: true
Attachment #229508 - Flags: superreview?(bryner)
Attached patch trunk patchSplinter Review
on trunk
Attachment #229173 - Flags: approval1.8.1?
Flags: blocking-firefox2- → blocking-firefox2?
Comment on attachment 229173 [details] [diff] [review]
v1: use {moz:locale} for locale

a=drivers. Please go ahead and land on the branch.

Why isn't the trunk also pointing to mozilla.org, btw?
Attachment #229173 - Flags: approval1.8.1? → approval1.8.1+
Flags: blocking-firefox2? → blocking-firefox2+
(In reply to comment #9)
> (From update of attachment 229173 [details] [diff] [review] [edit])
> a=drivers. Please go ahead and land on the branch.
> 
> Why isn't the trunk also pointing to mozilla.org, btw?

I didn't apply bug 344063 to trunk.  I can change the urls in this patch if you want trunk to point to the bonecho urls that we're using on branch (http://www.mozilla.org/projects/bonecho/anti-phishing/report_general/, etc).
on branch
Status: NEW → RESOLVED
Closed: 18 years ago
No longer depends on: 339876
Keywords: fixed1.8.1
Resolution: --- → FIXED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: