Closed Bug 826992 Opened 7 years ago Closed 7 years ago

Avoid hardcoded clientId in SafeBrowser.jsm

Categories

(Toolkit :: Safe Browsing, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file, 1 obsolete file)

We currently have this in SafeBrowser.jsm:

#ifdef USE_HISTORIC_SAFEBROWSING_ID
    let clientID = "navclient-auto-ffox";
#else
    let clientID = Services.appinfo.name;
#endif

Building Firefox as a xulrunner application makes it having to choose between all xulrunner applications using the navclient-auto-ffox clientID, or Firefox using "firefox" as a clientID.

This also led mobile to add their own copy of the file just to do that:
#ifdef USE_HISTORIC_SAFEBROWSING_ID
    let clientID = "navclient-auto-ffox";
#else
#expand    let clientID = __MOZ_APP_UA_NAME__;
#endif

All in all, this would benefit from being handled with an app pref.
Attachment #698248 - Flags: review?(dtownsend+bugmail)
Attachment #698255 - Flags: review?(dtownsend+bugmail)
Attachment #698248 - Attachment is obsolete: true
Attachment #698248 - Flags: review?(dtownsend+bugmail)
Attachment #698255 - Flags: review?(mark.finkle)
Attachment #698255 - Flags: review?(dtownsend+bugmail)
Attachment #698255 - Flags: review+
Comment on attachment 698255 [details] [diff] [review]
Avoid hardcoded clientId in SafeBrowser.jsm

Looks OK to me, but since we are removing the mobile SafeBrowsing component (which we wanted to do anyway) I want GCP to take a look too.
Attachment #698255 - Flags: review?(mark.finkle)
Attachment #698255 - Flags: review?(gpascutto)
Attachment #698255 - Flags: review+
Attachment #698255 - Flags: review?(gpascutto) → review+
https://hg.mozilla.org/mozilla-central/rev/ff82d1a3955e
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Duplicate of this bug: 807559
This bug causes a regression in reader mode, among other things, because the change breaks the mobile prefs file. See https://bugzilla.mozilla.org/show_bug.cgi?id=830308#c6 for details.
Backed out:
https://hg.mozilla.org/mozilla-central/rev/b72d2af170aa
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
https://hg.mozilla.org/mozilla-central/rev/d56a171a1325
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.