Commit Graph

26947 Commits

Author SHA1 Message Date
Vlad Baicu
44843cf2d7 Bug 1474633 - Check if pager navigation is null before calling it. r=jchen
Check if pager navigation is null before calling it.

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

--HG--
extra : moz-landing-system : lando
2018-08-23 20:56:01 +00:00
Cosmin Sabou
c6790f084b Merge mozilla-central to mozilla-inbound. a=merge
--HG--
extra : rebase_source : 742ef5d5df898ae0ed4c7c400d230bf6fa94645c
2018-08-29 21:05:53 +03:00
Kris Maglione
87d079325d Bug 1484496: Follow-up: Fix busted JS enumerator in Android directory service. r=bustage 2018-08-23 18:13:58 -07: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
Andrei Lazar
a7c829ed6c Bug 1482836 Remove deprecated Snippets code r=jchen
Removed unused Snippets code since now we're using Leanplum.

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

--HG--
extra : moz-landing-system : lando
2018-08-16 19:59:15 +00:00
Cosmin Sabou
b69e48dda2 Merge mozilla-central to mozilla-inbound. a=merge 2018-08-24 00:46:31 +03:00
Jim Chen
28a1a1d5dd Bug 1330257 - 8. Add tests for Oreo auto-fill frontend; r=snorp
Add some tests for the Oreo auto-fill frontend, similar to the tests for
the a11y auto-fill frontend. However, because these tests depend on the
ViewStructure class, they require SDK 23+ to run.

Differential Revision: https://phabricator.services.mozilla.com/D3810
2018-08-23 17:03:35 -04:00
Dorel Luca
8e7a61886b Backed out changeset d47a2f5db828 (bug 1481199) browser/base/content/test/urlbar/browser_autocomplete_a11y_label.js. CLOSED TREE 2018-08-23 23:45:02 +03:00
Diego Pino Garcia
6900fb42ab Bug 1481199 - Drop the obsolete dataType parameter for nsIBrowserSearchService.addEngine. r=mkaply 2018-08-23 09:00:00 -04:00
Mike Hommey
8e122c456c Backout changeset 681777ca2f49 (bug 1480006) and 0fc57261a269 (bug 1483190) to see if that fixes bug 1485759 on a CLOSED TREE. a=ebalazs
Another reason to backout is that there may be other subtle breakage
like bug 1478623 and bug 1478269 and we don't have a lot of test
coverage on Android.
2018-08-28 21:08:30 +09:00
Geoff Brown
b534143507 Bug 1484220 - Enable marionette in all fennec builds; r=snorp 2018-08-27 07:19:02 -06:00
Johann Hofmann
7fd1427a9d Bug 1484246 - Part 2 - Add more explanation to certificate errors caused by Symantec distrust to Fennec. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D4297

--HG--
extra : rebase_source : e3949c9520bec01270751898cee7bc21e6c015de
2018-08-26 14:32:01 +02:00
James Willcox
e641866f27 Bug 1480920 - Bump versions for Android test runner packages r=jchen
This also removes the trivial tests for geckoview_example that were
causing problems.

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

--HG--
extra : moz-landing-system : lando
2018-08-23 13:12:20 +00:00
Brindusan Cristian
d21b936680 Merge inbound to mozilla-central. a=merge 2018-08-23 01:00:10 +03:00
Jan Henning
36ca86c711 Bug 1484472 - Avoid FileUriExposedException in ExternalIntentDuringPrivateBrowsingPromptFragment. r=jchen
The fragment is also used to handle intents launched through GeckoAppShell.
openUriExternal(), such as e.g. when launching downloaded files from
about:downloads.

The synchronous code path when not in private browsing is already covered by the
code added in bug 1450449, but the async path through the fragment when in
private browsing needs to be handled separately.

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

--HG--
extra : moz-landing-system : lando
2018-08-22 16:50:04 +00:00
James Willcox
cd232d5aac Bug 1480095 - Add example custom error page to GeckoView Example r=esawin
MozReview-Commit-ID: HeYOkwNHYXq
2018-08-22 08:48:26 -05:00
James Willcox
e07c741622 Bug 1480095 - Allow NavigationDelegate.onLoadError() to return URL for error page r=esawin,jchen
MozReview-Commit-ID: 4pgHD6oh4GY
2018-08-22 08:48:20 -05:00
Cosmin Sabou
ed624fa8d0 Backed out 6 changesets (bug 1484876) for eslint failure on PrivateBrowsingUtils. CLOSED TREE
Backed out changeset e80737d6af55 (bug 1484876)
Backed out changeset b1cb63d8c8bb (bug 1484876)
Backed out changeset cd2ced689895 (bug 1484876)
Backed out changeset d31e39a47704 (bug 1484876)
Backed out changeset babf6abc7f4c (bug 1484876)
Backed out changeset 1c9895ab06c6 (bug 1484876)
2018-08-22 16:26:33 +03:00
Ehsan Akhgari
e5937f080b Bug 1484876 - Part 5: Merge the PrivateBrowsingTrackingProtectionWhitelist service with PrivateBrowsingUtils.jsm; r=johannh 2018-08-22 09:08:10 -04:00
Tiberius Oros
05b46cf200 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-22 00:59:19 +03: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
Randall Barker
869419ee56 Bug 1484960 - Remove IllegalStateException throw on multiple calls to overrides in GeckoAppShell r=jchen
Differential Revision: https://phabricator.services.mozilla.com/D3911

--HG--
extra : moz-landing-system : lando
2018-08-21 19:17:30 +00:00
Dennis Schubert
1ff837285f Bug 1484796 - Add console logging statements to site patches. r=kmag,rhelmer
Differential Revision: https://phabricator.services.mozilla.com/D3818

--HG--
extra : moz-landing-system : lando
2018-08-21 16:10:23 +00:00
Franziskus Kiefer
3d5b81aef3 Bug 1484534 - fix Android error page technical details r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D3858

--HG--
extra : moz-landing-system : lando
2018-08-21 12:04:57 +00:00
Jim Chen
10077d9ffe Bug 1330257 - 7. Add Oreo auto-fill frontend; r=esawin r=snorp
Add a frontend for the Oreo auto-fill API in SessionTextInput, which
processes events from Gecko and provides consumer APIs that match the
Oreo auto-fill APIs. GeckoView then forwards the necessary calls to
SessionTextInput.

Differential Revision: https://phabricator.services.mozilla.com/D3538
2018-08-21 15:23:29 -04:00
Jim Chen
e91970bb1d Bug 1330257 - 6. Add tests for auto-fill accessibility frontend; r=eeejay
Add some tests to AccessibilityTest to make sure we can perform
auto-fill through the accessibility API.

Differential Revision: https://phabricator.services.mozilla.com/D3255
2018-08-21 15:23:29 -04:00
Jim Chen
0840beff3f Bug 1330257 - 5. Add auto-fill accessibility frontend; r=eeejay
Add an auto-fill frontend that listens to events from Gecko. It
populates accessibility nodes for input fields and sends accessibility
events, in order to support auto-fill clients that use accessibility
services to perform auto-fill.

Differential Revision: https://phabricator.services.mozilla.com/D3254
2018-08-21 15:23:28 -04:00
Jim Chen
c142db1d58 Bug 1330257 - 4. Add auto-fill backend; r=esawin
Add an auto-fill backend in GeckoViewContent.js that detects fields on
the page and sends information about the fields to Java through events.

Differential Revision: https://phabricator.services.mozilla.com/D3253
2018-08-21 15:23:28 -04:00
Jim Chen
35fca43b60 Bug 1330257 - 3. Inline session store event listeners; r=droeh
Make the session store event listeners inline, because it makes the code
more readable, and also because auto-fill requires a pageshow listener
that is always registered, so the existing pageshow listener needs to be
moved elsewhere.

Differential Revision: https://phabricator.services.mozilla.com/D3252
2018-08-21 15:23:28 -04:00
Jim Chen
042d95a78e Bug 1330257 - 2. Separate out session focused state from active state; r=droeh
Make a distinction between a session being active (i.e. being visible)
and it being focused. More than one session may be active at a time, but
only one session is focused at a time. This means the focused session is
always active, but an active session may not be focused.

Also, manage setting of active/focused states in GeckoView itself, so
consumers don't generally have to worry about these states.

Differential Revision: https://phabricator.services.mozilla.com/D3251
2018-08-21 15:23:28 -04:00
Jim Chen
99ba526941 Bug 1330257 - 1. Refactor SessionAccessibility; r=eeejay
Move the AccessibilityNodeProvider implementation under
SessionAccessibility, to reduce the indent of the code.

Also make all methods in SessionAccessibility.Settings static to make
the code easier to follow.

Differential Revision: https://phabricator.services.mozilla.com/D3250
2018-08-21 15:23:27 -04:00
Gurzau Raul
fce80a532e Backed out 8 changesets (bug 1330257) for Geckoview failures at GeckoSessionTestRuleTest.waitForPageStop_throwOnChangedCallback on a CLOSED TREE
Backed out changeset c26970c767e1 (bug 1330257)
Backed out changeset 53ef69afca69 (bug 1330257)
Backed out changeset 62e53fa35d5b (bug 1330257)
Backed out changeset 7c589fc8621b (bug 1330257)
Backed out changeset 593f9a799d11 (bug 1330257)
Backed out changeset 9085b9fd557c (bug 1330257)
Backed out changeset aa0ef9b0e96a (bug 1330257)
Backed out changeset 7186e64192f7 (bug 1330257)
2018-08-21 06:51:29 +03:00
Jim Chen
2a5876a5b2 Bug 1330257 - 5a. Fix checkstyle error; r=jchen 2018-08-20 23:02:09 -04:00
Jim Chen
0f3c92c7f0 Bug 1330257 - 7. Add Oreo auto-fill frontend; r=esawin r=snorp
Add a frontend for the Oreo auto-fill API in SessionTextInput, which
processes events from Gecko and provides consumer APIs that match the
Oreo auto-fill APIs. GeckoView then forwards the necessary calls to
SessionTextInput.

Differential Revision: https://phabricator.services.mozilla.com/D3538
2018-08-20 22:28:21 -04:00
Jim Chen
da23d1931b Bug 1330257 - 6. Add tests for auto-fill accessibility frontend; r=eeejay
Add some tests to AccessibilityTest to make sure we can perform
auto-fill through the accessibility API.

Differential Revision: https://phabricator.services.mozilla.com/D3255
2018-08-20 22:28:21 -04:00
Jim Chen
7ead74b685 Bug 1330257 - 5. Add auto-fill accessibility frontend; r=eeejay
Add an auto-fill frontend that listens to events from Gecko. It
populates accessibility nodes for input fields and sends accessibility
events, in order to support auto-fill clients that use accessibility
services to perform auto-fill.

Differential Revision: https://phabricator.services.mozilla.com/D3254
2018-08-20 22:28:20 -04:00
Jim Chen
3d6c8ca540 Bug 1330257 - 4. Add auto-fill backend; r=esawin
Add an auto-fill backend in GeckoViewContent.js that detects fields on
the page and sends information about the fields to Java through events.

Differential Revision: https://phabricator.services.mozilla.com/D3253
2018-08-20 22:28:20 -04:00
Jim Chen
8a8e82e9bd Bug 1330257 - 3. Inline session store event listeners; r=droeh
Make the session store event listeners inline, because it makes the code
more readable, and also because auto-fill requires a pageshow listener
that is always registered, so the existing pageshow listener needs to be
moved elsewhere.

Differential Revision: https://phabricator.services.mozilla.com/D3252
2018-08-20 22:28:20 -04:00
Jim Chen
fa4ec16cc2 Bug 1330257 - 2. Separate out session focused state from active state; r=droeh
Make a distinction between a session being active (i.e. being visible)
and it being focused. More than one session may be active at a time, but
only one session is focused at a time. This means the focused session is
always active, but an active session may not be focused.

Also, manage setting of active/focused states in GeckoView itself, so
consumers don't generally have to worry about these states.

Differential Revision: https://phabricator.services.mozilla.com/D3251
2018-08-20 22:28:20 -04:00
Jim Chen
6b8899beef Bug 1330257 - 1. Refactor SessionAccessibility; r=eeejay
Move the AccessibilityNodeProvider implementation under
SessionAccessibility, to reduce the indent of the code.

Also make all methods in SessionAccessibility.Settings static to make
the code easier to follow.

Differential Revision: https://phabricator.services.mozilla.com/D3250
2018-08-20 22:28:19 -04: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
Csoregi Natalia
6a5d41b053 Merge inbound to mozilla-central. a=merge
--HG--
rename : devtools/server/actors/webconsole/moz.build => devtools/server/actors/webconsole/listeners/moz.build
2018-08-21 01:00:01 +03:00
Randall Barker
91e6e6d242 Bug 1484463 - Remove GeckoAppShell.setScreenDepthOverride(). r=jchen
Differential Revision: https://phabricator.services.mozilla.com/D3813

--HG--
extra : moz-landing-system : lando
2018-08-20 19:11:09 +00:00
Jean-Yves Avenard
2cdf517489 Bug 1484648 - Implement CodecProxy::IsHardwareAccelerated. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D3789

--HG--
extra : moz-landing-system : lando
2018-08-20 15:42:33 +00:00
vinoth
25d8536817 Bug 1480934 - Saving Reader View page yields blank page fixed by removing inline style r=jaws,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D2947

--HG--
extra : rebase_source : ffd74af5b0d9360d50245dd2c9ac3371dbafa096
extra : source : b7531c106b5947faf3edd8a951003d406c6a54dd
2018-08-14 03:26:24 +00:00
Randall Barker
4fcb607ef3 Bug 1484374 - Update GeckoView to handle the autoplay-media permission request. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D3680

--HG--
extra : moz-landing-system : lando
2018-08-18 17:19:32 +00:00
Csoregi Natalia
3e61ab4489 Merge inbound to mozilla-central. a=merge 2018-08-18 12:46:20 +03:00
Daniel Varga
3ee92b7a2f Merge mozilla-central to autoland 2018-08-18 01:04:09 +03:00
Daniel Varga
707a0b3f74 Merge mozilla-inbound to mozilla-central. a=merge 2018-08-18 00:53:04 +03:00
Randall Barker
832c1cbf6b Bug 1483596 - Add GeckoView API to set VR UA string r=esawin,jchen
Differential Revision: https://phabricator.services.mozilla.com/D3545

--HG--
extra : moz-landing-system : lando
2018-08-17 20:34:04 +00:00
Randall Barker
a1c5b33558 Bug 1483420 - Add GeckoView APIs for overriding screen size and display DPI r=esawin,jchen
Differential Revision: https://phabricator.services.mozilla.com/D3379

--HG--
extra : moz-landing-system : lando
2018-08-17 20:17:44 +00:00
Edouard Oger
e3e242dce3 Bug 1484090 - Flag the device for re-registration on push subscription not found r=lina
Differential Revision: https://phabricator.services.mozilla.com/D3567

--HG--
extra : moz-landing-system : lando
2018-08-17 15:09:48 +00:00
John Lin
a47eb60caa Bug 1481139 - fix GMP process IPC channel error on Android. r=jld,njn
Bug 1481139 - p1: handle invalid file descriptors.
Bug 1481139 - p2: add dummy fds for GMP process.

Two file descriptors were added in bug 1438678 and 1471025 for content/child
process but not GMP process, and it breaks the IPC channel on Android.

Add dummy values to make it work for now before bug 1440207 clean up the mess.

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

--HG--
extra : moz-landing-system : lando
2018-08-17 00:06:20 +00:00
Margareta Eliza Balazs
6c198262de Merge inbound to mozilla-central. a=merge 2018-08-17 12:46:14 +03:00
Michael Comella
efc0d9d92c Bug 1373964 - On profile migrate, delete <dir>/res/fonts. r=vladbaicu
The previous implementation attempted to delete files from /res/fonts (i.e.
root). I don't believe this was intended either:
https://bugzilla.mozilla.org/show_bug.cgi?id=878674#c0 indicates the fonts
directory should be inside the data dir of the application. The crash occurs
when the /res/fonts directory exists (only some devices) but the user doesn't
have read access. If the user has write access, our code may actually delete
these system files: uh oh!

My fix is to change the deletion from /res/fonts to <dir>/res/fonts. I verified
this fix worked by creating a clean profile, adding dummy files to the
res/fonts dir, and making sure only the correct ones were deleted (in zsh):

export DIR=/data/data/org.mozilla.fennec_mcomella; \
    adb shell pm clear org.mozilla.fennec_mcomella && \
    adb shell mkdir -p $DIR/res/fonts && \
    for i in touch.ttf lol.rdf; do adb shell touch $DIR/res/fonts/$i; done && \
    adb shell ls $DIR/res/fonts

MozReview-Commit-ID: 8atpcjYjGu0
2018-08-14 18:43:42 -07:00
Jan Henning
c1f1141676 Bug 1483893 - Avoid crashing if we somehow don't have a GeckoRuntime. r=snorp
MozReview-Commit-ID: AGJMrZP0fWu
2018-08-16 16:49:48 -05:00
Tiberius Oros
246f2b4fab Merge inbound to mozilla-central. a=merge 2018-08-17 00:32:50 +03:00
Eugen Sawin
19c0050828 Bug 1483342 - [2.1] Initialize SafeBrowsing module by default to enable safe browsing. r=jchen 2018-08-16 17:56:34 +02:00
Eugen Sawin
b45aa313f1 Bug 1483342 - [1.1] Add GeckoRuntime Safe Browsing API. r=snorp,jchen,francois 2018-08-16 17:56:34 +02:00
Dennis Schubert
d3163f6d9a Bug 1338586 - Ship the WebCompat GoFaster extension to Fennec. r=rhelmer
Differential Revision: https://phabricator.services.mozilla.com/D3012

--HG--
extra : moz-landing-system : lando
2018-08-16 14:26:40 +00:00
Tiberius Oros
127e89f5dd Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-17 00:37:19 +03:00
Matt Brubeck
04cbf7f887 Bug 1483600 - Notify "tab-content-frameloader-created" in GeckoView content script. r=jchen
Differential Revision: https://phabricator.services.mozilla.com/D3546

--HG--
extra : moz-landing-system : lando
2018-08-16 20:50:36 +00:00
dvarga
87db76ae1a Merge mozilla-central to mozilla-inbound on a CLOSED TREE
--HG--
extra : rebase_source : c9e6b9edae9ecf064d1318fa15d5d57ea42c102a
2018-08-16 01:22:36 +03:00
Jan Henning
e93ad5ad8e Bug 1476106 - Part 5 - Subscribe PromptService to OrientationChangeListener, too. r=snorp
Now that GeckoScreenOrientation generally offers notifications of screen
orientation changes, the PromptService no longer needs to do its own orientation
tracking and require to be fed orientation changes from each activity using it.

MozReview-Commit-ID: K7KbDsQip7b

--HG--
extra : rebase_source : 8b447d9db079794c9ad231a31a52f2787ab742ce
2018-08-02 21:17:07 +02:00
Jan Henning
619de3dc05 Bug 1476106 - Part 4 - Refresh ScreenManager data when detecting orientation changes. r=snorp
As of bug 1475875, cached screen data is now held by Gecko, so
- we no longer need to cache the screen size (retrieval of which can be
  expensive when called en masse, as required e.g. by font inflation) within
  GeckoAppShell, and
- we need to trigger a refresh of that data instead when the activity
  orientation changes.

MozReview-Commit-ID: JsY6sBCcOih

--HG--
extra : rebase_source : f286f3b01732bd724da3988c4713adb7329a5fae
2018-08-02 22:03:59 +02:00
Jan Henning
332e51ec37 Bug 1476106 - Part 3 - Move GeckoScreenOrientation updates into GeckoView. r=snorp
By moving the calls to GeckoScreenOrientation.update() into GeckoView, any app
using a GeckoView will automatically update the screen orientation in Gecko,
too, without any further action being required by the embedding app.

The synchronisation around GeckoScreenOrientation.update()/(un)lock() is
required for the following scenario:
If (un)locking of the screen orientation as requested by Gecko caused the
actual screen orientation of the app to change, there are two ways in which this
will cause our internal screen orientation to be updated:
1. Either the call to delegate.setRequestedOrientationForCurrentActivity
   (happening on the Gecko thread if the original request to (un)lock came from
   Gecko) returns first and update() is subsequently first called from the Gecko
   thread, too, meaning the onOrientationChange notification to Gecko can occur
   synchronously as well. In that case, as soon as (un)lock returns to Gecko,
   querying our internal screen orientation will return the correct value.
2. Or else the GeckoView.onConfigurationChanged() call resulting from the screen
   rotation manages to call GeckoScreenOrientation.update() first and does so
   from the Android UI thread. This means that the onOrientationChange
   notification will be redispatched asynchronously to the Gecko thread, while
   the Gecko thread's call to GeckoScreenOrientation.update() will return early
   without doing any work, as the screen orientation had already been previously
   updated by the UI thread.
   As a result,there will be a period of time between the Gecko thread returning
   from GeckoScreenOrientation.(un)lock() and the onOrientationChange
   notification finally executing where querying the internal screen
   orientation will not yet return the new orientation. This can cause problems
   for Gecko (test) code that expects to (un)lock the orientation and then be
   able to immediately query the new, changed orientation after the call to
   (un)lock returns.

Without additional measures in place, there are no guarantees at what point
the GeckoView will receive the onConfigurationChanged() call in relation to the
request to change the activity's orientation making its way back to (un)lock().
Therefore, we add synchronisation such that no other thread will be able to up-
date the screen orientation in GeckoScreenOrientation while another thread is
still busy (un)locking the screen orientation.

MozReview-Commit-ID: 5s5NEJcuS0p

--HG--
extra : rebase_source : cbfbc6da99aa23af4eee8c4bf6018359f9e71304
2018-08-12 13:31:59 +02:00
Jan Henning
85eac0f5c4 Bug 1476106 - Part 2 - Fix setting of mRuntime when restoring GeckoView from savedInstanceState. r=snorp
The call to mSession.transferFrom(ss.session) in the line above also transfers
the window from ss.session into mSession, which means we subsequently won't be
able to retrieve a runtime from ss.session any more, thereby defeating the goal
of calling mRuntime = ss.session.getRuntime().

This case is encountered e.g. when the containing activity is destroyed and sub-
sequently recreated after a configuration change that isn't handled by the app,
e.g. screen rotation in the GeckoView example app.

MozReview-Commit-ID: 5YGskdLZWqw

--HG--
extra : rebase_source : 3293fcaaf645706133531cb0180b6514a289b612
2018-08-04 15:21:40 +02:00
Jan Henning
50803fba6b Bug 1476106 - Part 1 - Make it possible to notify Java listeners from GeckoScreenOrientation, too. r=snorp
Once responsibility for notifying GeckoScreenOrientation of potentially changed
screen orientations moves from GeckoApp into GeckoView, the former will no
longer be able to benefit from the return value of calling GeckoScreen-
Orientation.update(), indicating whether the orientation actually changed or in
fact remained the same.

GeckoApp however requires that information in order to reset/refresh parts of
the UI when the orientation changes, and since GeckoScreenOrientation is already
doing all the work of tracking screen orientation changes, we don't want to have
to partially duplicate those efforts again in GeckoApp.

Instead, we introduce a mechanism for GeckoScreenOrientation to notify
interested parties on the Android app side as well.

The GeckoScreenOrientation.update() call in GeckoApp.onResume() is removed
completely (as opposed to merely removing the refreshChrome() bit) at this stage
already because it is unnecessary. If any screen rotation happened while the
activity was in background, it will receive an onConfigurationChanged() call
anyway before being resumed again.

MozReview-Commit-ID: Ila1evcj8Ud

--HG--
extra : rebase_source : f342800628f930d717fe346779894793a1bac0e9
2018-08-02 21:10:33 +02:00
Jan Henning
6cb9ac4f6b Bug 1476106 - Part 0 - Cleanup imports. r=JanH
MozReview-Commit-ID: UHUdrWSIks

--HG--
extra : rebase_source : e0e64d55db9898d3c19ed4342e200d51326b3a30
2018-08-02 20:51:17 +02:00
Geoff Brown
2b831a4422 Bug 1483563 - Remove 'mach autophone'; r=bc
Autophone has been retired.
2018-08-15 12:54:08 -06:00
Narcis Beleuzu
23387914d5 Merge inbound to mozilla-central. a=merge 2018-08-15 12:48:57 +03:00
Cosmin Sabou
ba5b2095eb Merge mozilla-central to autoland. a=merge 2018-08-15 04:56:53 +03:00
Cosmin Sabou
1c8ad7b4ba Merge mozilla-inbound to mozilla-central. a=merge 2018-08-15 03:51:45 +03:00
arthur.iakab
f9a9a62aa4 Merge autoland to mozilla-central a=merge 2018-08-15 00:59:17 +03:00
Ryan VanderMeulen
765c63d4a4 Bug 1483190 - Only enable LTO if the NDK is available. r=froydnj, a=RyanVM
--HG--
extra : amend_source : 852075195504f2aa4071535c799ce2cb1b96c599
2018-08-14 14:12:56 -04:00
Mike Hommey
df7897447c Bug 1480006 - Enable LTO on Android CI builds a=bustage-fix
--HG--
extra : amend_source : 8edcde344ef682f079b3f4891ecb4c35c69be68c
extra : histedit_source : 1565dd6b287d12f6d4f8d55f872346aaddecf70a
2018-08-14 14:07:15 +03:00
Matt Brubeck
acd631b030 Bug 1481471 - Implement browser.tab.getActive() in GeckoView. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D3355

--HG--
extra : rebase_source : 493842fd508f221c839afe676a60e6a419fc2506
2018-08-14 11:05:12 -07:00
Matt Brubeck
26c55096bd Bug 1481471 - Allow browser.tabs extension APIs to find GeckoView windows. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D3354

--HG--
extra : rebase_source : 862cbd51434542f63f3ec2b567cd1f5865c66c54
2018-08-14 10:53:49 -07:00
Matt Brubeck
64b5dfd4c7 Bug 1481471 - Remove some cruft left behind by Bug 1481471. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D3353

--HG--
extra : rebase_source : d21eaab943e795e95c75032ff137644952f680e2
2018-08-13 10:48:56 -07:00
Jan Henning
91898192c1 Bug 1482478 - Treat handler attribute in notification message as optional. r=jchen
Differential Revision: https://phabricator.services.mozilla.com/D3359

--HG--
extra : moz-landing-system : lando
2018-08-14 21:25:03 +00:00
arthur.iakab
34ad5ebaac Merge mozilla central to inbound 2018-08-15 01:05:50 +03:00
Mike Hommey
288e82c02c Bug 1480006 - Enable LTO on Android CI builds. r=froydnj 2018-08-14 08:26:47 +09:00
Daniel Varga
36e523e699 Merge mozilla-central to mozilla-inbound 2018-08-18 01:05:36 +03:00
Kris Maglione
319fbff074 Bug 1483738: Part 1 - Change notifyInvalidSubmit to take a plain array. r=mconley
This makes things saner for all consumers, which makes it worth doing on its
own. But it also gives me an easy nsTArray to work with, which I can use to
dispatch DOM events with array properties.

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

--HG--
extra : rebase_source : e8bcc75e84845e42c932886502f99ca3154df48d
2018-08-16 12:20:54 -07:00
Yura Zenevich
ff402b25e1 Bug 1481924 - use WINDOW_CONTENT_CHANGED instead of WINDOW_STATE_CHANGED when viewport changes to ensure accessible bounds are re-drawn correctly. r=eeejay, jchen
MozReview-Commit-ID: 92bKGZMwJkP
2018-08-17 09:46:55 -04:00
Ehsan Akhgari
d99f8f170f Bug 1484876 - Part 5: Merge the PrivateBrowsingTrackingProtectionWhitelist service with PrivateBrowsingUtils.jsm; r=johannh 2018-08-22 12:02:44 -04:00
Andreea Pavel
870fc40e66 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-08-14 19:17:13 +03:00
Dennis Schubert
c4663c5965 Bug 1483233 - Add mobile User Agent overrides for eBay domains. r=miketaylr
Differential Revision: https://phabricator.services.mozilla.com/D3343

--HG--
extra : moz-landing-system : lando
2018-08-14 15:53:36 +00:00
Kris Maglione
f99ee35b82 Bug 1480244: Part 5 - Run most framescripts in shared scope. r=mconley
Creating non-shared scopes for frame scripts is fairly expensive. After these
changes it's even more expensive. However, many frame scripts have no use for
the shared scopes at all. Run-once scripts which execute in closures, for
instance, make no use of them. And after bug 1472491, neither do most of our
default frame scripts.

MozReview-Commit-ID: 9PK7bYdQ0yh

--HG--
extra : rebase_source : db2516d2f00a75e233e1957649f2b62a9299b7cd
2018-08-10 13:58:18 -07:00
Andreea Pavel
fba9b7255c Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-08-14 19:19:03 +03:00
Kris Maglione
9d0fd10b85 Bug 1472491: Part 5n - Add AudioPlaybackChild actor. r=felipe
MozReview-Commit-ID: DtGNW4riHQX

--HG--
rename : toolkit/content/browser-content.js => toolkit/actors/AudioPlaybackChild.jsm
extra : rebase_source : d37eef766306f0967ac4c13b4705e32197f7d0f6
2018-07-29 21:27:32 -07:00
Kris Maglione
739cafdadd Bug 1472491: Part 4a - Add helper classes for lazily loading JS IPC actors. r=felipe
This adds the basic framework for defining IPC actors which are lazily
instantiated for the appropriate frame loaders based on DOM events, message
manager messages, and observers. Actual actors are defined in follow-up
commits.

MozReview-Commit-ID: Jb6CWWW7v3v

--HG--
extra : rebase_source : 6c465c492ef423616346d70047c4fd4b074af303
2018-08-11 15:27:12 -07:00
Andrei Lazar
ebcbb5d03f Bug 1477700 Android media notification appears swiped down after video starts r=JanH
Created a dedicated channel for media notifications.

MozReview-Commit-ID: JKFVPNRu2WO

--HG--
extra : rebase_source : f9df42ecae1467c337c0d4bdbd5c5582e47c582c
2018-08-14 13:47:02 +03:00
Eugen Sawin
2b5ddea72f Bug 1479026 - Adjust GeckoView telemetry API tests to match corrected schema. r=janerik 2018-08-13 15:22:52 +02:00
Petru Lingurar
4b11eb4490 Bug 1480421 - Crash reporter not working prior to Android O r=jchen
Summary:
When running on pre Oreo devices CrashReportingService (a JobIntentService)
is started as a regular Service.
Return super.onStartCommand(..) to make sure onHandleWork() would be caled.

Reviewers: sdaswani, VladBaicu, jchen

Reviewed By: jchen

Bug #: 1480421

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

--HG--
extra : rebase_source : 78d83fca65b000a10e2f8b522c8ee57cd364a829
extra : histedit_source : 71a48d23421fec60ded4c0c45c8cafb8927196ab
2018-08-11 11:52:17 +03:00
Petru Lingurar
4d043f9fc6 Bug 1480806 - Remove javascript intent filter if unused r=jchen
Reviewers: jchen

Reviewed By: jchen

Bug #: 1480806

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

--HG--
extra : rebase_source : ac696c1611589566ef98c6433bf8a2b272b881d4
extra : histedit_source : 54a20b0fceeb0b22c94202c7cd7986b97f027158
2018-08-11 11:49:13 +03:00
Mike Hommey
f4f54e5aeb Bug 1482330 - Upgrade to Android NDK r17b and API level 16 (JB). r=snorp
We're currently using NDK r15c, which is rather old, and happens to come
with a buggy gold linker. Let's use a more recent NDK, with a fixed
linker.

Unfortunately, we're currently at NDK API level 9, which the newer NDK
doesn't provide for x86 anymore. But that corresponds to Gingerbread
(2.3), which we've long stopped supporting. On the SDK side, we already
dropped support of versions before Jelly Bean, so we can do the same on
the NDK side. That corresponds to API level 16. So let's just use that
as a baseline.

Another change in the newer NDK is that the target-name changed from
i386-linux-android to i686-linux-android, so adjust for that in the
android x86 mozconfigs.
2018-08-11 09:47:41 +09:00
Bogdan Tara
347da2ba78 Backed out changeset 003838e8d110 (bug 1482330) for Adnroid build bustages on mozalloc_abort.cpp CLOSED TREE 2018-08-11 03:22:58 +03:00
Bogdan Tara
2f2b719960 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-08-11 01:01:18 +03:00
Mike Hommey
ee95699e6b Bug 1482330 - Upgrade to Android NDK r17b and API level 16 (JB). r=snorp
We're currently using NDK r15c, which is rather old, and happens to come
with a buggy gold linker. Let's use a more recent NDK, with a fixed
linker.

Unfortunately, we're currently at NDK API level 9, which the newer NDK
doesn't provide for x86 anymore. But that corresponds to Gingerbread
(2.3), which we've long stopped supporting. On the SDK side, we already
dropped support of versions before Jelly Bean, so we can do the same on
the NDK side. That corresponds to API level 16. So let's just use that
as a baseline.

Another change in the newer NDK is that the target-name changed from
i386-linux-android to i686-linux-android, so adjust for that in the
android x86 mozconfigs.
2018-08-11 06:50:21 +09:00
Yura Zenevich
e0c82272d3 Bug 1481924 - added GevkoView accessibility tests for scrolling. r=eeejay, jchen
MozReview-Commit-ID: ATGNFruDGAI
2018-08-10 13:13:35 -04:00
Yura Zenevich
2b1f8c8ae8 Bug 1481922 - add support for select action and view selected event. r=eeejay, jchen
MozReview-Commit-ID: FaLz7majPhz
2018-08-10 13:13:27 -04:00
Margareta Eliza Balazs
d5a51ec1a6 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-10 12:22:04 +03:00
Andrei Lazar
262118affd Bug 1476966 Constant notification ringing when downloading a file r=JanH
Created specific notification channel dedicated to download progress notifications.

MozReview-Commit-ID: 88vsQiI2L2
***

--HG--
extra : rebase_source : 146563fd14a59299bc9bbba79fc9bdfd9e7ed37f
2018-08-09 14:07:02 +03:00
Eugen Sawin
a9fe7d83f0 Bug 1480813 - [1.0] Use non-animated setProgress method to avoid API level 24 dependency. r=snorp 2018-08-09 16:28:14 +02:00
Eugen Sawin
0e43a32a72 Bug 1480757 - [4.0] Emit load error when blocking load requests for unsafe URIs. r=snorp 2018-08-09 16:27:31 +02:00
Eugen Sawin
e50c9c3c62 Bug 1480757 - [3.0] Add some IntentUtils tests. r=snorp 2018-08-09 16:27:31 +02:00
Eugen Sawin
b89781fbd8 Bug 1480757 - [2.0] Block unsafe URI intent load requests. r=snorp 2018-08-09 16:27:31 +02:00
Eugen Sawin
af25612f9c Bug 1480757 - [1.0] Move safe intent handling utilities from IntentHelper to IntentUtils to make them accessible in GeckoView. r=jchen 2018-08-09 16:27:31 +02:00
dvarga
bc1e909e78 Backed out 6 changesets (bug 1476106) for failure at bf1f28e2b46d for failure at testing/marionette/harness/marionette_harness/tests/unit/test_screen_orientation.py
Backed out changeset bf1f28e2b46d (bug 1476106)
Backed out changeset ab38b11f85dd (bug 1476106)
Backed out changeset b1a3ff0760bf (bug 1476106)
Backed out changeset deb22f602d59 (bug 1476106)
Backed out changeset 3b1084efc943 (bug 1476106)
Backed out changeset 6d885f08136b (bug 1476106)

--HG--
extra : rebase_source : 34de95d347ba0bdc2afaca1597460d042af880c0
2018-08-08 22:39:03 +03:00
Matt Brubeck
770d982a69 Bug 1471868 - Don't set composing region after removing autocomplete. r=jchen
Backport of https://github.com/mozilla-mobile/android-components/pull/423

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

--HG--
extra : moz-landing-system : lando
2018-08-08 15:35:22 +00:00
Jan Henning
7b902db1b5 Bug 1479311 - Don't attempt finding and highlighting a tab's base domain within a javascript: URL. r=snorp
MozReview-Commit-ID: DzE0UJfMcCI

--HG--
extra : rebase_source : 2a9bcc74447a8a2862aa3c753f7bd30e1d0361dc
2018-08-03 20:58:46 +02:00
Gabriele Svelto
15adf94f4d Bug 1348273 - Convert crash annotations into a machine-readable list of constants; r=ted.mielczarek,njn,dholbert,mak,cpearce,mcmanus,froydnj,Dexter,jrmuizel,jchen,jimm,bz,surkov
This introduces the machinery needed to generate crash annotations from a YAML
file. The relevant C++ functions are updated to take a typed enum. JavaScript
calls are unaffected but they will throw if the string argument does not
correspond to one of the known entries in the C++ enum. The existing whitelists
and blacklists of annotations are also generated from the YAML file and all
duplicate code related to them has been consolidated. Once written out to the
.extra file the annotations are converted in string form and are no different
than the existing ones.

All existing annotations have been included in the list (and some obsolete ones
have been removed) and all call sites have been updated including tests where
appropriate.

--HG--
extra : source : 4f6c43f2830701ec5552e08e3f1b06fe6d045860
2018-07-05 15:42:11 +02:00
arthur.iakab
dfb7a82313 Backed out changeset d3978309484a (bug 1480920) For Android build bustages CLOSED TREE 2018-08-09 23:59:05 +03:00
James Willcox
d91e5fd1af Bug 1480920 - Bump versions for Android test runner packages r=jchen
MozReview-Commit-ID: GlC0qJCVl4V
2018-08-09 15:05:30 -05:00
Randall Barker
e76d5d449a Bug 1477837 - Fix typo in comment documentation for function GeckoRuntimeSettings.getDisplayDensityOverride r=jchen
MozReview-Commit-ID: FqdSLvNJVao
2018-08-09 10:47:20 -07:00
Jonathan Kingston
9b7fb2f20c Bug 1362034 - Have addTab() provide the correct triggering principal. r=ckerschb r=Gijs
Reviewers: ckerschb!, Gijs!

Tags: #secure-revision

Bug #: 1362034

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

--HG--
extra : source : 44b25dea67d2ed079e17057ab619d827e9983400
extra : amend_source : 5742820277e0269b6f5d42b1abd98fd9b228ac4a
extra : histedit_source : 790bd2490333e4d8fea7774d036eafbc2fc329b9
2018-07-06 15:14:54 +01:00
Jan Henning
5966b349ea Bug 1476106 - Part 5 - Subscribe PromptService to OrientationChangeListener, too. r=snorp
Now that GeckoScreenOrientation generally offers notifications of screen
orientation changes, the PromptService no longer needs to do its own orientation
tracking and require to be fed orientation changes from each activity using it.

MozReview-Commit-ID: K7KbDsQip7b

--HG--
extra : rebase_source : 72164b6e6b9c8e1a2f31a33db9b8da7d457739a9
2018-08-02 21:17:07 +02:00
Jan Henning
3e9949ac8c Bug 1476106 - Part 4 - Refresh ScreenManager data when detecting orientation changes. r=snorp
As of bug 1475875, cached screen data is now held by Gecko, so
- we no longer need to cache the screen size (retrieval of which can be
  expensive when called en masse, as required e.g. by font inflation) within
  GeckoAppShell, and
- we need to trigger a refresh of that data instead when the activity
  orientation changes.

MozReview-Commit-ID: JsY6sBCcOih

--HG--
extra : rebase_source : a99e4688d6724e5b73b748078f51cf6a6268733d
2018-08-02 22:03:59 +02:00
Jan Henning
93916ece65 Bug 1476106 - Part 3 - Move GeckoScreenOrientation updates into GeckoView. r=snorp
By moving the calls to GeckoScreenOrientation.update() into GeckoView, any app
using a GeckoView will automatically update the screen orientation in Gecko,
too, without any further action being required by the embedding app.

MozReview-Commit-ID: 5s5NEJcuS0p

--HG--
extra : rebase_source : 2b61942672d27453a936174c16f843109c9e36ba
2018-08-02 22:02:09 +02:00
Jan Henning
67cda6c622 Bug 1476106 - Part 2 - Fix setting of mRuntime when restoring GeckoView from savedInstanceState. r=snorp
The call to mSession.transferFrom(ss.session) in the line above also transfers
the window from ss.session into mSession, which means we subsequently won't be
able to retrieve a runtime from ss.session any more, thereby defeating the goal
of calling mRuntime = ss.session.getRuntime().

This case is encountered e.g. when the containing activity is destroyed and sub-
sequently recreated after a configuration change that isn't handled by the app,
e.g. screen rotation in the GeckoView example app.

MozReview-Commit-ID: 5YGskdLZWqw

--HG--
extra : rebase_source : e9b5a7478cfb8a9ad44c149e3ba1532f22ab4086
2018-08-04 15:21:40 +02:00
Jan Henning
6051f1bb91 Bug 1476106 - Part 1 - Make it possible to notify Java listeners from GeckoScreenOrientation, too. r=snorp
Once responsibility for notifying GeckoScreenOrientation of potentially changed
screen orientations moves from GeckoApp into GeckoView, the former will no
longer be able to benefit from the return value of calling GeckoScreen-
Orientation.update(), indicating whether the orientation actually changed or in
fact remained the same.

GeckoApp however requires that information in order to reset/refresh parts of
the UI when the orientation changes, and since GeckoScreenOrientation is already
doing all the work of tracking screen orientation changes, we don't want to have
to partially duplicate those efforts again in GeckoApp.

Instead, we introduce a mechanism for GeckoScreenOrientation to notify
interested parties on the Android app side as well.

The GeckoScreenOrientation.update() call in GeckoApp.onResume() is removed
completely (as opposed to merely removing the refreshChrome() bit) at this stage
already because it is unnecessary. If any screen rotation happened while the
activity was in background, it will receive an onConfigurationChanged() call
anyway before being resumed again.

MozReview-Commit-ID: Ila1evcj8Ud

--HG--
extra : rebase_source : 345c838325264399cc7f7829cc587faf7e9cc756
2018-08-02 21:10:33 +02:00
Jan Henning
64655ee0bb Bug 1476106 - Part 0 - Cleanup imports. r=JanH
MozReview-Commit-ID: UHUdrWSIks

--HG--
extra : rebase_source : e0e64d55db9898d3c19ed4342e200d51326b3a30
2018-08-02 20:51:17 +02:00
Jesse Schwartzentruber
abc4b27cb4 Bug 1475573 - Create --enable-fuzzing debug build job for Android x86 firefox. r=nalexander,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D2428

--HG--
extra : moz-landing-system : lando
2018-08-07 17:53:57 +00:00
Csoregi Natalia
0f4d50ff52 Merge inbound to mozilla-central. a=merge 2018-08-08 12:58:36 +03:00
Randall Barker
27841b246e Bug 1477837 - Add GeckoView API to override device display density r=esawin,jchen
Differential Revision: https://phabricator.services.mozilla.com/D2808

--HG--
extra : moz-landing-system : lando
2018-08-07 20:10:15 +00:00
Petru Lingurar
b1b920e62f Bug 1480079 - Add REQUEST_INSTALL_PACKAGES permission for all builds; r=jchen
This permission is needed on API26+ to be able to install app updates but also
other downloaded APKs.

MozReview-Commit-ID: Lk0uqBAJ5BH

--HG--
extra : rebase_source : 5f31cfd06c2205cd2a96ac68ba19b697d49ae75c
2018-08-07 16:48:29 +03:00
Matt Brubeck
7b8f8f1076 Bug 1458662 - Re-enable regex JIT on aarch64. r=jchen
MozReview-Commit-ID: 8d2pO69R2OD

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

--HG--
extra : moz-landing-system : lando
2018-08-06 22:11:11 +00:00
Brindusan Cristian
381e833a9d Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-08 00:58:40 +03:00
Dylan Roeh
63ca464a8c Bug 1441059 - Make nsILoadURIDelegate async to preserve the order of GeckoSession.loadUri() calls. r=snorp,bz
This alters nsILoadURIDelegate.loadURI() to return a Promise rather than spinning the event loop to synchronously return a boolean, and alters nsDocShell::InternalLoad to allow for those changes by re-calling itself if necessary based on the resolution of the promise.
2018-08-07 13:42:07 -05:00
Kris Maglione
c50886cf4e Bug 1480327: Part 2 - Modernize what's left of Log.jsm a bit. r=Mossop
MozReview-Commit-ID: H06rpiZuIEF

--HG--
extra : rebase_source : e10781ffdfaa264370ca95a720298dc3607a079b
2018-08-01 23:23:34 -07:00
Kris Maglione
bf729d7e98 Bug 1480327: Part 1 - Get rid of most of Log.jsm. r=Mossop
MozReview-Commit-ID: JVKJtkLhCDS

--HG--
extra : rebase_source : 8b47dbfaa6f279901b99c93c26eee27f719b1d1d
2018-08-01 23:41:01 -07:00
Petru Lingurar
8dbf61da1e Bug 1474859 - Enable Multidex for all builds; r=nalexander
Multidex will now be enabled for all builds, not just for the _local_ ones.
Also added the 'ads-identifier' library needed for the builds with the
MOZ_INSTALL_TRACKING flag case in which the dex limit would be reached.

MozReview-Commit-ID: FRTXBD9Kc6T

--HG--
extra : rebase_source : c73a0a48d355edbe2080b14ceeb2f99609a45d7c
2018-08-06 18:38:48 +03:00
Petru Lingurar
e2ef3d8035 Bug 1410218 - Fix NPE when cast fails; r=jchen
This happened whenever starting to cast a video and loading the media failed.
MediaStatus in this case would be null and querying it would throw a
NullPointerException.
Avoiding this query when the MediaStatus is null lets the normal execution flow
continue and if loading media failed casting will fail gracefully.

MozReview-Commit-ID: 8ZOqr1FO1Dt

--HG--
extra : rebase_source : 905b7e83bc7265fe8312509dfc5aa6274dd89c5c
2018-08-03 13:26:55 +03:00
Zibi Braniecki
16229f69ef Bug 1475903 - Add mozIDOMLocalization API. r=mossop
In order to use DOMLocalization from C++ we need an XPIDL interface.
mozIDOMLocalization exposes the class and functionality allowing DocumentL10n to hook into it.

MozReview-Commit-ID: GPMhw61LPEg

--HG--
extra : rebase_source : 65d6e2b84379e78201f0c8b674630d1f485aaf8c
2018-06-22 13:14:23 -07:00
Andrew Swan
a96d0d6331 Bug 1429610 Add internal api to look up available language packs r=gandalf,rpl
MozReview-Commit-ID: ISIu9mDIvbP

--HG--
extra : rebase_source : 800cbd7ddf943f7740d37f47fe6154240da3b831
extra : source : ca539f07691c6e243bcb0f4a3137d0e0940ab2a0
2018-05-14 10:18:32 -07:00
Dylan Roeh
03d9e5fd48 Bug 1485178 - Only migrate sharedprefs when in Fennec. r=snorp 2018-08-28 11:35:46 -05:00
Mark Banner
a6ac6f001a Bug 1479726 - Use correct filterXUL property for nsIFilePicker in FilePicker.js. r=snorp
MozReview-Commit-ID: A3G98cC8T4F

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

--HG--
extra : moz-landing-system : lando
2018-08-10 15:41:41 +00: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
Mark Banner
de17149c02 Bug 1479727 - Fix the request rejection value in ImageBlockingPolicy to be a valid one. r=snorp
MozReview-Commit-ID: 6mrCgvVZbRG

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

--HG--
extra : moz-landing-system : lando
2018-08-10 14:07:43 +00:00
Andrei Lazar
d20f605a33 Bug 1480007 Image not displayed for Welcome screen - Sign in to Sync r=jchen
Fixed the issue where we it was trying to parse a drawable instead of an id from parcelable.

MozReview-Commit-ID: IEgmAT39JiQ

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

--HG--
extra : moz-landing-system : lando
2018-08-08 15:35:56 +00:00
Jan Henning
013fe3e6c7 Bug 1414084 - Part 17 - Fix setting of private browsing theme state. r=Grisha
Previously, this wasn't noticeable since adding/removing a PageAction would call
refreshPageActionIcons(), which would do the correct thing, but now a newly
created PageActionLayout can start with an already pre-populated mPageAction-
List, which means that the subsequently arriving call to setPrivateMode() will
erroneously activate the private mode tinting for all PageActions that support
it.

MozReview-Commit-ID: EvNx1Q9vwZ5

--HG--
extra : rebase_source : 17781b64e77c52affcb76e2e9debc925a7c32f8e
2018-03-02 18:01:28 +01:00
Jan Henning
2894a34f2b Bug 1414084 - Part 16 - Add some tests for the handling of PageActions. r=Grisha
MozReview-Commit-ID: EUl19vyK3Ra

--HG--
extra : rebase_source : d1fb530dc5e895173eb0a6f5c5aaad7a26ca7cf9
2018-03-19 20:27:01 +01:00
Jan Henning
d08db48c78 Bug 1414084 - Part 15 - Correctly remove already resolved PageActions, too. r=Grisha
When a PageActions:Remove message arrives and we cannot simply forward it, we
need to remove not just pending PageActions:Add messages, but also any already
present PageActions objects that a former PageActionLayout had handed to us.

MozReview-Commit-ID: 3jnGsmMuVfa

--HG--
extra : rebase_source : 7ca27912f06dfcc82a73faa644bc4583c381bec6
2018-03-03 18:11:57 +01:00
Jan Henning
6b91a61d39 Bug 1414084 - Part 14 - Rename isPwaAdded for more clarity. r=Grisha
Despite its name and the original purpose for which it was added, that function
generically checks for duplicates among all PageActions, not just the PWA badge.

MozReview-Commit-ID: Ae6FsLb9F3S

--HG--
extra : rebase_source : 0ea24add9f941b21b66b4fd216833a46bfa2a5ed
2018-03-18 20:39:00 +01:00
Dylan Roeh
693efc04e8 Bug 1486525 - Add NavigationDelegateTest.redirectLoad() to test redirect onLoadRequest handling. r=jchen 2018-08-30 09:51:18 -05:00
Jan Henning
f47eb731da Bug 1414084 - Part 13 - Cache PageActions. r=Grisha
Since converting a PageAction message into an actual PageAction object also en-
tails parsing the image data URL into a drawable, we leave that task to the
PageActionLayout.

This means that the PageAction cache needs to operate slightly differently than
the MenuItem cache. First, we store all PageAction BundleEvent messages that
arrive while no PageActionLayout is ready and then forward them en masse when
one becomes available. Secondly, if the PageActionLayout is going away again,
we then also take a list of already parsed PageAction objects for safekeeping.

MozReview-Commit-ID: AcPPONXqe46

--HG--
extra : rebase_source : 696df760f28f9d126858920b544585e4c86219ff
2018-02-26 21:50:50 +01:00
Jan Henning
a6932b97b2 Bug 1414084 - Part 12 - Add some tests for the processing of Menu messages. r=Grisha
MozReview-Commit-ID: D8Aujo1PgIk

--HG--
extra : rebase_source : 1dd4fa0909e7b1a036a739a886043fe627740c56
2018-03-19 20:06:32 +01:00
Jan Henning
a3950adb71 Bug 1414084 - Part 11 - Use a Map for the MenuItemInfo list. r=Grisha
Since all related EventDispatcher messages use UUIDs, it makes sense to store
our MenuItemInfos in a Map, so we can access them directly by UUID instead of
having to iterate over them until we've found the desired one.

Since we want to preserve the order in which MenuItemInfos were added, we use a
LinkedHashMap.

MozReview-Commit-ID: BEtJ59tX59m

--HG--
extra : rebase_source : 8012b11c1e36b774972a0cc4a6f748ccaace7533
2018-03-18 18:07:16 +01:00
Jan Henning
5671c8488b Bug 1414084 - Part 10 - Init MenuItemInfo list right from the start. r=Grisha
The small savings in initialising this on demand the first time a menu item is
added, are not worth the additional complexity in null checks and the like.

MozReview-Commit-ID: Lcz09Ds8NxJ

--HG--
extra : rebase_source : 379789298e0d60d353426c665a8f89c551ceaa66
2018-03-18 17:47:33 +01:00
Jan Henning
24822c48c7 Bug 1414084 - Part 9 - Move add-on menu item cache out of BrowserApp. r=Grisha
Bug 832990 solved the issue of us losing the menu item cache if BrowserApp was
destroyed, however the issue remains that we'll miss any Menu:... messages that
are sent while BrowserApp doesn't exist, e.g. if Gecko is initially loaded
through a GeckoView-based activity.

Therefore we now move the menu item cache and the listener for those messages
into a separate class, whose lifetime better matches that of Gecko.

Apart from any necessary changes, we move the existing code as is. The only
additional change is that we make addAddonMenuItemToMenu() static, because we
can.

MozReview-Commit-ID: BJleonLnjmo

--HG--
extra : rebase_source : e36d954488cc44d250948edcbb8a1964e24ddab7
2018-02-25 22:22:37 +01:00
Jan Henning
98cf3ace3e Bug 1414084 - Part 8 - Unify menu item EventDispatcher messages. r=Grisha
As a final step, these can be merged as well. The same reasoning as in the
previous patch applies with regards to additional functionality that isn't
(yet) used by webextensions.

MozReview-Commit-ID: Ezx2mQY0s85

--HG--
extra : rebase_source : 955462126312241ca860e8184507bd7ed4955450
2018-03-18 16:42:57 +01:00
Jan Henning
dffaacd92c Bug 1414084 - Part 7 - Use one set of functions for managing MenuItems in the UI. r=Grisha
The original add-on functions have some additional capabilities regarding e.g.
checkboxes, disabling the menu, etc. that right now aren't required for
Webextensions (yet?), but in that case they will simply not be used - in any
case BrowserActions.jsm controls what functionality is actually exposed to
add-ons.

MozReview-Commit-ID: DPT8gV2gb6q

--HG--
extra : rebase_source : 09a0a52c374c1c423002e9dcb5edc0c7e2730bbd
2018-03-18 14:17:03 +01:00
Jan Henning
6a1b2755c2 Bug 1414084 - Part 6 - Use only one list to store menu items added from Gecko. r=Grisha
Now that the UI code for handling both the old NativeWindow API and Web-
extensions is more or less the same and both are using the same MenuItemInfo
class, there's no longer any real need to keep items added through the two APIs
in separate lists - in fact doing so makes it harder to preserve the ordering
of menu items if the activity and its menu are destroyed and need to be re-
created later on from the stored lists of MenuItemInfos.

MozReview-Commit-ID: KlJdvO9WhhY

--HG--
extra : rebase_source : 2d28262f72acaa0e0e6966f8309ef9569d3f6314
2018-03-23 19:58:18 +01:00
Jan Henning
ca67107246 Bug 1414084 - Part 5 - Unify menu click event handling. r=Grisha
Now that both Webextensions and the NativeWindow API manage their onClick call-
back handling by UUID, we can start using the same EventDispatcher message for
both.

MozReview-Commit-ID: J3RRXrwPdTI

--HG--
extra : rebase_source : 7f136d70944641391e57a76efdec6546fe74cfd0
2018-03-18 14:24:15 +01:00
Jan Henning
c05debbbe2 Bug 1414084 - Part 4 - Move menu item ID generation into the UI. r=Grisha
Since the NativeWindow API now only uses UUIDs as well when dealing with its
consumers, we can leave generation of the menu to the Android UI code of
Firefox.

MozReview-Commit-ID: 1qDLDnePfFE

--HG--
extra : rebase_source : d1320f92ebd4be0237d3da554a3f8182a0e72d4e
2018-03-18 15:43:27 +01:00
Jan Henning
c0e12b4358 Bug 1414084 - Part 3 - Store NativeWindow menu callbacks by UUID. r=Grisha
MozReview-Commit-ID: 7nEhAUxOIsW

--HG--
extra : rebase_source : ed74e1df2ac1d86969c6fafcd22ac10b70b9836c
2018-03-18 13:33:42 +01:00
Jan Henning
951c14aa26 Bug 1414084 - Part 2 - Use UUIDs for the NativeWindow menu API, too. r=Grisha
At the moment, the code for handling of JS-created main menu items is more or
less duplicated between the old NativeWindow API and Webextensions, with the
only real difference being that the former communicates directly via menu item
IDs, while the latter uses UUIDs for messaging between Gecko and the UI.

By switching the NativeWindow API to using UUIDs as well, we will be able to
start unifying this code again.
As for backward compatibility
- the return value of NativeWindow.menu.add is valid for the current session
  only, so no migration is necessary
- the return value of NativeWindow.menu add was already effectively only an
  opaque value which only had real meaning for subsequent calls to menu.add,
  menu.update and menu.remove, so it shouldn't really matter whether we return
  a plain numeric ID or an UUID in string form
- old-style add-ons are now unsupported for better or for worse and our one in-
  tree caller won't have any problems with this change

MozReview-Commit-ID: HdRNhrx1pu7

--HG--
extra : rebase_source : 33ce855ac2f2f65fe20cb5047de3b8cbbcd094d9
2018-03-18 13:26:16 +01:00
Jan Henning
0e2c70d5ad Bug 1414084 - Part 1 - No longer track MenuItemInfo "added" data. r=Grisha
We no longer use that value anywhere, so we can just stop keeping track of it.

MozReview-Commit-ID: D1IgX1t8SKI

--HG--
extra : rebase_source : 51288c866bdd078aed629590ad39b2f8d524d044
2018-03-18 13:49:31 +01:00
Jan Henning
2939a122ab Bug 1414084 - Part 0 - Cleanups. r=Grisha
MozReview-Commit-ID: B3ZGN2X8JXH

--HG--
extra : rebase_source : 7d08937ab056a3a4733bd364e3518c1528146d37
2018-02-25 20:53:01 +01:00
Johan Lorenzo
86d185ecdd Bug 1470942 - part 1: Craft zip archive of maven artifacts r=jchen
Same as https://phabricator.services.mozilla.com/D2031 but keeps the old maven artifacts exposed.

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

--HG--
extra : moz-landing-system : lando
2018-08-16 15:45:13 +00:00
Noemi Erli
74a710cb5e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-04 15:39:02 +03:00
Noemi Erli
23c8a3a9f3 Backed out changeset 1e9ecba54e7b (bug 1348273) for failing on widget/tests/test_bug1123480.xul 2018-08-04 12:39:40 +03:00
Noemi Erli
0cacb5f9cb Backed out changeset acde419e016e (bug 1475573) for breaking Android builds 2018-08-04 10:12:40 +03:00
Jesse Schwartzentruber
ec180b72d0 Bug 1475573 - Create --enable-fuzzing debug build job for Android x86 firefox. r=froydnj,nalexander
Reviewers: froydnj, nalexander

Reviewed By: froydnj, nalexander

Subscribers: froydnj

Bug #: 1475573

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

--HG--
extra : rebase_source : fcad543ea727e8974dc6aaade92053fa0008c5ff
extra : histedit_source : 0a8b60693d64fef0aefd985d9f3108cf77890e94
2018-08-04 09:46:02 +03:00
Thomas Wisniewski
6bf788e479 Bug 1479209 - Update GWS experiment in bz1453691 to clear the GWS serviceworker. r=rhelmer
MozReview-Commit-ID: JilTr1E6Fkv

--HG--
extra : rebase_source : 617a0e8978c37fe75c5b2568e221be45a22834db
2018-08-03 12:52:36 -04:00
Bogdan Tara
f2cb75b28c Merge inbound to mozilla-central. a=merge 2018-08-03 13:16:27 +03:00
Tudor-Gabriel Vîjială
a16d201c28 Bug 1473313 - Part 5: Add in-tree documentation page for Android code coverage. r=nalexander
MozReview-Commit-ID: 20meKbpduha

--HG--
extra : rebase_source : 0383fe0cab846c148e1b20b2ee517730a18fae32
2018-07-31 12:02:08 +01:00
Narcis Beleuzu
394893c006 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-03 01:35:43 +03:00
Eugen Sawin
6e3b78c7be Bug 1480460 - [2.1] Add onProgressChange test. r=jchen 2018-08-03 00:29:51 +02:00
Eugen Sawin
23de33333d Bug 1480460 - [1.1] Add basic progress bar to the example app. r=snorp 2018-08-03 00:29:51 +02:00
Narcis Beleuzu
4684ccf98e Merge inbound to mozilla-central. a=merge 2018-08-03 01:28:14 +03:00
Boris Zbarsky
c02c1c0f2b Bug 1476142 part 3. Remove some unnecessary QIs in mobile. r=snorp 2018-08-02 15:26:48 -04:00
Tudor-Gabriel Vîjială
62e4daad39 Bug 1473313 - Part 4: Add build and test platforms for android emulator code coverage. r=gbrown
MozReview-Commit-ID: IkSKdB7ZeYi

--HG--
extra : rebase_source : 1cff84a03c8f590ac3df5e0dc1ccf217fd2589c3
2018-07-24 11:53:37 +01:00
Tudor-Gabriel Vîjială
ae279dbf60 Bug 1473313 - Part 1: Set up geckoview build config for androidTest coverage runs. r=nalexander
This patch adds JaCoCo as a dependency for the geckoview androidTest configurations, as well as
the `mach android archive-geckoview-coverage-artifacts` command, and the `--enable-java-coverage`
mozconfig flag.

MozReview-Commit-ID: 36jNAzK44g3

--HG--
extra : rebase_source : 9edc37913a3929ad045270c601c77791d122e363
2018-07-24 11:44:24 +01:00
Gabriele Svelto
50ba13cce4 Bug 1348273 - Convert crash annotations into a machine-readable list of constants; r=ted.mielczarek,njn,dholbert,mak,cpearce,mcmanus,froydnj,Dexter,jrmuizel,jchen,jimm,bz,surkov
This introduces the machinery needed to generate crash annotations from a YAML
file. The relevant functions are updated to take a typed enum (in C++) and an
integer constant (in JavaScript). A JavaScript wrapper around the crash
reporter service is provided to hold the constants. The existing whitelists
and blacklists of annotations are also generated from the YAML file and the
existing duplicate code has been consolidated. Once written out to the .extra
file the annotations are converted in string form and are no different than
the existing ones.

All existing annotations have been included (and some obsolete ones removed)
and all call sites have been updated including tests.

--HG--
extra : rebase_source : b4f0d4bf83c64851028c271d3fab3ebcb6fbcd3e
2018-07-05 15:42:11 +02:00
Coroiu Cristina
1ba19a32ac Backed out changeset 86471a18672f (bug 1348273) for ESlint failure at toolkit/modules/WebNavigationChild.jsm
--HG--
extra : rebase_source : e0c94f49ddc1f1b119b72c06fccc1b4363b9d340
2018-08-03 22:48:51 +03:00
Gabriele Svelto
eff24befbd Bug 1348273 - Convert crash annotations into a machine-readable list of constants; r=ted.mielczarek,njn,dholbert,mak,cpearce,mcmanus,froydnj,Dexter,jrmuizel,jchen,jimm,bz,surkov
This introduces the machinery needed to generate crash annotations from a YAML
file. The relevant functions are updated to take a typed enum (in C++) and an
integer constant (in JavaScript). A JavaScript wrapper around the crash
reporter service is provided to hold the constants. The existing whitelists
and blacklists of annotations are also generated from the YAML file and the
existing duplicate code has been consolidated. Once written out to the .extra
file the annotations are converted in string form and are no different than
the existing ones.

All existing annotations have been included (and some obsolete ones removed)
and all call sites have been updated including tests.

--HG--
extra : rebase_source : f0e8d229581ac5c0daa0e0454cb258746108e28d
2018-07-05 15:42:11 +02:00
Boris Zbarsky
e4b74becff Bug 1479569 part 2. Use the new messageManager getter on docshell. r=kmag
I generally tried to preserve the behavior of consumers where they treated an
exception from getInterface(Ci.nsIContentFrameMessageManager) as a signal to use
some sort of fallback.

I did change the behavior of consumers that walked up to the root same-type
docshell before getting the message manager to just get it directly from the
docshell they have.  Please review those parts carefully, and let me know if you
want me to ask some subject area experts to review those.
2018-08-02 23:49:09 -04:00
Petru Lingurar
9174e20795 Bug 1349522 - Provide alternative adaptive-icon with Android SDK O; r=jchen
Used the provided foreground layers and background color for the icons of
Release and Nightly.
Used the old icon and the provided background color for the icons of Beta and
Dev builds. Proper icons for them will be added in bug 1479724.

Added support for round icons which as per
https://developer.android.com/about/versions/nougat/android-7.1#circular-icons
can be required by certain launchers.

The old icons - /drawable/icon.png are still kept because they are used as
logos and also by SiteIdentityPopup.java.

MozReview-Commit-ID: EA9pojukhmw

--HG--
extra : rebase_source : d960bb0785b329a91493d9fe2c126549a5641189
2018-08-02 15:06:24 +03:00
Noemi Erli
58e27f3dd9 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-02 12:04:24 +03:00
Noemi Erli
8f66a71e70 Merge inbound to mozilla-central. a=merge 2018-08-02 11:54:46 +03:00
dvarga
956d57e7f2 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-08-02 01:26:29 +03:00
dvarga
e487e6e564 Merge inbound to mozilla-central. a=merge 2018-08-02 01:09:38 +03:00
dvarga
d050f46b93 Merge autoland to mozilla-central. a=merge 2018-08-02 01:07:53 +03:00
L10n Bumper Bot
3e1a118720 no bug - Bumping Fennec l10n changesets DONTBUILD r=release a=l10n-bump
en-CA -> ['android', 'android-api-16', 'android-multilocale']
lij -> ['android', 'android-api-16', 'android-multilocale']
2018-08-01 11:04:05 -07:00
Eugen Sawin
baecd0e884 Bug 1479026 - Adjust GeckoView telemetry API tests to match corrected schema. r=janerik,jchen
--HG--
extra : histedit_source : 04dc658f18ab0c499a24dafdb06f214f3f680c2c
2018-07-31 13:19:00 +03:00
Andrea Marchesini
5991b3ebdd Bug 1457170 - Get rid of nsICookieService::ACCEPT_FOR_N_DAYS, r=valentin 2018-08-01 14:41:21 +02:00
Alexis Deschamps
dded25327a Bug 1476034 - about:crashes: switched to fluent. r=flod,Pike
Summary:
The about:crashes page is being updated (bug 1463515). To facilitate these changes,
this patch changes the about:crashes page to use Fluent for localization instead of the old systems.
This also includes a script to migrate strings from the old .DTD and .properties files
to the new .ftl one.

Test Plan:
1. build Firefox with the changes
2. run Firefox
3. go to the about:crashes page
4. expect nothing to be different

This extension: https://github.com/rhelmer/webext-experiment-crashme can be used to
add local crash reports for verifying the different states of the about:crashes page.

Reviewers: flod, Pike, jchen, snorp

Reviewed By: flod, Pike, jchen, snorp

Subscribers: nalexander, reviewbot

Bug #: 1476034

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

--HG--
extra : rebase_source : 0ca9516b4df78e735fd03907f2ea324bc72ca893
2018-08-01 10:31:14 +03:00
Bogdan Tara
9c44097a0d Merge inbound to mozilla-central. a=merge 2018-08-01 00:58:55 +03:00
Jim Chen
79ae4ae18f Bug 1479536 - Fix SessionFinder.clear(); r=droeh
Fix the clear() call to clear highlights in addition to the selection.

MozReview-Commit-ID: 1DNXa8fIGTP

--HG--
extra : rebase_source : c84033c644becf2c9b0e7df8d2580523e75de97d
2018-07-30 16:21:29 -04:00
Eugen Sawin
7efdec7ac1 Bug 1451476 - [2.0] Add GeckoView page load error API tests. r=snorp 2018-07-31 20:43:33 +02:00
Eugen Sawin
80290a1133 Bug 1451476 - [1.2] Add GeckoView page load error API. r=snorp,droeh,smaug 2018-07-31 20:43:33 +02:00
dvarga
09eac64963 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-02 01:19:44 +03:00
Jim Chen
322630c0eb Bug 1479584 - Move WebExtension modules to GeckoView; r=kmag
Android-specific WebExtension modules (e.g. ext-android.js) are
currently packaged inside chrome.jar. However, GeckoView only includes
geckoview.jar and not chrome.jar. So to make GeckoView be able to load
WebExtensions at all, we need to move these modules to geckoview.jar.

MozReview-Commit-ID: CVpIAZxgkwy

--HG--
extra : rebase_source : 73e5df7dc32faf326787293f9938319fffa55fad
2018-08-01 14:57:03 -04:00
Dan Mosedale
9fc855eec6 Bug 1478995 - Add node toolchain path to automation mozconfigs, r=gps
MozReview-Commit-ID: 37gYPLYJD85

--HG--
extra : rebase_source : a0b1cb598eeb852b7df1912a94a085d31862c86f
2018-06-01 14:59:45 -07:00
Mark Banner
43685f06cb Bug 1478305 - Remove unnecessary ChromeUtils.import calls in mobile/. r=snorp
MozReview-Commit-ID: 1eLC4Hutkcc

--HG--
extra : rebase_source : bb56e8164e816948100cb813f84b8b17c6fab490
2018-07-30 10:36:49 +01:00
Petru Lingurar
bdca79e5ac Bug 1478970 - Can't update Nightly from about:firefox or notification bar - Android O+; r=jchen
As per
https://android-developers.googleblog.com/2017/08/making-it-safer-to-get-apps-on-android-o.html
and
https://developer.android.com/reference/android/Manifest.permission.html#REQUEST_INSTALL_PACKAGES
after targeting API 26 we need a new permission to be able to install Apks.

MozReview-Commit-ID: BF28HTkwYTN

--HG--
extra : rebase_source : cbbbbfb8578d1430810c773d2da99ecd99e69615
2018-08-01 09:09:11 +03: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