Commit Graph

27815 Commits

Author SHA1 Message Date
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
Jan Henning
686b43fbbf 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-13 20:10:11 +00:00
Jan Henning
4ecf427f0a 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-13 20:10:04 +00:00
Jan Henning
410fcb203e 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-13 20:09:58 +00:00
Andreea Pavel
e8262ba210 Backed out changeset f145dfc61991 (bug 1522324) for android crashtest and gv-junit failures on a CLOSED TREE 2019-02-13 01:50:30 +02:00
Andreea Pavel
7b1605af56 Backed out 3 changesets (bug 1525959, bug 1526002) for failing android
Backed out changeset de0efca1118e (bug 1526002)
Backed out changeset 503cbc86e442 (bug 1525959)
Backed out changeset 33ea61c54aea (bug 1525959)
2019-02-12 23:53:05 +02:00
Randall Barker
e6f371e96c 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-12 20:25:52 +00:00
Eitan Isaacson
29d41d67a1 Bug 1527176 - Check each child has current parent before adding it. r=geckoview-reviewers,snorp,esawin
Differential Revision: https://phabricator.services.mozilla.com/D19454

--HG--
extra : moz-landing-system : lando
2019-02-12 19:22:02 +00:00
Jan Henning
acccbca0a8 Bug 1526775 - Removed unused ui.bookmark.mobilefolder.enabled pref. r=snorp
It's only being referenced in these two lines in mobile.js, but nowhere else
anymore.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 18:13:24 +00:00
Jonathan Kingston
3421b8fcff Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin
Replacing js and text occurences of asyncOpen2
Replacing open2 with open

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

--HG--
rename : layout/style/test/test_asyncopen2.html => layout/style/test/test_asyncopen.html
extra : moz-landing-system : lando
2019-02-12 16:08:25 +00:00
James Willcox
c7a8bf9699 Bug 1526002 - Replace 'isFennec' with 'is_fennec' in mochitest.ini r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D19038

--HG--
extra : moz-landing-system : lando
2019-02-10 19:07:57 +00:00
Nick Alexander
983818cf9e Bug 1525661 - Avoid profile directories that can't be written by GeckoView. r=geckoview-reviewers,snorp
This manifests as silent child process crashes; let's try to avoid
that when we can.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 22:22:39 +00:00
Nick Alexander
4bef3af91a Bug 1524673 - Make Marionette part of remote debugging within GeckoView. r=whimboo,snorp
Functionally, we want Marionette to be enabled whenever remote
debugging enabled and disabled whenever remote debugging is enabled.

That's not particularly well supported by Gecko prefs, so we don't try
to handle all situations.  We force the Marionette pref whenever the
remote debugging pref changes; if consumers get themselves into a bad
state by fiddling the Marionette pref independently, that's fine:
GeckoView will take back control eventually.

There are a couple of wrinkles here.  The first is that GeckoView and
Marionette race to set themselves up in "profile-after-change".  We
ensure that both are configured before GeckoView notifies
"marionette-startup-requested".  The second is that the initial value
of the Marionette pref is taken from the environment variable
MOZ_MARIONETTE; therefore, we set that variable when starting the
Gecko thread.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 19:35:30 +00:00
Nick Alexander
40d0ac4ef0 Bug 1524673 - Pre: Allow to toggle remote debugging in the GeckoView example. r=snorp
This is just a testing convenience.  Remote debugging is engine-wide,
not session-wide, so it doesn't fit the other actions _exactly_; but
the "multiprocess" option is also somewhat engine-wide, so it doesn't
seem wildly out of place.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 19:35:30 +00:00
Andrew Erickson
cbb252c256 Bug 1519489 - remove the android 7.0 arm emulator r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D19095

--HG--
extra : moz-landing-system : lando
2019-02-08 01:26:25 +00:00
Gijs Kruitbosch
bb91abcfd1 Bug 1252831 - remove 30boxes webcal handler as both possible and default handler, r=paolo,Dolske
Differential Revision: https://phabricator.services.mozilla.com/D18073

--HG--
extra : moz-landing-system : lando
2019-02-10 21:28:20 +00:00
shindli
326271039b Backed out changeset b3bcf26d4dad (bug 1252831) for xpcshell failures in uriloader/exthandler/tests/unit/test_handlerService.js CLOSED TREE 2019-02-08 22:57:20 +02:00
Yuan Cheng
7be13dade4 Bug 1519923 - Migrate about:rights to Fluent, r=jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D17731

--HG--
extra : moz-landing-system : lando
2019-02-08 17:36:15 +00:00
Gijs Kruitbosch
dcea4f2a22 Bug 1252831 - remove 30boxes webcal handler as both possible and default handler, r=paolo,Dolske
Differential Revision: https://phabricator.services.mozilla.com/D18073

--HG--
extra : moz-landing-system : lando
2019-02-08 19:04:53 +00:00
Kris Maglione
22b7edd20c Bug 1524688: Part 56 - Convert contentAreaDropsListener to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18466

--HG--
rename : dom/base/contentAreaDropListener.js => dom/base/ContentAreaDropListener.jsm
extra : source : 230d2feaf941443d88f9f5f65048c53d70e59b86
2019-01-30 11:37:53 -08:00
Kris Maglione
66da04bfe0 Bug 1524688: Part 55 - Convert BrowserElementParent to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18465

--HG--
rename : dom/browser-element/BrowserElementParent.js => dom/browser-element/BrowserElementParent.jsm
extra : source : 6c63bc2409729cf175b319cfb7cd95850aa1ab46
2019-01-30 11:36:13 -08:00
Kris Maglione
465465bbf9 Bug 1524688: Part 54 - Convert ConsoleAPIStorage to static registration. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D18464

--HG--
rename : dom/console/ConsoleAPIStorage.js => dom/console/ConsoleAPIStorage.jsm
extra : source : 0ad5465eace1f9294f87ae8c705db322d5cfe953
2019-01-30 11:34:41 -08:00
Kris Maglione
61c60113b7 Bug 1524688: Part 53 - Convert htmlMenuBuilder to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18463

--HG--
rename : dom/html/htmlMenuBuilder.js => dom/html/HTMLMenuBuilder.jsm
extra : source : 1e75ce91029b4eb030071e9802cd0bdbad59b9cf
2019-01-30 11:33:07 -08:00
Kris Maglione
6a5bace8f9 Bug 1524688: Part 51 - Convert NotificationStorage to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18461

--HG--
rename : dom/notification/NotificationStorage.js => dom/notification/NotificationStorage.jsm
extra : source : 34a978503b1d411bcd1483b142fa8260d94d5870
2019-01-30 11:27:51 -08:00
Kris Maglione
580a4759d6 Bug 1524688: Part 50 - Convert PresentationNetworkHelper to static registration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18460

--HG--
rename : dom/presentation/PresentationNetworkHelper.js => dom/presentation/PresentationNetworkHelper.jsm
extra : source : 183602e8a30b527608f2c862601abd83f275e636
2019-01-30 11:24:40 -08:00