Bug 861730 - Add the missed item
Bug 854413 - [MMS][SMS] Move all DOM element property initialization into init methods and rationalize variable names and ids r=julienw

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
(cherry picked from commit 5a45368a71fc0569bf4adaf8cbf03d4062c6b756)

Conflicts:
	apps/sms/js/message_manager.js
	apps/sms/js/thread_list_ui.js
	apps/sms/js/thread_ui.js
Merge pull request #8974 from rwldrn/854494

Bug 854494 - [MMS][SMS] Remove the "no results returned" message from contact lookup(cherry picked from commit 50dccb3357a313d52304bb25fea4ff96737a2bf5)

Conflicts:
	apps/sms/js/thread_ui.js
	apps/sms/locales/sms.ar.properties
Bug 853788 - [SMS] support the "full name search" use case r=julienw

- Bug 853788 - [SMS] support the "full name search" use case …  05c0217
- Make multi-term searches match on both fields. Fixes display of match… …  db02b1c
- Add clarification of contact match validation. Set handlers to null (… …  870b7b6
- Change contact lookup and filter strategy …   037bd66
- Finalize Validation and Lookup strategies …   6a6b441
- Fix early bailouts on missing inbound filterValues. Update Lookup Str… …  578cfba
- Clarifies bailout strategy for avoiding known errors …  e1d70b7
- Failing tests: multi-term lookups where predominate term is the first… …  142c5cf
- Fixes: multi-term lookups where predominate term is the first in the … …  49c3938
- gjslint line length nits …  5ed2251
- Devolve the isMatch implementation …  99bf4eb
- Prevent duplicates appearing as a result of fast-typing. Reduces list… …  4ba9a8a
- Modify MockContact to accept explicit givenName, familyName; Modify M… …  41abe0a
- Update MockMozContacts.find to support multi-term search result mocks …   d0cba06
- Update multi-term search validation and matching tests …  d35624e
- Always remove the previously existing results. …  d3804b0
- Don't expose isMatch on the Contacts object

Bailout Strategy
1. A _missing_ filter.filterValue will results in an
   error when passed to mozContacts.find, bailing out
   early avoids the additional overhead of making a
   request that we know will fail.
2. Missing navigator.mozContacts API or empty but
   present filter.filterValue make the app useless,
   so prevent unpredictable state by making the
   result a no-op.

Validation Strategy
1. Let _found_ be a register of confirmed terms
2. Let _contact_ be a contact record.
3. For each _term_ [...input list], with the label _outer_
 - For each _field_ of [givenName, familyName]
   - For each _value_ in _contact_[ _field_ ]
     - Let _found_[ _term_ ] be the result of calling
         _value_.startsWith( _term_ )
       - If _found_[ _term_ ] is **true**, continue to
         loop labelled _outer_
4. If every value of _key_ in _found_ is **true** return **true**,
  else return **false**

Lookup Strategy
1. If only 1 term, set filterValue to that term.
2. If more than 1 term, find the length predominate term.
3. If filterValue.length is < 3, set the filterLimit to 10
4. Remove the length predominate term from the list of validation terms
5. Make a mozContact.find request with the length predominate term
   as the filter.filterValue.
6. In the mozContacts.find request success handler, filter the
   results by evaluating each contact record against
   the list of validation terms.

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
(cherry picked from commit e58c98b9eafd24046577c80242f157c31b8c43e0)

Conflicts:
	apps/sms/js/thread_ui.js
Merge pull request #9111 from borjasalguero/bug_regression_back

Bug 860187 - [Buri][SMS]When viewing the message content, sometimes back...(cherry picked from commit b430b9af8d0ddb9289622731a3d13c2c80242dfa)
Merge pull request #8982 from rwldrn/856085

Bug 856085 - [sms] support multiple term search highlight(cherry picked from commit 60c354ac09320a284c8be948e75424a4b7db9c31)
Merge pull request #9167 from crh0716/861730

Bug 861730 - Add the missed item. r=evelyn, a=leo+.
Bug 857795 - Convert bluetooth VTS command to keypad press
Merge pull request #9195 from crh0716/v1-train_857795

Bug 857795 - Convert bluetooth VTS command to keypad press. r=etienne, a=leo+
Merge pull request #8719 from gasolin/issue-838028

Issue 838028 share video via bluetooth(cherry picked from commit 733e68c85acf60fe7029b11f72b08edd032c3720)

Conflicts:
	apps/video/style/video.css
Bug 838606 - [Building Blocks][Switches] The color code currently used is not correct.

Conflicts:
	shared/style/switches/images/check/default@2x.png
	shared/style/switches/images/radio/default@2x.png
Merge pull request #9112 from rnowm/contacts-search

Bug 859725 - [Contacts] Remove search box active state(cherry picked from commit 6c74344e6adba52b9b00abf2c86d63b80a6340f2)
Merge pull request #9116 from rnowm/sms_disabled_buttons

Bug 833763 - [SMS] The "Deselect All" button is transparent r=borjasalguero (cherry picked from commit 6c095cb6ab33cac3deaf5c16a24519ba312dc4a7)
Merge pull request #9109 from evelynhung/issue-854609

bug 854609 - clear record before showing connection fail alert, r=arthur(cherry picked from commit 7de2688c60a0b9a20bd43bff8e7cc3577d0d9c1b)
Merge pull request #9139 from gtorodelvalle/dialer-bug-859879-add-new-number-localization

Bug 859879 - Add New Number screen not translated with GAIA_DEFAULT_LOCALE (r=etiennesegonzac).(cherry picked from commit 8ea1e63c1d5a18342fa1195bfa5cb173dd922fad)
Merge pull request #9096 from lodr/bug-846402-comparing-utc-dates

Bug 846402 - Use UTC comparison instead of local time to avoid the effect of timezones.(cherry picked from commit 9c0320c1787760af16e76b79932b25546c1f8a9f)
Merge pull request #9171 from gasolin/issue-860595

Bug 860595 - video decoder not released while power on(cherry picked from commit dc656c47d1db373866568b318bbc88be315b9138)
Bug 845661 - Manually blur browser elements on attentionscreen. r=daleharvey
(cherry picked from commit 558effceb97a172cd1e6a306d25fbb1484d8c19c)
Merge pull request #9108 from dominickuo/video-picker

Bug 849768 - [video] implement video picker, r=daleharvey(cherry picked from commit dd039707d0f85e5710287a905ba6d574ff7e51a3)
Merge pull request #9189 from asutherland/imap-parallel-fetch

Bug 814251 - [email/IMAP] implement IMAP pipelining of FETCH requests to reduce latency. r=asuth, r=lightsofapollo, a=blocking-b2g=tef+(cherry picked from commit 320a0f6a3738cb4dffbe7ba22a8510a2cbd10351)