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

1159 Коммитов

Автор SHA1 Сообщение Дата
Timothy Guan-tin Chien ab99365a10 Bug 1483656 - Part I, Correct references in TouchUtils r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D6423

--HG--
extra : moz-landing-system : lando
2018-10-03 15:14:36 +00:00
Geoff Brown cc09203090 Bug 1476635 - Disable robocop testActivityStreamPocketReferrer, really; r=me,a=test-only
Earlier patch disabled the wrong test.
2018-09-28 13:36:41 -06:00
Geoff Brown bdf1979bba Bug 1476635 - Disable robocop testActivityStreamPocketReferrer; r=me,a=test-only 2018-09-28 08:47:52 -06:00
Petru Lingurar 396478b1c5 Bug 1456110 - 3. Enable the "what's new" experiment when testing; r=sdaswani
This will allow to check that indeed, when a Notifications related experiment
is enabled, the "Notifications" setting will appear in the menu.

Depends on D5855

Differential Revision: https://phabricator.services.mozilla.com/D6136

--HG--
extra : moz-landing-system : lando
2018-09-18 16:09:50 +00:00
Timothy Guan-tin Chien 052ca9c390 Bug 1487143 - Properly dispatch MozAutoplayMediaBlocked event to content, r=alwu
The MozAutoplayMediaBlocked event should have its target set to the video
element, not the document.

Also, MozNoControlsBlockedVideo event has to initialized from the CustomEvent
constructor of the right window for the XBL binding to access it. I don't know
when it stopped working.

Test is added to ensure the entire UI won't break.

Differential Revision: https://phabricator.services.mozilla.com/D5801

--HG--
extra : moz-landing-system : lando
2018-09-13 21:21:11 +00:00
Tudor-Gabriel Vîjială 83b8e860af Bug 1475256 - Skip robocop tests that fail on debug and ccov builds. r=gbrown
Skip tests that fail on debug and code coverage builds, either intermittently
or permanently. See bug 1481834 for details about why these tests are skipped.

Depends on D4218

Differential Revision: https://phabricator.services.mozilla.com/D4219

--HG--
extra : moz-landing-system : lando
2018-09-06 17:01:01 +00:00
Tudor-Gabriel Vîjială da0a2c6375 Bug 1475256 - Dump code coverage report file before quitting Fennec. r=gbrown
The Android InstrumentationTestRunner calls its private 'generateCoverageReport()' method
after the test runner has finished running, in its 'onStart()' method. That method does not
get called because we never finish the test; instead we trigger a 'Robocop:Quit' event and
wait to be killed. This patch reimplements that method and calls it before triggering a quit.

See InstrumentationTestRunner implementation: https://android.googlesource.com/platform/frameworks/base/+/android-8.1.0_r43/test-runner/src/android/test/InstrumentationTestRunner.java#580

Depends on D4143

Differential Revision: https://phabricator.services.mozilla.com/D4218

--HG--
extra : moz-landing-system : lando
2018-09-06 17:00:40 +00:00
Mark Banner c6885f5391 Bug 1488445 - Remove and replace obsolete ESLint rules. r=mossop
This removes a number of references to rules that are now deprecated or removed from ESLint.

- no-native-reassign is replaced with no-global-assign
- no-spaced-func is replaced with func-call-spacing (where enabled)

Depends on D4944

Differential Revision: https://phabricator.services.mozilla.com/D4946

--HG--
extra : moz-landing-system : lando
2018-09-04 18:08:43 +00:00
Jan Henning aa90eb25e9 Bug 1487834 - Test fallback URL support for Intent URIs. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D4781

--HG--
extra : moz-landing-system : lando
2018-09-03 23:10:47 +00:00
Cosmin Sabou 27822f2d77 Merge mozilla-central to autoland. a=merge 2018-08-29 21:04:28 +03:00
alwu bd196cc59f Bug 1485189 - part2 : add test. r=timdream
Differential Revision: https://phabricator.services.mozilla.com/D4268

--HG--
extra : moz-landing-system : lando
2018-08-29 16:49:06 +00:00
Gijs Kruitbosch 3a7be00e1a Bug 1487044 - sync reader mode to github tip ( 3be1aaa01c078c25b67ed8dfd1c9aa8f9963490b ), r=johannh,gijs
--HG--
extra : rebase_source : d0ff2ac4ae07d419214a045a4b6c6266e62f77e4
2018-08-29 12:51:09 +01:00
Kris Maglione 4d7a8aa50d Bug 1484496: Part 5c - Convert mobile/ nsISimpleEnumerator users to use JS iteration. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D3731

--HG--
extra : rebase_source : 6ba05bd9240694fa7c37481b138c67671da39a9e
extra : histedit_source : 51439d03c5cb87f041a995d7ba6978f01035eb99
2018-08-18 19:28:06 -07:00
Tudor-Gabriel Vîjială 7dcb482bb3 Bug 1481834 - Fix running robocop tests on debug builds. r=gbrown
Fix running robocop tests on debug builds.

This patch fixes multidex issues when running robocop on debug builds.

Differential Revision: https://phabricator.services.mozilla.com/D3422

--HG--
extra : moz-landing-system : lando
2018-08-21 20:02:13 +00:00
Kris Maglione 356dd0de4a Bug 1484466: Part 3a - Update remaining XPCOMUtils.generateQI callers to use ChromeUtils. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D3709

--HG--
extra : rebase_source : 650545d3e58ab92821a9ea2097793cca5996d5b3
2018-08-18 12:44:57 -07:00
Geoff Brown 2b831a4422 Bug 1483563 - Remove 'mach autophone'; r=bc
Autophone has been retired.
2018-08-15 12:54:08 -06:00
Mark Banner 2831895ffc Bug 1479730 - Fix instances of unknown nsISearchEngine.DATA_XML property in test_device_search_engine.html. r=snorp
The 'dataType' parameter to nsISearchEngine.addEngine is now obsolete.

MozReview-Commit-ID: CTe26M0j4xa

Differential Revision: https://phabricator.services.mozilla.com/D2778

--HG--
extra : moz-landing-system : lando
2018-08-10 14:08:03 +00:00
Boris Zbarsky 74a3d194eb Bug 1446940 part 4. Stop getting docshells from windows via getInterface in mobile. r=snorp 2018-08-01 13:07:11 -04:00
Petru Lingurar eaacb22353 Bug 1233706 - Make error message more helpful for instrumented Robocop tests; r=jchen
MozReview-Commit-ID: 286GgFXm0vR

--HG--
extra : rebase_source : 37d8583b41cb51105752e1ac99c42e6449862ba0
2018-07-26 13:36:34 +03:00
Kris Maglione 02ba563399 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG

--HG--
extra : source : 0d69b4fb1ed43751cfcbc0b4f2fe3b6a49bc0494
extra : histedit_source : d0ce31513ffaae2fd7f01f6567a97b6d2d96b797%2Cfff837de7a00fa90809d2c3e755097180dfd56d8
2018-05-20 18:10:16 -07:00
Narcis Beleuzu 561ccb2ceb Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures
Backed out changeset fcfb99baa0f0 (bug 1463291)
Backed out changeset 0d69b4fb1ed4 (bug 1463016)
2018-07-29 03:55:23 +03:00
Kris Maglione 636f1839e5 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG

--HG--
extra : rebase_source : 36565ef5e74360aad14062005e5bdab2939e888b
2018-05-20 18:10:16 -07:00
Boris Zbarsky d5546b23ee Bug 1476145 part 7. Stop using getInterface(nsIDOMWindowUtils) in mobile/. r=snorp 2018-07-24 19:47:42 -04:00
Jim Chen 4f6c4496c9 Bug 1470786 - 1. Support async text changes from replacing text; r=esawin
Currently, we expect editing operations in
GeckoEditableSupport::OnImeReplaceText to cause synchronous text change
notifications. However, under e10s, text change notifications can be
asynchornous. The new code keeps track of active OnImeReplaceText calls,
and look for async text changes before replying to the calls.

MozReview-Commit-ID: INM3JLmQebK

--HG--
extra : rebase_source : ff5b728ef437fcd78e4e7eced9c9a537d4698dce
2018-07-17 11:22:34 -04:00
Vlad Baicu f434b908e1 Bug 1384866 - Refactored MediaControlService logic to GeckoMediaControlAgent. r=jchen
Moved the logic ouf of MediaControlService to a new singleton GeckoMediaControlAgent,
which delegates all media-related actions.Currently, MediaControlService is used
for the foreground notification and to retrieve actions from the notification
pending intents. Removed redundant test cases.

MozReview-Commit-ID: KukAmpnn33S

--HG--
rename : mobile/android/app/src/test/java/org/mozilla/gecko/media/TestMediaControlService.java => mobile/android/app/src/test/java/org/mozilla/gecko/media/TestGeckoMediaControlAgent.java
extra : amend_source : 251b7821f4ddefcf852480de72ca1004cbd261bf
2018-06-22 19:02:54 +03:00
Petru Lingurar 71b46df0d4 Bug 1385464 - Start using support library v. 26; r=nalexander
This patch also:
Resolves missing resources and api changes
- LeanplumActionBarActivity was removed because Support Library 26 deprecated
ActionBarActivity. Class was already not in use.
- CustomTabsService added two new methods which we need to override.
Tested to make sure that previous functionality was maintained but with the
addition of the two new methods maybe that feature could be improved.
- For checking layout direction we'll use our own new method from ViewUtil
which mimics what the now restricted method from the support library would do.
- Upgraded to use AppCompatResources#getDrawable(..) in place
of the now restricted AppCompatDrawableManager.get().getDrawable(..).

Resolves obscure leaks and crashes after the upgrade
- LoaderManager.destroyLoader(..) was added before the existing call to
LoaderManager.restartLoader(..) to prevent potential Cursor leaks
- Disable website suggestions depending on the address bar inputs when running
in automation to avoid Robocop tests failing (they were entering serially maybe
100 characters in <5 ms which created around that many new Threads,
operation that could cause the Executor to throw a RejectedExecutionException)
At the moment this functionality is not covered by tests anyway and it was the
only fix I could find that would not involve changing the whole implemenation
for address bar suggestions, implementation which in the real world works ok.

MozReview-Commit-ID: 2fX1SBHiSh0

--HG--
extra : amend_source : edb6c5853cdcea5ad50a7cf680f2214fdc176cb2
2018-07-13 17:16:37 +03:00
Andrew Swan 16e4b0c0f5 Bug 1451525 Convert roboextender to a webextension r=jmaher
MozReview-Commit-ID: CIewLE5Rzuk

--HG--
rename : mobile/android/tests/browser/robocop/roboextender/bootstrap.js => mobile/android/tests/browser/robocop/roboextender/api.js
extra : rebase_source : 366171067f1445e53da72fbc1475b28d05425f35
2018-07-11 13:07:05 -07:00
Petru Lingurar b9eed730ee Bug 1386192 - Test Leanplum Custom Message for Onboarding; r=cnevinchen+582291
Created LeanPlumVariables to allow LeanPlum overwriting the values used for
populating the OnBoarding screens. By simply adding the @Variable annotation
to it's fields, on the first run of the app, they will appear in "LeanPlum
dashboard - Variables" and will allow overwriting for future runs.

The OnBoarding process will now try to use LeanPlum values if possible.
Because connecting to LeanPlum and downloading the Variables might take
a few seconds we use a delay of up to 3 seconds until starting to show
the Onboarding screens.
The default values will still be used if:
- if the LP experiment is not available
- if no internet connection
- if more than 3 seconds have passed and LP didn't finish it's download

Added two new events that could be tracked to Leanplum
MmaDelegate.ONBOARDING_DEFAULT_VALUES and MmaDelegate.ONBOARDING_REMOTE_VALUES
to inform if showing the Onboarding with server values was possible or not.

Because of the 3 seconds delay until showing the Onboarding panels leaking the
could be possible. Used WeakReferences for both the Activity in
OnboardingHelper and the OnboardingHelper in MmaLeanplumImp to avoid it.

MozReview-Commit-ID: H30e9Ng7jrM

--HG--
extra : rebase_source : e403b8010005aa82f8b6440586c533ce99952f9f
2018-07-04 12:56:20 +03:00
Jan Henning acd95437dd Bug 1458697 - Use different strategy for dealing with initial session store activity. r=gbrown
Waiting for delayed startup and then attempting to force any possibly still
pending session store write to disk by flushing the session store data didn't
turn out to be a good idea, because if the session store had already started its
own automatic write at that moment in time, we'd get back an additional
"PrivateBrowsing:Data" event that we didn't expect, thereby confusing the test.

Instead, we now wait for the first session store write after startup to occur
naturally before proceeding with the test.

MozReview-Commit-ID: Hui9YYec1Ow

--HG--
extra : rebase_source : 7c063871fbe47e5f568f19151292c24232939790
2018-06-07 21:10:20 +02:00
sreeise 89595cee88 Bug 1158979 - Removed StringHelper.get and changed StringHelper.initialize to return the StringHelper instance. r=nechen
Uses of StringHelper.get are replaced with the StringHelper instance in BaseRobocopTest.java and UITestContext.

MozReview-Commit-ID: FfMhdNCX1vC

--HG--
extra : rebase_source : c83977f5b9d2d70953c6a89aa30cd28501b5c994
2018-05-27 02:44:59 -04:00
Boris Zbarsky c7f378d7ab Bug 1465875 part 1. Eliminate pointless QIs to nsIDOMNSEditableElement. r=qdot
We expose the relevant APIs on textarea and input elements anyway
(chromeonly).  The QIs will throw on a non-input or non-textarea element, but
none of these consumers expect that to happen.
2018-06-01 22:35:22 -04:00
Kris Maglione 01c298aca6 Bug 1460092: Add ESLint rule to enforce use of ChromeUtils.generateQI. r=Gijs
Also fixes existing code which fails the rule.

MozReview-Commit-ID: CkLFgsspGMU

--HG--
extra : rebase_source : 86a43837659aa2ad83a87eab53b7aa8d39ccf55b
2018-05-08 18:36:22 -07:00
Jan Henning 6a24be748d Bug 1460028 - Experimental - Use string literal instead of static variable in SessionTest. r=gbrown
Experimentally try using a String literal in case the NullPointerException at
that line is caused by some weird class initialisation issue.

MozReview-Commit-ID: 1BexpntTBEJ

--HG--
extra : rebase_source : ea71f390ce0d683cd635aae52825871562b78feb
2018-05-08 21:55:20 +02:00
Andrew Gaul 80f292e771 Bug 1436271 - Replace calls to String.getBytes(String) with String.getBytes(Charset). r=nalexander
Also replace calls to String(byte[], String) with String(byte[], Charset).  This
removes some cannot-happen exception handling.
2018-02-06 22:12:33 -08:00
Jan Henning 5ec5f23aab Bug 1456391 - Part 8: Use mapFrameTree in Fennec. r=esawin
This brings us in line with Desktop's session store, in that we can now collect
data for arbitrarily nested frame structures.

At the same time, this also means that we no longer collect data for dynamically
added frames, so the corresponding mochitest needs to be adapted accordingly.

MozReview-Commit-ID: DfJ3C2ccUne

--HG--
extra : rebase_source : bbb2181d5596d21254d2f7394c1383a3979dcef4
2018-04-25 22:21:41 +02:00
Cosmin Sabou a1f7ce21a9 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-02 18:07:21 +03:00
Jim Chen cdd3e5ab7e Bug 1457255 - 2. Fix Java warnings; r=me
Fix all Java warnings in the Android codebase except deprecation and
serial warnings, and warnings in third-party code.

There is one required change to exoplayer2 code under thirdparty,
because that code is included directly in the geckoview project, instead
of the thirdparty project. I think I'll just make a pull-request to
upstream the change, instead of separating exoplayer2 into a
gv-thirdparty project.

--HG--
extra : amend_source : 29419a24db9b956a7f3ee573a63f7a055ed90636
2018-05-01 00:22:54 -04:00
Noemi Erli 5b7edf8bba Backed out 4 changesets (bug 1457255) for kotlin warnings/errors are not being parsed by Treeherder a=backout
Backed out changeset 9c42ce50a911 (bug 1457255)
Backed out changeset 524a0f9fb978 (bug 1457255)
Backed out changeset a49833bfd519 (bug 1457255)
Backed out changeset 4eccde5dfbef (bug 1457255)
2018-05-02 01:16:57 +03:00
Jim Chen 0ce1010182 Bug 1457255 - 2. Fix Java warnings; r=me
Fix all Java warnings in the Android codebase except deprecation and
serial warnings, and warnings in third-party code.

There is one required change to exoplayer2 code under thirdparty,
because that code is included directly in the geckoview project, instead
of the thirdparty project. I think I'll just make a pull-request to
upstream the change, instead of separating exoplayer2 into a
gv-thirdparty project.
2018-05-01 00:22:54 -04:00
Adrian Wielgosik 8c66c095f4 Bug 1418078 - Convert JS users of nsIDOMHTMLInputElement. r=bz
MozReview-Commit-ID: 55aIiNHS0xs

--HG--
extra : rebase_source : cacb9fc29daa5d620d4a0cd6ab3f09cde765036f
2018-04-18 22:29:50 +02:00
Jim Chen 04cd34291a Bug 1454441 - 4. Fix Fennec remote debugging; r=esawin
Currently Fennec remote debugging has a bug where custom tabs / PWA can
permanently override debugging of Fennec tabs. Fix that bug by switching
between the browser/geckoview  window types depending on if the Fennec
window is gaining or losing focus.

MozReview-Commit-ID: 2BhAOPFz3c0

--HG--
extra : rebase_source : b9b6059241549bdb6badcc5702c9e47e7228edb3
2018-04-23 12:07:34 -04:00
Andreea Pavel 4109ce94c2 Backed out 4 changesets (bug 1454441) for android-lint failure on a CLOSED TREE
Backed out changeset d4fcd301a168 (bug 1454441)
Backed out changeset 79fa5c2950a3 (bug 1454441)
Backed out changeset deb0e12bfbd7 (bug 1454441)
Backed out changeset fad6be573021 (bug 1454441)
2018-04-23 20:16:29 +03:00
Jim Chen 949ee3dab8 Bug 1454441 - 4. Fix Fennec remote debugging; r=esawin
Currently Fennec remote debugging has a bug where custom tabs / PWA can
permanently override debugging of Fennec tabs. Fix that bug by switching
between the browser/geckoview  window types depending on if the Fennec
window is gaining or losing focus.

MozReview-Commit-ID: 2BhAOPFz3c0

--HG--
extra : rebase_source : b9b6059241549bdb6badcc5702c9e47e7228edb3
2018-04-23 12:07:34 -04:00
Kris Maglione 219ed0cc06 Bug 1454813: Part 2b - Rename SpawnTask.js to AddTask.js. r=florian
The old name no longer makes sense, since it no longer exports an spawn_task
symbol, and add_task is what we really care about.

MozReview-Commit-ID: IE7B8Czv8DH

--HG--
rename : testing/mochitest/tests/SimpleTest/SpawnTask.js => testing/mochitest/tests/SimpleTest/AddTask.js
extra : rebase_source : 03bca5aa69a7625a49b4455a6c96ce4c59de3a5a
2018-04-18 11:43:45 -07:00
Kris Maglione e3787823b5 Bug 1453881: Fix Android tests that still used task generators. r=bustage
MozReview-Commit-ID: IAWUQn8dW3d
2018-04-17 17:34:18 -07:00
Kris Maglione 0f40271841 Bug 1453881: Part 1a - Automatically write add_task(function*) to add_task(async function) r=ochameau
This was done using the script at:

bc5629735d/processors/add-task-async.jsm?at=default&fileviewer=file-view-default

MozReview-Commit-ID: KxuS9Cen87

--HG--
extra : rebase_source : c0028e0cd55ba1643610cd30c55c6f4bca7d6e58
extra : histedit_source : ebc84fdec9c2db6176632d62de4e7bdad2a7829d
2018-04-12 21:10:04 -07:00
Jim Chen 9e1cc5b538 Bug 1452200 - 3. Don't limit AndroidLog tag length; r=jchen
In practice, Android never enforced restrictions on the tag length, and
in newer versions, the restriction is removed, so we shouldn't limit the
tag length at all.

MozReview-Commit-ID: JQF9FBdB5Fj

--HG--
extra : rebase_source : 71aa09210d694b68a72043f7588fbd799f385c23
2018-04-15 14:53:29 -04:00
Jim Chen bc927af5f3 Bug 1446729 - 3. Move GeckoEditable/InputConnection to o.m.geckoview; r=esawin
Moving GeckoEditable and GeckoInputConnection to o.m.geckoview lets us
make the interfaces inside SessionTextInput package-private, so they
don't show up in the docs.

MozReview-Commit-ID: 1C8olyqj4sX

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoEditable.java => mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoEditable.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoInputConnection.java => mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoInputConnection.java
extra : rebase_source : d1538761e494f5e44a111e65febfbbf6e90dc1f3
2018-03-18 05:38:55 -04:00
Tim Nguyen 5c75b305da Bug 1445099 - Fix android chrome test failures on a CLOSED TREE. r=me 2018-03-26 19:14:49 +02:00
Boris Zbarsky de9297b4bf Bug 1448048. Restrict the window.Components shim to non-nightly-only to see whether sites actually use it. r=mccr8
MozReview-Commit-ID: 6W1nEyKGlER
2018-03-23 12:53:48 -04:00