Merge pull request #11351 from jmcanterafonseca/fix_link_img

Bug 901512 - [Contacts] Unable to finish the linking process when there ...(cherry picked from commit a356920154f9bdcde0624092fe0ec5d7a3f40dfe)

Conflicts:
	apps/communications/facebook/js/facebook_connector.js
Bug 903947 - [Messages] The last recipient is copied everytime when selecting recipeint for removing r=julienw

https://bugzilla.mozilla.org/show_bug.cgi?id=903947

- Clicks on accepted recipients...
    - Should close the keyboard, if it's a known contact recipient
    - while manually entering a recipient:
        - Two rendered recipients
        - A placeholder for the cursor
    -  with only accepted recipients:
        - no changes, no assimilated recipients
    - with no placeholder at end of list:
        - no changes, no assimilated recipients
    - Ensure MockDialog triggers are assigned an initial called value (false)

This patch also fixes https://bugzilla.mozilla.org/show_bug.cgi?id=903943

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Bug 904640 - [Messages] Keyboard should always close when pressing Send r=julienw

https://bugzilla.mozilla.org/show_bug.cgi?id=904640

- Remove focus from all elements before panel change by calling document.activeElement.blur() in MessageManager.onHashChange
- Updates Mocks:
    - MockThreadListUI to contain all properties (data and method)
    - MockThreadUI to contain all properties (data and method)
- Tests MessageManager.onHashChange:
    - Remove any focus left on specific elements
        - Assert on spy intel for document.activeElement.blur
    - Exit edit mode (Thread or Message)
        - Assert on spy intel for:
            - ThreadUI.cancelEdit
            - ThreadListUI.cancelEdit
    - Reset Group Participants View
        - Assert on spy intel for ThreadUI.groupView.reset

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>

Conflicts:
	apps/sms/test/unit/mock_thread_ui.js
bug 905287 was caused by this commit.  Reverting "Merge pull request #11351 from jmcanterafonseca/fix_link_img"

This reverts commit dce27932836dfdf9645eae565bda084692ed1a1d.
bug 852361 -- Revert "Merge pull request #8726 from leob2g/Bug_852361_Device_is_shut_down_when_battery_level_become_two_percents"

This reverts commit 22e0768fbcec94d049b071bdbed967ed651cdd2e.
Merge pull request #10255 from lightsofapollo/bug-880485-use-removeChild-not-remove

Bug 872226 - Use removeChild (as was intended)
(cherry picked from commit cfcea9998ac4b50ac221d59eb1709371f1ed6767)
Bug 902390 - [sms][mms] the input is 1px too high with the 'Moz' font r=borja

(cherry picked from commit 54e79c453515a7b2ad443ccd99936ced1b3ff029)
Merge pull request #11343 from arcturus/bug-901472

Bug 901472 - [Cost Control] Modify the parameters for checking the credit in Colombia
r=salva
(cherry picked from commit b527d7406b4eed3bacdee78597bb4ff21bf9f7d0)
Merge pull request #11485 from etiennesegonzac/bug-904076-call-log-db-create

Bug 904076 - fixing a bug in the call log db creation path. r=rik
(cherry picked from commit 660775166253433e1ab7bf659b5881b135f81dbe)
Bug 897437 - SMS message timestamps do not display the expected strings. r=gnarf

Rewrote the message container handling function. Now with lots of unit tests
covering lots of edge cases.

This patch also does a very little bit of safe refactoring, still with unit
tests.

(cherry picked from commit e4e4b2fa63a61e97ce553dfd39c9316cf3fc4c75)
Merge pull request #11516 from leob2g/Bug_901801_897874_Followup_Notification_horizontally_scrollable_with_many_CB_messages

Bug 901801 - 897874 Followup: [Notification] horizontally scrollable with many CB messages, r=alive
(cherry picked from commit 1aa549b40d714e43846102a5a8b2c996f6493fdf)
Merge pull request #11548 from RudyLu/keyboard/Bug902352-placeholder_as_word_separator

Bug 902352 - Make Gaia keyboard treats the placeholder
r=timdream(cherry picked from commit be95c3b6757290fff4fdde7a2b73c68f599131a1)
Bug 905950 - [Messages] Recipient assimilation should only occur when composing a new message r=gnarf

https://bugzilla.mozilla.org/show_bug.cgi?id=905950

- Restrict recipient assimilation:
    - Only when in #new view
    - Only when there is a placeholder to inspect

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Merge branch 'v1-train' of git://github.com/mozilla-b2g/gaia into thaikeyboard-v1-train