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

27270 Коммитов

Автор SHA1 Сообщение Дата
James Willcox 457721733c Bug 1506599 - Add @AnyThread annotation to GeckoWebExecutor r=agi
Differential Revision: https://phabricator.services.mozilla.com/D11652

--HG--
extra : moz-landing-system : lando
2018-11-12 15:31:56 +00:00
Cosmin Sabou 00f29cfcf6 Merge mozilla-central to mozilla-inbound. 2018-11-10 13:51:14 +02:00
Razvan Maries f502ea6ce1 Merge mozilla-central to mozilla-inbound. a=merge 2018-11-10 02:24:04 +02:00
Marco Bonardo b8deeabac0 Bug 1506096 - Restore browser.urlbar.autocomplete.enabled for Android. r=JanH
Differential Revision: https://phabricator.services.mozilla.com/D11504

--HG--
extra : moz-landing-system : lando
2018-11-09 21:07:13 +00:00
Dylan Roeh 82c982aa4e Bug 1503724 - Fix progress bar on first load in Fennec custom tabs. r=esawin
There's a race condition here where we receive STATE_START before we've enabled GeckoViewProgressChild; this patch starts listening for web progress in onInit() rather than onEnable() so that we can guarantee progress tracking will work whenever a ProgressDelegate is set.
2018-11-09 08:58:32 -06:00
Agi Sferro 32866173fc Bug 1436754 - Merge LayerSession into GeckoSession; r=snorp,jchen
Depends on D10990

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

--HG--
extra : moz-landing-system : lando
2018-11-09 17:04:38 +00:00
Agi Sferro 71ee91b62f Bug 1436754 - Add @UiThread to LayerSession; r=snorp
Depends on D10989

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

--HG--
extra : moz-landing-system : lando
2018-11-07 17:28:08 +00:00
Agi Sferro 0ba9c73190 Bug 1436754 - Move LayerSession and related to org.mozilla.geckoview; r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D10989

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/CompositorController.java => mobile/android/geckoview/src/main/java/org/mozilla/geckoview/CompositorController.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/DynamicToolbarAnimator.java => mobile/android/geckoview/src/main/java/org/mozilla/geckoview/DynamicToolbarAnimator.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/LayerSession.java => mobile/android/geckoview/src/main/java/org/mozilla/geckoview/LayerSession.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/OverscrollEdgeEffect.java => mobile/android/geckoview/src/main/java/org/mozilla/geckoview/OverscrollEdgeEffect.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/PanZoomController.java => mobile/android/geckoview/src/main/java/org/mozilla/geckoview/PanZoomController.java
extra : moz-landing-system : lando
2018-11-07 17:28:17 +00:00
Eitan Isaacson fe0e9340b4 Bug 1505515 - Null check nodeInfo bundle before retrieving class name. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D11210

--HG--
extra : moz-landing-system : lando
2018-11-09 14:24:34 +00:00
Johan Lorenzo de9dcd10ee Bug 1505514 - geckoview artifacts don't specify branch when mozilla-release r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D11447

--HG--
extra : moz-landing-system : lando
2018-11-09 15:20:11 +00:00
Imanol Fernandez 3bdc0135ba Bug 1498246 - Add GeckoView Media API r=rbarker,snorp,esawin,jchen,cvan
Add GeckoView Media API which provides a way to listen to HTMLMediaElement events in a GeckoSession and control the playback externally

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

--HG--
extra : moz-landing-system : lando
2018-11-09 11:59:28 +00:00
Jan Henning 066dfd8ff4 Bug 1429488 - Part 8: Fix mobile about:addons code for enabling/disabling themes. r=aswan
about:addons on Android has some logic to ensure that only one theme can be
active at the same time.

At some point however, themes must have learned to take care of themselves in
that regard, which means that this code
a) has become unnecessary, and
b) with Webextension themes it can actually cause a harmful race condition:

Explicitly disabling the previously active theme implicitly enables the default
theme, so what happens is that depending on the size of the Webextension theme
to be enabled, the new theme can be enabled before the previous disable() call
completes. This leads to the new theme then immediately being disabled again as
the previous disable() call finally gets around to enabling the default theme.
The smaller the Webextension theme to be enabled and the faster it loads, the
more likely this is to happen.

We still need to manually fix up the disabled state of themes in the UI, though,
so that it shows the correct state without a reload. Therefore, we take the
opportunity to fix the problem that up until now, disabling a theme wouldn't
mark the default theme as enabled in the UI, unless you manually reloaded the
page afterwards.

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

--HG--
extra : source : 995ee600dc4eacac1f2d6c2409d83227c45f9d35
extra : histedit_source : 935f0d5c95bfc02acd296003fb65790cd9aa9a9d
2018-11-01 22:08:59 +01:00
Jan Henning 33c4271292 Bug 1429488 - Part 7: Move responsibility for persisting themes on Android to LWTConsumer. r=jaws
We intercept the theme data just before sending it to the front-end in order to
fix it up as described in part 4.

There is one snag, though: When the theme data processed in Android's
LightweightThemeConsumer isn't fresh data received via lightweight-theme-
styling-update, but instead a theme retrieved via LWTManager
.currentThemeForDisplay, we risk passing already persisted theme data
to LWTPersister.persistImages().

When the LWTPersister encounters an image which already has a file:// URI, it
just skips it and doesn't call the success callback in that case, which means we
never execute the rest of the code to pass the data on to the Android front-end.
Even if it did, this would mean we'd be calling LWTPersister.getPersistedData()
twice: Once implicitly through asking for currentThemeForDisplay, and a second
time explicitly.

So instead, we're asking the LWTManager for currentThemeWithFallback, which
returns the original theme data, which we can then safely pass to
persistImages() and fix up ourselves through getPersistedData().

This introduces a different problem, though: If the same theme has previously
already been successfully persisted, we'd be unnecessarily persisting it again,
and even worse, we'd do that on each startup.

To avoid that, we make the LWTPersister store and then check the persisted
theme's ID and version.
If they have remained unchanged, we can short-circuit the call to persistImages
and immediately declare success.

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

--HG--
extra : source : 679c830b57a2d59acbe978ea974cfac738443533
extra : histedit_source : 9b2e383a1900ccbe752c4737d1ce6780b9af63da
2018-10-31 20:38:26 +01:00
Jan Henning 4aeb4f5c39 Bug 1429488 - Part 5: Support persisting moz-extension resources. r=Gijs
Bug 1344926 integrated static themes more closely into the existing infra-
structure for lightweight themes and also intended the static theme's image data
to be persisted to disk as well.

While the headerURL image file is in fact successfully copied out of the
extension archive into the profile, the persist progress listener being used
isn't equipped to properly handle this case and therefore the success callback
is never executed.

As a result
- the callback passed to _persistImages in the LWTManager isn't executed,
  either, although because setting the fallbackThemeData passes in an empty
  callback anyway, no one noticed.
- the persist operation never actually completes, so subsequent calls to
  currentThemeForDisplay() always return the original moz-extension:// image URI
  and never the persisted file from the profile folder.

For Android we definitively require a working callback in order to be able to
forward the fixed-up theme data once the image data has been persisted, so the
persistProgressListener's logic is modified accordingly.
Additionally, because as far as the LWTManager is concerned, WE static themes
are only fallback themes and a call to LWTManager.currentTheme will therefore
never return a WE static theme, the LWTPersister's logic to check whether the
theme, whose files have just been successfully persisted, is still the current
theme, needs to be modified.

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

--HG--
extra : source : 91b2a9224846ef9cc81f1afc9fcfcd1db278644b
extra : histedit_source : d8a47bba3563cb8eb0faf94a7c1f28ba2925d80c
2018-10-22 22:08:01 +02:00
Jan Henning 3a46043a80 Bug 1429488 - Part 3: Test minimal Android static theme support. r=gbrown
This tests that the moz-extension URI for the headerURL will be properly
rewritten into a file URI before being passed to the Android front-end.

The JS part of the test has been adapted for Robocop from toolkit/mozapps/
extensions/test/browser/browser_webapi_theme.js.

Likewise, the test extension is based on browser_theme.xpi from the same
directory, but modified to include a real image file that can actually be
persisted.

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

--HG--
extra : source : 208f22eb4d94fdb2761c8cde881a1e5c2eade602
extra : histedit_source : 7aec3917ad22c7114d1ef801499f0eb7e598c019
2018-10-27 14:46:08 +02:00
Jan Henning 5741b8a572 Bug 1429488 - Part 2: Allow using mochitest-chrome's head.js for Robocop, too. r=gbrown
The head.js used for Android chrome mochitests has a few useful functions for
waiting on events and observer service notifications, which I don't want to
duplicate yet another time.

While superficially similar, the JS environment of Robocop tests differs in
several ways from that of (chrome) Mochitests. Thankfully the only relevant
difference here is that setTimeout() isn't directly available from within a
Robocop JS test. As we're only using that to set a 0-length timeout, we can
easily replace it with an equivalent dispatchToMainThread() call.

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

--HG--
extra : source : 541d630080dda9b79ad9576516484f7f8ea9b7ea
extra : histedit_source : 15ada66972b0997a68594247430a9b87d195d4b3
2018-10-28 21:04:36 +01:00
Jan Henning 8412c9f190 Bug 1429488 - Part 1: robocop_head.js improvements. r=gbrown
Most of robocop_head.js is based on xpcshell's head.js, but the log statements
should probably still use the new filename after all to reduce confusion.

Additionally, I've noticed that in do_report_unexpected_exception(),
Components.stack.caller can return null under some circumstances - to avoid
breaking error reporting as well as to make debugging easier, we should
therefore anticipate this possibility when getting caller_stack.filename.

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

--HG--
extra : source : 5bfaa410d9385281b9b3ada226f1845a7d7426e7
extra : histedit_source : a2f482d4f9a3fad1c3d949800fd3bf31e907a254
2018-10-28 21:38:07 +01:00
Tooru Fujisawa a5e176836f Bug 1492716 - Part 1: Stop using default=True for --enable-* or --with-* configure options. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D8833
2018-10-16 20:28:12 +09:00
Gurzau Raul ff7bbb9936 Merge mozilla-central to inbound. a=merge CLOSED TREE
--HG--
rename : dom/media/ipc/RemoteVideoDecoder.cpp => dom/media/ipc/GpuDecoderModule.cpp
rename : dom/media/ipc/RemoteVideoDecoder.h => dom/media/ipc/GpuDecoderModule.h
extra : rebase_source : 0503e2d45fffafb1e8dd1ddcd2115af2778a5c66
2018-11-09 07:46:56 +02:00
Jim Chen b6c529adf2 Bug 1505881 - Check for null default editable child; r=me
Discard the key event instead of crash when we don't have a default
editable child.
2018-11-08 23:52:42 -05:00
Matt Brubeck 3fdb63b8b7 Bug 1499067 - Stub implementation of BrowserApp.closeTab for GeckoView. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D11121

--HG--
extra : moz-landing-system : lando
2018-11-07 17:22:13 +00:00
Csoregi Natalia a5ca9eb6ff Backed out changeset a6b390c7b979 (bug 1498246) for failures on org.mozilla.geckoview.test.GeckoSessionTestRuleTest.includesAllCallbacks. CLOSED TREE 2018-11-09 02:47:36 +02:00
Imanol Fernandez a4065c4324 Bug 1498246 - Add GeckoView Media API r=rbarker,snorp,esawin,jchen,cvan
Add GeckoView Media API which provides a way to listen to HTMLMediaElement events in a GeckoSession and control the playback externally

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

--HG--
extra : moz-landing-system : lando
2018-11-08 22:11:36 +00:00
Ehsan Akhgari 49f92aabe5 Bug 1504551 - Remove the XPCOM registration for "@mozilla.org/exslt/regexp;1" r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D10847

--HG--
extra : moz-landing-system : lando
2018-11-08 19:52:18 +00:00
shindli 327a967b87 Backed out changeset 60659171e414 (bug 1498246) for geckoview bustages CLOSED TREE 2018-11-08 14:56:40 +02:00
Petru Lingurar c18e433f14 Bug 1501648 - Prevent crashes for unregistered receivers from MmaDelegate and GeckoMediaControlAgent; r=jchen,JanH
Although this two receivers are guarded by checks for if they were initialized
(and so registered) there are reports of crashes because of trying to unregister
them without them actually being registered.

The underlying issue will be investigated further in bug 1505685 but for the
moment wrapping the unregister operations in a try-catch saves the users from
a crash and because the unregister is done when the app is closed
(for the MmaDelegate receiver) or when the app finished playing media
(for the GeckoMediaControlAgent receiver) the user doesn't loose any
functionality going forward.

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

--HG--
extra : moz-landing-system : lando
2018-11-08 12:08:40 +00:00
Imanol Fernandez 39c972b3f6 Bug 1498246 - Add GeckoView Media API r=rbarker,snorp,esawin,jchen,cvan
Add GeckoView Media API which provides a way to listen to HTMLMediaElement events in a GeckoSession and control the playback externally

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

--HG--
extra : moz-landing-system : lando
2018-11-08 01:37:56 +00:00
Emily Toop 74e1ca6361 Bug 1500560 - Add Resource ID for `LocationView` URL bar. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D11036

--HG--
extra : moz-landing-system : lando
2018-11-07 17:22:46 +00:00
Daisuke Akatsuka 56d22dec55 Bug 1497448: Use SocketListener directly. r=ochameau,jdescottes
Depends on D10865

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

--HG--
extra : moz-landing-system : lando
2018-11-08 00:41:18 +00:00
Mike Taylor 8513bb9a44 Bug 1489914 - Fix UA override for rakuten.co.jp. r=karlcow
--HG--
extra : amend_source : bf243d52fbbbd83f4d03750ce4beac919665f3f9
2018-11-08 02:23:27 +02:00
arthur.iakab 895ff2021d Merge mozilla-central to inbound 2018-11-07 23:56:03 +02:00
Jim Chen 13aca0e600 Bug 1496220 - 2. Default to null triggering principal for GeckoView.loadUri; r=esawin
For improved security, default to a null triggering principal for
GeckoView.loadUri calls, except when loading certain privileged schemes
such as "resource" and "file".

Differential Revision: https://phabricator.services.mozilla.com/D7785
2018-11-07 16:17:17 -05:00
Kartikaya Gupta f9265d576e Bug 1432019 - Move the vsync notifications to the java UI thread. r=snorp
This ensures that the vsync notifications don't race ahead of the touch
events, which can result in jank if the APZ sampling happens before the
touch events update the scroll position.

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

--HG--
extra : moz-landing-system : lando
2018-11-07 17:22:19 +00:00
Makoto Kato c54eb739e4 Bug 1501804 - browser.display.use_document_fonts is integer, not boolean. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D10873

--HG--
extra : moz-landing-system : lando
2018-11-05 16:04:26 +00:00
Nick Alexander 0c5374390b Bug 1503651 - Drop audience flavor dimension. r=petru
Differential Revision: https://phabricator.services.mozilla.com/D10412

--HG--
extra : moz-landing-system : lando
2018-11-06 23:21:30 +00:00
Nick Alexander 91f0c1007b Bug 1503651 - Pre: Set MOZILLA_OFFICIAL for Android x86 debug fuzzing. r=firefox-build-system-reviewers,chmanchester
Not setting MOZILLA_OFFICIAL was an oversight, I believe, from when
Bug 1475573 landed the Android x86 debug fuzzing job.  Nothing depends
on !MOZILLA_OFFICIAL and it's incongruent with the rest of the jobs
built in automation, which do set MOZILLA_OFFICIAL.

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

--HG--
extra : moz-landing-system : lando
2018-11-06 19:37:52 +00:00
Eitan Isaacson 9c7c0083ad Bug 1502187 - Implement Java part of viewport tree caching. r=jchen
Depends on D9866

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

--HG--
extra : moz-landing-system : lando
2018-11-05 22:35:35 +00:00
Eitan Isaacson 7befdbc6f7 Bug 1502187 - Implement native part of viewport caching. r=Jamie
Depends on D9865

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

--HG--
extra : moz-landing-system : lando
2018-11-06 04:35:51 +00:00
Eitan Isaacson d75945e22e Bug 1502187 - Add FULL_ACCESSIBILITY_TREE to GeckoSessionSettings. r=jchen
Defaults now to 'true', when caching is good enough I'll switch it off.

Generally, this would be used for apps/cases when full accessible tree
is needed like UIAutomator.

Depends on D9864

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

--HG--
extra : moz-landing-system : lando
2018-11-06 17:04:12 +00:00
Andreea Pavel a81720d597 Merge mozilla-central to autoland. on a CLOSED TREE 2018-11-06 19:11:54 +02:00
Andreea Pavel d401f28d4e Merge mozilla-inbound to mozilla-central. a=merge 2018-11-06 19:05:52 +02:00
Mike Conley 2556e11420 Bug 1498233 - Stub out getBrowserForOuterWindowID for GeckoViewTab. r=jchen
GeckoViewTab stubs out gBrowser on the root window for WebExtension compatibility.
LoginManagerParent also looks for gBrowser on windows that are handling username
and password form fills, and expects it to implement getBrowserForOuterWindowID.

This patch makes the stub implement getBrowserForOuterWindowID, which just returns
the lone GeckoViewTab browser.

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

--HG--
extra : moz-landing-system : lando
2018-11-06 04:35:00 +00:00
dlee 405251a9f4 Bug 1501801 - Add query string to URI that test SafeBrowsing. r=francois
The SafeBrowsing related testcases in NavigationDelegateTest.kt first tests loading bad URI and
then tests loading the URI again with |blockMalware| disabled.

When the testcase loads a bad URI with |blockMalware| disabled, the load succeed and the
HTTP response of the URI is stored in HTTP cache.
The next time we run the same test, the load is read from the cache without going through
url-classifier hence the load is not blocked.

Add query string to the URI to avoid bypassing url-classifier check.

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

--HG--
extra : moz-landing-system : lando
2018-11-06 13:52:24 +00:00
Gurzau Raul 8feb5a86ea Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-11-06 12:03:05 +02:00
Gurzau Raul 1da9ef02c4 Merge inbound to mozilla-central. a=merge
--HG--
rename : testing/web-platform/tests/content-security-policy/navigate-to/form-action/form-action-blocks-navigate-to-allows.html => testing/web-platform/tests/content-security-policy/navigate-to/form-action/form-action-blocks-navigate-to-allows.sub.html
rename : testing/web-platform/tests/content-security-policy/navigate-to/spv-only-sent-to-initiator.html => testing/web-platform/tests/content-security-policy/navigate-to/spv-only-sent-to-initiator.sub.html
2018-11-06 11:57:49 +02:00
Petru Lingurar 0b5c26c77f Bug 1499415 - Check mExtensionPermissionsHelper for null before using it; r=sdaswani
`mExtensionPermissionsHelper` is initialized in BrowserApp's onCreate() and
nullified in it's onDestroy().
GeckoApp's onCreate() can finish after BrowserApp's onDestroy() because it uses
background initialization.
`mExtensionPermissionsHelper` will be checked for null before using it and
if null it's safe to ignore it's method's results as it only can be null if the
app was already closed.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 17:09:43 +00:00
Gurzau Raul dfc16e18a8 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-11-06 12:04:13 +02:00
Jim Chen 4bfa393137 Bug 1499429 - 6. Fix up for checkstyle errors; r=me 2018-11-06 00:32:30 -05:00
Jim Chen f564f7b1a6 Bug 1490391 - 3. Process replace-text event on reply; r=esawin
Currently, we process replace-text events during `onTextChange` calls,
but we get confused if one `onTextChange` call corresponds to two or
more replace-text events. This patch makes us do minimal processing
during `onTextChange`, and perform the bulk of the processing during
each individual replace-text reply.

Differential Revision: https://phabricator.services.mozilla.com/D9851
2018-11-06 00:12:07 -05:00
Jim Chen 8e5dc5d4db Bug 1490391 - 1. Add a test for text duplication bug; r=esawin
Add a test for the text duplication bug caused by committing some text
and then immediately starting another composition.

Differential Revision: https://phabricator.services.mozilla.com/D9849
2018-11-06 00:12:07 -05:00