Commit Graph

27840 Commits

Author SHA1 Message Date
Vlad Baicu
3753e60bbd Bug 1527648 - Uid deeplink nullpointer check. r=petru
Patch from bug 1519418 introduced a regression by removing line separators from
the uid parameter contained within deeplinks. However, not all deeplinks are
mandatory to contain the uid parameter. Added a null check before replacing the
line separators.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 16:59:07 +00:00
Cosmin Sabou
9f8b29287b Merge mozilla-central to autoland. 2019-02-21 05:43:34 +02:00
Cosmin Sabou
f3db52f4cf Merge mozilla-inbound to mozilla-central. a=merge 2019-02-21 05:42:03 +02:00
Eugen Sawin
1fc5f0ebdc Bug 1526981 - [2.4] Simplify JSM module logger initialization and ensure compatibility with ES6. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D19580

--HG--
extra : moz-landing-system : lando
2019-02-20 16:11:57 +00:00
Eugen Sawin
01058ecf82 Bug 1526981 - [1.1] Remove obsolete module import. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D19579

--HG--
extra : moz-landing-system : lando
2019-02-20 16:17:56 +00:00
Kartikaya Gupta
bab1ffc031 Bug 1428158 - Enable static analysis on Android. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D20402

--HG--
extra : moz-landing-system : lando
2019-02-20 20:03:52 +00:00
Noemi Erli
7c565dc045 Backed out 6 changesets (bug 1304001) for mochitest failures in test_bug430351.html CLOSED TREE
Backed out changeset 5fafa838de11 (bug 1304001)
Backed out changeset d75340a9a264 (bug 1304001)
Backed out changeset ed7ae6b877df (bug 1304001)
Backed out changeset 93bd4d634b14 (bug 1304001)
Backed out changeset e41015881591 (bug 1304001)
Backed out changeset 6346331d934d (bug 1304001)
2019-02-21 04:04:47 +02:00
Michael Kaply
918805dafb Bug 1522151 - Use correct region for regionOverrides. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D17379

--HG--
extra : moz-landing-system : lando
2019-02-20 19:44:05 +00:00
Matthew Noorenberghe
e8404f39c5 Bug 1304001 - Stop passing the top window to LoginManagerContent. r=sfoster
It wasn't clear in callee code that the window was the top-window and it wasn't necessary in many cases. Relying on the top-window would also cause problems with Fission if the windows are in separate processes.

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

--HG--
extra : moz-landing-system : lando
2019-02-20 17:59:59 +00:00
Agi Sferro
a5313e6c73 Bug 1512997 - Add GeckoSession.getDefaultUserAgent API. r=nalexander,rbarker
Differential Revision: https://phabricator.services.mozilla.com/D19813

--HG--
extra : moz-landing-system : lando
2019-02-20 18:11:27 +00:00
Agi Sferro
085d28afff Bug 1514374 - Remove workaround for accessibility-test-framework. r=nalexander,geckoview-reviewers,snorp
Looks like accessibility-test-framework was added to maven central so we can
remove this.

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

--HG--
extra : moz-landing-system : lando
2019-02-20 17:44:23 +00:00
Geoff Brown
ac3c0e4b5d Bug 1501562 - Enable remote debugging in TRA;
Differential Revision: https://phabricator.services.mozilla.com/D20568

--HG--
extra : moz-landing-system : lando
2019-02-20 21:44:34 +00:00
Dorel Luca
0c4863aaf0 Backed out changeset ac4f1b5527fd (bug 1525470) for failures in geckoview in org.mozilla.geckoview.test.AccessibilityTest.testCheckbox. CLOSED TREE 2019-02-20 02:53:14 +02:00
Eitan Isaacson
2ba937125b Bug 1525470 - Include description in accessible hints. r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D19870

--HG--
extra : moz-landing-system : lando
2019-02-19 18:56:30 +00:00
Jonathan Kingston
cf14643de4 Bug 1521549 - Move (de)serializePrincipal from sessionstore Utils to E10SUtils. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D17261

--HG--
extra : moz-landing-system : lando
2019-02-19 02:34:09 +00:00
Petru Lingurar
60f4606fbe Bug 1511946 - Hint about "Switch to tab" option for AwesomeScreen's stream items; r=JanH
The behaviour of switching to an already opened tab for an item in the stream
list was already in place, this patch just modifies the item's layout by
adding a text hint about this possibility - "Switch to tab", dynamically,
depending on if a tab is already opened or not in the current session.

Each stream item will implement `Tabs.OnTabsChangedListener` and check if the
changed Tab had stream's Url.
If so it will pass this event to the list's Adapter which will refresh the
stream item's layout.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 11:03:48 +00:00
Andrei Lazar
a53a4ff68a Bug 1521476 Crash in java.lang.IllegalStateException: at org.mozilla.gecko.GeckoApplication.createShortcut(GeckoApplication.java) r=petru
Removed intended throw of IllegalStateException for Nightly when a page was not considered safe as a PWA.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 09:42:43 +00:00
Petru-Mugurel Lingurar
ca5b6837e1 Bug 1503978 - Force fullscreen after PiP only if media is playing; r=JanH
Otherwise the user should see and be able to interact with the whole page.

Refactored `PictureInPictureController` to check the media playing status for
only the current tab, the one the user has in front and for which we may allow
PiP because `GeckoMediaControlAgent.isMediaPlaying()` would give us false
positives in the case where the current Tab is in fullscreen but not playing
media, while at the same time a background Tab is playing media.

BrowserApp will only force fullscreen after returning from PiP if media
playback has ended, but will keep fullscreen for playing/paused media.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 17:32:42 +00:00
Coroiu Cristina
e6520f0a4d Merge inbound to mozilla-central a=merge 2019-02-16 11:36:46 +02:00
Natalia Csoregi
e97ac2b1fe Bug 1519591 - Disable org.mozilla.geckoview.test.SessionLifecycleTest.readFromParcel_closedSessionAfterReadParcel on OPT platforms. r=gbrown 2019-02-16 05:54:32 +02:00
Cosmin Sabou
8cb8ef3973 Merge mozilla-central to autoland. 2019-02-15 20:50:34 +02:00
Petru-Mugurel Lingurar
5f459bf6b4 Bug 1525796 - Ignore close tab action if user is moving the item; r=JanH
Using an ItemTouchHelper for various motion actions means it will have a
strong reference to that item's layout and prevent it from being destroyed when
the adapter tries to remove it before the animations are finished - the item
will be removed from RecyclerView's Adapter but the item's layout will still
remain on screen.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 08:18:33 +00:00
Jesse Schwartzentruber
a359caba44 Bug 1527896 - Increase Gradle heaps to handle large assets. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D19792

--HG--
extra : moz-landing-system : lando
2019-02-14 18:21:13 +00:00
Razvan Maries
2fb9019d41 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-02-15 11:59:08 +02:00
Daniel Varga
1e9aa9e1fc Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE
--HG--
rename : browser/components/nsBrowserContentHandler.js => browser/components/BrowserContentHandler.jsm
2019-02-15 03:51:05 +02:00
Jan Henning
6ae3b86617 Bug 1460874 - Part 12: Enforce sensible API usage for manual font size settings. r=snorp
Modifying the manual font size settings while the GeckoFontScaleListener is
active is theoretically possible, but probably not the most sensible way of
using that API. Therefore, we prohibit it and throw an exception in that case.

There is one complication, though: The very same API is used by the font scale
listener itself in order to modify the font size settings according to the
system font scale. Therefore, we have to move the GeckoFontScaleListener into
the GeckoView package itself, so that we can provide a package-private internal
API that bypasses the above usage checks.

This means that going forward, Fennec needs to use the official GeckoView API
to communicate with the font scale listener, too. As we've moved out the Shared-
Preferences watching  in part 5, this doesn't pose any insurmountable
difficulties.

Because for a short while I encountered some strange crashes where getRuntime()
in GeckoApplication apparently returned null while trying to initialise the
listener, I'm tying its initialisation to creation of the runtime, just to be on
the safe side.

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

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoFontScaleListener.java => mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoFontScaleListener.java
extra : moz-landing-system : lando
2019-02-14 20:43:25 +00:00
Jan Henning
c5a86e4d1f Bug 1460874 - Part 11: Allow toggling font scale listener via GeckoRuntimeSettings. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17751

--HG--
extra : moz-landing-system : lando
2019-02-14 20:44:19 +00:00
Jan Henning
e24f654f52 Bug 1460874 - Part 10: Set font size settings in listener using GeckoRuntimeSettings. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17750

--HG--
extra : moz-landing-system : lando
2019-02-14 20:43:09 +00:00
Jan Henning
711b987266 Bug 1460874 - Part 9: Expose font size/inflation options via GeckoRuntimeSettings. r=geckoview-reviewers,snorp
Some callers might prefer to manually set the font size in analogy to WebView's
WebSettings.setTextZoom(), respectively allow their users to do so.

Subsequently, we're also going to switch the GeckoFontScaleListener to operate
on those settings.

Because the effects of font inflation are more difficult to quantify than a
plain text zoom, we just check that operating the runtime setting sets the
corresponding Gecko pref. Besides, there already are further platform (ref)tests
checking the actual operation of font inflation itself.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 20:43:06 +00:00
Jan Henning
a2454b987a Bug 1460874 - Part 8: Allow setting prefs via GeckoRuntimeSettings in Fennec, too. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17748

--HG--
extra : moz-landing-system : lando
2019-02-14 20:42:51 +00:00
Jan Henning
51fe895ba7 Bug 1460874 - Part 7: Automatically attach GeckoFontScaleListener through GeckoRuntime. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17747

--HG--
extra : moz-landing-system : lando
2019-02-14 20:42:44 +00:00
Jan Henning
4b59a86921 Bug 1460874 - Part 6: Move GeckoFontScaleListener into GeckoView. r=snorp
With the dependencies on Fennec's GeckoPreferences and GeckoSharedPrefs gone, we
can now move the class into GeckoView in preparation for hooking it up to the
GeckoViewRuntimeSettings.

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

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/GeckoFontScaleListener.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoFontScaleListener.java
extra : moz-landing-system : lando
2019-02-14 20:42:37 +00:00
Jan Henning
b3ee3af690 Bug 1460874 - Part 5: Move out SharedPreferences watching. r=geckoview-reviewers,snorp
For easier testing in Fennec, we want to continue watching the respective
SharedPreferences key and toggle the listener in response to *that* instead of
directly wiring it into our Settings menu (GeckoPreferences), however because
that functionality is Fennec-specific, we move that logic out of the font scale
listener itself.

In conjunction with this, we also decouple the enabled state of the listener
from its attached state.
The enabled state can now be toggled at all times, but unless the listener is
also attached to a context, it simply won't have any practical effect.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 20:42:30 +00:00
Jan Henning
2b75da3bc6 Bug 1460874 - Part 4: Clean up threading assumptions. r=snorp
In practice, everything in the GeckoFontScaleListener will run on the UI thread,
so get rid of the `synchronized` methods and just enforce the threading
assumptions in the public API.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 20:42:23 +00:00
Jan Henning
34aef44d69 Bug 1460874 - Part 3: Rename initalize() method for more clarity. r=geckoview-reviewers,snorp
Going forward, we want to be able to toggle the enabled state at all times, and
being able to do this before calling initialize() seems a bit inconsistent.
Hence, we rename it to the more neutral-sounding attachToContext().

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

--HG--
extra : moz-landing-system : lando
2019-02-14 20:42:16 +00:00
Jan Henning
b0ce764ff2 Bug 1460874 - Part 2: Rename instance variables to better match GeckoView code style. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17744

--HG--
extra : moz-landing-system : lando
2019-02-14 20:42:08 +00:00
Jan Henning
f83531d710 Bug 1460874 - Part 1: Cleanups. r=geckoview-reviewers,snorp
The GeckoFontScaleListener is intended to live as long as the app (and there-
fore Gecko) remains alive and consequently keeps a reference to the
*application* context, so the linter warning can be safely suppressed.

Also reorder imports to match coding style.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 20:42:01 +00:00
Randall Barker
ed2e78aef0 Bug 1508372 - Add scrollTo and scrollBy to PanZoomController r=geckoview-reviewers,snorp,esawin
The scrollTo() and scrollBy() functions in the PanZoomController may be
used to scroll the root document in GeckoView.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 19:04:06 +00:00
James Willcox
1e0e61116d Bug 1526322 - Ensure GeckoWebExecutor doesn't clobber the Content-Type header. r=csadilek
Differential Revision: https://phabricator.services.mozilla.com/D19506

--HG--
extra : moz-landing-system : lando
2019-02-14 16:35:27 +00:00
Randall Barker
0ded0d1e19 Bug 1522324 - Update GeckoView API to match current Gecko autoplay implementation r=geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D19209

--HG--
extra : moz-landing-system : lando
2019-02-14 01:38:54 +00:00
Brindusan Cristian
a98117f137 Backed out 12 changesets (bug 1460874) for geckoview failures at geckoview.test.RuntimeSettingsTest.automaticFontSize.
Backed out changeset 593a2316ac28 (bug 1460874)
Backed out changeset 3d4297e781cb (bug 1460874)
Backed out changeset 2020cb134d1f (bug 1460874)
Backed out changeset 9fc145133f20 (bug 1460874)
Backed out changeset 17fbff3da236 (bug 1460874)
Backed out changeset 1026b786e779 (bug 1460874)
Backed out changeset 78f59df737fc (bug 1460874)
Backed out changeset 81c4e88003a5 (bug 1460874)
Backed out changeset 02f24dec5ae4 (bug 1460874)
Backed out changeset c7fce6c79bef (bug 1460874)
Backed out changeset d42e39761eb8 (bug 1460874)
Backed out changeset 2d5e902b5b88 (bug 1460874)

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoFontScaleListener.java => mobile/android/base/java/org/mozilla/gecko/GeckoFontScaleListener.java
2019-02-13 23:37:14 +02:00
Jan Henning
0edccec6b6 Bug 1460874 - Part 12: Enforce sensible API usage for manual font size settings. r=snorp
Modifying the manual font size settings while the GeckoFontScaleListener is
active is theoretically possible, but probably not the most sensible way of
using that API. Therefore, we prohibit it and throw an exception in that case.

There is one complication, though: The very same API is used by the font scale
listener itself in order to modify the font size settings according to the
system font scale. Therefore, we have to move the GeckoFontScaleListener into
the GeckoView package itself, so that we can provide a package-private internal
API that bypasses the above usage checks.

This means that going forward, Fennec needs to use the official GeckoView API
to communicate with the font scale listener, too. As we've moved out the Shared-
Preferences watching  in part 5, this doesn't pose any insurmountable
difficulties.

Because for a short while I encountered some strange crashes where getRuntime()
in GeckoApplication apparently returned null while trying to initialise the
listener, I'm tying its initialisation to creation of the runtime, just to be on
the safe side.

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

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoFontScaleListener.java => mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoFontScaleListener.java
extra : moz-landing-system : lando
2019-02-13 20:11:22 +00:00
Jan Henning
7ba904e7d6 Bug 1460874 - Part 11: Allow toggling font scale listener via GeckoRuntimeSettings. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17751

--HG--
extra : moz-landing-system : lando
2019-02-13 20:11:15 +00:00
Jan Henning
7212b5e62f Bug 1460874 - Part 10: Set font size settings in listener using GeckoRuntimeSettings. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17750

--HG--
extra : moz-landing-system : lando
2019-02-13 20:10:59 +00:00
Jan Henning
9bcb8939ad Bug 1460874 - Part 9: Expose font size/inflation options via GeckoRuntimeSettings. r=geckoview-reviewers,snorp
Some callers might prefer to manually set the font size in analogy to WebView's
WebSettings.setTextZoom(), respectively allow their users to do so.

Subsequently, we're also going to switch the GeckoFontScaleListener to operate
on those settings.

Because the effects of font inflation are more difficult to quantify than a
plain text zoom, we just check that operating the runtime setting sets the
corresponding Gecko pref. Besides, there already are further platform (ref)tests
checking the actual operation of font inflation itself.

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

--HG--
extra : moz-landing-system : lando
2019-02-13 20:10:57 +00:00
Jan Henning
733d636e57 Bug 1460874 - Part 8: Allow setting prefs via GeckoRuntimeSettings in Fennec, too. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17748

--HG--
extra : moz-landing-system : lando
2019-02-13 20:10:42 +00:00
Jan Henning
c3c38646d3 Bug 1460874 - Part 7: Automatically attach GeckoFontScaleListener through GeckoRuntime. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D17747

--HG--
extra : moz-landing-system : lando
2019-02-13 20:10:36 +00:00
Jan Henning
94e9d90551 Bug 1460874 - Part 6: Move GeckoFontScaleListener into GeckoView. r=snorp
With the dependencies on Fennec's GeckoPreferences and GeckoSharedPrefs gone, we
can now move the class into GeckoView in preparation for hooking it up to the
GeckoViewRuntimeSettings.

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

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/GeckoFontScaleListener.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoFontScaleListener.java
extra : moz-landing-system : lando
2019-02-13 20:10:29 +00:00
Jan Henning
0193d1216d Bug 1460874 - Part 5: Move out SharedPreferences watching. r=geckoview-reviewers,snorp
For easier testing in Fennec, we want to continue watching the respective
SharedPreferences key and toggle the listener in response to *that* instead of
directly wiring it into our Settings menu (GeckoPreferences), however because
that functionality is Fennec-specific, we move that logic out of the font scale
listener itself.

In conjunction with this, we also decouple the enabled state of the listener
from its attached state.
The enabled state can now be toggled at all times, but unless the listener is
also attached to a context, it simply won't have any practical effect.

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

--HG--
extra : moz-landing-system : lando
2019-02-13 20:10:23 +00:00
Jan Henning
b48182d534 Bug 1460874 - Part 4: Clean up threading assumptions. r=snorp
In practice, everything in the GeckoFontScaleListener will run on the UI thread,
so get rid of the `synchronized` methods and just enforce the threading
assumptions in the public API.

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

--HG--
extra : moz-landing-system : lando
2019-02-13 20:10:17 +00:00