Commit Graph

18480 Commits

Author SHA1 Message Date
Wes Kocher
b5269f8dbf Merge m-c to autoland, a=merge
MozReview-Commit-ID: BDOTGJBgUrr
2017-03-20 18:27:32 -07:00
Wes Kocher
4f5262444c Merge inbound to central, a=merge
MozReview-Commit-ID: 2omKclRg40c
2017-03-20 18:19:52 -07:00
Grigory Kruglov
e7b03d35b1 Bug 1346438 - Specify X-I-U-S header value as 0 when uploading crypto/keys r=nalexander
MozReview-Commit-ID: GTcZUdvVU8E

--HG--
extra : rebase_source : 14318877ae4d52384090e99e7668e1deb19f3408
2017-03-17 19:09:43 -07:00
Grigory Kruglov
8009760a1c Bug 1346438 - Specify X-I-U-S header value while uploading meta/global r=nalexander
We upload meta/global in three scenarios:
- fresh start
- when it was modified after a successful sync
- when it was modified after an aborted sync

Use X-I-U-S header to assert what we believe about meta/global's presence (during freshStart)
and last-modified timestamp (in all other cases).

We might encounter a concurrent modification condition, manifesting as a 412 error. If we see such an error:
- on fresh start, we restart globalSession
- on regular upload, we request a re-sync of all stages

MozReview-Commit-ID: 3qyb6rUSOeY

--HG--
extra : rebase_source : 166be44aceb634b4e9fa3a8e20f7047cfec2af54
2017-03-20 16:40:13 -07:00
Dylan Roeh
863a41136f Bug 1338055 - Store a reference to the instance EventDispatcher in PromptService. r=jchen 2017-03-20 14:32:44 -05:00
Carsten "Tomcat" Book
43fb02d095 Merge mozilla-central to mozilla-inbound 2017-03-20 13:11:49 +01:00
Tomislav Jovanovic
6ec248d32c Bug 1339559 - Enable no-mixed-operators ESLint rule r=kmag
MozReview-Commit-ID: LjuiizBh1OK

--HG--
extra : rebase_source : 0423cca6e47ed593ec79d56c96a16f63628b15d1
2017-03-17 14:28:14 +01:00
Tomislav Jovanovic
8dd875bed5 Bug 1339559 - Identify script that resulted in non-structured-clonable data r=kmag
MozReview-Commit-ID: AURB4Qpwimh

--HG--
extra : rebase_source : 51c70e2d18745c49494b2dead4b5863eba88c08b
2017-03-13 09:04:45 +01:00
Sebastian Hengst
c9f5cc6b45 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 8nsStTZt40O
2017-03-18 16:24:53 +01:00
Dylan Roeh
e9e8faf6a8 Bug 1345267 - Check NEON compatibility in BrowserApp/GeckoApp.onCreate() and fail with an appropriate error message if necessary. r=jchen 2017-03-17 18:38:54 -05:00
Julian_Chu
ff25bd957c Bug 1332546 - Add SiteIdentityPopup to CustomTabsActivity r=sebastian
Similiar to GeckoApp, once user click icon in ActionBar, it displays
a popup menu for site identity.

MozReview-Commit-ID: LpvhFjx2BSk

--HG--
extra : rebase_source : 6771f9d2b50da26306222072aa85d42b26a3ebce
2017-03-10 13:08:19 +08:00
Julian_Chu
9cd94a439f Bug 1332546 - add initialization checking to SiteIdentityPopup r=sebastian
If there are multiple SiteIdentityPopup instances.(ie. in GeckoApp and
in CustomTabsActivity), each instances will start receiving events once
attached to window. However it might have not call init() yet.

MozReview-Commit-ID: 1dIAUOTeTLg

--HG--
extra : rebase_source : e38d5b734fc057e44b3fe8bba82c6aedbcf65dd4
2017-03-10 12:54:09 +08:00
Julian_Chu
8222acd68f Bug 1332546 - Add CustomView to ActionBar of CustomTabsActivity r=sebastian
The CustomView has three components

  * Icon - for site info to indicate whether the visited site is security
  * Title
  * Url

Icon is for site info to indicate whether the visited site is security.
Its icon type is decided by SecurityModeUtil. All of the components' color
are the same as TextView color.

When onTabChanged happens, it updates CustView of ActionBar to reflect
current site security status. Sometimes the callback will be invoked rapidly
several times in very short time. To avoid icon twinkle, to add a delay when
updating CustomView.

MozReview-Commit-ID: KCu3XLObmmV

--HG--
extra : rebase_source : 4f2ad2517124b59168b6d6b5149800b4be4bd5a9
2017-03-09 15:17:36 +08:00
Julian_Chu
dcd968069b Bug 1332546 - Apply default actionbar color r=sebastian
Designer provides a color code as default background color for
ActionBar.

Also get rid of `NO_COLOR`: -1 equals 0xFFFFFFFF, so it always ignores
white color.

MozReview-Commit-ID: 6YJDxsSOhkZ

--HG--
extra : rebase_source : f0c7e5f3d004eff2df557b4b6f448a534718384f
2017-03-08 11:43:24 +08:00
Julian_Chu
2a51952e86 Bug 1332546 - ensure ActionBar color is not translucent r=sebastian
Translucent color cause some rendering problem in Toolbar. For example,
if we set translucent color to toolbar and changes title, we will see
new title convers the old-translucent title.

Since ActionBar is usually on the top and nothing behind it, it does not
make sense use translucent color as its background.

MozReview-Commit-ID: LdZyuYZ7IgX

--HG--
extra : rebase_source : 5839a1ef14c28dc75f55772c3209b334b4b8391a
2017-03-08 11:13:48 +08:00
Julian_Chu
cb7ce66ae0 Bug 1332546 - Refactory ActionBar by extracting methods to another class r=sebastian
ActionBar of CustomTabsActivity is getting complicated. There will be
more components in ActionBar, such as Site-identity-icon.

Move some action-bar related view code to another class.

MozReview-Commit-ID: I5sOSCQKnlv

--HG--
extra : rebase_source : 6822593af92c657c496339ba8df7769ea463c681
2017-03-03 13:02:16 +08:00
Wes Kocher
b58db2c9cb Merge m-c to autoland, a=merge
MozReview-Commit-ID: Ccc8rDMJMfn
2017-03-17 11:13:53 -07:00
Carsten "Tomcat" Book
3e0a5441c6 Merge mozilla-central to mozilla-inbound 2017-03-17 14:55:15 +01:00
Carsten "Tomcat" Book
d9ee923985 Backed out changeset 20537ebcebdb (bug 1303838) for eslint failure 2017-03-17 11:21:32 +01:00
Samael Wang
9e49902c09 Bug 1303838 - Switch to existing target tab when clicking links. r=smaug
Merge "DOMServiceWorkerFocusClient" & "DOMWebNotificationClicked"
to "DOMWindowFocus" event. Utilize the event to switch tab when
loading links to an existing target tab.

MozReview-Commit-ID: Hd1NkVkrJA1
2017-03-16 18:39:31 +08:00
Jim Chen
b00f1b075f Bug 1344892 - Let native calls dispatch to XPCOM event queue; r=snorp
Bug 1344892 - 1. Add option to dispatch to priority queue; r=snorp

For the regular "gecko" option, change to dispatching to the XPCOM event
queue, and add a new "gecko_priority" option that dispatches calls to
the widget event queue. GeckoThread.waitOnGecko is changed to wait on
both the widget queue and the XPCOM queue. nsAppShell::SyncRunEvent is
changed to avoid a possible deadlock condition involving locking
sAppShellLock twice.

Bug 1344892 - 2. Update dispatchTo = "gecko" options; r=snorp

Update some existing dispatchTo = "gecko" options to "gecko_priority",
which typically involve UI events or JNI management calls like
disposeNative. As a rule, disposeNative is dispatched to the queue with
the least priority among the queues that other native members of the
same class dispatch to (i.e. "gecko_priority" if all other native
members dispatch to "gecko_priority", or "gecko" if any native members
dispatch to "gecko").

Bug 1344892 - 3. Update auto-generated bindings; r=me
2017-03-16 23:30:54 -04:00
Michael Kaply
b02f7f556f Bug 1347830 - Remove actual list.txt and remaining references. r=flod
MozReview-Commit-ID: 9sU5SDuqCTu

--HG--
extra : rebase_source : b20757bcf1b000632ebe3e7bb2e1aa84ae4d794e
2017-03-16 10:05:13 -05:00
Florian Quèze
9c4d40bb54 Bug 1345294 - script generated patch (+ some hand cleanup) to replace {get,set}ComplexValue for nsISupportsString by {get,set}StringPref, r=Mossop. 2017-03-16 19:26:01 +01:00
Geoff Brown
7e2388e217 Bug 1347407 - Add an Android 7.0 AVD for mach android-emulator; r=me,test-only
Add support for 'mach android-emulator --version 7.0'. This AVD is somewhat
experimental but has worked well in my initial testing.
2017-03-16 10:44:42 -06:00
Jim Chen
8ae81abdc5 Bug 1345967 - Use global EventDispatcher for update messaging; r=sebastian
Use the global EventDispatcher for signaling update results. The event
listener in about.js must be unregistered after every event to prevent
memory leaks, so expectUpdateResult() is added and called whenever we
are expecting update results.
2017-03-16 12:37:41 -04:00
Carsten "Tomcat" Book
ac913a6db5 merge autoland to mozilla-central a=merge 2017-03-16 15:34:56 +01:00
Dale Harvey
dfeaec0a75 Bug 1336355 - follow up to fix lint. r=sebastian a=tomcat 2017-03-16 04:19:00 +01:00
Michael Kaply
77f33bf9f9 Bug 1300201 - Switch Fennec to use list.json. r=sebastian,r=flod
MozReview-Commit-ID: JNtFSCOQhJ

--HG--
extra : rebase_source : ee63b3d2bc9f82a0e0a9c8ca4ef752e7a32106b9
2017-03-09 14:58:57 -06:00
Dale Harvey
6895048221 Bug 1336355 - Open webapps in new activity. r=sebastian 2017-03-15 15:39:01 +00:00
Wes Kocher
253f5fb58d Bug 1036764 - Checkstyle followup a=bustage
MozReview-Commit-ID: DCTaCnF9SEi
2017-03-16 17:00:09 -07:00
nechen
5f8404dfd0 Bug 1036764 - Add telemetry for flash. r=bsmedberg,snorp data-r?bsmedberg
MozReview-Commit-ID: 1tsNZlEmx6s

--HG--
extra : rebase_source : 81bae8d6a3b4fb5c1ab037d4bb83722d3152dd86
2017-03-14 14:12:26 +08:00
John Lin
5a454c0c9d Bug 1345599 - part 2: queue empty buffer when fail to copy input data. r=snorp
MozReview-Commit-ID: 3XkxZDOk6PQ

--HG--
extra : rebase_source : 7a471590b31a687b2bed9fecb5dfc10884faaaaf
2017-03-14 14:53:36 +08:00
John Lin
da26ca9e41 Bug 1345599 - part 1: reduce InputExhausted() calls to avoid input queue flood. r=snorp
MozReview-Commit-ID: Kgl77k9Cx7w

--HG--
extra : rebase_source : 0eb81069bb44e26dac3a3f62d782f912e381aebb
2017-03-14 14:51:52 +08:00
Wes Kocher
1d6765414b Merge m-c to autoland, a=merge
MozReview-Commit-ID: AcDLWqQhcBe
2017-03-15 14:29:24 -07:00
Carsten "Tomcat" Book
f807b332df merge mozilla-inbound to mozilla-central a=merge 2017-03-15 13:12:42 +01:00
Iris Hsiao
4f73e7bc5f Backed out changeset 4f5a93b89b2b (bug 1344892) for Mochitest rc4 failures in Android 2017-03-15 17:37:39 +08:00
Jim Chen
61f2f7ff7b Bug 1344892 - Let native calls dispatch to XPCOM event queue; r=snorp
Bug 1344892 - 1. Add option to dispatch to priority queue; r=snorp

For the regular "gecko" option, change to dispatching to the XPCOM event
queue, and add a new "gecko_priority" option that dispatches calls to
the widget event queue.

Bug 1344892 - 2. Update dispatchTo = "gecko" options; r=snorp

Update some existing dispatchTo = "gecko" options to "gecko_priority",
which typically involve UI events or JNI management calls like
disposeNative.

Bug 1344892 - 3. Update auto-generated bindings; r=me
2017-03-14 17:47:16 -04:00
Jim Chen
1e1e74942d Bug 1347280 - Update EventDispatcher default map sizes; r=me
Update the default map sizes in EventDispatcher as determined
empirically. r=me for trivial patch.
2017-03-14 17:46:14 -04:00
Jim Chen
c27710ffad Bug 1346942 - Fix "Menu:Clicked" event listener; r=me
Change the undefined `aTopic` reference in the "Menu:Clicked" event
listener to `event`. r=me for trivial patch.
2017-03-14 17:46:14 -04:00
Geoff Brown
834f5465ad Bug 1346423 - Add manifest for Android x86 6.0 AVD; r=me,test-only
This adds support for 'mach android-emulator --version x86-6.0', a fast,
modern Android emulation environment for testing x86 builds of Firefox.
2017-03-14 08:08:45 -06:00
Zibi Braniecki
7cb5e257c7 Bug 1346617 - Add LocaleService::SetRequestedLocales. r=jfkthame
MozReview-Commit-ID: FrziO9fOs3R

--HG--
extra : rebase_source : a2f1b5c31317c80666fbda334ea7bfcef28397b6
2017-03-12 12:34:56 -07:00
Wes Kocher
8f1654d5da Merge m-c to autoland, a=merge
MozReview-Commit-ID: FnlgTDNtM67
2017-03-14 17:24:12 -07:00
Alphan Chen
3a09e7487d Bug 1287660 - New implementation of nsIHandlerService for the JSON backend. r=Paolo
MozReview-Commit-ID: 46fQq1Pr8bT

--HG--
extra : rebase_source : a04153c9507b7f18c94b81d12e4167d1a12e9cce
2017-03-10 17:41:33 +08:00
Edouard Oger
ec0e5f70b8 Bug 1254643 - Delete FxA device when Fennec Firefox Account is removed. r=Grisha
MozReview-Commit-ID: H4lJlXGYIBg

--HG--
extra : rebase_source : f5862b9591def7ee300c6f02ff7750ead043241a
2017-03-13 14:35:41 -04:00
Carsten "Tomcat" Book
e078579f28 Merge mozilla-central to mozilla-inbound 2017-03-13 15:25:16 +01:00
Carsten "Tomcat" Book
c1edc7067d merge mozilla-inbound to mozilla-central a=merge 2017-03-13 15:22:26 +01:00
Jan Henning
a6d3db031b Bug 1346171 - Part 2 - Test synchronous session file deletion on clearing history. r=sebastian
MozReview-Commit-ID: JUrbSD2t41t

--HG--
extra : rebase_source : b563dc9944f13f1fc2fccdc1b88786282f8d6379
2017-03-12 11:13:33 +01:00
Jan Henning
bb40130b5e Bug 1346171 - Part 1 - Check correct file before attempting do delete it. r=sebastian
MozReview-Commit-ID: 29UT51xRoVN

--HG--
extra : rebase_source : e197b97e53c46732beb5e356dd12932f288b3053
2017-03-12 11:13:22 +01:00
Dão Gottwald
40034ab5b7 Bug 1345432 - Clean up XUL checkbox styling, remove fallback styling and fix the focus indicator. r=karlt
MozReview-Commit-ID: CcqLKFVvLwC

--HG--
extra : rebase_source : 8665cf698dfc561a2bdc84de27a75bea00cd44f9
2017-03-13 13:12:37 +01:00
Julian_Chu
1cbe8809db Bug 1315937 - Add share item to menu if necessary r=sebastian
3rd-party app could ask to add default share item to menu, and share
the data url to other activities if user click the share-menu-item.

MozReview-Commit-ID: HkDyENJtFn9

--HG--
extra : rebase_source : 2312d7d0fcab7a7c45933bded7f173aface9912c
2017-03-02 17:05:28 +08:00