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

25219 Коммитов

Автор SHA1 Сообщение Дата
Nevin Chen c489438563 Bug 1419320 - PWA icon and onboarding image update. r=maliu
MozReview-Commit-ID: FqHHWg5qsfg

--HG--
extra : rebase_source : c881da264a4c5d87c7aaaf07cfec057be021ef4c
2017-11-23 16:08:58 +08:00
Gurzau Raul 21905d169e Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-24 00:38:13 +02:00
Julian Descottes af2e5d5dd1 Bug 1416711 - Add registerAllActors API;r=ochameau
Most of the codebase that needs to create a debugger server
can use a server with all actors registered.

Define an additional method registerAllActors to do that.

By previous implementations, all the call sites that were
using browser: true were indirectly using tab & root: true
as well. So all the call sites using browser: true have been
migrated to registerAllActors and the specific behavior of
the browser: true case has been removed. Passing browser:true
to registerActors now only registers browser specific actors.

MozReview-Commit-ID: F3sx71eGrdG

--HG--
extra : rebase_source : 7704264e84d96e03a0c789103ff466980913d4d2
2017-11-13 21:22:15 +01:00
Julian Descottes c2cea9f242 Bug 1416711 - Remove windowType argument from registerActors;r=ochameau
The windowType option of registerActors has nothing to do with
registering actors. It is only used in one spot in the codebase, so
switch this one to DebuggerServer.chromeWindowType = "..."; and
remove the option from registerActors.

MozReview-Commit-ID: QH6GKmTbVq

--HG--
extra : rebase_source : 13d70ddc21cae2b43cab2899c0e4b6f597c4f3ec
2017-11-13 21:06:59 +01:00
Julian Descottes 7324ecc861 Bug 1416711 - Stop guarding consumer calls to DebuggerServer.init();r=ochameau
DebuggerServer.init() already bails out if it was previously initialized
so we could avoid guarding the calls to init() with it everywhere.

Registering an actor module several times is also a noop as the Server
keeps a map of all the already registered modules and will bail out if
the module is already known.

MozReview-Commit-ID: 4ONLlx9253i

--HG--
extra : rebase_source : a6fce209baf5e019b6a216761c01832a30332343
2017-11-13 21:04:43 +01:00
Julian Descottes 4cac7dcb25 Bug 1416711 - Migrate addBrowser/TabActors to registerActors;r=ochameau
DebuggerServer has old APIs addBrowserActors & addTabActors that can be
replaced by calls to registerActors.

MozReview-Commit-ID: KpYJpbSHM8I

--HG--
extra : rebase_source : c7f20edf503b944ef2582b5fe73bd6d899c0d1cc
2017-11-13 20:29:55 +01:00
Cosmin Sabou a8c3a54f72 Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-11-23 11:45:29 +02:00
Cosmin Sabou a5d613086a Merge mozilla-inbound to mozilla-central r=merge a=merge 2017-11-23 11:42:46 +02:00
James Cheng 75bf8e9453 Bug 1419249 - Fix the wrong logic calculating starttime of the first sample. r=kikuo
MozReview-Commit-ID: 3je7idVeYoZ

--HG--
extra : rebase_source : ecd1a43d6a98e0f0cf5fd53c5b3f0d830d985fc4
2017-11-22 17:47:03 +08:00
James Cheng 89998341ee Bug 1418766 - Fix Crash in java.lang.OutOfMemoryError by making Exoplayer pause by default. r=kikuo
MozReview-Commit-ID: JGIRcYLXtdv

--HG--
extra : rebase_source : f83c395358c46458d40729176b5f5a3cc463009d
2017-11-21 17:21:19 +08:00
Makoto Kato b444fbea2a Bug 1366049 - enable Stylo for Android. r=snorp
All tests are passed with stylo, So let's turn on stylo even if Android.

MozReview-Commit-ID: X0ORZUn60a

--HG--
extra : rebase_source : 61f0d3513114a2d0716d9e660eba98004ff85bbf
2017-11-21 19:35:32 +09:00
shindli a0b20fcb81 Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-11-22 23:42:02 +02:00
Noemi Erli 088b617365 Backed out changeset 9353a526c194 (bug 1366049) for bustage in /python/mozbuild/mozbuild/test/configure/lint.py r=backout on a CLOSED TREE 2017-11-22 23:31:04 +02:00
shindli 82254ca1cf Merge inbound to mozilla-central r=merge a=merge 2017-11-22 23:29:44 +02:00
Ray Lin 78b7e8c2f7 Bug 1397173 - Apply dark overlay style when only error occurs in mobile video controls. r=jolin
MozReview-Commit-ID: CsVK90kmLlT

--HG--
extra : rebase_source : e73ae0f6c10b43c2ca22e32b7c328278e74b72a7
2017-11-22 14:11:54 +08:00
Sebastian Hengst d605c83e10 Backed out changeset c5970c2922ed (bug 1412336) for failing mochitests dom/tests/mochitest/general/test_interfaces.html and dom/vr/test/mochitest/test_vrDisplay_canvas2d.html (VRDisplay not available). r=backout on a CLOSED TREE 2017-11-22 18:53:10 +02:00
Dylan Roeh e28b186aa4 Bug 1412336 - Do not set dom.vr.enabled to true in Fennec nightly. r=rbarker 2017-11-21 16:54:43 -06:00
Benjamin Cheng 294078ee3c Bug 1413107 - Remove ending period in Custom Tabs Switch under Settings -> General r=nechen
MozReview-Commit-ID: 9VmunM4BMox

--HG--
extra : rebase_source : ea63b5729f3ac3fdd9a50a7547c766c1cf4d8a1f
2017-11-12 02:38:18 +08:00
Nevin Chen 5213849f03 Bug 1418193 - Display MMA device id in about:config. r=maliu
MozReview-Commit-ID: LuHPuFbZneu

--HG--
extra : rebase_source : a709acb7870b59b975200151258e5a19308c565e
2017-11-17 12:05:23 +08:00
James Cheng c1c5121e36 Bug 1419677 - Fix typo to make BuildConfig.DEBUG_BUILD work properly. r=nalexander
MozReview-Commit-ID: ITszwTqsSqk

--HG--
extra : rebase_source : 7ba31f01cabb962a8e97c75ef2f02e2684d90ac0
2017-11-23 11:12:38 +08:00
shindli a2e65c617d Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-23 00:17:19 +02:00
shindli fb855aa7ba Backed out 16 changesets (bug 1402519) for conflicts during merge r=backout on a CLOSED TREE
Backed out changeset 07fcf163241a (bug 1402519)
Backed out changeset c6d2ad45d8e2 (bug 1402519)
Backed out changeset 8a3caca61294 (bug 1402519)
Backed out changeset 01425eae2c48 (bug 1402519)
Backed out changeset cf298d3815de (bug 1402519)
Backed out changeset e1964f4389cd (bug 1402519)
Backed out changeset f405337f3569 (bug 1402519)
Backed out changeset a76356fd3359 (bug 1402519)
Backed out changeset d3bb350d1c34 (bug 1402519)
Backed out changeset 9d3bfd9f932c (bug 1402519)
Backed out changeset e3dd6e5b073f (bug 1402519)
Backed out changeset e801b0c00134 (bug 1402519)
Backed out changeset 8a4139fa5dca (bug 1402519)
Backed out changeset 8d01c14ac1ca (bug 1402519)
Backed out changeset 24e0dcd01898 (bug 1402519)
Backed out changeset f8fdf450613f (bug 1402519)
2017-11-23 00:11:44 +02:00
Jan Henning 257ecaca74 Bug 1417498 - Account for aRequest being null in onLocationChange. r=JanH
According to the documentation, aRequest may be null in some cases, and one such
case is when the location change was caused by a page using the history API.

MozReview-Commit-ID: AUlHBgzaKDX

--HG--
extra : rebase_source : a51770f17242f899adc566a3ebd8c09357600ef9
2017-11-17 19:50:04 +01:00
Gabriele Svelto 5ff191810d Bug 1402519 - When the crash reporter code is disabled at configure time replace it with a dummy implementation; r=ted.mielczarek
MozReview-Commit-ID: F5QbaI1LlmZ

--HG--
extra : rebase_source : f05c929911d27dc1598bc040df54022cd90aa06a
2017-11-14 14:49:33 +01:00
Gabriele Svelto 014408d0f5 Bug 1402519 - When the crash reporter code is disabled at configure time replace it with a dummy implementation; r=ted.mielczarek
MozReview-Commit-ID: F5QbaI1LlmZ

--HG--
extra : rebase_source : 37aacdebc4307a21ff4f2ae27d1b031adc25737c
2017-11-14 14:49:33 +01:00
Dylan Roeh f5b434a433 Bug 1411521 - Handle javascript: URIs properly in PWAs. r=snorp 2017-11-22 13:17:27 -06:00
Ciure Andrei c7cf019289 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-22 12:20:25 +02:00
Coroiu Cristina 9eb4f34b0a Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-11-22 01:50:20 +02:00
Samael Wang bb968e4fcd Bug 1406253 - Part 3: use currentRequstFinalURI in context menu and add a test case. r=dao
If the image request gets redirect on loading, HTMLImageElement.currentURI
(which corresponds to nsIImageLoadingContent.currentURI) would return the
original URI before redirect, making "Save Image" in the context menu use
incorrect URI and filename. Use currentRequestFinalURI instead to get
redirected URI.

MozReview-Commit-ID: Bd7Q36sH93b

--HG--
extra : rebase_source : 5a1cc56554d1429f3c5af1c8cecaa1d72471ed21
2017-11-14 19:19:27 +08:00
Jim Chen 676e0a6e5c Bug 1416310 - 5. Remove GeckoLayerClient.java and update generated bindings; r=jchen
Remove GeckoLayerClient.java since it's no longer used, and update
auto-generated JNI bindings. r=me for trivial patch.

MozReview-Commit-ID: CiNPLLkh3VJ

--HG--
extra : rebase_source : 0cddae4f8914dd6f6a0631a7e69701828476f2b8
2017-11-20 17:17:02 -05:00
Jim Chen 85057e2e9a Bug 1416310 - 3. Merge GeckoLayerClient into other classes; r=rbarker
Move the GeckoLayerClient JNI callbacks to LayerSession.Compositor. Move
the rest of the viewport code to LayerView. Finally, move the input
event synthesis code to NativePanZoomController.

MozReview-Commit-ID: 1FEAM43KcwL

--HG--
extra : rebase_source : af2ded170a79f13afbb1f690ae466e77c7145ff6
2017-11-20 17:17:02 -05:00
Jim Chen 75a417ee33 Bug 1416310 - 2. Use per-GeckoView event to handle scroll-to-focused-input; r=rbarker
Instead of sending an event through the global EventDispatcher in
GeckoLayerClient, switch to using the per-GeckoView EventDispatcher in
GeckoInputConnection, to handle scroll-to-focused-input-on-resize. This
lets us implement the same functionality for standalone GeckoView.

The patch also fixes some small bugs including unregistering
not-registered events, not scrolling when switching input focus, and
inadvertent scrolling when not showing the keyboard.

MozReview-Commit-ID: 20OZP9dMXtI

--HG--
extra : rebase_source : d9dee0fd8b3d01147b8b2eda5154c380d0f167dd
2017-11-20 17:17:01 -05:00
Jim Chen bbe7b4e34c Bug 1416310 - 1. Remove getMatrixForLayerRectToViewRect; r=rbarker
Patch gets rid of `LayerView.getMatrixForLayerRectToViewRect`, and just
uses `LayerView.getZoomFactor` directly when calculating the matrix in
GeckoInputConnection. This also lets us avoid the `isCompositorReady`
call on a non-UI thread. To get the correct offset, we need the screen
bounds from Gecko, so it's passed to Java as the first element in the
rect array. Using bounds from Gecko lets us avoid having to deal with
things like the dynamic toolbar animator ourselves.

MozReview-Commit-ID: 6I61SZGyQyO

--HG--
extra : rebase_source : d576fb7ef9a42de10b14db662e5c4833f16f6312
2017-11-20 17:17:00 -05:00
James Willcox d6ec9137a6 Bug 1416015 - Fix checkstyle failure r=me
MozReview-Commit-ID: I9KkGiP8fUm
2017-11-21 13:58:56 -06:00
James Willcox 436c2828a9 Bug 1416015 - Ensure SurfaceTexture desctruction happens correctly r=jnicol
MozReview-Commit-ID: I4X1jQQC7ry
2017-11-21 12:43:31 -06:00
Axel Hecht 7245bd41b2 bug 1385227, use proper make steps to put l10n repacks in sequence, r=gps
This drops the abuse of make dependencies to factor our steps
in l10n repacks and language packs.
It's replaced with clobbers, libs, and the packaging, which
can be shared between installers and the language pack.

MozReview-Commit-ID: 2vEHp0QogXQ

--HG--
extra : rebase_source : c14f0b17904f8f9e0e3f004384c2a292ceeafe4f
extra : source : e95f8bd7b5190bf1d3fae75a88a15ebbe6613809
2017-08-04 17:19:12 +02:00
Cosmin Sabou fdc83a94aa Merge inbound to mozilla-central r=merge a=merge 2017-11-21 00:01:02 +02:00
Jim Chen 31f98e2e0f Bug 1417650 - Correctly specify flags for Tab:OpenUri; r=me
Pass in the flag names for Tab:OpenUri so we don't have to worry about
synchronizing the flags in Java with ones in C++. r=me for trivial
patch.

MozReview-Commit-ID: BowjLV1s7nT
2017-11-20 14:15:35 -05:00
Gijs Kruitbosch d15df6f6ff Bug 1408044 - stop using/overriding about: in Fennec and use about:fennec/firefox instead, r=nalexander
MozReview-Commit-ID: 3LQjMJZOuqc

--HG--
extra : rebase_source : a156925274ff4cf7582919f30669b7a0277c58d1
2017-11-14 23:41:37 +00:00
Gijs Kruitbosch 18eb334e10 Bug 1408044 - stop trying to localize the toolkit about.dtd file in mobile code, r=nalexander
MozReview-Commit-ID: 9dpsRgqz52F

--HG--
extra : rebase_source : dda3b339eb385dba65ddee820f3dfb393b02fdaf
2017-11-15 14:28:10 +00:00
Noemi Erli e90c67896c Backed out 3 changesets (bug 1406253)for build bustage in dom/base/nsCopySupport.cpp r=backout on a CLOSED TREE
Backed out changeset 284f3cc2880c (bug 1406253)
Backed out changeset aecb3d509a39 (bug 1406253)
Backed out changeset 9ce01198e8a1 (bug 1406253)
2017-11-20 13:34:29 +02:00
Samael Wang ef3c08ceb1 Bug 1406253 - Part 3: use currentRequstFinalURI in context menu and add a test case. r=dao
If the image request gets redirect on loading, HTMLImageElement.currentURI
(which corresponds to nsIImageLoadingContent.currentURI) would return the
original URI before redirect, making "Save Image" in the context menu use
incorrect URI and filename. Use currentRequestFinalURI instead to get
redirected URI.

MozReview-Commit-ID: Bd7Q36sH93b

--HG--
extra : rebase_source : b88ccf98bc2a41aac007d79060424eaa2c2aca88
2017-11-14 19:19:27 +08:00
Dylan Roeh aa335d6514 Bug 1370915 - Reorganize compatibility checks in BrowserApp and GeckoApp to avoid attempting to load mozglue on unsupported hardware. r=jchen 2017-11-17 08:51:39 -06:00
Florian Quèze b44b6a963a Bug 1405670 - remove support for NS_APP_SEARCH_DIR_LIST and NS_APP_SEARCH_DIR from the directory service, r=adw. 2017-11-17 12:05:20 +01:00
Makoto Kato b2dfd3b57f Bug 1366049 - enable Stylo for Android. r=snorp
All tests are passed with stylo, So let's turn on stylo even if Android.

MozReview-Commit-ID: X0ORZUn60a

--HG--
extra : rebase_source : f93f979711ab5f16eb3ced1d07e3c6d83464a6f0
2017-11-21 19:35:32 +09:00
Jim Chen 82c5935b9b Bug 1416319 - 8. Switch to using LayerSession coordinates APIs; r=rbarker
Use the LayerSession coordinates APIs instead of manually calculating
coordinates using viewport metrics and toolbar height, which is prone to
error.

MozReview-Commit-ID: 4ebI3BHEOXR

--HG--
extra : rebase_source : 264f03f3032f101687c2a39d1cf052ac1805f12b
2017-11-22 14:12:23 -05:00
Jim Chen 0c82587e52 Bug 1416319 - 7. Don't expose viewport metrics from LayerSession; r=rbarker
Provide a set of coordinates APIs in LayerSession instead of exposing
the raw viewport metrics, which are hard to use. This also lets us
remove ImmutableViewportMetrics completely.

The new APIs provide rectangular bounds in client or surface
coordinates, and matrices to transform those coordinates to screen
coordinates. This is done because the transformation to screen
coordinates could (in the future) involve skew, rotation, etc, so it's
up to the application to decide how to handle non-rectangular screen
bounds.

MozReview-Commit-ID: 8Yw8L63TmrQ

--HG--
extra : rebase_source : 76954d32da9fb8435ec68ea53b6dc618f8cb0121
2017-11-22 14:12:23 -05:00
Jim Chen e1e55d7285 Bug 1416319 - 6. Remove DynamicToolbarAnimator from LayerView; r=rbarker
Remove all DynamicToolbarAnimator-related code from LayerView now that
they are in LayerSession.

MozReview-Commit-ID: 56AO79T3NoK

--HG--
extra : rebase_source : 7685806436d43dc203cc034dd5105eb1f9c80a94
2017-11-22 14:12:23 -05:00
Jim Chen dc678eed57 Bug 1416319 - 5. Update DynamicToolbarAnimator usage in other classes; r=rbarker
Use DynamicToolbarAnimator through the session in places where we need
to interact with the toolbar or get the current toolbar height.

MozReview-Commit-ID: PdGX4FEHp5

--HG--
extra : rebase_source : 825fc70b584eb4b75f0ce9bd21a36c68f700c8c2
2017-11-22 14:12:22 -05:00
Jim Chen 5686bed431 Bug 1416319 - 4. Store DynamicToolbarAnimator in LayerSession; r=rbarker
Add getter/setter for DynamicToolbarAnimator in LayerSession in lieu of
LayerView. It is then LayerSession's responsibility to keep track of how
changes in the toolbar affects other things like the window and viewport
bounds.

MozReview-Commit-ID: HmRqxZ7EUCZ

--HG--
extra : rebase_source : 80648a17ed10672400daa4bcce0de49f4ee76557
2017-11-22 14:12:22 -05:00
Jim Chen e5bc1dc324 Bug 1416319 - 3. Clean up DynamicToolbarAnimator API; r=rbarker
The plan is to incorporate DynamicToolbarAnimator into the official
GeckoView API and expose getter/setter in LayerSession. This patch
cleans up the class to make sure only public APIs are public, and to
assert they are called on the UI thread.

MozReview-Commit-ID: D3ePV3k2HvX

--HG--
extra : rebase_source : b1925ff484b5661f3a02f66079d4834961efffbe
2017-11-22 14:12:22 -05:00
Jim Chen c04cfbb676 Bug 1416319 - 2. Remove usage of MetricsListener by FormAssistPopup; r=rbarker
This code is supposed to reposition the form assist popup if the toolbar
appears or disappears while the popup is visible, but we can move that
to a resize event listener in JS, so we don't have to maintain
the MetricsListener API for DynamicToolbarAnimator.

MozReview-Commit-ID: HR6wcJrGloR

--HG--
extra : rebase_source : a330a181bd352ad0028cb2a8faf1f92470189ead
2017-11-22 14:12:22 -05:00
Jim Chen b21cdffaf4 Bug 1416319 - 1. Move content-document-is-displayed flag to native code; r=rbarker
One fix I forgot to make in bug 1416310 is to change the code to reset
the flag in LayerView. I think it's better if we just moved the whole
thing to native code, since we don't really use the flag in Java.

MozReview-Commit-ID: 9cbcYb89LhC

--HG--
extra : rebase_source : a209669d6657a60c198f59f4a0e4d959478485c3
2017-11-22 14:12:22 -05:00
Jan Henning d44422eff6 Bug 1417918 - Save current keyword before navigating to SelectFolderFragment. r=jwu
Same issue as bug 1374251 now that keywords are editable as well.

MozReview-Commit-ID: AJyDRAAN2IR

--HG--
extra : rebase_source : 8e99338ca8b4d79ea2ea95451d045476cb76ba51
2017-11-17 18:42:39 +01:00
Tom Prince a45ea20b93 Bug 1413575: Adjust in-tree references to mozbase documentation to point in-tree. r=ahal
MozReview-Commit-ID: rctbByyjTA

--HG--
extra : rebase_source : a682eb6d77b79640ac9ec20e9d64340613bcfed7
2017-11-20 11:43:13 -07:00
Luca Greco af79ee9b90 Bug 1373170 - Fix and re-enable android pageAction getPopup/setPopup tests. r=bsilverberg
MozReview-Commit-ID: 3CKvvtI7OEN

--HG--
extra : rebase_source : 73105a314e940e25c76f30d21b1f336f6e1f7595
2017-08-30 21:38:13 +02:00
Gurzau Raul f464825286 Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-11-16 12:16:07 +02:00
Gurzau Raul 6dcee027d7 Merge inbound to mozilla-central r=merge a=merge 2017-11-16 12:04:45 +02:00
Mike Hommey 9ec14dddcb Bug 1417689 - Remove explicit --enable-elf-hack in mozconfigs. r=nalexander
--enable-elf-hack is the default on all platforms where it's supported,
and is completely ignored on platforms where it's not supported.
While moving the flag to moz.configure, we're going to make it only
work on platforms where elfhack is supported, so we at least need to
remove it from mozconfigs for those platforms where it's not supported.
But generally speaking, we want less things in mozconfigs, so just
remove it from there, since it's the default anyways.
2017-11-16 09:37:17 +09:00
Nevin Chen 3eb6a885c1 Bug 1390454 - Apply Banner fix for Leanplum SDK. r=maliu
Since we want to update our fork of Leanplum SDK as minimum as possible, this patch only pick the patch from Leanplum repo:
https://github.com/Leanplum/Leanplum-Android-SDK/pull/41

MozReview-Commit-ID: 5qFgH9xhHfy

--HG--
extra : rebase_source : 411dbdb11f4b9c826118bc39f9f137ec65836b4e
2017-11-15 14:53:55 +08:00
Nevin Chen 3952fdd772 Bug 1390454 - Make Banner dialog status bar transparent. r=maliu
I didn't check if currently the app is using dark theme(LightweightTheme) or not.
Cause that requires some hacky injection to let Leanplum SDK knows the status bar corlor or dark theme or not.

MozReview-Commit-ID: 4Twe59Gw6mS

--HG--
extra : rebase_source : a4fd4db28ccb9b210a547b328af72c6390a038d0
2017-11-14 15:06:18 +08:00
Nevin Chen 90db452b7d Bug 1411607 - Hide Experimental features section when there are no experiments. r=maliu
MozReview-Commit-ID: Fph0llqYgdL

--HG--
extra : rebase_source : 489b6e2f512c936d74d1ee84f5da086027cb8d1a
2017-11-10 17:17:49 +08:00
Andrew Gaul e6b528e144 Bug 1413620 - Prefer Integer.valueOf over new Integer. r=nalexander,nechen
The former uses the Integer object cache to avoid allocations.
2017-11-01 10:40:27 -07:00
Brindusan Cristian 89030a420a Merge mozilla-central to inbound r=merge a=merge on a CLOSED TREE 2017-11-16 00:51:41 +02:00
Grigory Kruglov 713625953b Bug 1403787 - Change try/catch to catch the correct exception r=eoger,nalexander
We're aiming to catch FileNotFound exceptions here, but underneath they're re-thrown as IllegalStateException.

MozReview-Commit-ID: HaCpbqq93q0

--HG--
extra : rebase_source : 60a5be31cdb5bd66a2b2d9bde5e86671d9a01ffd
2017-10-30 03:17:48 -07:00
Jan Henning bbc847a79b Bug 1416261 - Use android:theme, as app:theme has been deprecated. r=jwu
MozReview-Commit-ID: Iuf4NfCWnyc

--HG--
extra : rebase_source : 384b48cbdaef0c6ac8eefb661f869a249b977f3d
2017-11-10 17:35:31 +01:00
J. Ryan Stinnett c87de83b8d Bug 1417664 - Include layout debugger interface for packaged builds. r=mats,nalexander
MozReview-Commit-ID: 1bNIRlmsHx6

--HG--
extra : rebase_source : a1a21527aa75b2e0148c052194183cc7d94a8f9a
2017-11-15 16:01:39 -06:00
Thom Chiovoloni 91c3f631d6 Bug 1415656 - Fix android serializing dateAdded as a string in sync bookmark records r=Grisha
MozReview-Commit-ID: 1u9DeVvYwjY

--HG--
extra : rebase_source : 24a16261ff037929dc424ddd1c278030a2d09f25
2017-11-14 15:14:08 -05:00
Jim Chen c9c8f7024a Bug 1415994 - 7. Migrate existing gfx code to use LayerSession; r=snorp
Remove most of the Compositor and Surface management code in LayerView.
And use LayerSession.Compositor in rest of the gfx code.

MozReview-Commit-ID: 5E9pj3eGHlv

--HG--
extra : rebase_source : 0b0a64113db58aaf376c98d5480f5cf31174a3d3
2017-11-14 18:18:35 -05:00
Jim Chen db59a90277 Bug 1415994 - 6b. Track GeckoDisplay origin changes; r=snorp
Add a `screenOriginChanged` callback to GeckoDisplay.Listener, which
informs Gecko of changes in the origin of the display. The origin
translates to coordinates for web APIs like screenX/screenY and certain
other calculations.

Also, make GeckoDisplay listen to layout changes in the view tree (by
overriding gatherTransparentRegion as an optimization), and call
`screenOriginChanged` accordingly.

MozReview-Commit-ID: C72EHCkbV3T

--HG--
extra : rebase_source : 240c5c8fb3c2938ae966f40e86f7c5a0ca66526c
2017-11-14 18:18:35 -05:00
Jim Chen eb9152fe63 Bug 1415994 - 6. Implement GeckoDisplay in GeckoView; r=snorp
Make GeckoView implement GeckoDisplay for its own SurfaceView, and use
that with GeckoSession.

MozReview-Commit-ID: LXllQGlCxaB

--HG--
extra : rebase_source : 1b41e411b2c293797d572d584c4f2b7036e83b23
2017-11-14 18:18:35 -05:00
Jim Chen ff6c25061a Bug 1415994 - 5. Use LayerSession from GeckoSession; r=snorp
Make GeckoSession inherit from LayerSession, and connect its Compositor
to native code as part of the GeckoSession routine.

MozReview-Commit-ID: wQaH1A0a7z

--HG--
extra : rebase_source : ee4ae96e974d15c8cb9ad569ea9abf0ace4d0fa5
2017-11-14 18:18:35 -05:00
Jim Chen 3ef19c1765 Bug 1415994 - 3. Add LayerSession; r=snorp
Add a LayerSession class that's split off LayerView. Currently,
LayerSession takes over Surface management and the Compositor class from
LayerView. Eventually, all of LayerView will migrate to LayerSession.

MozReview-Commit-ID: F1ozOfZGY2g

--HG--
extra : rebase_source : eaf42122db1238c99b0da1e689bc365180a2835f
2017-11-14 18:18:34 -05:00
Jim Chen 915defe322 Bug 1415994 - 2. Introduce GeckoDisplay; r=snorp
Introduce a GeckoDisplay interface for interaction with GeckoSession.

MozReview-Commit-ID: 13prgWaPqKU

--HG--
extra : rebase_source : 282b27a1f7c11cf4e559b1f25946c3f4574e900a
2017-11-14 18:18:34 -05:00
Jim Chen 11dc67a595 Bug 1415994 - 1. Don't report screen size in GeckoLayerClient; r=rbarker
We don't actually use the screen size through GeckoLayerClient anymore.
Getting rid of it lets us get rid of the Context field in
GeckoLayerClient as well.

MozReview-Commit-ID: GM1jlhAZm4T

--HG--
extra : rebase_source : 04827eb61d6304d4782a7a935d5528013255726f
2017-11-14 18:18:34 -05:00
Grigory Kruglov 2c2f325436 Bug 1408585 - Remove RepositorySession createSession delegates r=rnewman
MozReview-Commit-ID: KezYHeSWDiL

--HG--
extra : rebase_source : c63f69a7d5b16d152fa809560a70c14ae1da5715
2017-11-14 14:37:05 -05:00
Grigory Kruglov 45de7880f9 Bug 1408585 - Remove RepositorySession begin delegates r=rnewman
'begin' now throws in case things go wrong.

MozReview-Commit-ID: 8jcxYiPcsii

--HG--
extra : rebase_source : 3a6cd6b5dd68f8674d4de827a4228f1e3807724a
2017-11-13 14:29:49 -05:00
Dave Townsend 9b2e25316e Bug 1414406: Remove the inline options feature for add-ons. r=aswan
MozReview-Commit-ID: 4ycTaMzqWgx

--HG--
extra : rebase_source : 9176d61244a140a5c4fde953302e9fb72aebff5a
2017-11-13 15:09:00 -08:00
Nick Alexander 0d056acc9a Bug 1415778 - Part 3: Fix up Gradle. r=jchen
This patch makes the :geckoview Gradle project only use
o.m.geckoview.BuildConfig, and makes the :app Gradle project use all
of the preprocessed code coming from the moz.build system.
Eventually, we'll reduce that set of preprocessed code to only
o.m.gecko.BuildConfig, which will then be produced by Gradle.

MozReview-Commit-ID: Dnkde7axyZL

--HG--
extra : rebase_source : dc0b7f9fa542cbfd9c665bfac761d45f5957f7b8
2017-11-09 09:44:40 -08:00
Nick Alexander 4d8546e06b Bug 1415778 - Part 2: Move AppConstants to o.m.geckoview.BuildConfig. r=jchen
Some of these make no sense for GeckoView, but perfect is the enemy of
the good here.

MozReview-Commit-ID: 9MwRkc61v9P

--HG--
extra : rebase_source : 8e7fa8102c615f34dbd76394fb6877188007c3c7
2017-11-08 21:14:44 -08:00
Nick Alexander 26c00638a1 Bug 1415778 - Part 1: Stop using AppConstants.Versions. r=jchen
Versions is no more efficient than checking android.os.Build, and it
actually interferes with the Android lint that checks API
compatibility.

MozReview-Commit-ID: Cl1227uHWKZ

--HG--
extra : rebase_source : 91ceba45906ad5fbb47d55c982ecbb65569a3f00
2017-11-08 20:41:57 -08:00
Nick Alexander 6f9dfe6900 Bug 1415778 - Pre: Don't use ANDROID_PACKAGE_NAME in GeckoView. r=jchen
MozReview-Commit-ID: FswHnEIBM35

--HG--
extra : rebase_source : 0dcccaab5e907dfb415a3626cc353ff7de823ea3
2017-11-08 21:15:12 -08:00
Jim Chen 30cc0165d5 Bug 1417490 - Avoid crash in getMatrixForLayerRectToViewRect; r=me
Avoid crash in `GeckoLayerClient.getMatrixForLayerRectToViewRect` by not
calling `isCompositorReady`. If the compositor is really not ready, we will
return inaccurate data, but that's acceptable. r=me for trivial patch.

MozReview-Commit-ID: HobHchWYQ5D
2017-11-15 15:08:27 -05:00
Coroiu Cristina 6a04305b5d Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-11-14 12:31:45 +02:00
Jim Chen fe020808ec Bug 1416576 - Correctly handle Tab:OpenUri; r=me
Correctly handle the Tab:OpenUri event introduced in bug 1412872. r=me
for trivial patch.

MozReview-Commit-ID: BIpKcLCi8sV
2017-11-13 22:50:43 -05:00
Michael Kaply 1a22aca3b3 Bug 1416484 - Add and update some engines for later testing. r=mconnor
MozReview-Commit-ID: 3797KN2Bq52

--HG--
extra : rebase_source : 9311e75586ad31f6d20766b7f440eccb49a778e3
2017-11-11 10:23:03 -06:00
Andreea Pavel 7fb4cc447c Merge inbound to mozilla-central r=merge a=merge 2017-11-11 11:59:20 +02:00
Ryan VanderMeulen ef843a0e30 Merge m-c to inbound. a=merge 2017-11-10 16:14:16 -05:00
Ryan VanderMeulen b16410f51c Merge inbound to m-c. a=merge 2017-11-10 16:13:15 -05:00
Dylan Roeh ebd39f9ce0 Bug 1337078 - Improve the use of Android API in OSPreferences r=snorp
Add BrowserLocaleManager.refreshLocales, a native function which calls OSPreferences::Refresh, and BrowserLocaleManager.getLocale, which returns the current locale string. Use these in place of observing modification of the intl.locale.os pref.
2017-11-10 09:20:04 -06:00
Makoto Kato 4fa452ee6e Bug 1416113 - Unnecessary to set LOCALE_THOUSANDS_SEP, LOCALE_DECIMAL_POINT and LOCALE_GROUPING. r=snorp
LOCALE_THOUSANDS_SEP, LOCALE_DECIMAL_POINT and LOCALE_GROUPING are only used by
old code without ICU.  Since we turn on ICU with ECMA-402 support, it is
unnecessary to set LOCALE_THOUSANDS_SEP, LOCALE_DECIMAL_POINT and
LOCALE_GROUPING in GeckoLoader.setupLocaleEnvironment.

MozReview-Commit-ID: LlGQdLlM7I2

--HG--
extra : rebase_source : 559fafd4ded9e351805fdd7b10e7aaebfc09637e
2017-11-10 13:55:56 +09:00
Jim Chen 06dbbe8e81 Bug 1411968 - Only try launching BrowserApp when handling notifications; r=nechen
Usually when we handle notification events, we try to launch whatever
Activity showed the notification so that the user can see results.
However, only BrowserApp supports being launched this way, so we should
restrict launching Activites to BrowserApp. For others like
CustomTabsActivity, we should just handle the notification event
directly. Currently, only download notifications are supported for these
other Activities, so it's okay if we don't display the Activity.

MozReview-Commit-ID: CNVRSEWBOQ6

--HG--
extra : rebase_source : 79392e1d26a969b6a90dcb976b13dae91fc75241
2017-11-10 18:26:18 -05:00
Csoregi Natalia 6d76ab3d79 Backed out 2 changesets (bug 1414406)for ESLINT failures /toolkit/mozapps/extensions/content/extensions.js:1193 r=backout on a CLOSED TREE
Backed out changeset f501182ed44b (bug 1414406)
Backed out changeset f438ce3fc88e (bug 1414406)
2017-11-14 00:02:18 +02:00
Dave Townsend 9c5a18de90 Bug 1414406: Remove the inline options feature for add-ons. r=aswan
MozReview-Commit-ID: 4ycTaMzqWgx

--HG--
extra : rebase_source : 2898d9947489b9a1d8b69364cb6574706e849225
2017-11-06 10:26:40 -08:00
Narcis Beleuzu 24bf9b5ccd Backed out changeset ca5529c5b232 (bug 1411968) for mass failures on Android 4.3 API16+ debug. r=backout on a CLOSED TREE 2017-11-13 20:02:26 +02:00
Jim Chen 2d53382441 Bug 1411968 - Only try launching BrowserApp when handling notifications; r=nechen
Usually when we handle notification events, we try to launch whatever
Activity showed the notification so that the user can see results.
However, only BrowserApp supports being launched this way, so we should
restrict launching Activites to BrowserApp. For others like
CustomTabsActivity, we should just handle the notification event
directly. Currently, only download notifications are supported for these
other Activities, so it's okay if we don't display the Activity.

MozReview-Commit-ID: CNVRSEWBOQ6

--HG--
extra : rebase_source : 79392e1d26a969b6a90dcb976b13dae91fc75241
2017-11-10 18:26:18 -05:00
Geoff Brown cbb956e0c3 Bug 1407679 - Merge nsIIOService and nsIIOService2; r=nwgh 2017-11-10 07:03:36 -07:00
Margareta Eliza Balazs 7e070192d7 Merge inbound to mozilla-central r=merge a=merge 2017-11-10 11:55:43 +02:00
Nicholas Nethercote f4dd5e2636 Bug 1414096 (attempt 2) - Remove support for nsISupportsString values in nsPrefBranch::{get,set}ComplexValue(). r=florian.
Bug 1345294 introduced nsPrefBranch::{get,set}StringPref(), which allowed the
getting of utf8 strings from prefs, which previously required using
nsISupportsString with {get,set}ComplexValue. That bug also converted most
uses.

This patch finishes the job.

- It removes the nsISupportsString support.

- It converts existing code that relied on the nsISupportsString.

- It removes the lint that was set up to detect such uses of nsISupportsString.

--HG--
extra : rebase_source : b885ee784704819e181430200af5ef762e269d14
2017-11-10 09:07:48 +11:00
Andrea Marchesini a4ddff0ca6 Bug 1347515 - Get rid of dom/json, r=qdot 2017-11-10 00:27:36 +01:00
Eugen Sawin 41e3646a3a Bug 1415929 - [1.0] Move Android app data directory out of setting to an environment variable. r=snorp 2017-11-09 21:37:24 +01:00
Michael Comella 4b81416ab1 Bug 1414995: Crash when publicsuffixlist could not be opened. r=nechen
MozReview-Commit-ID: 2agnVzKLkzd

--HG--
extra : rebase_source : 8f4b13154f74ac358fea2c2693f546a95b7f46ca
2017-11-06 16:12:15 -08:00
Sebastian Hengst ad5f08ae5a merge mozilla-central to autoland. r=merge a=merge 2017-11-09 00:52:17 +01:00
L10n Bumper Bot f945fe7970 no bug - Bumping Fennec l10n changesets DONTBUILD r=release a=l10n-bump
ach -> default
bs -> default
ia -> default
ltg -> default
oc -> default
2017-11-08 14:40:48 -08:00
Sebastian Hengst a353221537 merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-09 00:00:16 +02:00
Narcis Beleuzu 57d9eb5fb1 Backed out 1 changesets (bug 1414096) for dt1 failures "devtools/client/commandline/test/browser_cmd_pref3.js" r=backout on a CLOSED TREE
Backed out changeset e843de356b7e (bug 1414096)
2017-11-08 18:04:01 +02:00
Sebastian Hengst 91932e97bd Backed out 2 changesets (bug 1415298) for orphaned pattern 'assets/**' in mobile/android/app/moz.build. r=backout on a CLOSED TREE
Backed out changeset e046373e0dca (bug 1415298)
Backed out changeset 160586d66bcb (bug 1415298)

--HG--
rename : mobile/android/app/src/main/assets/example_asset.txt => mobile/android/app/assets/example_asset.txt
rename : mobile/android/app/src/main/assets/parental_controls_theme.png => mobile/android/app/assets/parental_controls_theme.png
rename : mobile/android/app/src/main/assets/publicsuffixlist => mobile/android/app/assets/publicsuffixlist
2017-11-08 20:11:03 +02:00
Nick Alexander 7094a99a6c Bug 1415298 - Fix finding assets/ in |mach android test| locally. r=maliu
Upgrading to the Android-Gradle plugin 3.0+ broke |mach android test|
locally.  This addresses the issue.

MozReview-Commit-ID: 3vV47ET7d19

--HG--
extra : rebase_source : aaf7a550f8b2776a41d55fdce2c43c0c8c473331
2017-11-07 12:43:40 -08:00
Nick Alexander 0de3e321d4 Bug 1415298 - Pre: Move assets/ into standard Gradle location. r=maliu
This is part of a larger project to standardize our source locations.

MozReview-Commit-ID: Gbh9qSW7RJY

--HG--
rename : mobile/android/app/assets/example_asset.txt => mobile/android/app/src/main/assets/example_asset.txt
rename : mobile/android/app/assets/parental_controls_theme.png => mobile/android/app/src/main/assets/parental_controls_theme.png
rename : mobile/android/app/assets/publicsuffixlist => mobile/android/app/src/main/assets/publicsuffixlist
extra : rebase_source : e73b7d579e02984e6e2a4a3c746c515a69768568
2017-11-07 12:41:21 -08:00
Delphine Lebédel f9662b26c6 Bug 1413376 - [oc] Search engine setup for Firefox Mobile Occitan, r=flod
MozReview-Commit-ID: 7SPWMd8n2UR

--HG--
extra : rebase_source : b6772ad0d961583393f1c00aafde79f3d15a60b4
2017-11-08 08:35:12 -08:00
Delphine Lebédel 86b74b0c47 Bug 1411102 - Add ach, bs, ia, ltg and oc to Fennec all-locales for single-locales builds, r=flod
MozReview-Commit-ID: BX6azMD9G5c

--HG--
extra : rebase_source : 2e73ec3a5991f35c8a4552d949889408b51fb638
2017-11-08 08:21:09 -08:00
Narcis Beleuzu e8f9b9e9a8 Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-11-08 12:55:21 +02:00
Narcis Beleuzu 218e1676cb Merge inbound to mozilla-central r=merge a=merge 2017-11-08 12:51:09 +02:00
Cervantes Yu c6bc943ace Bug 1414714 - Part 2: Remove unused gfx.* prefs. r=nical
The following prefs are removed because they are defined in gfxPrefs, but the
resulting gfxPrefs property is used at all.
* gfx.SurfaceTexture.detach.enabled
* gfx.touch.resample.*
* gfx.screen-mirroring.enabled

MozReview-Commit-ID: CyI3JN4TTu5
2017-11-08 15:26:50 +08:00
Delphine Lebédel e64d4a4e5f Bug 1411110 - [ia] Search plugin set up for Interlingua on Firefox Android, r=flod
MozReview-Commit-ID: 7ayczE2fyQx

--HG--
extra : rebase_source : 4e9590a91cf58f4c82b0d424d7f84515d937ef98
2017-11-07 13:53:23 -08:00
Nicholas Nethercote 8b3d03c666 Bug 1414096 - Remove support for nsISupportsString values in nsPrefBranch::{get,set}ComplexValue(). r=florian.
Bug 1345294 introduced nsPrefBranch::{get,set}StringPref(), which allowed the
getting of utf8 strings from prefs, which previously required using
nsISupportsString with {get,set}ComplexValue. That bug also converted most
uses.

This patch finishes the job.

- It removes the nsISupportsString support.

- It converts existing code that relied on the nsISupportsString.

- It removes the lint that was set up to detect such uses of nsISupportsString.

--HG--
extra : rebase_source : fb7af066adfa0491a79fae6282a62b08661553c8
2017-10-31 16:34:35 +11:00
Margareta Eliza Balazs 130574a8e2 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-08 00:09:29 +02:00
Randall Barker 8cb9ab66e9 Bug 1413362 - part 3: Add support to build system for GoogleVR based WebVR on Android r=froydnj,nalexander
MozReview-Commit-ID: 8BHBnvor5VT
2017-11-07 10:50:15 -08:00
Randall Barker 7fe4594a76 Bug 1413362 - part 1: Add GeckoVRManager to support GVR WebVR implementation on Android r=jchen,snorp
MozReview-Commit-ID: C7XTF8N1W9a
2017-11-07 10:50:14 -08:00
Nick Alexander 8a81d12535 Bug 1415220 - Make Fennec build --with-gradle by default. r=sebastian
This was just an oversight.

MozReview-Commit-ID: 4mHbW3gF4Qn

--HG--
extra : rebase_source : 7af77c4e028561e127f101b92bf8738502325bf9
2017-11-07 09:03:18 -08:00
Luca Greco ed4206c563 Bug 1414379 - Closing the extension popup tab should select the parent tab only if the popup tab was selected. r=mixedpuppy
MozReview-Commit-ID: KgSTdblvmYe

--HG--
extra : rebase_source : cef256274fc1ae190bdc2e81ec0ab4129033a645
2017-11-01 04:45:50 +01:00
Sebastian Hengst ae33b526b2 Backed out changeset 1d43c5bf597b (bug 1414379) for eslint failure at mobile/android/components/extensions/test/mochitest/test_ext_popup_behavior.html:162: missing semicolon. r=backout 2017-11-07 15:08:45 +02:00
Luca Greco ff7dbabc6a Bug 1414379 - Closing the extension popup tab should select the parent tab only if the popup tab was selected. r=mixedpuppy
MozReview-Commit-ID: KgSTdblvmYe

--HG--
extra : rebase_source : c9f825a2d5f36c110c66e3636079f3a5492accc6
2017-11-01 04:45:50 +01:00
Nick Alexander 35681f5451 Bug 1415298 - Fix finding assets/ in |mach android test| locally. r=maliu
Upgrading to the Android-Gradle plugin 3.0+ broke |mach android test|
locally.  This addresses the issue.

MozReview-Commit-ID: 3vV47ET7d19

--HG--
extra : rebase_source : c31e876969b0aff6cf7711fcb2227f6ca0d4fe46
2017-11-07 12:43:40 -08:00
Nick Alexander b05cd8e8cd Bug 1415298 - Pre: Move assets/ into standard Gradle location. r=maliu
This is part of a larger project to standardize our source locations.

MozReview-Commit-ID: Gbh9qSW7RJY

--HG--
rename : mobile/android/app/assets/example_asset.txt => mobile/android/app/src/main/assets/example_asset.txt
rename : mobile/android/app/assets/parental_controls_theme.png => mobile/android/app/src/main/assets/parental_controls_theme.png
rename : mobile/android/app/assets/publicsuffixlist => mobile/android/app/src/main/assets/publicsuffixlist
extra : rebase_source : dad3ded6a41d60989921b437dcf91181854c7b5a
2017-11-07 12:41:21 -08:00
Narcis Beleuzu 82324f1ffe Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-11-08 12:57:37 +02:00
Sebastian Hengst f5e52adeea merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-07 12:43:06 +02:00
Sebastian Hengst f2944960ec Backed out 3 changesets (bug 1413362) for causing merge conflicts. r=merge a=merge
Backed out changeset 8b15dfaeecaa (bug 1413362)
Backed out changeset 2d9da0d19d04 (bug 1413362)
Backed out changeset 653c66220a5f (bug 1413362)

--HG--
extra : amend_source : e5c12297b0bb6ebe27a2481e4aac6c0ca8160a1b
2017-11-07 12:41:11 +02:00
Jim Chen 832cd8d996 Bug 1415074 - Fix unresponsiveness after restoring GeckoView states; r=jchen
Fix a bug where GeckoView becomes unresponsive to dispatched events
after restoring states, due to the native queue not being restored.
r=me for small, tested patch.

MozReview-Commit-ID: K1cVjjNaZK1

--HG--
extra : rebase_source : b1329c84d82f5bdc06767bf310ca87e52ff6ec9b
2017-11-07 01:53:11 -05:00
Randall Barker 0f56210acd Bug 1413362 - part 3: Add support to build system for GoogleVR based WebVR on Android r=froydnj,nalexander
MozReview-Commit-ID: 8BHBnvor5VT
2017-11-06 17:43:29 -08:00
Randall Barker 75f309874f Bug 1413362 - part 1: Add GeckoVRManager to support GVR WebVR implementation on Android r=jchen,snorp
MozReview-Commit-ID: C7XTF8N1W9a
2017-11-06 17:43:28 -08:00
Dylan Roeh f9543dc96b Bug 1414395 - Handle blob: and data: URIs better in PWAs and Custom Tabs. r=snorp 2017-11-06 11:12:14 -06:00
Eugen Sawin dfda7f814f Bug 1375141 - [2.0] Check for null-URI when attaching pending intent data. r=snorp 2017-11-06 20:31:55 +01:00
Eugen Sawin 99ec71c21f Bug 1389926 - [1.0] Reduce timeout clamp for background tabs to 1s. r=snorp 2017-11-06 20:31:55 +01:00
Csoregi Natalia c79466f107 (bug 1411688) Make --with-gradle handle single-locale repack r=snorp a=reland
--HG--
extra : amend_source : d435c08a762988804bfe23251b8b5f76702eca99
2017-11-06 15:23:47 +02:00
Csoregi Natalia aaa47364af Backed out 5 changesets (bug 1411688) for failing Android single-locale repacks. r=backout a=backout
Backed out changeset 65d5d13b4ea0 (bug 1411688)
Backed out changeset 8ba514bd8ed6 (bug 1411688)
Backed out changeset 866854a996b8 (bug 1411688)
Backed out changeset 34f83aab44e6 (bug 1411688)
Backed out changeset 2e4e139bb5d7 (bug 1411688)
2017-11-06 12:18:50 +02:00
Jan Henning 0c394a908c Bug 1414838 - Show stop button again as soon as page loading starts. r=nechen
As of bug 1366672, case START no longer falls through in order to allow for a
different behaviour of the progress indicator, however we still need to add
UpdateFlags.PROGRESS, so that the stop button shows up as soon as a page starts
loading.

MozReview-Commit-ID: 3P33JEsS5ic

--HG--
extra : rebase_source : 4f83ab57613df31cdd4f392c478df33a992c95af
2017-11-06 20:20:57 +01:00
Jim Chen 0d7a6aa9de Bug 1413698 - 7. Rename GeckoView{Handler,Settings} to GeckoSession{..}; r=jchen
The old GeckoView was renamed to GeckoSession, so the old
GeckoViewHandler and GeckoViewSettings should be renamed to
GeckoSession.. as well. GeckoView JS files are left alone and may be
converted in a future bug. r=me for trivial patch.

MozReview-Commit-ID: BJTwugWboKf

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoViewHandler.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoSessionHandler.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoViewSettings.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoSessionSettings.java
extra : rebase_source : d6e55620b8588174bff801f3f7b436f67e9b3f32
2017-11-06 14:54:10 -05:00
Jim Chen 451fe9916f Bug 1413698 - 6. Remove PresentationView; r=jchen
Remove PresentationView, which is no longer used. r=me for trivial
patch.

MozReview-Commit-ID: DKcysGTXXC7

--HG--
extra : rebase_source : e7f015e167ea1138903891e24bf215bfabefc141
2017-11-06 14:54:09 -05:00
Jim Chen 6a5d5a1ab2 Bug 1413698 - 5. Use GeckoSession where appropriate; r=snorp
Change places where we use GeckoView to use GeckoSession instead.

MozReview-Commit-ID: InT4i1MaoBe

--HG--
extra : rebase_source : 67f57d5b00818292b8d273665e60f81a11097eea
2017-11-06 14:54:09 -05:00
Jim Chen af4d72a10d Bug 1413698 - 4. Add minimal GeckoView; r=snorp
With the old GeckoView renamed to GeckoSession, add a new minimal
implementation of GeckoView that manages View lifetime but delegates
most tasks to GeckoSession.

MozReview-Commit-ID: 9FFdLpTfPQY

--HG--
extra : rebase_source : 596866e9121265bf0529648926a71d1dfe3b2976
2017-11-06 14:54:09 -05:00
Jim Chen 8c452ff94b Bug 1413698 - 3. Recorganize GeckoViewSettings; r=snorp
* Move the chromeUri and screenId settings to GeckoViewSettings.

* Add a private data-dir setting that the debugger-socket-dir setting
  falls backs to. Set the data-dir setting inside `GeckoSession.openWindow`.

* Add optional init-only and values properties for settings.

* Use integer constants for display-mode setting.

MozReview-Commit-ID: HgJg0t0oade

--HG--
extra : rebase_source : 537689d93202e4201e879bae9e073ceb4489190b
2017-11-06 14:54:09 -05:00
Jim Chen edb0428314 Bug 1413698 - 2. Move GeckoView to GeckoSession; r=snorp
Rename GeckoView to GeckoSession. Strip out parts of it that depended on
being a subclass of View. Also strip out parts of it that dealt with
switching EventDispatcher and NativeQueue, because now there's only one
copy of each for each GeckoSession.

MozReview-Commit-ID: J699twtpmTS

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoView.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoSession.java
extra : rebase_source : 60e045f6f1e6a70dcabc03f5a32cae5576c2edd8
2017-11-06 14:54:09 -05:00
Jim Chen 6fdb886eb4 Bug 1413698 - 1. Separate out attach() from open() in GeckoView.Window; r=snorp
Right now, `GeckoView.Window.open()` consists of opening a new Gecko
nsWindow and attaching it to the opening GeckoView. This patch separates
the attaching step into an `Window.attach()` function that was renamed
from `Window.reattach()`. Going forward, `Window.open()` and
`Window.close()` will correspond to opening and closing a session, which
`Window.attach()` will correspond to attaching a display to a session.

MozReview-Commit-ID: 94Un74pwizY

--HG--
extra : rebase_source : a7d9c6c3227de4b05e800d77a184f1deae9af5f8
2017-11-06 14:54:08 -05:00
Nick Alexander af1a4a8366 Bug 1411688 - Part 4: Make single-locale repacks agree with underlying Nightly builds. r=aki
There's nothing that makes sense in the existing setup; we're only not
getting bitten because the set of things that _do_ depend on all of
the flags that differ between the underlying Nightly builds and
single-locale repacks is small, and nobody has complained.  For
example, about:licenses probably does not include the Adjust SDK
license for single-locale repacks.

This patch series recompiles the Java code as part of each
single-locale repack, and that means the feature flags, etc, need to
be the same between the underlying compiled code (from the underlying
Nightly build) and the fresh Java compile.  This patch tries to
harmonize the two.

MozReview-Commit-ID: 230q7HuD1vV

--HG--
extra : rebase_source : 1be8a389ed289c788add4d3e95c540f29165cf6b
extra : source : d7f794ec69ccd38d66ec5394fac7cc6658e29ce4
2017-10-23 13:50:51 -07:00
Nick Alexander cc2129e406 Bug 1411688 - Part 1: Make --with-gradle handle single-locale repacks. r=snorp
Single-locale repacks do the following:

Download existing APK; unzip APK; update l10n resources; |mach package| with IS_LANGUAGE_REPACK=1.

This is pretty hard to accommodate, but we can try.  The key issues
here are to recognize when IS_LANGUAGE_REPACK=1 and not ask for l10n
resources (in particular, strings.xml) to be generated.

We do need to include the freshly built classes.dex when repackaging,
because newer Gradle/aapt doesn't preserve the R.java IDs.

MozReview-Commit-ID: 9FvQtmPOUjg

--HG--
extra : rebase_source : b0440ceb318662bf3c08f2139c51dae5775a6b38
2017-10-23 13:24:58 -07:00
Nick Alexander a090e4b296 Bug 1411688 - Part 0: Make --with-gradle handle single-locale repack ABIs. r=snorp
This agrees with
http://searchfox.org/mozilla-central/rev/423b2522c48e1d654e30ffc337164d677f934ec3/mobile/android/base/generate_build_config.py#95.
It should really come from the underlying binaries for repacks, but
right now we only repack ARM builds, so this will do.

MozReview-Commit-ID: 3UvrJDV1l9a

--HG--
extra : rebase_source : e57b49e32c80906bdb513850c370d64e5a140978
2017-11-02 09:38:47 -07:00
Sebastian Hengst 07b805d165 Backed out 5 changesets (bug 1411688) for flake8 linting failure at testing/mozharness/scripts/mobile_l10n.py. r=backout on a CLOSED TREE
Backed out changeset 8ddf3257a8db (bug 1411688)
Backed out changeset c313d76f2aa5 (bug 1411688)
Backed out changeset 3df83a3b7e9c (bug 1411688)
Backed out changeset 133417cefdab (bug 1411688)
Backed out changeset a8fd33d8a2af (bug 1411688)
2017-11-04 00:49:47 +01:00
Makoto Kato 945aa85d0c Bug 1292486 - Get rid of nsIUnicodeNormalizer interface. r=jfkthame
m-c and c-c don't use nsIUnicodeNormalizer interface now.

MozReview-Commit-ID: DGK7wBrcrob

--HG--
extra : rebase_source : 9260435fb2d4455b45920971c105a8d502c4e53e
extra : histedit_source : cf2863ebff742f160f30e6a15517f07490f1e6a6
2017-10-20 17:35:34 +09:00
Jan Henning e99464f25e Bug 1415307 - Stop sampling background colour in DOMContentLoaded. r=rbarker
Bug 1297850 removed the only consumer of the background colour on the Java side,
so this can go as well.

MozReview-Commit-ID: DJwrUVUHZ1t

--HG--
extra : rebase_source : be2b5068c57878ff556d1af16eb1df5d5a8779aa
2017-11-07 22:17:04 +01:00