Commit Graph

26094 Commits

Author SHA1 Message Date
Jan Henning
375f2704c3 Bug 1456391 - Part 9: Support PrivacyLevel form data filtering with GeckoView, too. r=snorp
MozReview-Commit-ID: 9F5ZNWf0lYc

--HG--
extra : rebase_source : 7da2705d27fdecbc915f3d6516452c413635b062
2018-04-27 22:11:23 +02: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
Jan Henning
64e30f8441 Bug 1456391 - Part 6: Switch mobile session store to use defineLazyModuleGetters. r=esawin
MozReview-Commit-ID: ElrFACJVbRN

--HG--
extra : rebase_source : c13f6aa29bb7b4009e56edfa13454a8feaedccb4
2018-04-25 22:14:25 +02:00
Jan Henning
0c43a6ed24 Bug 1456391 - Part 5: Fix zoom level saving in GeckoView. r=snorp
When the scroll position is "0,0" or suchlike, the scrolldata ends up as null.
We still need something to store the zoom data on, though, so we add a fallback.

MozReview-Commit-ID: FE8BYB9nn25

--HG--
extra : rebase_source : ee16b1401b361e7a539e553da377ee0b1ae46b08
2018-04-26 21:33:41 +02:00
Jan Henning
110831186a Bug 1456391 - Part 4: Use new mapFrameTree version for GeckoView. r=snorp
The copy-pasted description of mapFrameTree in GeckoView already claims to only
run the callback for *non*-dynamic child frames. With this patch we make
GeckoView actually do that and unify the behaviour with Desktop.

MozReview-Commit-ID: 6967vUcgB2r

--HG--
extra : rebase_source : 024dcda6d39e01ba8c9c2948a767200200383b37
2018-04-25 22:09:13 +02:00
Jim Chen
15c3ab5751 Bug 1457863 - 2. Use kotlin array literals; r=nalexander
Use the new array literal syntax from kotlin 1.2.

MozReview-Commit-ID: CaiG9aSD2T6

--HG--
extra : rebase_source : 4930c565b5758845e0928c1596069b0f68883fc0
2018-05-02 13:49:57 -04:00
Jim Chen
652208262f Bug 1457863 - 1. Update kotlin to 1.2.41; r=nalexander
Update the kotlin version used for GeckoView tests to 1.2.41. Also turn
on "warnings-as-errors", which is a compiler option introduced in kotlin
1.2.

MozReview-Commit-ID: 7cL2v4jFJ27

--HG--
extra : rebase_source : daf3c2f3ca24304faa10c399c4ef2bd145395ada
2018-05-02 13:49:57 -04:00
Petru Lingurar
5f4a0e0b4c Bug 1380850 - Track when Focus or Klar get installed; r=mcomella
Added a static broadcast receiver that will inform us as soon as possible of any installed packages.
Because mma methods are static, if LeanPlum is enabled, the event will be tracked even if the app was not running when the new package was installed
and as per LeanPlum's internal workings the event will be reported to the dashboard when the application resumes.

MozReview-Commit-ID: AGNsQn7LuCz
***

--HG--
extra : rebase_source : 3d40a9f85036c0495b110409bff86e56f8b7c465
2018-05-02 13:32:43 +03:00
Cosmin Sabou
a1f7ce21a9 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-02 18:07:21 +03:00
Francesco Lodolo (:flod)
cb28f69b9b Bug 1457376 - Remove Search Activity section from Wikipedia searchplugins r=mkaply
MozReview-Commit-ID: 8ZXM49hTKxO

--HG--
extra : rebase_source : 861181f36cfd47b8cd902bfc9e4d0fde92e757ec
2018-05-02 09:03:39 +02: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
Jim Chen
adc5bf4d5e Bug 1457255 - 1. Translate kotlin warning/error messages for treeherder; r=nalexander
kotlinc emits its warning/error messages as "w: <msg>" and "e: <msg>",
which Treeherder is unable to pick up. Rather than changing Treeherder,
it's best to make the change as close to the source of the message as
possible. I looked at changing mach to redirect the output of gradle and
make adjustments as necessary, but for some reason gradle doesn't want
to work with the pipes that mach sets up. So that leaves changing the
gradle build script itself.

This patch adds some code to detect the kotlin messages, and output an
adjusted version as necessary. It has the benefit of only dealing with
kotlinc output, so output from other tools should not be inadvertently
changed. However, due to the way it is implemented, it does duplicate
every warning/error output; for example, an error would now look like
this in the terminal:

    <file>: error: <msg>
    e: <file>: <msg>

I think this is an acceptable drawback.
2018-05-01 00:22:53 -04:00
Eitan Isaacson
600dc129c1 Bug 1457569 - Make nodes clickable or not. r=yzen 2018-05-01 09:42:00 -04:00
shindli
0ceedb430c Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-02 01:58:30 +03: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
225b0afd64 Bug 1457255 - 4. Fix remaining Java warnings; r=me on CLOSED TREE 2018-05-01 01:01:00 -04: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
Jim Chen
2fd8787e07 Bug 1457255 - 1. Translate kotlin warning/error messages for treeherder; r=nalexander
kotlinc emits its warning/error messages as "w: <msg>" and "e: <msg>",
which Treeherder is unable to pick up. Rather than changing Treeherder,
it's best to make the change as close to the source of the message as
possible. I looked at changing mach to redirect the output of gradle and
make adjustments as necessary, but for some reason gradle doesn't want
to work with the pipes that mach sets up. So that leaves changing the
gradle build script itself.

This patch adds some code to detect the kotlin messages, and output an
adjusted version as necessary. It has the benefit of only dealing with
kotlinc output, so output from other tools should not be inadvertently
changed. However, due to the way it is implemented, it does duplicate
every warning/error output; for example, an error would now look like
this in the terminal:

    <file>: error: <msg>
    e: <file>: <msg>

I think this is an acceptable drawback.
2018-05-01 00:22:53 -04:00
James Willcox
34a150536b Bug 1456254 - Correctly set nextTabParentId in GeckoView r=esawin
MozReview-Commit-ID: IDh10RkeUpY
2018-05-01 10:43:23 -05:00
James Willcox
2d2a861611 Bug 1456608 - Add GeckoThread.crash() and GeckoProcessManager.crashChild() r=esawin,droeh
MozReview-Commit-ID: DYvoeNDKjY0
2018-05-01 10:43:22 -05:00
James Willcox
bae31b8761 Bug 1433968 - Add CrashReporterService for GeckView r=jchen
The Fennec CrashReporter class is also renamed to
CrashReporterActivity. When running in Fennec, the Activity will be used
which retains what we do today, prompting for comments, email, etc. When
used in standalone GeckoView, we report the crash without user
interaction if the appropriate GeckoRuntimeSetting was set. The app will
want to ask for user permission at least once in order to set this.

We do not collect the URL, email, or logcat with GeckoView crashes.
Logcat and URL would be nice to have, but it's not clear what the API
for those would look like, and they can be addressed in followup
patches.

MozReview-Commit-ID: C5ROsUKreRe
2018-05-01 10:43:22 -05:00
James Willcox
defcbbcd48 Bug 1433968 - Add crash reporting control to GeckoRuntimeSettings r=esawin,jchen
MozReview-Commit-ID: TQ7hvekIVJ
2018-05-01 10:43:22 -05:00
James Willcox
28d6565f25 Bug 1433968 - Change how environment variables are passed to GeckoLoader r=jchen
Right now we pass a bundle to GeckoLoader.setupGeckoEnvironment() with
magic keys representing the environment variables. Instead of this,
simply pass a list of Strings.

MozReview-Commit-ID: D6mSTnYpnGu
2018-05-01 10:43:21 -05:00
Geoff Brown
1e940ef2d9 Bug 1445716 - Skip remaining failures in geckoview-junit tests; r=jchen
--HG--
extra : rebase_source : a523013a9b20356e9ef1f1771d3882953fe2077f
2018-05-01 07:55:38 -06:00
Andreea Pavel
7fec5697dc Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-04-28 20:41:18 +03:00
Andreea Pavel
443c91d4b4 Merge inbound to mozilla-central. a=merge 2018-04-28 20:30:18 +03:00
Hector Zhao
ad13f85bf6 Bug 1457423 - Locate android-{findbugs,lint} artifacts with updated filename. r=nalexander
MozReview-Commit-ID: 3sVHQr4toaS

--HG--
extra : rebase_source : d823dd4616e8ce604d1d8f32e6d235e12ce2828c
2018-04-27 19:25:57 +08:00
Kris Maglione
5cf041d41c Bug 1456035: Fix robocop bustage. r=bustage
MozReview-Commit-ID: HeCbltjaEBh
2018-04-27 17:13:19 -07:00
Kris Maglione
bf4d9f1be5 Bug 1456035: Part 5 - Convert manual QueryInterface to ChromeUtils.generateQI. r=mccr8
Manually-implemented QueryInterface functions don't benefit from the
MozQueryInterface optimizaions, and a lot of them are in hot code, and
implement a large number of interfaces.

MozReview-Commit-ID: 8OzglraowZt

--HG--
extra : rebase_source : 5fff3d9973a0ea976096339a63ce9ff628b68441
2018-04-23 12:58:34 -07:00
Kris Maglione
a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Csoregi Natalia
96dbf29680 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-28 00:56:47 +03:00
Dylan Roeh
add8d4484a Bug 1456260 - Fix eslint failure. r=me 2018-04-27 16:28:30 -05:00
Dylan Roeh
7702f5ab7c Bug 1456260 - Support concurrent GeckoSession.saveState() calls. r=jchen 2018-04-27 10:44:26 -05:00
Eugen Sawin
13bae3826c Bug 1437551 - Fix javadoc links. r=me 2018-04-27 23:07:24 +02:00
Delphine Lebédel
19bd898ba3 Bug 1452785 - [lij] Search engine setup for Firefox Mobile in Ligurian, r=flod
MozReview-Commit-ID: Cg7AwyDrSIY

--HG--
extra : rebase_source : 83bfdd353b0c848f3297358984249491dfdc2876
2018-04-26 15:50:03 -07:00
Eugen Sawin
d19971cbdb Bug 1439013 - [3.0] Update tests to use new onLoadRequest interface. r=jchen 2018-04-27 20:49:54 +02:00
Eugen Sawin
2711cb3a4d Bug 1439013 - [2.0] Add onLoadRequest load flags. r=snorp,droeh 2018-04-27 20:49:54 +02:00
Dylan Roeh
1ecdb851b4 Bug 1454228 - Ignore onSecurityChange for initial about:blank load in PWAs. r=jchen 2018-04-27 12:56:29 -05:00
Jim Chen
7f498e1cf7 Bug 1456190 - 3. Add tests for evaluateJS(); r=snorp
Add some tests in GeckoSessionTestRuleTest for evaluateJS(), including
checking the results from a variety of expressions.

MozReview-Commit-ID: 9KWIhTogSCg

--HG--
extra : rebase_source : c3ce742e7c0ba6293c1d3d0e3ad47f8b5efc648c
2018-04-27 11:57:14 -04:00
Jim Chen
abed57a56c Bug 1456190 - 2. Add evaluateJS API to GV test; r=snorp
Add the GeckoSessionTestRule.evaluateJS() API to evaluate JS expression
in a particular session. The API is enabled by the new @WithDevToolsAPI
annotation that enables RDP connections to Gecko.

MozReview-Commit-ID: 1cuX359t2Wn

--HG--
extra : rebase_source : d61f8f1f4a3a5dfb3dcde2e271866746c2242cfc
2018-04-27 11:57:14 -04:00
Jim Chen
5b1b1fa927 Bug 1456190 - 1. Add minimal RDP client for GV testing; r=snorp
Add a small Gecko remote debugging protocol client to the test framework
that's enough to communicate with the console API to evaluate JS
expressions.

MozReview-Commit-ID: HbQ1X8f3jEW

--HG--
extra : rebase_source : d01d4ef6053f89d9abd0b9da231b3022bb1fddfe
2018-04-27 11:57:14 -04:00
Jim Chen
3680eea14f Bug 1456543 - 4. Add test for loading without navigation delegate; r=esawin
We should be able to load pages without a navigation delegate attached.

MozReview-Commit-ID: DvSxFsi9Oe4

--HG--
extra : rebase_source : 7e5bfb86be0027d3754d2813924002af8f601bd0
2018-04-27 11:57:14 -04:00
Jim Chen
914f0d2023 Bug 1456543 - 3. Add test for updating module state during transfer; r=esawin
Add a test for correctly updating module states after transferring, so
that, for example, if we transfer a session with a null delegate to
another session with a non-null delegate, the corresponding module will
be automatically enabled.

MozReview-Commit-ID: IHskWAJ584i

--HG--
extra : rebase_source : 7c5c7f86c04670947773c8c85c34740ddc6a6de4
2018-04-27 11:57:14 -04:00
Jim Chen
a11250a3d8 Bug 1456543 - 2. Add some @NullDelegate tests; r=snorp
Add some test for proper @NullDelegate behavior.

MozReview-Commit-ID: L845TORdzem

--HG--
extra : rebase_source : 8fd3438d133989c7f63846f7387f1f07faa46fbf
2018-04-27 11:57:13 -04:00
Jim Chen
7c5bc98f1f Bug 1456543 - 1. Add @NullDelegate test annotation; r=snorp
Add an annotation for setting a particular delegate to null on test
start instead of to the proxy object. Assert that a null-delegate is
never used for any of the wait or delegate methods, because those
methods would never succeed with a null-delegate.

MozReview-Commit-ID: DhvOIJXoMCh

--HG--
extra : rebase_source : 57032473ec7d342603997b74b60c4bb34c6e9fd2
2018-04-27 11:57:13 -04:00
Petru Lingurar
7932a610e4 Bug 1445798 - Add Leanplum settings opt-out strings needed for bug #1454686; r=mcomella
To allow users to opt-out from receiving LeanPlum messages we need a new setting added.
This are the Strings for the title and summary of that setting.

Localization notes also added as this Strings will ship before the feature.

Decided to suppress all UnusedResources Lint errors for android strings until the patch for #1454686 lands as using in-line suppression caused other errors.
Ran Lint locally, the build passed.

MozReview-Commit-ID: 9Kx567ruY3n
***

--HG--
extra : rebase_source : acb555719b4da9199364ca737ff140012dacb47c
2018-04-23 19:09:13 +03:00
Vlad Baicu
fe8e33968a Bug 1405192 - Return if onResume has already been called and onPause hasn't. Add telemetry ping for future investigations. r=mcomella
After investigating and analyzing the crash reports this type of scenario can occur due to multi-window or some popups. We are tracking this scenario for further investiagion with a telemetry event. Also added a constant for the hardcoded telemetry event when onPause gets called before onResume.

MozReview-Commit-ID: 2qXCYFyjlce

--HG--
extra : rebase_source : 9883fbc38864d93e653d27f270667b3976bbfbf9
2018-04-25 18:56:55 +03:00
Rob Wu
d9d4c8d852 Bug 1399348 - Explicitly wait and check for error in test browser_ext_tabs_executeScript_bad r=rpl
I think that the intermittent error in the bug may be caused by
a pending executeScript call that is somehow handled around the
shutdown of the extension.

To verify this hypothesis, the test now explicitly waits for the
result of the first executeScript call before executing the last
script that is responsible for test completion.

The test should explicitly be checking for the error anyway.

And clean up comments and add reference to bug 1435100 in an
existing comment.

MozReview-Commit-ID: 6gV30Z6zQc4

--HG--
extra : rebase_source : d2d2f20336390ef61fefe247b3d1ae8668da7067
2018-04-23 15:28:41 +02:00
Timothy Guan-tin Chien
c594214666 Bug 1450017 - Part IX, Move resizer style rules to minimal-xul.css and unify non-native resizer style r=dao
MozReview-Commit-ID: LEodr0aTPkM

--HG--
extra : rebase_source : 92c1b404ebbe64324f63ccbe1878575ae0309604
extra : source : a56127f3a7ed207da2a160362eb1bcf01bf31522
2018-04-10 21:31:25 +08:00
Andreea Pavel
a21531022b Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js => toolkit/components/extensions/test/xpcshell/test_ext_proxy_config.js
2018-04-26 09:04:59 +03:00