Commit Graph

18094 Commits

Author SHA1 Message Date
Kris Maglione
a3b337643f Bug 1260548: Follow-up: Add another missing dependency to mochitest.ini. r=me
MozReview-Commit-ID: 4kPs3voZsAm

--HG--
extra : rebase_source : f8494c3a1c255293b8c2fda963d622f864a32015
2017-02-01 23:11:24 -08:00
Kris Maglione
2bba8e4f8e Bug 1260548: Follow-up: Fix skip-if typo that was the real problem. r=me CLOSED TREE
MozReview-Commit-ID: 4K6VYbNxIg9

--HG--
extra : amend_source : 1f47f7a5d8606178091132028d839bfcd41428df
2017-02-01 19:43:50 -08:00
Kris Maglione
2e014c2ab0 Bug 1260548: Follow-up: Fix inadequate skip-if. r=me
MozReview-Commit-ID: AX0oI1yCW6V
2017-02-01 17:58:44 -08:00
Kris Maglione
978544a980 Bug 1260548: Follow-up: Add missing support file to chrome.ini. r=me
MozReview-Commit-ID: 4c0P3I5oZr4

--HG--
extra : rebase_source : 33a652fbf65ccc2c92c8916f2d10b7b19555117a
2017-02-01 17:17:27 -08:00
Wes Kocher
8d4bb91470 Merge m-c to inbound, a=merge
MozReview-Commit-ID: Am6M5iHxmAr
2017-02-01 16:31:23 -08:00
Wes Kocher
f2cb5e7c63 Merge inbound to m-c a=merge
MozReview-Commit-ID: EZrwvZH5DsY
2017-02-01 16:22:11 -08:00
jdarcangelo
19c92ab8c5 Bug 1335200 - [FlyWeb] Crash on Android when calling publishServer(), r=sebastian 2017-02-01 14:52:40 -05:00
Sebastian Hengst
ccd3fc9950 Backed out changeset 99587cc6ef23 (bug 1335536) for failing robocop testFilePicker on Android. r=backout 2017-02-01 19:08:22 +01:00
Andrea Marchesini
3b9eaa7785 Bug 1335536 - File.createFromNsIFile and File.createFromFileName should be async - part 1 - tests, r=smaug 2017-02-01 17:13:08 +01:00
Sebastian Kaspari
2284846401 Bug 1335355 - Switchboard: Ignore empty matchers in experiments configuration. r=ahunt
MozReview-Commit-ID: 10T90TjJlGY

--HG--
extra : rebase_source : 42ad84c79ba87f64d237b80e88bfede91bf5b93a
2017-01-31 14:26:01 +01:00
Andrzej Hunt
f254b7dc1a Bug 1325440 - Use 16:9 keyline for BottomSheet menu r=sebastian
Newer versions of the support library do this automatically, but we need to
roll our own implentation for now.

16:9 keyline means that the top of the menu is placed such that a 16:9 window
of application content is still visible above the menu. This is illustrated in:
https://material.io/guidelines/layout/metrics-keylines.html#metrics-keylines-keylines-spacing
(The menu itself is _not_ 16:9.)

MozReview-Commit-ID: FSUdssb5eBN

--HG--
extra : rebase_source : 735cfb9ce7f78e4247780011c76850560f67d40e
2017-01-31 10:43:04 -08:00
Andrzej Hunt
f912e21d23 Bug 1325096 - Post: only use deprecated setBackgroundDrawable on older platforms r=maliu
This has no benefit right now, but this lets us avoid forgetting to upgrade to the non-deprecated
method once we no longer need to support api 15.

MozReview-Commit-ID: FmRoP5PnGDC

--HG--
extra : rebase_source : 2c5df232fd526f044bd10b3e6cf9920ddb2e4e7b
2017-01-23 15:59:18 -08:00
Andrzej Hunt
956a5a7ffe Bug 1325096 - Wrap FaviconView to workaround ignored margin r=maliu
This seems to be an Android platform bug affecting Android 4.X, which
is visible primarily on tablets (on phones, page titles are often broken
over two lines, which isn't the case on tablets, hence it's easy
to spot if this bug is happening).

MozReview-Commit-ID: AfSw3AJHFqH

--HG--
extra : rebase_source : 125789099f5c7309f2bb049b49341183fa99c3a2
2017-01-23 15:55:46 -08:00
Andrzej Hunt
2e824e81aa Bug 1325096 - Fix menu button padding on select devices r=maliu
On some devices, ImageView appears to lose it's padding when calling
setBackground[Drawable](). We therefore need to save and restore the
padding on those devices.

Known affected devices are various Asus Transformer tablets,
and also the Motorola Droid 4, running various Android 4.X versions.
We therefore make this workaround conditional on Android 4 to minimise
the number of devices where this workaround is used. (Having the conditional
should also make it easy to notice when we can remove the workaround, i.e.
whenever Android 5 becomes the baseline.)

MozReview-Commit-ID: B88gWwEx48x

--HG--
extra : rebase_source : f22fb850c919a25dd14b46e6dec558e8e8998d7b
2017-01-23 15:53:49 -08:00
Kris Maglione
f229e3220d Bug 1260548: Part 9 - Make sure Android mochitests do not leave extra tabs open. r=aswan
MozReview-Commit-ID: 7N3KuVX8kRC

--HG--
extra : rebase_source : b8cb8051887d07e8d278e76260f295b5c59f4076
2017-02-01 13:46:09 -08:00
Kris Maglione
fd255572fb Bug 1260548: Part 7 - Add mochitests for the Android tabs API. r=aswan
MozReview-Commit-ID: DndSw3di4Jw

--HG--
rename : browser/components/extensions/test/browser/context.html => mobile/android/components/extensions/test/mochitest/context.html
rename : browser/components/extensions/test/browser/context_tabs_onUpdated_iframe.html => mobile/android/components/extensions/test/mochitest/context_tabs_onUpdated_iframe.html
rename : browser/components/extensions/test/browser/context_tabs_onUpdated_page.html => mobile/android/components/extensions/test/mochitest/context_tabs_onUpdated_page.html
rename : browser/components/extensions/test/browser/file_bypass_cache.sjs => mobile/android/components/extensions/test/mochitest/file_bypass_cache.sjs
rename : browser/components/extensions/test/browser/file_dummy.html => mobile/android/components/extensions/test/mochitest/file_dummy.html
rename : browser/components/extensions/test/browser/file_iframe_document.html => mobile/android/components/extensions/test/mochitest/file_iframe_document.html
rename : browser/components/extensions/test/browser/file_iframe_document.sjs => mobile/android/components/extensions/test/mochitest/file_iframe_document.sjs
rename : browser/components/extensions/test/browser/browser_ext_tab_runtimeConnect.js => mobile/android/components/extensions/test/mochitest/test_ext_tab_runtimeConnect.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_captureVisibleTab.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_captureVisibleTab.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_create.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_create.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_events.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_events.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_executeScript.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_executeScript.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_executeScript_bad.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_executeScript_bad.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_executeScript_good.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_executeScript_good.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_executeScript_no_create.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_executeScript_no_create.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_executeScript_runAt.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_executeScript_runAt.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_getCurrent.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_getCurrent.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_insertCSS.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_insertCSS.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_onUpdated.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_onUpdated.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_reload.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_reload.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_reload_bypass_cache.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_reload_bypass_cache.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_sendMessage.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_sendMessage.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_update_url.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_update_url.html
extra : rebase_source : 92ca08140c55550c7d4c14b3c08062b4a9635cd9
2017-02-01 15:24:29 -08:00
Kris Maglione
fb7ac8b531 Bug 1260548: Part 6 - Add basic tabs API support for Android. r=aswan
MozReview-Commit-ID: JJgcKp4AZ9S

--HG--
rename : browser/components/extensions/ext-c-tabs.js => mobile/android/components/extensions/ext-c-tabs.js
rename : browser/components/extensions/ext-tabs.js => mobile/android/components/extensions/ext-tabs.js
rename : browser/components/extensions/ext-utils.js => mobile/android/components/extensions/ext-utils.js
rename : browser/components/extensions/schemas/tabs.json => mobile/android/components/extensions/schemas/tabs.json
extra : rebase_source : 8bb2c73556b90db852b6cff09cf9cd6b32e0162f
2017-02-01 15:21:00 -08:00
Jim Chen
f45b77cea8 Bug 1334728 - 1. Add missing argument to dispatch call in HelperApps.jsm; r=sebastian
Add the missing "type" argument to the EventDispatcher.instance.dispatch call.
2017-02-01 17:35:45 -05:00
Jim Chen
62e0b641a7 Bug 1333590 - 7. Add more callback tests to testEventDispatcher; r=snorp
Add more callback tests to testEventDispatcher,

1) Test for checking that the callback for a Gecko thread event,
dispatched from Gecko, is synchronous. We depend on this behavior in
several places where we require a "function call" style event.

2) Test for checking that callbacks accept a variety of data types as
the response object, including the standard types supported by
GeckoBundle, as well as primitive types that are convertible to standard
types.
2017-02-01 17:35:45 -05:00
Jim Chen
c9a4e01072 Bug 1333590 - 6. Remove GeckoEventListener and NativeEventListener; r=snorp r=sebastian
Remove GeckoEventListener and NativeEventListener now that we uniformly
use BundleEventListener. Also remove related classes NativeJSContainer,
NativeJSObject, and GeckoRequest, as well as related tests and C++
code.

The "Messaging" object in Messaging.jsm is replaced with a dummy object
that redirect calls to the global and/or window event dispatcher.
2017-02-01 17:35:45 -05:00
Jim Chen
735fe99d21 Bug 1333590 - 5. Support other primitive types in event callback; r=snorp
Add support for byte, short, float, long, and char types as the response
object for event callbacks.
2017-02-01 17:35:45 -05:00
Jim Chen
168ac1fcb4 Bug 1333590 - 4. Convert remaining Robocop events to bundle events; r=gbrown
Convert the remaining events used in Robocop to bundle events.
2017-02-01 17:35:44 -05:00
Jim Chen
9ad1c54661 Bug 1333590 - 3. Change remaining Messaging calls to EventDispatcher calls; r=sebastian
Convert calls in several places where we still use Messaging.* instead
of EventDispatcher.
2017-02-01 17:35:44 -05:00
Jim Chen
ba693cf082 Bug 1333590 - 2. Convert SearchEngine observers to events; r=sebastian
Convert the "SearchEngine:*" observers to events that go through
GlobalEventDispatcher.
2017-02-01 17:35:44 -05:00
Jim Chen
167d8d6ad2 Bug 1333590 - 1. Convert GeckoRequest usages to events; r=sebastian
Convert places where we use GeckoRequest (to get a callback from JS to
Java) to bundle events that use the built-in callback support.
2017-02-01 17:35:44 -05:00
Krishna
69547a9027 Bug 1318544 - DLC: Only download known content if it is actually excluded from the APK r=sebastian
MozReview-Commit-ID: E3X9u2MkRpX

--HG--
extra : rebase_source : 65b98e87382b5d6cc25ad7eed07d42a9c72dd6e3
2016-12-04 23:17:44 +08:00
Sebastian Kaspari
65cf5887e7 Bug 1334562 - DLC: Start study action from BrowserApp.onCreate() and never in automation. r=ahunt
Previously we started the DLC service from GeckoApplication. The reason for that was that we wanted to
download content like fonts as early as possible so that they are available the next time we display
a website.

However we do not know whether we are running in automation until the BrowserApp activity is launched.
This patch will start the service from BrowserApp.onCreate() now if we are not running in automation.

MozReview-Commit-ID: C3Ob6S3yve4

--HG--
extra : rebase_source : 3dbe64f6cbc0a90149e9c46849d4b68e5674b532
2017-01-30 17:41:38 +01:00
Wes Kocher
e457683b2d Merge m-c to autoland, a=merge
MozReview-Commit-ID: BipzgOEInZh
2017-01-30 15:54:34 -08:00
Wes Kocher
584127af5f Merge inbound to central, a=merge
MozReview-Commit-ID: 4GYZ5Pzy7BY
2017-01-30 15:44:58 -08:00
Benjamin Smedberg
270de3f511 Bug 1333826 - Remove all references to MOZ_AUTOMATION_SDK, r=mshal
MozReview-Commit-ID: CuTK1hn0pVl

--HG--
extra : rebase_source : 4581c71360ccd81505079ee9e068ed2ca0431a6a
2017-01-25 12:30:49 -05:00
Florian Quèze
bdc1ffa608 Bug 1334831 - script-generated patch to use .remove() instead of .parentNode.removeChild, r=jaws. 2017-01-30 08:10:22 +01:00
Phil Ringnalda
5d4072a82c Merge m-i to m-c, a=merge 2017-01-28 13:09:00 -08:00
Wes Kocher
4cf8a40463 Merge m-c to autoland, a=merge
MozReview-Commit-ID: J5UyPvoy89k
2017-01-27 16:39:56 -08:00
Sebastian Kaspari
e13030aa3e Bug 1325264 - Update wording of 'disconnect from sync' dialog. r=Grisha
MozReview-Commit-ID: 1xsc0Q1upf5

--HG--
extra : rebase_source : efdb1d121d0a433aecfd05876ed95efce792469b
2017-01-27 18:11:44 +01:00
jwu
5b02eb2870 Bug 1237956 - Use temporary folder instead of modifying the filename while uploading, r=sebastian
MozReview-Commit-ID: 3MQWkPOIRGB

--HG--
extra : rebase_source : 3f7994ee1124e98139c8d4079129b2262c0524b3
2017-01-25 15:56:23 +08:00
Grigory Kruglov
04becc33ae Bug 1325303 - Adjust A-S telemetry docs to reflect greater use of action_position r=sebastian
MozReview-Commit-ID: IUDMovBjzjg

--HG--
extra : rebase_source : 4f6718e01d50b4e13b28366d26e206f6c65b7d7a
2017-01-27 12:17:31 -08:00
Grigory Kruglov
771195ba7b Bug 1325303 - A-S Telemetry: track position of highlights for menu interactions r=sebastian
MozReview-Commit-ID: GXl5asf2rEq

--HG--
extra : rebase_source : 9aa7ee95ed9fe563e31a276b6c0438faa72e9918
2017-01-26 23:14:08 -08:00
Grigory Kruglov
e14db054b4 Bug 1325303 - A-S Telemetry: track positions of Top Site items for tile and menu interactions r=sebastian
MozReview-Commit-ID: B4XpqpwfjMi

--HG--
extra : rebase_source : 93d70efb5410f8af8f977fa2310f8d0c55d16bd0
2017-01-27 12:13:13 -08:00
Andrew Swan
30deceecf8 Bug 1203330 Part 1 Fix SingletonEventManager r=kmag
This patch adds the ability to run SingletonEventManager handlers in
different modes: sync, async, raw (no exception handling, arg cloning,
or asynchrony), or asyncWithoutClone. When you call the handler,
you're required to specify which variant you want.

Existing uses of SingletonEventManager are all converted to async calls.
Note that some of them were previously synchronous, but it didn't appear
to be necessary.

Also added a callOnClose for SingletonEventManager when the last listener
is removed.

MozReview-Commit-ID: ATHO97dWf3X

--HG--
extra : rebase_source : bf02d79e3fbab84892be8a7e52ea7a1caf2e003d
2017-01-26 20:00:33 -08:00
Phil Ringnalda
9447dfdbd4 Backed out 3 changesets (bug 1203330) for failures in test_delay_update_webextension.js
CLOSED TREE

Backed out changeset 2d42350d209a (bug 1203330)
Backed out changeset 3a12c51c3eca (bug 1203330)
Backed out changeset 31fac390e15d (bug 1203330)
2017-01-26 19:13:11 -08:00
Carsten "Tomcat" Book
dca07ffc3a merge mozilla-central to mozilla-inbound 2017-01-27 11:16:17 +01:00
Florian Quèze
b11907c7aa Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
Florian Quèze
2cf30507bd Bug 1334261 - script-generated patch to remove more newURI null parameters, r=jaws. 2017-01-27 10:51:02 +01:00
Florian Quèze
be4dbae285 Bug 1334199 - script-generated patch to omit getComputedStyle's second argument when it's falsy, r=jaws. 2017-01-27 10:51:02 +01:00
Wes Kocher
8fa84ca644 Merge inbound to central, a=merge
MozReview-Commit-ID: BZgxmhS6OtM
2017-01-26 16:19:05 -08:00
Wes Kocher
7365007b83 Merge autoland to central, a=merge
MozReview-Commit-ID: EnErkgbuNge
2017-01-26 16:08:33 -08:00
Wes Kocher
c3cc3b6407 Backed out 13 changesets (bug 1296767) for xpcshell failures a=backout CLOSED TREE
Backed out changeset 41ed77788333 (bug 1296767)
Backed out changeset 1c0c9289b532 (bug 1296767)
Backed out changeset 50294db1d871 (bug 1296767)
Backed out changeset 26c065f79c54 (bug 1296767)
Backed out changeset 0362a78d6978 (bug 1296767)
Backed out changeset 4e71cf94e4ee (bug 1296767)
Backed out changeset f6f59447d22a (bug 1296767)
Backed out changeset 6c9b792cc296 (bug 1296767)
Backed out changeset 46a52b10a868 (bug 1296767)
Backed out changeset 5d70d87d2a8f (bug 1296767)
Backed out changeset 8219686be6a2 (bug 1296767)
Backed out changeset 0a989b0cea67 (bug 1296767)
Backed out changeset 9f59a0b75c1f (bug 1296767)

MozReview-Commit-ID: 2XBNsd8JrZL

--HG--
extra : amend_source : 1afafaa8127fcebac31ce1d7743dc16872fa0522
2017-01-26 11:16:12 -08:00
Justin Wood
d01d00bce4 Bug 1333921 - Taskcluster Android l10n nightlies broken due to missing API key. r=mshal a=bustage
MozReview-Commit-ID: CxiqFKZZpaz

--HG--
extra : source : ea60d075a998cf5037cd9c31bf5ee8d0719bd816
2017-01-26 09:37:14 -05:00
Phil Ringnalda
39e57631eb Merge m-c to m-i 2017-01-25 20:48:39 -08:00
Eugen Sawin
714ebcecb4 Bug 1323429 - [2.1] Remove the context reference from Clipboard. r=jchen 2017-01-26 15:52:21 +01:00