Граф коммитов

537 Коммитов

Автор SHA1 Сообщение Дата
Maxim Zhilyaev c65b554383 Allow for empty url 2014-05-08 00:22:17 -07:00
Maxim Zhilyaev 1ec86241a2 Fix and a test to title classification 2014-05-08 00:22:17 -07:00
Maxim Zhilyaev 4f62341faa Add error handling to UrlClassifier 2014-05-08 00:22:17 -07:00
Maxim Zhilyaev 14a803efc9 Only populate workersData if messageId is "resubmit"
This is done to avoid clash with UrlClassifier
2014-05-08 00:22:17 -07:00
Maxim Zhilyaev 71c82aeeb2 Remove unused notification 2014-05-08 00:22:17 -07:00
Maxim Zhilyaev 9e94d0a745 Implementation of UrlClassifier 2014-05-08 00:22:17 -07:00
Maxim Zhilyaev 69159aba55 Move getBaseDomain to Utils 2014-05-08 00:22:17 -07:00
Maxim Zhilyaev 2fce2fae98 Nove getPlacesHostForURI to Utils 2014-05-08 00:21:23 -07:00
Maxim Zhilyaev 248da75b56 Add mozhosts interests to Dispatcher payload 2014-05-08 00:17:27 -07:00
Maxim Zhilyaev a1245f826f Expose mozhost computed interests in dev UI 2014-05-08 00:17:27 -07:00
Maxim Zhilyaev 9b86a617ac Expose Controller API to get interests computed on mozhosts 2014-05-08 00:17:27 -07:00
Maxim Zhilyaev 224b866138 Compute interests for progressive slices of top mozhosts 2014-05-08 00:17:27 -07:00
Maxim Zhilyaev 913d3e88fe Add mozhosts query to PlacesInterestsUtils. 2014-05-08 00:17:27 -07:00
Olivier Yiptong 0f25b877d9 remove error log in Headliner.js 2014-05-07 15:19:57 -04:00
Olivier Yiptong af9f386b94 remove extra whitespace in Dispatcher.js 2014-05-07 15:19:36 -04:00
Ed Lee 3b27a65ca5 Bump version to 4.0.1. 2014-03-28 18:26:05 -07:00
Olivier Yiptong 35d6c85da5 sanitizeAttrs instead of escapeHTML for html attributes 2014-03-28 18:22:53 -07:00
Olivier Yiptong 18cd08e4a7 new NYTimes templates escaped to be consistent for AMO reviewer 2014-03-28 18:22:53 -07:00
Olivier Yiptong f69b85a377 change sanitizeURL to sanitizeAttrs with the option to sanitize urls 2014-03-28 18:22:53 -07:00
Marina Samuel 099a2993d7 Closes #68: Use escapeHTML() instead of sanitize() for attributes. 2014-03-28 18:22:53 -07:00
Maxim Zhilyaev db8d46efe0 Closes #75: Regenerated encrypted survey responses mapping 2014-03-28 10:39:50 -07:00
Ed Lee 4fc0d37d4a Bump version to 4.0.0. 2014-03-27 18:58:46 -07:00
Maxim Zhilyaev 146b8595d2 Closes #72: Always resolve StudyApp.submitPromise in tests 2014-03-27 18:55:32 -07:00
emtwo fb12427531 Merge pull request #70 from Mardak/fix-sanitize
Nit: remove true param from sanitizeURL() call.
2014-03-27 15:04:40 -07:00
Marina Samuel 6609d9d195 Nit: remove true param from sanitizeURL() call. 2014-03-27 15:00:44 -07:00
Marina Samuel fc4bf8f149 Add sanitizeURL tests. 2014-03-27 12:36:41 -07:00
Marina Samuel c1bd2105fd Factor out HTML escape code to bleach.js. 2014-03-27 12:36:41 -07:00
Marina Samuel 770e4116bb Escape HTML where needed. 2014-03-27 08:39:56 -07:00
Olivier Yiptong 1fa7cf7dd7 use assert.equal instead of isIdentical for simple assertions 2014-03-26 15:44:31 -07:00
Olivier Yiptong 704d4e751d clear storage.interests before testing Dispatcher._deleteDays 2014-03-26 15:44:06 -07:00
Olivier Yiptong c1062d5422 fix whitespace in NYTimesRecommendations 2014-03-26 14:59:02 -07:00
Olivier Yiptong 3ce52ece44 fix test-NYTimesRecommendations 2014-03-26 14:58:41 -07:00
Olivier Yiptong 9c5752fb25 test-Utils passes regardless of default pref change 2014-03-25 13:40:45 -07:00
Maxim Zhilyaev bc72f4b5aa Closes #64: Enable localized interests mapping
Move accessing user-agent-locale into a helper function
Move suvery endpoints to WorkerFactory
Process locale/model/localizedInterests.json
Map interests to local names in Surveyor
Simplify locale selection and worker setup
2014-03-20 00:03:08 -07:00
Pin Zhang f00ca4ee01 Fix test error: undefined - "en-US" == "chrome://global/locale/intl.properties" 2014-03-17 17:28:10 -07:00
Pin Zhang 76678137a4 Fixed unlocalized strings 2014-02-25 10:27:15 +08:00
Olivier Yiptong c2b9d14850 add a new version of angular-gettext that compiles translated strings. more at oyiptong/angular-gettext@79ee6183cb 2014-02-24 16:36:59 -05:00
Pin Zhang a2d0c3ed56 Add locale file for zh-CN 2014-02-24 16:36:59 -05:00
Olivier Yiptong 0643ffc968 consent page internationalization
Uses angular-gettext and grunt tasks to:
1) from template, obtain strings to localize
2) create gettext templates
3) from localization files, compile into a JS object
4) localize strings in angular at runtime

To obtain strings using grunt, the template code had
to be moved from ng/templates into the main
pre-template DOM.

A new directive has been added to $compile the
translated markup before adding to the Modals' DOM,
in order for the Modal buttons to work.

closes #52
2014-02-24 16:36:59 -05:00
Olivier Yiptong 33eeeec23b version bump to 3.0.1 and headliner server url change 2014-02-24 16:35:31 -05:00
Olivier Yiptong c3e8bf9d8c prevent script tags from loading async
the script tags that are injected in the
document's js sandbox are loaded async
by default.
https://developer.mozilla.org/en/docs/Web/HTML/Element/script#Async_support

This change forces the scripts to be loaded
synchronously

Closes #61
2014-02-24 15:53:09 -05:00
Maxim Zhilyaev a0a8d7030f Closes #56: verify that nyt urls start with 'resource://' 2014-02-19 14:04:54 -08:00
Maxim Zhilyaev c9c613470f CLoses #55: sanitize headliner-oldStyleRubric
This is the last file to be sanitized, thus closing #55
2014-02-19 13:52:54 -08:00
Maxim Zhilyaev 8f3b5274cd Sanitize headliner-ribbon 2014-02-19 13:50:30 -08:00
Maxim Zhilyaev 90d1db8e1c Load bleach.js 2014-02-19 13:50:30 -08:00
Maxim Zhilyaev 5204276a9e Remove conflicting defines
Using define() conflicted with nytime.com pages
2014-02-19 12:09:54 -08:00
Maxim Zhilyaev bdd7efc433 Added bleach.js and its unit tests 2014-02-18 17:04:13 -08:00
Maxim Zhilyaev 59d6d855e3 Closes #59: De-obfuscate templates["ribbonPageNavTip"] 2014-02-18 12:53:36 -08:00
Maxim Zhilyaev cec1da1ae4 Closes #54: de-obfuscate templates["storyCollection"] 2014-02-18 12:51:05 -08:00
Maxim Zhilyaev f00f9c9767 Closes #53: De-obfuscate templates["ribbonPageNavigationHeadliner"] 2014-02-18 12:28:40 -08:00