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

26749 Коммитов

Автор SHA1 Сообщение Дата
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
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