Commit Graph

49 Commits

Author SHA1 Message Date
Dave Townsend
f657500ff0 Bug 1192924: Expose the update URL formatting code a new UpdateUtils module. r=rstrong
The GMP manager uses a copy of the update service's url formatting code and has
since fallen out of sync. We'll also want to use the same formatting code for
the system add-on update checks so this just exposes it in a shared API.

I've moved the contents of UpdateChannel.jsm to UpdateUtils.jsm and exposed
formatUpdateURL there as well as a few properties that the update service still
needs access to.

UpdateUtils.UpdateChannel is intended to be a lazy getter but isn't for now
since tests expect to be able to change the update channel at runtime.
2015-09-14 11:04:19 -07:00
Wes Kocher
69b522405d Backed out 3 changesets (bug 1192924) for Android bustage CLOSED TREE
Backed out changeset 30d612836685 (bug 1192924)
Backed out changeset a6860f880e01 (bug 1192924)
Backed out changeset 10e1fa2cc23a (bug 1192924)
2015-09-22 11:02:55 -07:00
Dave Townsend
eef8701d19 Bug 1192924: Expose the update URL formatting code a new UpdateUtils module. r=rstrong
The GMP manager uses a copy of the update service's url formatting code and has
since fallen out of sync. We'll also want to use the same formatting code for
the system add-on update checks so this just exposes it in a shared API.

I've moved the contents of UpdateChannel.jsm to UpdateUtils.jsm and exposed
formatUpdateURL there as well as a few properties that the update service still
needs access to.

UpdateUtils.UpdateChannel is intended to be a lazy getter but isn't for now
since tests expect to be able to change the update channel at runtime.
2015-09-14 11:04:19 -07:00
Shu-yu Guo
37989840cd Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Marina Samuel
fdc94e3b7f Bug 1203577 - Remove hardcoded adgroup buckets. r=Mardak. 2015-09-14 14:44:51 -04:00
Nihanth Subramanya
15f00e4940 Bug 1171344 - Update in-content search UI tests. r=adw 2015-06-29 13:52:22 -07:00
Ryan VanderMeulen
08581626f9 Backed out changesets 7f2ddcfe4537 and e88770aa2160 (bug 1171344) for intermittent OSX browser_tabopen_reflows.js failures. 2015-07-16 21:42:22 -04:00
Nihanth Subramanya
55b8edc1be Bug 1171344 - Update in-content search UI tests. r=adw 2015-06-29 13:52:22 -07:00
Maxim Zhilyaev
e9cfb789e3 Bug 1161656 - Report total views preceding a click [r=adw] 2015-07-09 23:03:05 -07:00
Maxim Zhilyaev
c5871d67d8 Bug 1178586 - Pinned suggested tile loses "history" type after a click [r=adw] 2015-07-08 07:28:13 -07:00
Mike Hommey
ef2679ecb4 Bug 1094324 - Set browser.newtabpage.enhanced default in prefs. r=adw
The current behavior is that if there is no user pref, it is set to true or
false depending on the value of privacy.donottrackheader.enabled, but
completely ignoring the global default.

This patch changes the behavior such that:
- browser.newtabpage.enhanced's default value is set as a global default
- it is also set as sticky, so that even when the same value as the default is
  set, prefHasUserValue is true.
- The introduction is not shown when the default for browser.newtabpage.enhanced
  is false. It is however shown when the pref is flipped for the first time.
2015-06-30 07:30:33 +09:00
Marina Samuel
5c7c5857b3 Bug 1169366 - Bucket updates & escaping html characters. r=Mardak 2015-06-16 16:14:54 -07:00
Maxim Zhilyaev
7ce65ac743 Bug 1159884 - Implement inadjacency with a hardcoded list of hashed sites [r=adw] 2015-05-20 17:21:16 -07:00
Ed Lee
1833d054e6 Bug 1157810 - Enforce that tile images are loaded from mozilla.net [r=adw, f=bsmedberg] 2015-05-14 16:46:39 -07:00
Marina Samuel
d104da0219 Bug 1139496 - Allow server provided explanation / ad group name to be displayed on Suggested Tiles [r=adw, f=bsmedberg] 2015-05-19 12:42:08 -07:00
Ed Lee
127f71dffb Bug 1160369 - Allow for sponsored suggested tiles [r=adw] 2015-05-14 16:01:47 -07:00
Ed Lee
b96160a5ec Bug 1158208 - Enforce that tiles HTTP requests don't have cookies [r=adw] 2015-05-11 17:09:29 -07:00
Nicholas Nethercote
ac6922ac32 No bug - Remove extraneous semicolon in DirectoryLinksProvider.jsm. r=glandium. 2015-05-11 16:11:48 -07:00
Maxim Zhilyaev
755540a0eb Bug 1159571 - Use server provided frequency caps for daily and lifetime totals [r=adw] 2015-05-08 09:20:18 -07:00
Maxim Zhilyaev
9d394be2c6 Bug 1156549 - Allow ramp up time for campaigns with strict start/stop times [r=adw] 2015-05-06 12:09:45 -07:00
Ed Lee
bb6b3a2f7d Bug 1148862 - Update pref to the new v3 endpoint [r=adw] 2015-04-01 01:02:50 -07:00
Ed Lee
6504db9cc4 Bug 1152145 - Filter for specific suggested tiles adgroups/buckets/frecent_sites lists with display name [r=adw]
Use a set of predefined lists of allowed sites with explicit names.
2015-04-07 19:13:46 -07:00
Marina Samuel
a048f7b582 Bug 1139052 - Don't show suggested tiles for users with fewer than 8 history tiles. r=adw 2015-04-14 14:39:50 -04:00
Marina Samuel
571670c469 Bug 1151876 - Blocking a targeted tile should remove its associated suggested tile in the next new tab. r=adw 2015-04-14 14:34:32 -04:00
Marina Samuel
de14453564 Bug 1149682: Don't cache (or show) sponsored suggested links. r=adw 2015-04-01 17:34:21 -04:00
Marina Samuel
59dcd71d70 Bug 1149680: Send the Firefox channel on fetch. r=adw 2015-04-01 17:30:28 -04:00
Marina Samuel
8969e4e7ca Bug 1105360: Only enhance tiles that are under the 'enhanced' key. r=adw 2015-04-01 17:26:46 -04:00
Ed Lee
ba5245a0e3 Bug 1148938 - Temporarily test suggested tiles for Nightly and Aurora [r=adw]
Temporarily switch to a local source with test suggested data.
2015-03-29 23:43:30 -07:00
Ed Lee
e3de81a6b8 Bug 1149021 - Suggested tile with just an image shows a thumbnail instead [r=adw]
Use Object.assign to copy over base values into a new link with extra attributes.
2015-03-29 23:30:54 -07:00
Marina Samuel
b703242588 Bug 1136203 - Remove thumbnail/title replacing functionality for history tiles. r=adw 2015-03-27 17:57:11 -04:00
Ed Lee
28beb6313b Bug 1140496 - Only show a suggested tile url for some number of times or until clicked [r=adw]
Default to a hardcoded frequency cap that decreases by 1 per view or all for a click.
2015-03-22 00:46:26 -07:00
Marina Samuel
87037038e5 Bug 1136208 - Change all references of 'related' to 'suggested' r=adw 2015-03-26 17:23:21 -04:00
Marina Samuel
5dcc57c3cb Bug 1143745 - Update the way Firefox reads directoryLinks.json sent from the server for the tiles v3 endpoint. r=adw 2015-03-26 17:17:59 -04:00
Marina Samuel
61f9dd2f01 Bug 1143797 - Allow clicking on suggested explanation text to see overlay explaining the suggested tile. r=adw 2015-03-26 17:05:44 -04:00
Marina Samuel
c6ae142a95 Bug 1126188: Show suggested tile explanation text under a suggested tile. r=adw 2015-03-20 16:39:09 -04:00
Marina Samuel
eeb6cc64f9 Bug 1126184: Part 3: Mochitest fixes for suggested tiles. 2015-03-13 11:45:38 -04:00
Marina Samuel
d34ad163c6 Bug 1126184: Part 2: Select a single tile to show as the first unpinned tile based on a user's top sites. r=adw 2015-03-13 11:45:34 -04:00
Marina Samuel
49cf9583fc Bug 1126184: Part 1: Make DirectoryLinksProvider listen to PlacesProvider and update its _topSitesWithRelatedLinks cache. r=adw 2015-03-13 11:45:31 -04:00
Wes Kocher
16be8c7f13 Backed out 3 changesets (bug 1126184) for causing a spike in new tab bc1 test failures CLOSED TREE
Backed out changeset 7d48a8bad488 (bug 1126184)
Backed out changeset a1fa056e0c0d (bug 1126184)
Backed out changeset e29b97e5e30c (bug 1126184)
2015-03-10 19:01:11 -07:00
Marina Samuel
e37a167ce6 Bug 1126184: Part 3: Mochitest fixes for suggested tiles. r=adw 2015-03-10 17:33:28 -04:00
Marina Samuel
395ed818ed Bug 1126184: Part 2: Select a single tile to show as the first unpinned tile based on a user's top sites. r=adw 2015-03-10 17:33:25 -04:00
Marina Samuel
4485529cac Bug 1126184: Part 1: Make DirectoryLinksProvider listen to PlacesProvider and update its _topSitesWithRelatedLinks cache. r=adw 2015-03-10 17:33:22 -04:00
Marina Samuel
f0bab1f40d Bug 1126182: Extract related tiles data from links json and store for later selection. r=adw 2015-03-10 17:08:30 -04:00
Ed Lee
f84f759074 Bug 1088729 - Only allow http(s) directory links and https/data images [r=adw] 2014-10-24 09:33:03 -07:00
Sid Stamm
0eb2e3e893 Bug 1042135 - Update Directory Links Provider to use only the dnt.enabled pref after removing the dnt.value pref. (r=adw) 2014-10-22 10:31:14 -07:00
Phil Ringnalda
89b14d6af0 Back out 3 changesets (bug 1042135) for robocop bustage
CLOSED TREE

Backed out changeset dffed5d2a799 (bug 1042135)
Backed out changeset b80a02b929cc (bug 1042135)
Backed out changeset 093ea94a1697 (bug 1042135)
2014-10-21 23:11:11 -07:00
Sid Stamm
a5da661ccc Bug 1042135 - Update Directory Links Provider to use only the dnt.enabled pref after removing the dnt.value pref. (r=adw) 2014-10-21 16:55:36 -07:00
Ed Lee
04469762da Bug 1075620 - Switch to GET for fetch to allow caching of links data from redirect [r=ttaubert]
Use GET instead of POST and update the fetch endpoint to use %LOCALE%.
2014-10-01 09:44:32 -07:00
Sudheesh Singanamalla
6503b7e071 Bug 1054492: move DirectoryLinksProvider.jsm to browser/ since it's Firefox-specific, r=gavin 2014-09-22 13:23:19 +05:30