Commit Graph

28312 Commits

Author SHA1 Message Date
Emily Toop
d75296da81 Bug 1532582 - Display autofill popup in correct location.
This autofill popover was being displayed in the incorrect place because the display rect we were providing to the `AutofillManager` was the rect for the `GeckoView` and not the rect for the HTML element that the autofill popover was relating to.

1. Add view dimensions to info passed to autofill in `GeckoViewAutoFill`.
2. Use those view dimensions to calculate the correct location on the screen using `pageToScreenMatrix` in `GeckoSession`.

The resulting locations were incorrect, as the values used by `pageToScreenMatrix` were out of date. The `GeckoSession` was only notified about updated metrics during first composite, which meant that when the metrics changed during zoom and scroll on soft keyboard presentation, `GeckoSession` was unaware of it.

3. Update `GeckoSession` with new screen metrics when they change and not only during first composite.

Despite this change ensuring that `GeckoSession` always had the correct values for the viewport size and location, the request to provide the autofill location was made before the zoom and scroll was complete, meaning that even then out of date values were used during the calculation. The intial solution was to fire an event once zoom was complete, but despite this event being fired after the new screen size had been calculcated in `AsyncCompositionManager`, `GeckoSession` did not receive the values until after the event had been processed (the calls were out by 0.024ms).

5. Call new method `onScreenMetricsUpdated` inside `SessionTextInput` after screen metrics have been updated. Call `AutofillManager#notifyViewEntered` from this function.

This was not my preferred solution to this, but timing issues meant I could not find/think of an alternative way of delaying the calculation of the autofill popover location until after `GeckoSession` had been updated.

This patch currently fixes things on GV apps. Occasionally, on Fennec, the autofill view is out of alignment slightly. This needs further work.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 15:25:42 +00:00
Dorel Luca
a91d673cd5 Backed out changeset b6f5942c42bb (bug 1532582) for Eslint failure. CLOSED TREE 2019-03-29 16:37:21 +02:00
Emily Toop
65bf84e5c6 Bug 1532582 - Display autofill popup in correct location. r=geckoview-reviewers,snorp,kats
This autofill popover was being displayed in the incorrect place because the display rect we were providing to the `AutofillManager` was the rect for the `GeckoView` and not the rect for the HTML element that the autofill popover was relating to.

1. Add view dimensions to info passed to autofill in `GeckoViewAutoFill`.
2. Use those view dimensions to calculate the correct location on the screen using `pageToScreenMatrix` in `GeckoSession`.

The resulting locations were incorrect, as the values used by `pageToScreenMatrix` were out of date. The `GeckoSession` was only notified about updated metrics during first composite, which meant that when the metrics changed during zoom and scroll on soft keyboard presentation, `GeckoSession` was unaware of it.

3. Update `GeckoSession` with new screen metrics when they change and not only during first composite.

Despite this change ensuring that `GeckoSession` always had the correct values for the viewport size and location, the request to provide the autofill location was made before the zoom and scroll was complete, meaning that even then out of date values were used during the calculation. The intial solution was to fire an event once zoom was complete, but despite this event being fired after the new screen size had been calculcated in `AsyncCompositionManager`, `GeckoSession` did not receive the values until after the event had been processed (the calls were out by 0.024ms).

5. Call new method `onScreenMetricsUpdated` inside `SessionTextInput` after screen metrics have been updated. Call `AutofillManager#notifyViewEntered` from this function.

This was not my preferred solution to this, but timing issues meant I could not find/think of an alternative way of delaying the calculation of the autofill popover location until after `GeckoSession` had been updated.

This patch currently fixes things on GV apps. Occasionally, on Fennec, the autofill view is out of alignment slightly. This needs further work.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 12:49:26 +00:00
Petru Lingurar
ca307a61f1 Bug 1506231 - Top Sites tiles will show only one site for the same base url; r=JanH
Differential Revision: https://phabricator.services.mozilla.com/D24487

--HG--
extra : moz-landing-system : lando
2019-03-29 07:57:51 +00:00
Csoregi Natalia
c426d9feea Merge mozilla-central to autoland. CLOSED TREE 2019-03-29 07:28:47 +02:00
L10n Bumper Bot
ce03c323ae no bug - Bumping Fennec l10n changesets r=release a=l10n-bump DONTBUILD
bn -> default
bn-BD -> removed
bn-IN -> removed
2019-03-29 05:00:29 +00:00
James Willcox
73c7980cb9 Bug 1536044 - Fully disable jacoco builds for Android r=agi
Differential Revision: https://phabricator.services.mozilla.com/D25216

--HG--
extra : moz-landing-system : lando
2019-03-28 20:26:45 +00:00
Geoff Brown
322688e83f Bug 1519580 - Skip test_session_scroll_visual_viewport.html on android/pgo; r=jmaher
Skip mochitest-chrome test failing frequently on android/pgo. This directory of tests
only runs on Android 4.3, so the manifest annotation is simple.

Discussed in bug; see comment 17.

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

--HG--
extra : moz-landing-system : lando
2019-03-28 19:01:32 +00:00
John Lin
364290c746 Bug 1308405 - p5: Memorize sample buffers in CodecProxy. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D24591

--HG--
extra : moz-landing-system : lando
2019-03-28 18:06:25 +00:00
John Lin
c668fd7d06 Bug 1308405 - p4: Separate buffer from sample object. r=snorp
To prevent new buffer object from being created per frame, either
Sample.CREATOR has to keep track of all buffers from every remote codec,
or the client must memorize seen buffers and avoid asking for them again
and again. The former saves client code from modifications but complicates
the implementation of Sample, a data structure class, while the latter
requires changes to client code but avoid overcomplicating Sample.CREATOR
implementation.

The 2nd approach is taken:
- move SampleBuffer out of Sample, and update clients accordingly
- add a new IPC method for clients to get the buffers only when needed

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

--HG--
extra : moz-landing-system : lando
2019-03-28 18:06:23 +00:00
John Lin
529784a956 Bug 1308405 - p3: Use sample buffer class directly. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D24589

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/SharedMemBuffer.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/SampleBuffer.java
extra : moz-landing-system : lando
2019-03-28 18:06:19 +00:00
John Lin
385270e9ab Bug 1308405 - p2: Nodify and recycle sample objects. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D24588

--HG--
extra : moz-landing-system : lando
2019-03-28 18:05:08 +00:00
James Willcox
781081cb06 Bug 1538702 - Allow recreating GeckoSession.SessionState from String r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D24709

--HG--
extra : moz-landing-system : lando
2019-03-28 16:52:42 +00:00
Brindusan Cristian
b2d1b1aad3 Backed out changeset fc86bfeadfde (bug 1538702) as requested by snorp on irc for causing a merge conflict. 2019-03-28 18:52:37 +02:00
James Willcox
af5af0a0d1 Bug 1538702 - Allow recreating GeckoSession.SessionState from String r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D24709

--HG--
extra : moz-landing-system : lando
2019-03-28 16:42:29 +00:00
Francesco Lodolo (:flod)
df64b4e33f Bug 1538734 - Add Bengali (bn) to single and multilocales builds, remove bn-BD and bn-IN r=Callek
Differential Revision: https://phabricator.services.mozilla.com/D24722

--HG--
extra : moz-landing-system : lando
2019-03-28 13:13:26 +00:00
Francesco Lodolo (:flod)
f26673372a Bug 1539620 - Add a brand product string that doesn't change across different channels r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D25193

--HG--
extra : moz-landing-system : lando
2019-03-28 11:44:41 +00:00
Oana Pop Rus
226e6c59d9 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-28 12:23:56 +02:00
Oana Pop Rus
47e94b5d6e Merge inbound to mozilla-central. a=merge 2019-03-28 12:11:35 +02:00
Mark Banner
dba6983e75 Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23850

--HG--
extra : moz-landing-system : lando
2019-03-28 09:38:14 +00:00
Botond Ballo
cba0362f99 Bug 1538762 - Ensure the Android session store respects the layout scroll range. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D25144

--HG--
extra : moz-landing-system : lando
2019-03-28 00:38:19 +00:00
Noemi Erli
cfaf79673c Backed out changeset e5117d2f9311 (bug 1533051) for Android xpcshell failures CLOSED TREE 2019-03-28 01:33:00 +02:00
Ting-Yu Lin
0dbfbb7dff Bug 1539256 - Remove enabling AccessibleCaret pref in Android robocop test. r=snorp
Bug 1493317 enables AccessibleCaret in unit tests. No need to manually
flip the pref.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 18:17:03 +00:00
Andrew Swan
e5f560a07b Bug 1537723 Enable LWT updates on Android r=mixedpuppy
Also ensure that LightweightThemeManager.updateOneTheme() returns
even if the update request fails.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 17:07:01 +00:00
Nick Alexander
3dce09e76f Bug 1533051 - Package GeckoView prefs at architecture-specific paths for Android fat AAR/GeckoView multi-architecture builds. r=glandium
Bug 1533425 makes Gecko try to load from $ARCH/greprefs.js, etc on
Android.  This patch teaches the packager to put preferences into
those architecture-specific locations for that code to find.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 17:35:26 +00:00
Botond Ballo
109671c99f Bug 1531057 - Fix eslint failure due to trailing whitespace (CLOSED TREE).
Differential Revision: https://phabricator.services.mozilla.com/D25136

--HG--
extra : moz-landing-system : lando
2019-03-27 20:54:08 +00:00
Agi Sferro
337193c3e5 Bug 1536929 - [geckoview] Use const when possible and enforce it. r=geckoview-reviewers,esawin
Generated with ./mach eslint mobile/android/modules/geckoview --fix

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

--HG--
extra : moz-landing-system : lando
2019-03-27 20:56:16 +00:00
Botond Ballo
df3b5e6d4a Bug 1531057 - Add a test to check that session history respects the layout scroll range. r=JanH
Differential Revision: https://phabricator.services.mozilla.com/D23753

--HG--
extra : moz-landing-system : lando
2019-03-27 20:20:05 +00:00
Eugen Sawin
b185068750 Bug 1530050 - [1.0] Add recommended and strict content blocking categories selections for safer app defaults. r=snorp,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D24967

--HG--
extra : moz-landing-system : lando
2019-03-27 14:39:11 +00:00
Nick Alexander
9890db9633 Bug 1533704 - Don't make GeckoView's remote debugging setting control Marionette. r=snorp
We really want GeckoView's single remote debugigng setting to
determine whether the engine can be remote controlled, but we're not
quite there yet.  The devtools use an abstract UNIX socket for this
purpose, but Marionette uses a TCP socket that defaults to port 2828,
and that means we see cross-App clashes for that port.

Functionally this means that enabling Marionette reverts to the "old
method": either pass the "--marionette" command line argument or set
the `MOZ_MARIONETTE=1` environment variable to enable.  Callers remain
responsible for ensuring that the Marionette port is available.

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

--HG--
extra : moz-landing-system : lando
2019-03-28 20:28:14 +00:00
Kris Maglione
e7796b70b4 Bug 1525511: Part 1 - Remove LWT install gunk. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D18781

--HG--
extra : rebase_source : cfd98054b2098bc4fee6eeea0736bcd42a036bcf
2019-02-05 21:29:58 -08:00
Csoregi Natalia
888d83038c Merge mozilla-central to autoland. CLOSED TREE 2019-03-26 19:45:08 +02:00
Csoregi Natalia
d105b005e8 Merge inbound to mozilla-central. a=merge 2019-03-26 19:43:22 +02:00
Francesco Lodolo (:flod)
c648004583 Bug 1535288 - Set up productization for Bengali (bn) on Firefox desktop and Firefox for Android r=mkaply
- Use Bengali (bn-BD) as base
- Keep amazon-in on Desktop (from bn-IN)
- Remove rediff (from bn-IN)

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

--HG--
extra : moz-landing-system : lando
2019-03-26 12:09:26 +00:00
Ian Moody
50dc489a10 Bug 1538766 - mobile/ manual ESLint no-throw-literal fixes. r=petru
Differential Revision: https://phabricator.services.mozilla.com/D24732

--HG--
extra : moz-landing-system : lando
2019-03-26 08:29:54 +00:00
Ian Moody
2fb24e7073 Bug 1538766 - mobile/ automated ESLint no-throw-literal fixes. r=petru
Result of running:
$ mach eslint -funix mobile/ | sed -Ee 's/:.+//' - | xargs sed -E \
    -e 's/throw ((["`])[^"]+\2);/throw new Error(\1);/g' \
    -e 's/throw ((["`])[^"]+\2 \+ [^ ";]+);/throw new Error(\1);/g' \
    -e 's/throw \(/throw new Error(/g' -i

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

--HG--
extra : moz-landing-system : lando
2019-03-26 08:29:37 +00:00
Makoto Kato
8986b3b0e4 Bug 1537885 - Use cmd_copy for copy command r=geckoview-reviewers,snorp
Although I change to use editor by previous fix of bug 676268, it is not
good for non-editable content. cmd_copy can support editable and non-editable.

GV already uses cmd_copy for this.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 16:34:07 +00:00
Brindusan Cristian
8d646b09cd Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-26 02:28:46 +02:00
Eugen Sawin
51630bd49f Bug 1530789 - [4.0] Fix style. r=me 2019-03-25 17:29:37 +01:00
Randall Barker
c98140dbeb Bug 1537964 - Call bindService() with BIND_IMPORTANT r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D24418

--HG--
extra : moz-landing-system : lando
2019-03-25 14:29:54 +00:00
Eugen Sawin
c8131a108b Bug 1530789 - [3.0] Update API changelog. r=agi
Differential Revision: https://phabricator.services.mozilla.com/D24715
2019-03-25 16:53:12 +01:00
Eugen Sawin
9e20531da6 Bug 1530789 - [2.0] Initialize the SafeBrowsing module only in the parent process. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D21422
2019-03-25 16:53:12 +01:00
Eugen Sawin
3c7d2391d5 Bug 1530789 - [1.2] Extend Content Blocking API: cryptomining protection. r=geckoview-reviewers,dimi,snorp,Ehsan
Tags: #secure-revision

Differential Revision: https://phabricator.services.mozilla.com/D21410
2019-03-25 16:53:11 +01:00
Botond Ballo
9a387fad8c Bug 1531535 - Expose the ability to do a visual smooth scroll in nsIDOMWindowUtils. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D24555

--HG--
extra : moz-landing-system : lando
2019-03-23 20:23:54 +00:00
shindli
3234d0805e Backed out 2 changesets (bug 1530789) for linting failures on Android
Backed out changeset 2038ef43f89a (bug 1530789)
Backed out changeset 3f03780957a4 (bug 1530789)
2019-03-23 12:36:33 +02:00
Dennis Schubert
957d469f60 Bug 1536767 - Import WebCompat GoFaster 4.1.0 sources. r=kmag,rhelmer
Differential Revision: https://phabricator.services.mozilla.com/D24150

--HG--
extra : moz-landing-system : lando
2019-03-22 18:21:23 +00:00
Eugen Sawin
2276021d2f Bug 1530789 - [2.0] Initialize the SafeBrowsing module only in the parent process. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D21422

--HG--
extra : moz-landing-system : lando
2019-03-22 20:46:04 +00:00
Eugen Sawin
d94b0ddbac Bug 1530789 - [1.0] Extend Content Blocking API: cryptomining protection. r=geckoview-reviewers,dimi,snorp,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21410

--HG--
extra : moz-landing-system : lando
2019-03-22 20:44:55 +00:00
Vlad Baicu
033681c09c Bug 1536866 - Hide enter guest session option from the menu. r=petru
Differential Revision: https://phabricator.services.mozilla.com/D24212

--HG--
extra : moz-landing-system : lando
2019-03-22 06:51:51 +00:00
Dylan Roeh
57859e9bc1 Bug 1463878 - Update GeckoView API to reflect new session storage and remove old API and associated dead code. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D23697

--HG--
extra : moz-landing-system : lando
2019-03-22 00:51:13 +00:00
Dylan Roeh
814b5249c6 Bug 1463878 - Add SessionStateAggregator.js (mostly lifted from desktop code with modifications to reflect GV's needs) and code to send incremental session storage updates to Java. r=snorp,JanH
Differential Revision: https://phabricator.services.mozilla.com/D23696

--HG--
extra : moz-landing-system : lando
2019-03-22 00:51:11 +00:00
Oana Pop Rus
cacc0b68c1 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-22 00:58:41 +02:00
Coroiu Cristina
8460161d60 Backed out 2 changesets (bug 1463878) for ESlint and checkstyle failure on a CLOSED TREE
Backed out changeset 2cc833baea24 (bug 1463878)
Backed out changeset 11415a3e72f6 (bug 1463878)
2019-03-22 00:18:04 +02:00
Dylan Roeh
889b7b818e Bug 1463878 - Update GeckoView API to reflect new session storage and remove old API and associated dead code. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D23697

--HG--
extra : moz-landing-system : lando
2019-03-21 21:29:41 +00:00
Dylan Roeh
0ed4fe6808 Bug 1463878 - Add SessionStateAggregator.js (mostly lifted from desktop code with modifications to reflect GV's needs) and code to send incremental session storage updates to Java. r=snorp,JanH
Differential Revision: https://phabricator.services.mozilla.com/D23696

--HG--
extra : moz-landing-system : lando
2019-03-21 21:29:33 +00:00
Matt Brubeck
db15c0c9c7 Bug 1527778 - Fix reloading of content modules on procses switching. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D24102

--HG--
extra : moz-landing-system : lando
2019-03-21 16:25:50 +00:00
Eitan Isaacson
05665102b2 Bug 1536123 - Move virtual cursor to caret offset. r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D23911

--HG--
extra : moz-landing-system : lando
2019-03-21 16:20:51 +00:00
John Lin
7dd2bbf7e9 Bug 1499224 - p2: Keep remote decoder process alive when client record is good. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D23738

--HG--
extra : moz-landing-system : lando
2019-03-21 15:49:23 +00:00
John Lin
61cf142d51 Bug 1499224 - p1: keep record of active remote objects in MediaManager. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D23736

--HG--
extra : moz-landing-system : lando
2019-03-21 15:49:36 +00:00
Olli Pettay
6143d2b90d Bug 1536781, use the same paint suppression delay on mobile and desktop, r=emilio
Differential Revision: https://phabricator.services.mozilla.com//D24804

--HG--
extra : rebase_source : 5fcdd643e253dcad6ab2f0c94ed3addd48724249
2019-03-25 14:44:56 +02:00
shindli
12c0629a98 Merge mozilla-central to inbound. a=merge CLOSED TREE
--HG--
rename : js/src/tests/non262/fields/basic.js => js/src/jit-test/tests/fields/basic.js
rename : js/src/tests/non262/fields/literal.js => js/src/jit-test/tests/fields/literal.js
rename : js/src/tests/non262/fields/mixed_methods.js => js/src/jit-test/tests/fields/mixed_methods.js
rename : js/src/tests/non262/fields/quirks.js => js/src/jit-test/tests/fields/quirks.js
2019-03-21 06:36:37 +02:00
Brindusan Cristian
3d5d7a9315 Backed out 2 changesets (bug 1484640) for ESlint failure at browser.js. CLOSED TREE
Backed out changeset 54f421232d08 (bug 1484640)
Backed out changeset 5914426902ac (bug 1484640)
2019-03-20 21:24:22 +02:00
championshuttler
e2970d86c2 Bug 1484640 - Enable ESLint for mobile/android/chrome/content/browser.js (Manual Changes). r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D22891

--HG--
extra : moz-landing-system : lando
2019-03-16 13:13:00 +00:00
championshuttler
ff578b9c57 Bug 1484640 - Enable ESLint for mobile/android/chrome/content/browser.js (Automatic Changes). r=snorp
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-03-20 19:00:03 +00:00
Eitan Isaacson
ec2f69700f Bug 1535701 - Followup to fix checkstyle and eslint.
Differential Revision: https://phabricator.services.mozilla.com/D24232

--HG--
extra : moz-landing-system : lando
2019-03-20 18:17:23 +00:00
Eitan Isaacson
65c8912aaf Bug 1535701 - Focus GeckoView when interacting with TalkBack. r=geckoview-reviewers,snorp
When TalkBack receives a focus event, it redirects the accessibility focus (the green cursor) to the focused element. This is an important driver for the screen reader experience.

Since the focus mode of the GeckoView is "focusable in touch", the focused state of the view is very arbitrary when using TalkBack since the user never directly touches the view. The only way for the view to regain focus is if a control or link in the content is interacted with.

TalkBack user, who is explicitly interacting with the webview/geckoview would expect it to have focus, and to have the accessibility focus redirected in the page in the case of script-driven focus events.

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

--HG--
extra : moz-landing-system : lando
2019-03-20 16:48:40 +00:00
Makoto Kato
ba0df52fa8 Bug 676268 - Part 2. Use editor API instead of accessing clipboard directly. r=geckoview-reviewers,snorp
Summary:
Actually, Fennec accesses clipboard directly when using action bar. To allow
`text/html` mime type, we should use editor API instead.

Also, Fennec doesn't fire clipboard event for copy and cut since it doesn't
use editor API (or `cmd_*` command). So we will be fixed by using editor API.

GeckoView uses `cmd_*` command, so this doesn't occur on GV.

Reviewers: #geckoview-reviewers, snorp

Reviewed By: #geckoview-reviewers, snorp

Bug #: 676268

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

--HG--
extra : rebase_source : 57bdc8c3868124b96baf3866b54bac91d3742131
2019-03-20 14:44:00 +09:00
Makoto Kato
ae43a8cf0a Bug 676268 - Part 1. Support text/html on Android clipboard backend. r=geckoview-reviewers,snorp
Summary: Actually, we only support `text/unicode` mime type on Android clipboard backend.  But Android API 16+ supports `text/html`, so we should support this type since Chrome/Blink already supports it.

Reviewers: #geckoview-reviewers, snorp

Reviewed By: #geckoview-reviewers, snorp

Bug #: 676268

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

--HG--
extra : rebase_source : 17ef0aa06b83b812bb9bccfab93a72e0b37f9652
2019-03-20 14:47:19 +09:00
Andreea Pavel
dd962029e9 Backed out 2 changesets (bug 676268) for failing android checkstyle
Backed out changeset 85d03febdb70 (bug 676268)
Backed out changeset cfa2c6443a6d (bug 676268)

--HG--
extra : rebase_source : 603eb3f1d13a11a98e2f92c3fc41c92d408cec6d
2019-03-20 07:16:34 +02:00
Makoto Kato
7bbf5f37a7 Bug 676268 - Part 2. Use editor API instead of accessing clipboard directly r=geckoview-reviewers,snorp
Actually, Fennec accesses clipboard directly when using action bar. To allow
`text/html` mime type, we should use editor API instead.

Also, Fennec doesn't fire clipboard event for copy and cut since it doesn't
use editor API (or `cmd_*` command). So we will be fixed by using editor API.

GeckoView uses `cmd_*` command, so this doesn't occur on GV.

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

--HG--
extra : moz-landing-system : lando
2019-03-11 15:37:51 +00:00
Makoto Kato
61804ba4b3 Bug 676268 - Part 1. Support text/html on Android clipboard backend r=geckoview-reviewers,snorp
Actually, we only support `text/unicode` mime type on Android clipboard backend.  But Android API 16+ supports `text/html`, so we should support this type since Chrome/Blink already supports it.

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

--HG--
extra : moz-landing-system : lando
2019-03-11 15:35:54 +00:00
Mike Shal
03cc695f08 Bug 632954 - Add Android PGO mozconfigs; r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D22819

--HG--
extra : moz-landing-system : lando
2019-03-18 23:52:43 +00:00
Ian Moody
167f623a3e Bug 1246594 - Enable ESLint rule no-throw-literal by default. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D24088

--HG--
extra : moz-landing-system : lando
2019-03-19 22:02:42 +00:00
Hiroyuki Ikezoe
36b25f6fb1 Bug 1532850 - Implement the backend for prefers-color-scheme on Android. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D22272

--HG--
extra : moz-landing-system : lando
2019-03-19 10:10:52 +00:00
Coroiu Cristina
3a2e8a75c8 Backed out 2 changesets (bug 1532850) for apilint failure on a CLOSED TREE
Backed out changeset da87a2079285 (bug 1532850)
Backed out changeset d44836af07e0 (bug 1532850)
2019-03-19 12:01:40 +02:00
Hiroyuki Ikezoe
8fb919be3c Bug 1532850 - Implement the backend for prefers-color-scheme on Android. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D22272

--HG--
extra : moz-landing-system : lando
2019-03-19 09:43:41 +00:00
Coroiu Cristina
45aa39f3f6 Backed out 2 changesets (bug 1532850) for Android bustage on a CLOSED TREE
Backed out changeset d32559ed093f (bug 1532850)
Backed out changeset 439686eac8d6 (bug 1532850)
2019-03-19 11:20:24 +02:00
Thomas Wisniewski
3e39030d2f Bug 1535479 - Have Report Site Issue detect the FastClick JS library; r=aswan
Have Report Site Issue detect the FastClick JS library

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

--HG--
extra : moz-landing-system : lando
2019-03-18 23:44:51 +00:00
Hiroyuki Ikezoe
16874aaaff Bug 1532850 - Implement the backend for prefers-color-scheme on Android. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D22272

--HG--
extra : moz-landing-system : lando
2019-03-18 22:57:44 +00:00
Edouard Oger
9928a5bda4 Bug 1534290 p3 - Use correct search criteria to find original login. r=nalexander
Depends on D23234

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

--HG--
extra : moz-landing-system : lando
2019-03-18 16:23:04 +00:00
Edouard Oger
5092501ede Bug 1534290 p2 - Touch timePasswordChanged on password modification. r=nalexander
Depends on D23233

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

--HG--
extra : moz-landing-system : lando
2019-03-18 16:22:14 +00:00
Edouard Oger
ad5d28eee0 Bug 1534290 p1 - Make login item host read-only. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D23233

--HG--
extra : moz-landing-system : lando
2019-03-18 16:22:02 +00:00
Gurzau Raul
b0e75ab0e1 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-18 23:44:31 +02:00
Brindusan Cristian
7655032f91 Backed out changeset f16aa91c7d4c (bug 1534802) for android ccov bustages. a=backout 2019-03-18 15:38:01 +02:00
Sylvestre Ledru
2dc83b1ba4 Bug 1535949 - browser.js: Fix typo in the identifier r=JanH
Differential Revision: https://phabricator.services.mozilla.com/D23812

--HG--
extra : moz-landing-system : lando
2019-03-17 20:41:46 +00:00
James Willcox
f05a94d5e7 Bug 1534802 - Don't enable code coverage for gradle-dependencies job r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D23739

--HG--
extra : moz-landing-system : lando
2019-03-15 22:24:02 +00:00
Ting-Yu Lin
7f6824aa03 Bug 1493317 Part 2 - Enable AccessibleCaret in unit tests. r=jchen
And use correct AccessibleCaret preference to disable it individually in tests.

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

--HG--
extra : moz-landing-system : lando
2019-03-16 07:38:34 +00:00
Narcis Beleuzu
7226cefbfc Backed out changeset 189c2c75a5ae (bug 1534802) for causing TL bustages 2019-03-15 23:54:51 +02:00
James Willcox
4f634bb55a Bug 1440601 - Disable TabSource on Android r=petru
Differential Revision: https://phabricator.services.mozilla.com/D23575

--HG--
extra : source : d83d3c63a428e137fcd18b8c4b1905c79f97d703
2019-03-15 09:00:38 +00:00
Narcis Beleuzu
d37537b6a1 Backed out changeset d83d3c63a428 (bug 1440601) for causing TL bustages. 2019-03-15 23:48:05 +02:00
Agi Sferro
82fc0b279b Bug 1512274 - Enable Checkstyle for GeckoView. r=geckoview-reviewers,nalexander,snorp
Differential Revision: https://phabricator.services.mozilla.com/D23692

--HG--
extra : moz-landing-system : lando
2019-03-15 21:21:57 +00:00
Agi Sferro
cc987caa5a Bug 1512274 - [geckoview] Remove unused imports. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D23691

--HG--
extra : moz-landing-system : lando
2019-03-15 21:21:47 +00:00
Agi Sferro
54ed5286e9 Bug 1512274 - [geckoview] Avoid star imports. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D23690

--HG--
extra : moz-landing-system : lando
2019-03-15 21:21:43 +00:00
Agi Sferro
568a8b3da0 Bug 1512274 - [geckoview] Fix indentation. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D23689

--HG--
extra : moz-landing-system : lando
2019-03-15 21:21:34 +00:00
Agi Sferro
2dd021c9ae Bug 1512274 - [geckoview] LeftCurly checkstyle fixes r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D23688

--HG--
extra : moz-landing-system : lando
2019-03-15 21:21:24 +00:00
Agi Sferro
5ab4f6d887 Bug 1512274 - [geckoview] Make all private member variable be mCamelCase. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D23687

--HG--
extra : moz-landing-system : lando
2019-03-15 21:21:15 +00:00
Agi Sferro
d2c60bfc54 Bug 1512274 - [geckoview] Make all local variables be lowerCamelCase. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D23686

--HG--
extra : moz-landing-system : lando
2019-03-15 21:21:03 +00:00
Agi Sferro
2cb8f2bc6f Bug 1512274 - [geckoview] Make all constants actually final. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D23685

--HG--
extra : moz-landing-system : lando
2019-03-15 21:20:54 +00:00
Agi Sferro
117e642330 Bug 1512274 - [geckoview] Make all argument names be lowerCamelCase. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D23684

--HG--
extra : moz-landing-system : lando
2019-03-15 21:20:44 +00:00
Agi Sferro
99ddd29089 Bug 1512274 - [geckoview] Add final to all methods in GeckoView. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D23683

--HG--
extra : moz-landing-system : lando
2019-03-15 21:20:35 +00:00
Agi Sferro
789b04a378 Bug 1512274 - [geckoview] Don't change value of method arguments. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D23682

--HG--
extra : moz-landing-system : lando
2019-03-15 21:20:20 +00:00
Narcis Beleuzu
1e8739f8d7 Backed out 11 changesets (bug 1512274) for TL bustages. CLOSED TREE
Backed out changeset 9f34d0075a73 (bug 1512274)
Backed out changeset 6ca9fc4956d0 (bug 1512274)
Backed out changeset 9a9d3c9c124a (bug 1512274)
Backed out changeset 670e07131f14 (bug 1512274)
Backed out changeset 161731389a46 (bug 1512274)
Backed out changeset c34445b1db88 (bug 1512274)
Backed out changeset 60897ab00574 (bug 1512274)
Backed out changeset 5d02f27fe174 (bug 1512274)
Backed out changeset 380cdbe5557c (bug 1512274)
Backed out changeset 58642fa9c95b (bug 1512274)
Backed out changeset 3812d6760379 (bug 1512274)
2019-03-15 21:11:47 +02:00
Botond Ballo
dafe6fcdd9 Bug 1137890 - Let containerless scrolling ride the trains. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D23370

--HG--
extra : moz-landing-system : lando
2019-03-15 18:12:27 +00:00
Agi Sferro
e6c5f1c0b2 Bug 1512274 - Enable Checkstyle for GeckoView. r=geckoview-reviewers,nalexander,snorp
Depends on D23691

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

--HG--
extra : moz-landing-system : lando
2019-03-15 18:10:27 +00:00
Agi Sferro
1b01ddf44b Bug 1512274 - [geckoview] Remove unused imports. r=geckoview-reviewers,snorp
Depends on D23690

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

--HG--
extra : moz-landing-system : lando
2019-03-15 18:10:05 +00:00
Agi Sferro
c42ac4fa46 Bug 1512274 - [geckoview] Avoid star imports. r=geckoview-reviewers,snorp
Depends on D23689

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

--HG--
extra : moz-landing-system : lando
2019-03-15 18:09:52 +00:00
Agi Sferro
2e05ec76a1 Bug 1512274 - [geckoview] Fix indentation. r=geckoview-reviewers,snorp
Depends on D23688

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

--HG--
extra : moz-landing-system : lando
2019-03-15 18:09:14 +00:00
Agi Sferro
042e67c91f Bug 1512274 - [geckoview] LeftCurly checkstyle fixes r=geckoview-reviewers,snorp
Depends on D23687

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

--HG--
extra : moz-landing-system : lando
2019-03-15 18:08:51 +00:00
Agi Sferro
bd18c381ab Bug 1512274 - [geckoview] Make all private member variable be mCamelCase. r=geckoview-reviewers,snorp
Depends on D23686

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

--HG--
extra : moz-landing-system : lando
2019-03-15 18:08:49 +00:00
Agi Sferro
3317685af3 Bug 1512274 - [geckoview] Make all local variables be lowerCamelCase. r=geckoview-reviewers,snorp
Depends on D23685

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

--HG--
extra : moz-landing-system : lando
2019-03-15 18:08:42 +00:00
Agi Sferro
b42d737270 Bug 1512274 - [geckoview] Make all constants actually final. r=geckoview-reviewers,snorp
Depends on D23684

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

--HG--
extra : moz-landing-system : lando
2019-03-15 18:08:40 +00:00
Agi Sferro
176ef70e3b Bug 1512274 - [geckoview] Make all argument names be lowerCamelCase. r=geckoview-reviewers,snorp
Depends on D23683

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

--HG--
extra : moz-landing-system : lando
2019-03-15 18:08:38 +00:00
Agi Sferro
287a835f12 Bug 1512274 - [geckoview] Add final to all methods in GeckoView. r=geckoview-reviewers,snorp
Depends on D23682

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

--HG--
extra : moz-landing-system : lando
2019-03-15 18:08:36 +00:00
Agi Sferro
8a7237ff44 Bug 1512274 - [geckoview] Don't change value of method arguments. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D23682

--HG--
extra : moz-landing-system : lando
2019-03-15 18:08:34 +00:00
Eitan Isaacson
c35dbb6950 Bug 1479042 - Handle text insertion and name change events as live regions and announce. r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D21612

--HG--
extra : moz-landing-system : lando
2019-03-15 23:10:42 +00:00
James Willcox
35c2a7e52a Bug 1534802 - Remove unused GeckoView delegate overrides in Fennec r=petru
Differential Revision: https://phabricator.services.mozilla.com/D23226

--HG--
extra : moz-landing-system : lando
2019-03-15 08:50:11 +00:00
James Willcox
6d80f1df21 Bug 1440601 - Disable TabSource on Android r=petru
Differential Revision: https://phabricator.services.mozilla.com/D23575

--HG--
extra : moz-landing-system : lando
2019-03-15 09:00:38 +00:00
Henrik Skupin
635199bb7b Bug 1530979 - Send custom "marionette-startup-requested" observer notification to start Marionette in Fennec. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D23488

--HG--
extra : moz-landing-system : lando
2019-03-15 12:51:07 +00:00
Vlad Baicu
acdf328bb6 Bug 1531047 - Part 2: Refactor TabQueue to a foreground service. r=JanH
Refactored the TabQueueService to be a foreground service from Android O
onwards. The service now uses a foreground notification that briefly informs
the user that a new tab is being added to the queue.

Depends on D23528

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

--HG--
extra : moz-landing-system : lando
2019-03-15 11:21:29 +00:00
Vlad Baicu
02e4817753 Bug 1531047 - Part 1: Some code cleanup. r=petru
Differential Revision: https://phabricator.services.mozilla.com/D23528

--HG--
extra : moz-landing-system : lando
2019-03-15 11:21:02 +00:00
Razvan Maries
b5f0d05bc9 Merge mozilla-inbound to mozilla-central a=merge 2019-03-15 05:40:21 +02:00
Razvan Maries
1cfbd79a4e Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-03-14 23:50:44 +02:00
Agi Sferro
3960667956 Bug 1535013: [geckoview] Add default impls to all interfaces. r=snorp
This also upgrades apilint to 0.1.8 to enforce that all interfaces have default
impls.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 16:48:57 +00:00
Dorel Luca
2d22ab9308 Backed out 3 changesets (bug 1522451) for eslint failure
Backed out changeset bd7007ecd0db (bug 1522451)
Backed out changeset d291cd16ef76 (bug 1522451)
Backed out changeset 6fbcde5da1c1 (bug 1522451)
2019-03-14 18:07:15 +02:00
Andreea Pavel
d6a864b0c0 Backed out 4 changesets (bug 1533840, bug 1522451) for failing dom/manifest/test/test_ManifestProcessor_background_color.html on a CLOSED TREE
Backed out changeset 4fd7ce83efe1 (bug 1533840)
Backed out changeset 5a892aa56e37 (bug 1522451)
Backed out changeset 2ddf151f9535 (bug 1522451)
Backed out changeset 49ebb69e8893 (bug 1522451)
2019-03-14 23:02:15 +02:00
James Willcox
62668b86fc Bug 1533840 - Add convenience methods for dealing with WebRequest/WebResponse bodies r=geckoview-reviewers,agi,rbarker
Differential Revision: https://phabricator.services.mozilla.com/D22748

--HG--
extra : moz-landing-system : lando
2019-03-14 20:18:33 +00:00
Petru Lingurar
23317f68c0 Bug 1534875 - Remove SearchWidgetConfigurationActivity from search's appwidget-provider; r=VladBaicu
This was a leftover from an initial implementation which needed to track
certain events related to the user adding the search widget.
Otherwise it is not needed as we don't actually expose any widget settings to
be configured by the user before adding it.
Turns out this Activity would actually mess with our PendingIntents which would
not fire for when tapping search widget's elements.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 17:13:32 +00:00
James Willcox
98778b5ae2 Bug 1533425 - Look for architecture-specific greprefs.js files on Android r=njn
We want to publish a multi-architecture AAR for GeckoView which includes
a single omni.ja, but we archicture-specific changes in greprefs.js that
prevent this from working. This patch causes us to try to read an
architecture-specific greprefs.js first, which will be provided by the
packaging process for the fat AAR.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 19:37:03 +00:00
James Willcox
1b12f90b4e Bug 1522451 - Add ContentDelegate.onWebAppManifest() r=geckoview-reviewers,agi,droeh
This delivers a parsed and validated Web App Manifest to the
application, if present, during the page load process.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 19:18:01 +00:00
James Willcox
31161b8c36 Bug 1522451 - Add asset support to HttpBin r=geckoview-reviewers,agi
This lets us request, e.g. '/assets/www/hello.html'.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 16:45:04 +00:00
James Willcox
7f67f3cebb Bug 1522451 - Add ContentDelegate.onWebAppManifest() r=geckoview-reviewers,agi,droeh
This delivers a parsed and validated Web App Manifest to the
application, if present, during the page load process.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 15:32:57 +00:00
James Willcox
3ff87c0842 Bug 1522451 - Add asset support to HttpBin r=geckoview-reviewers,agi
This lets us request, e.g. '/assets/www/hello.html'.

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

--HG--
extra : moz-landing-system : lando
2019-03-11 19:15:55 +00:00
Petru Lingurar
263b5fbffd Bug 1534488 - Optimize the imports related to the search widget functionality; r=VladBaicu
Depends on D23477

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

--HG--
extra : moz-landing-system : lando
2019-03-14 12:48:22 +00:00
Petru Lingurar
505230c530 Bug 1534488 - Cleanup previous state before entering editing mode for search; r=VladBaicu
We need to ensure that nothing from the previous app state would prevent a
smooth flow for the search widget UX.
As such, in the event that they were left open, we will close the options menu
and the tabs tray before entering in tab editing mode for search.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 12:48:04 +00:00
Andrei Lazar
4e47ed126e Bug 1534207 Search Widget missing TELEMETRY probe for searches initiated r=petru
Added a telemetry probe (unique source value) to allow data science to measure percentage of searches initiated from the widget.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 16:10:41 +00:00
Nathan Froyd
6d4137ff36 Bug 1534159 - remove exceptions for Android and Darwin from libstdcxx checks; r=glandium
The only place we'd need the compat libraries would be for host
binaries, and those shouldn't be a problem given that our system images
are new enough.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 22:24:20 +00:00
Dustin J. Mitchell
aa3ebe8988 Bug 1535171 - fix missed uses of no-argument get_root_url r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D23416

--HG--
extra : moz-landing-system : lando
2019-03-13 23:10:16 +00:00
Botond Ballo
a986312833 Bug 1517895 - Wait for mozvisualscroll explicitly in the session store tests. r=JanH
SSTabScrollCaptured can sometimes be fired for other reasons, causing us to
query the visual scroll position before it has been updated.

Not explicitly waiting for SSTabScrollCaptured is also safe in this case
because we're only querying the session store's view of the scroll position
*after* closing the tab, which will flush any pending scroll position updates
in the session store.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 16:00:07 +00:00
Botond Ballo
fd96b481ac Bug 1517895 - Use scrollToVisual() in the session store tests. r=JanH
Differential Revision: https://phabricator.services.mozilla.com/D19874

--HG--
extra : moz-landing-system : lando
2019-03-13 16:00:07 +00:00
Gijs Kruitbosch
fba25eeb23 Bug 1534943 - also update android CSS for font-size changes, r=JanH
Differential Revision: https://phabricator.services.mozilla.com/D23325

--HG--
extra : moz-landing-system : lando
2019-03-13 19:40:26 +00:00
Geoff Brown
2390d7a2a4 Bug 1532435 - Skip junit inputConnection test on debug only, to save lots of time; r=snorp
Disabling inputConnection on debug saves about 15 minutes of time, which helps
us avoid the timeouts seen in this bug. It continues running on opt, where it
runs much faster.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 15:26:36 +00:00
Eitan Isaacson
50711a42d5 Bug 1531579 - Refresh viewport cache on tree mutations and fire android event. r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D21610

--HG--
extra : moz-landing-system : lando
2019-03-12 21:58:37 +00:00
James Willcox
137efa1bc6 Bug 1498721 - Add default methods to GeckoView delegate interfaces r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D23016

--HG--
extra : moz-landing-system : lando
2019-03-12 14:19:45 +00:00
Andrei Lazar
69cf1e9a01 Bug 1533723 Missing variants resources for search widget preview r=petru
Added preview assets for search widget within all variants.

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

--HG--
extra : moz-landing-system : lando
2019-03-12 14:38:26 +00:00
Dorel Luca
df51e27b6a Backed out changeset 583048926c12 (bug 1531579) for Geckoview failure. CLOSED TREE 2019-03-12 01:38:46 +02:00
Eitan Isaacson
adcc1ec434 Bug 1531579 - Refresh viewport cache on tree mutations and fire android event. r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D21610

--HG--
extra : moz-landing-system : lando
2019-03-05 19:28:41 +00:00
Emily Toop
e349b447de Bug 1527716 - Update GVE and Documentation to reflect proper handling of Notification permissions. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D21947

--HG--
extra : moz-landing-system : lando
2019-03-11 15:35:42 +00:00
Petru Lingurar
1520e32465 Bug 1533361 - Force about:home startup tab if the app was opened from the search widget; r=AndreiLazar
If the app was started from the search widget we need to always load about:home
and not the homepage which the user may have set to be another address.

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

--HG--
extra : moz-landing-system : lando
2019-03-11 13:18:06 +00:00
Andrei Lazar
823284d748 Bug 1534205 Search Widget wrong layout after updating period r=petru
Removed search widget update interval in order to prevent bad layout re-configuration.

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

--HG--
extra : moz-landing-system : lando
2019-03-11 10:17:58 +00:00
Petru Lingurar
2be45cf249 Bug 1534074 - Use in place api check to prevent Lint ApiDetector errors; r=AndreiLazar
Previous code was using our own sugary feature26Plus check which Lint doesn't
properly follow.
As such even if the code was properly guarded and behaved correctly Lint would
show errors about improper usage of methods which require higher api levels.
Doing the api check in place ensures it will get picked up by Lint's
ApiDetector and so it will not report about such errors here.

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

--HG--
extra : moz-landing-system : lando
2019-03-11 08:51:29 +00:00
Sylvestre Ledru
e34acc8d48 Bug 1531176 - Split the Google key management between gls and safe browsing r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D21459

--HG--
extra : moz-landing-system : lando
2019-03-10 15:29:41 +00:00
Petru Lingurar
38270c952c Bug 1532613 - Enter editing mode after new "about:home" tab was added; r=AndreiLazar
We'll delay entering editing mode until we are sure the process for adding a
new "about:home" tab completed.
This allows avoiding certain race conditions with the previous state or with
the tab counter animation.

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

--HG--
extra : moz-landing-system : lando
2019-03-08 15:13:55 +00:00
Andrei Lazar
cf929b7617 Bug 1533645 Search widget can trigger the Tab Queue prompt r=petru
Added a flag on the search widget intent in order to skip the tab queue prompt.

Depends on D22314

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

--HG--
extra : moz-landing-system : lando
2019-03-08 20:10:36 +00:00
Andrei Lazar
dd1cc20388 Bug 1526934 Search Widget for Fennec Part 4 - Polish UI using the UX's team layouts r=petru
Polished UI by adding a custom drawable with rounded corners.
Made layouts responsive by setting relative widths.
Handled edge case for 1x1 cell.
Removed unused resources.

Depends on D21685

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

--HG--
rename : mobile/android/services/src/main/res/layout/widget_search_5_col_layout.xml => mobile/android/services/src/main/res/layout/widget_search_default_col_layout.xml
extra : moz-landing-system : lando
2019-03-08 15:05:42 +00:00
Andrei Lazar
e63ba51548 Bug 1531679 Search Widget for Fennec Part 3 - Make it discoverable through Leanplum r=petru
Provided a deep link for the add widget intent.

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

--HG--
extra : moz-landing-system : lando
2019-03-08 15:05:02 +00:00
Andrei Lazar
67097b0731 Bug 1526929 Search Widget for Fennec Part 2 - Wire search widget component with the main component r=petru
Implemented search widget's intent handling in BrowserApp class.

Depends on D20149

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

--HG--
extra : moz-landing-system : lando
2019-03-08 15:04:23 +00:00
Andrei Lazar
752de38105 Bug 1526926 Search Widget for Fennec Part 1 - Add search widget code base r=petru
Added Search widget provider class, declared the provider in the manifest and created mock layout for it.

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

--HG--
extra : moz-landing-system : lando
2019-03-08 15:03:52 +00:00
Csoregi Natalia
afc7afdf16 Backed out 2 changesets (bug 1532850) for apilint failure. CLOSED TREE
Backed out changeset 8feadb1f48f2 (bug 1532850)
Backed out changeset d3eed8f55897 (bug 1532850)
2019-03-09 03:13:56 +02:00
James Willcox
cdb58ae6cf Bug 1522451 - Add ContentDelegate.onWebAppManifest() r=geckoview-reviewers,agi,droeh
This delivers a parsed and validated Web App Manifest to the
application, if present, during the page load process.

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

--HG--
extra : moz-landing-system : lando
2019-03-20 14:44:22 +00:00
James Willcox
c54e1232f7 Bug 1522451 - Add asset support to HttpBin r=geckoview-reviewers,agi
This lets us request, e.g. '/assets/www/hello.html'.

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

--HG--
extra : moz-landing-system : lando
2019-03-20 14:43:21 +00:00
Petru Lingurar
bee3c060d4 Bug 1534213 - Reduce the number of WebpageItemRow layout refreshes; r=JanH
Previously, WebpageItemRow's layout would be updated everytime a new Tab for
it's url would be ADDED/CLOSED/LOCATION_CHANGED to force a recheck of the need
to show the "Switch to tab hint".
To prevent multiple layout refreshes for every such event we will check the
current display status of the "Switch to tab hint" against the newly computed
value after an ADDED/CLOSED/LOCATION_CHANGED event was received.
Eagerly changing the value for 'switchToTabHintShown' along with informing
about the need for layout refresh to prevent any race conditions between
receiving more events and actualy refreshing the layout.
(In my tests I saw ADDED/LOCATION_CHANGE refreshing the same layout needlessly)

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

--HG--
extra : moz-landing-system : lando
2019-03-19 22:02:30 +00:00
Mike Shal
ad14ed9471 Bug 632954 - Add Android PGO mozconfigs; r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D22819

--HG--
extra : source : 503bcac735831eea887393d4759358220bcb6d99
2019-03-18 23:52:43 +00:00
Noemi Erli
b61340c4b0 Backed out 12 changesets (bug 632954) for causing Android Bpgo(run) pending jobs CLOSED TREE
Backed out changeset 429c96e4de32 (bug 632954)
Backed out changeset de8beacc5eb4 (bug 632954)
Backed out changeset c151ebf303ca (bug 632954)
Backed out changeset b96dd954a456 (bug 632954)
Backed out changeset 26031d362333 (bug 632954)
Backed out changeset 097f141a499d (bug 632954)
Backed out changeset 6f5fc0d644dd (bug 632954)
Backed out changeset 53d3443e55d9 (bug 632954)
Backed out changeset 503bcac73583 (bug 632954)
Backed out changeset 142ae187478d (bug 632954)
Backed out changeset 0615c775a0cf (bug 632954)
Backed out changeset 3dfc0e4f8e7c (bug 632954)
2019-03-20 11:58:18 +02:00
Johann Hofmann
1a4514ad76 Bug 1511111 - Convert UrlClassifierSkipListService to static registration. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D20318

--HG--
rename : netwerk/url-classifier/UrlClassifierSkipListService.js => netwerk/url-classifier/UrlClassifierSkipListService.jsm
extra : moz-landing-system : lando
2019-03-08 22:21:39 +00:00
Johann Hofmann
fde7df021a Bug 1511111 - Add nsIUrlClassifierSkipListService to integrate url-classifier with RemoteSettings and pref list updates. r=Ehsan,baku,leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D18597

--HG--
extra : moz-landing-system : lando
2019-03-08 22:21:32 +00:00
Hiroyuki Ikezoe
de3fbc50e9 Bug 1532850 - Implement the backend for prefers-color-scheme on Android. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D22272

--HG--
extra : moz-landing-system : lando
2019-03-09 00:21:21 +00:00
Botond Ballo
0e4341156f Bug 1527675 - Enable containerless scrolling on the nightly channel in GeckoView. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D19684

--HG--
extra : moz-landing-system : lando
2019-03-08 21:42:19 +00:00
Vlad Baicu
924d521c85 Bug 1380854 - Track Sign in and sync finished events in LP.r=petru
Differential Revision: https://phabricator.services.mozilla.com/D22703

--HG--
extra : moz-landing-system : lando
2019-03-08 13:49:09 +00:00
Vlad Baicu
e84d7f028b Bug 1519418 - Replace MMA preferences with sharedPreferences.r=petru
Patch D16319 attempted to clean the MMA code and allow for easier debugging
of LP deeplinks on dev builds. However it introduced a regression because the
MMA preferences were being accessed by the initializing activity. By making
getDeviceId public and static, calling it from another activity would result
in a null value returned. I have refactored the code to use shared preferences
and remove the dependency on other activities.

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

--HG--
extra : moz-landing-system : lando
2019-03-05 17:33:57 +00:00
arthur.iakab
77aa564189 Merge mozilla-central to autoland 2019-03-08 06:41:04 +02:00
arthur.iakab
013bbfceb8 Merge inbound to mozilla-central a=merge 2019-03-08 06:39:50 +02:00
arthur.iakab
eba6cadac2 Merge mozilla-central to mozilla-inbound 2019-03-08 00:19:35 +02:00
Botond Ballo
1db554d611 Bug 1158392 - Enable containerless scrolling on the nightly channel in Fennec. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D19683

--HG--
extra : moz-landing-system : lando
2019-03-07 18:03:32 +00:00
Dan Minor
6b482f0537 Bug 1532756 - Rename geckomediaplugin to gmplugin on Android; r=droeh
In Bug 1514043 we renamed the geckomediaplugin to gmplugin, but missed renaming
it on Android. This prevents the plugin from loading, which breaks OpenH264 in
WebRTC.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 16:24:28 +00:00
Emily Toop
c336620b27 Bug 1528303 - Update GVE to demonstrate how to handle media permissions correctly r=geckoview-reviewers,snorp
Update `onMediaPermissionRequest` documentation to better reflect usage

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

--HG--
extra : moz-landing-system : lando
2019-03-06 15:41:26 +00:00
Ciure Andrei
f18158766f Backed out changeset 3fb6c01dd2b0 (bug 1531176) for causing gradle toolchain bustage CLOSED TREE 2019-03-07 14:23:03 +02:00
Sylvestre Ledru
3efed81946 Bug 1531176 - Split the Google key management between gls and safe browsing r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D21459

--HG--
extra : moz-landing-system : lando
2019-03-07 12:04:53 +00:00
Ciure Andrei
f1a9fa2676 Backed out changeset 0f2b9b0bf9b9 (bug 1531176) for google-geolocation-api-keyfile build bustages CLOSED TREE 2019-03-07 13:58:33 +02:00
Sylvestre Ledru
90181c47ae Bug 1531176 - Split the Google key management between gls and safe browsing r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D21459

--HG--
extra : moz-landing-system : lando
2019-03-07 11:31:18 +00:00
Ciure Andrei
06cf4b1f67 Backed out changeset 6c2e00bcd2bb (bug 1531176) due to google-location-api-keyfile build busatges CLOSED TREE 2019-03-07 10:49:26 +02:00
Sylvestre Ledru
03ac617a44 Bug 1531176 - Split the Google key management between gls and safe browsing r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D21459

--HG--
extra : moz-landing-system : lando
2019-03-06 23:06:10 +00:00
Mike Hommey
544e602cee Bug 1531632 - Initialize environment variables before loading libxul. r=snorp
There are at least two known side effects of initializing it after
loading libxul:
- We can't set LLVM_PROFILE_FILE for the instrumentation part of PGO to
  make the compiler-rt static initializer pick it.
- We can't set MOZ_DEBUG_LINKER to enable the linker debug log (which
  used to work when environment variables were set earlier).

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

--HG--
extra : moz-landing-system : lando
2019-03-08 01:37:44 +00:00
Noemi Erli
ef8332d769 Backed out changeset bf9beb4c67a5 (bug 1531632) for causing multiple failures in remoteautomation.py CLOSED TREE 2019-03-08 02:59:09 +02:00
Mike Hommey
ceb9d1950e Bug 1531632 - Initialize environment variables before loading libxul. r=snorp
There are at least two known side effects of initializing it after
loading libxul:
- We can't set LLVM_PROFILE_FILE for the instrumentation part of PGO to
  make the compiler-rt static initializer pick it.
- We can't set MOZ_DEBUG_LINKER to enable the linker debug log (which
  used to work when environment variables were set earlier).

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

--HG--
extra : moz-landing-system : lando
2019-03-07 22:51:36 +00:00
Timm
1b4c9acdc7 Bug 1510961 - "Class Structure Warning: 'private' method declared 'final'". r=etoop 2019-03-05 17:41:00 +02:00
Makoto Kato
15f9c74d8d Bug 1532526 - Add ATOK Professional to workaround list. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D22071

--HG--
extra : moz-landing-system : lando
2019-03-07 02:07:06 +00:00
Dorel Luca
571984a7b6 Backed out changeset b57ec6985cd1 (bug 1531632) for Geckoview failures. CLOSED TREE
--HG--
extra : rebase_source : bf3f36df156ac78c02b027923af4a9615053fac2
2019-03-07 02:29:50 +02:00
Brindusan Cristian
202a874eff Backed out changeset e908fbc7b930 (bug 1531176) for bc failures at browser_Troubleshoot.js. CLOSED TREE
--HG--
extra : histedit_source : 0f5e92b90439bfb55d617fc234deb4b6f68e654b
2019-03-08 00:07:56 +02:00
Sylvestre Ledru
e4906acdf0 Bug 1531176 - Split the Google key management between gls and safe browsing r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D21459

--HG--
extra : moz-landing-system : lando
2019-03-07 21:05:32 +00:00
Mike Hommey
bccb685e03 Bug 1531632 - Initialize environment variables before loading libxul. r=snorp
There are at least two known side effects of initializing it after
loading libxul:
- We can't set LLVM_PROFILE_FILE for the instrumentation part of PGO to
  make the compiler-rt static initializer pick it.
- We can't set MOZ_DEBUG_LINKER to enable the linker debug log (which
  used to work when environment variables were set earlier).

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

--HG--
extra : moz-landing-system : lando
2019-03-06 15:36:19 +00:00
Mike Hommey
9961a0af3d Bug 1530908 - Don't use different mozconfigs for artifact builds. r=chmanchester
Artifact mozconfigs are not necessarily up-to-date wrt changes to the
nightly mozconfigs, and all in all, shouldn't be much different from
them.

It's just better to use the nightly mozconfigs (or beta on beta, etc.)
and make the mozconfigs themselves handle the few things that need to be
different when the USE_ARTIFACT environment is set (which is now
consistently set by taskcluster)

This does have the side effect of turning builds that actually don't
support artifact builds red when using --artifact on try, instead of
having them silently not be artifact builds as currently happens.

Depends on D21314

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

--HG--
extra : moz-landing-system : lando
2019-03-06 22:48:05 +00:00
Mike Hommey
50e4660cb8 Bug 1530908 - Move --enable-artifact-build-symbols to mozconfig.artifact. r=chmanchester
Depends on D21313

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

--HG--
extra : moz-landing-system : lando
2019-03-05 06:58:05 +00:00
Mike Hommey
d876d02d9a Bug 1530908 - Use an environment variable to enable LTO on automation. r=chmanchester
This allows to disable it more easily for artifact builds.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 22:47:08 +00:00
Dana Keeler
60d0ba7429 bug 1531924 - remove unnecessary nsIBadCertListener2 in Firefox for Android and improve adding certificate error overrides r=snorp
Before this patch, Firefox for Android (and GeckoView) would make an extra
(unnecessary) XHR to gather the information it needed to add a certificate error
override. However, the docShell already has the required information (via
failedChannel.securityInfo), so this patch makes it so.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 20:46:32 +00:00
Jan Henning
50c69a3713 Bug 1529863 - Remove remnants of unused browser.firstrun and browser.snippets prefs. r=geckoview-reviewers,whimboo,esawin
"browser.firstrun.*" seems to have been unused since the end of XUL-based
Fennec, whereas the code referencing the "browser.snippets.*" prefs was removed
in bug 1482836.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 14:59:46 +00:00
Edouard Oger
59ae6a0112 Bug 1532098 - Update login instead delete then add. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D22346

--HG--
extra : moz-landing-system : lando
2019-03-06 17:52:30 +00:00
Eugen Sawin
0d3182e78d Bug 1531179 - [1.1] Remove noisy data-received signal and simplify page load progress tracking. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D21465

--HG--
extra : moz-landing-system : lando
2019-03-06 15:34:32 +00:00
Dennis Schubert
9e4aca9060 Bug 1532346 - Land WebCompat Release test interventions in tree. r=miketaylr
Differential Revision: https://phabricator.services.mozilla.com/D22159

--HG--
extra : moz-landing-system : lando
2019-03-05 21:29:04 +00:00
Alex Gaynor
e5279ff3f7 Bug 1532727 - replace OptionalURIParams with URIParams? in IPDL; r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D22138

--HG--
extra : moz-landing-system : lando
2019-03-06 14:05:50 +00:00
Chris Pearce
db3101848c Bug 1532578 - Make OpenH264 visible by default on mobile. r=drno
Differential Revision: https://phabricator.services.mozilla.com/D22179

--HG--
extra : moz-landing-system : lando
2019-03-05 22:27:16 +00:00
ECarr
1371a0545c Bug 1531959 - Change all RemoteLogins message names to PasswordManager in pwmgr code. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D22176

--HG--
extra : moz-landing-system : lando
2019-03-05 21:08:49 +00:00
Brindusan Cristian
b1a6b274b6 Backed out 6 changesets (bug 1525662, bug 1501665) for geckoview failures at org.mozilla.geckoview.test.NavigationDelegateTest.loadData_noMimeType. CLOSED TREE
Backed out changeset 1fa7091b4b4e (bug 1525662)
Backed out changeset 32249c69fee9 (bug 1525662)
Backed out changeset aaa8fbdbbe48 (bug 1525662)
Backed out changeset f07e25fac5b2 (bug 1525662)
Backed out changeset a8ec11730706 (bug 1525662)
Backed out changeset 159753062cfa (bug 1501665)
2019-03-05 23:42:55 +02:00
Brindusan Cristian
1f6d297e33 Backed out 5 changesets (bug 1508976, bug 1522581) for android geckoview bustages at /usr/bin/python2.7. CLOSED TREE
Backed out changeset 7a6be593b0be (bug 1522581)
Backed out changeset c47b37ac1775 (bug 1522581)
Backed out changeset 91c31d2a7706 (bug 1508976)
Backed out changeset da57df805c56 (bug 1508976)
Backed out changeset 4e5d97c93515 (bug 1508976)
2019-03-05 22:42:15 +02:00
Jan Henning
ae8ca78a46 Bug 1525662 - Part 5: Turn on word wrapping by default for plain text documents on mobile. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D19308

--HG--
extra : moz-landing-system : lando
2019-03-05 18:01:23 +00:00
Nick Alexander
4e61bae5d6 Bug 1508976 - Post: Don't include architecture in multi-architecture GeckoView artifactId. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D15772

--HG--
extra : moz-landing-system : lando
2019-03-05 17:48:35 +00:00
Nick Alexander
5854b41436 Bug 1508976 - Produce a multi-architecture GeckoView "fat AAR". r=snorp,agi,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D15771

--HG--
extra : moz-landing-system : lando
2019-03-05 17:52:54 +00:00
Petru-Mugurel Lingurar
2583a1b4d3 Bug 1507427 - Apply size restrictions for the largeIcon used in NotificationClient; r=JanH
There are crash reports for large heap allocations for Bitmaps from the
NotificationClient#add method.
As more of a speculative fix this patch introduces bitmap size constraints for
the largeIcon of the notification this method posts. Previously the app would
happily load any image from the passed in image URL even though the maximum
size the largeIcon can be is 256x256 pixels.

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

--HG--
extra : moz-landing-system : lando
2019-03-04 17:39:53 +00:00
Jan Henning
ccccbd6aa6 Bug 1525662 - Part 6: Turn on word wrapping by default for plain text documents on mobile. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D19308

--HG--
extra : rebase_source : a794e2ceb960a100847520b03638c2a53dac0637
extra : amend_source : 632898d49006e7d6e0739931ca8cac1c1578ead2
extra : source : dcca155d1dd6a18930ea76dbd1048006435e5840
2019-02-10 14:28:35 +01:00
Jan Henning
d40c7a2617 Bug 1525662 - Part 5: Use smaller image for Geckoview tests. r=snorp
The animation is cute, but one test is effectively treating the image data as a
text file, and displaying the whole file as text leads to *very* long loading
times on the ARM emulator when word-wrapping is turned on, especially when using
a debug build.

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

--HG--
extra : rebase_source : 796bd5eea8cfa2c5f23aaa0ed663114b2c0573e8
extra : amend_source : e28fb8981acba33a8b3ea6ae14eddae0c7292164
extra : source : 69dfaab9947c0c4b5e5b965abe9b26d0f054ef88
2019-03-11 20:18:54 +01:00
Makoto Kato
c5697e457b Bug 1495985 - Restart input method to remove composition on some IMEs. r=geckoview-reviewers,esawin
When removing composing text, we call
`InputMethodManager.updateSelection(start, end, -1, -1)`.
But ATOK (Japanese input method by Justsystem) series do nothing. So, shadow
text and current text becomes mismatched.

As workaround, we need call `restartInput` to remove composing text if using
ATOK series.

According to ATOK team, ATOK has several packages name since they release
several customize version.

- `com.justsystems.atokmobile.*` (ATOK, ATOK subscription and etc)
- `com.atok.mobile.*` (OEM version)

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

--HG--
extra : amend_source : 3380064eef826666d11c34c303bf1a493750c28e
extra : histedit_source : 6038cbccc76cc7295abc5f961745070335e8dcdf
2019-02-21 17:27:07 +09:00
Emily Toop
02ade4a8a2 Bug 1462018 - Add API for taking screenshot of visible page.
Invert screen pixels in `nsWindow`.

Update `RequestScreenPixels` in `nsWindow` to accept a `GeckoResult` as an argument and save as a `GlobalRef`.
Update `RecvScreenPixels` in `nsWindow` in order to invert the image before sending over JNI rather than requiring callers to invert the image themselves.
Complete the `GeckoResult` if there is one in `RecvScreenPixels` instead of making a callback to the compositor.

Remove `RecvScreenPixels` from `GeckoSession` and `GeckoSession.Compositor`.
Move `RecvScreenPixels` and `getPixels` to `GeckoDisplay`
Rename `getPixels` to `capturePixels`

Return Bitmap from `RecvScreenPixels`.

Return `GeckoResult` from `capturePixels`.

Add doc comments to new methods and classes.
Update FennecNativeDriver to use `GeckoView` and `GeckoResult`.

Update API docs and Changelog

Add tests

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

--HG--
extra : moz-landing-system : lando
2019-03-02 10:09:08 +00:00
Razvan Maries
c51046f730 Merge mozilla-inbound to mozilla-central a=merge 2019-03-02 11:41:18 +02:00
Dorel Luca
fec4bbc689 Backed out changeset 85fce02180b6 (bug 1531632) for android failures 2019-03-02 01:53:39 +02:00
Mike Hommey
8955f8be1d Bug 1531632 - Initialize environment variables before loading libxul. r=snorp
There are at least two known side effects of initializing it after
loading libxul:
- We can't set LLVM_PROFILE_FILE for the instrumentation part of PGO to
  make the compiler-rt static initializer pick it.
- We can't set MOZ_DEBUG_LINKER to enable the linker debug log (which
  used to work when environment variables were set earlier).

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

--HG--
extra : moz-landing-system : lando
2019-03-01 15:23:57 +00:00
Francesco Lodolo (:flod)
cb56495da3 Bug 1531751 - Correct search parameter for mapy.cz searchplugin used in Czech (cs) version of Firefox and Firefox for Android r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D21690

--HG--
extra : moz-landing-system : lando
2019-03-01 17:09:58 +00:00
Gurzau Raul
82ce1d37c4 Backed out changeset 6c1f943e591c (bug 1462018) for robocop failures FennecNativeDriver.java on a CLOSED TREE.
--HG--
extra : rebase_source : 638605fe9606fd84271ba6aa02fda70daead7642
extra : histedit_source : 5c6c2c8161bb3ef5e16463aef62332ceed263a3f
2019-03-01 12:48:27 +02:00
Emily Toop
6337b6bf45 Bug 1462018 - Add API for taking screenshot of visible page. r=snorp,geckoview-reviewers
Invert screen pixels in `nsWindow`.

Update `RequestScreenPixels` in `nsWindow` to accept a `GeckoResult` as an argument and save as a `GlobalRef`.
Update `RecvScreenPixels` in `nsWindow` in order to invert the image before sending over JNI rather than requiring callers to invert the image themselves.
Complete the `GeckoResult` if there is one in `RecvScreenPixels` instead of making a callback to the compositor.

Remove `RecvScreenPixels` from `GeckoSession` and `GeckoSession.Compositor`.
Move `RecvScreenPixels` and `getPixels` to `GeckoDisplay`
Rename `getPixels` to `capturePixels`

Return Bitmap from `RecvScreenPixels`.

Return `GeckoResult` from `capturePixels`.

Add doc comments to new methods and classes.
Update FennecNativeDriver to use `GeckoView` and `GeckoResult`.

Update API docs and Changelog

Add tests

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

--HG--
extra : moz-landing-system : lando
2019-03-01 08:45:09 +00:00
Randall Barker
0c5a05c19a Bug 1529101 - Move GeckoVRManager to org.mozilla.geckoview package r=geckoview-reviewers,agi,esawin
Differential Revision: https://phabricator.services.mozilla.com/D20857

--HG--
extra : moz-landing-system : lando
2019-02-28 21:07:11 +00:00
Lee Salzman
0c46a0c440 Bug 1530471 - remove prefs for related to SkiaGL canvas r=jrmuizel
Depends on D21055

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

--HG--
extra : moz-landing-system : lando
2019-02-28 15:00:36 +00:00
Alphan Chen
6d33e62c06 Bug 1497147 - Rewrite "mapFrameTree" implementation to C++ r=peterv
Get rid of mapFrameTree() implementation

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

--HG--
extra : moz-landing-system : lando
2019-02-28 13:09:54 +00:00
Boris Zbarsky
9c5da5f234 Bug 1489308 part 9. Remove now-unused wyciwyg bits. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D17327

--HG--
rename : dom/html/test/browser_refresh_wyciwyg_url.js => dom/html/test/browser_refresh_after_document_write.js
rename : dom/html/test/file_refresh_wyciwyg_url.html => dom/html/test/file_refresh_after_document_write.html
extra : moz-landing-system : lando
2019-02-28 01:09:48 +00:00
Jonathan Kingston
f6680698bd Bug 1525319 - Removing context from OnDataAvailable r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20881

--HG--
extra : moz-landing-system : lando
2019-02-27 23:42:27 +00:00
Jonathan Kingston
dd4c731d8c Bug 1525319 - Changing js to remove context from onStartRequest and onStopRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20771

--HG--
extra : moz-landing-system : lando
2019-02-27 23:41:54 +00:00
John Lin
a5439ce1e3 Bug 1510340 - p1: reduce ExoPlayer default buffer size. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D20419

--HG--
extra : moz-landing-system : lando
2019-02-26 14:57:02 +00:00
Julian Descottes
cdbf93e9a7 Bug 1528276 - Set DebuggerServer.keepAlive for RemoteDebugger and GeckoViewRemoteDebugger;r=ochameau
Depends on D20831

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

--HG--
extra : moz-landing-system : lando
2019-02-27 17:09:05 +00:00
James Willcox
61ca9441b1 Bug 1525959 - Skip some mochitests tests under GeckoView r=geckoview-reviewers,esawin
There are few things that are either Fennec-specific or don't work
currently under GeckoView w/ e10s under TestRunnerActivity. Disable
these so we can get some testing going in automation.

This also replaces 'isFennec' with the more correct 'is_fennec'.

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

--HG--
extra : moz-landing-system : lando
2019-02-27 15:01:43 +00:00
Oana Pop Rus
eda7a08ec6 Backed out changeset b63cae045a63 (bug 1462018) for geckoview failures 2019-02-27 14:42:59 +02:00
Emily Toop
c616a388d1 Bug 1462018 - Add API for taking screenshot of visible page. r=geckoview-reviewers,snorp
Invert screen pixels in `nsWindow`.

Update `RequestScreenPixels` in `nsWindow` to accept a `GeckoResult` as an argument and save as a `GlobalRef`.
Update `RecvScreenPixels` in `nsWindow` in order to invert the image before sending over JNI rather than requiring callers to invert the image themselves.
Complete the `GeckoResult` if there is one in `RecvScreenPixels` instead of making a callback to the compositor.

Remove `RecvScreenPixels` from `GeckoSession` and `GeckoSession.Compositor`.
Move `RecvScreenPixels` and `getPixels` to `GeckoDisplay`
Rename `getPixels` to `capturePixels`

Return Bitmap from `RecvScreenPixels`.

Return `GeckoResult` from `capturePixels`.

Add doc comments to new methods and classes.
Update FennecNativeDriver to use `GeckoView` and `GeckoResult`.

Update API docs and Changelog

Add tests

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

--HG--
extra : moz-landing-system : lando
2019-02-26 10:51:02 +00:00
Makoto Kato
f6085c16d6 Bug 1524926 - Move some CSS files from mobile/android to toolkit. r=geckoview-reviewers,snorp
Although about.css, aboutMemory.css and aboutSupport.css are mobile-specific
style, these CSS files are used in toolkit, not mobile/android.
Since GeckoView doesn't has chrome.jar, these files are missing. So we should
move these CSS files to toolkit since we have mobile theme in toolkit.

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

--HG--
rename : mobile/android/themes/core/about.css => toolkit/themes/mobile/global/about.css
rename : mobile/android/themes/core/aboutMemory.css => toolkit/themes/mobile/global/aboutMemory.css
rename : mobile/android/themes/core/aboutSupport.css => toolkit/themes/mobile/global/aboutSupport.css
extra : moz-landing-system : lando
2019-02-26 14:54:45 +00:00
Jan Henning
2a0386d4c6 Bug 1529367 - Part 2: Minor intent processing optimisation. r=snorp
The extension is only ever used for local files, so don't bother retrieving it
otherwise.

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

--HG--
extra : moz-landing-system : lando
2019-02-26 14:54:27 +00:00
Jan Henning
8ff617cb88 Bug 1529367 - Part 1: Don't send MIME type when querying external apps for non-local HTML documents. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D20861

--HG--
extra : moz-landing-system : lando
2019-02-25 20:07:55 +00:00
Jan Henning
eb564828c4 Bug 1529258 - Part 2: Catch apps that register only generic HTTPS handlers, too. r=geckoview-reviewers,snorp
While it's not clear how many apps might still have a generic HTTP-only intent-
filter at this stage, we only collect that information once per session, so to
be on the safe side we still check both schemes separately and merge the data.

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

--HG--
extra : moz-landing-system : lando
2019-02-25 19:46:28 +00:00
Jan Henning
c8ba1b3b0c Bug 1529258 - Part 1: Slightly modernise HelperApps.jsm r=geckoview-reviewers,agi
Use the more concise way of defining functions and more arrow functions.
Also use a class to define "App" objects.

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

--HG--
extra : moz-landing-system : lando
2019-02-25 18:50:11 +00:00
Eitan Isaacson
f663d791e3 Bug 1524476 - Don't set the screen origin from synthesized MotionEvents. r=geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D20702

--HG--
extra : moz-landing-system : lando
2019-02-22 14:11:32 +00:00
Kris Maglione
39c294db57 Bug 1524688: Part 52 - Convert WebVTT components to static registration. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D18462

--HG--
rename : dom/media/webvtt/WebVTTParserWrapper.js => dom/media/webvtt/WebVTTParserWrapper.jsm
extra : rebase_source : 15b0b5dc533b7f9341498264cbf3ca36cff8e746
extra : source : 11f6682d9d9eedc6edcb2b8a496ae34501360c13
2019-01-30 11:31:25 -08:00
Kris Maglione
84e34e774b Bug 1524688: Part 28 - Convert SecurityReporter to static registration. r=johannh
--HG--
rename : toolkit/components/securityreporter/SecurityReporter.js => toolkit/components/securityreporter/SecurityReporter.jsm
extra : rebase_source : 30838ee2381b97fc5cc46cb9552d34005bf205a8
extra : source : 04b48bed408898fc4711a08fc66ecc9868486682
2019-03-01 12:55:54 -08:00
Petru Lingurar
5349aa6e59 Bug 1507531 - FilePicker will request WRITE_EXTERNAL_STORAGE; r=JanH
"Prior to Android 8.0 (API level 26), if an app requested a permission at
runtime and the permission was granted, the system would also incorrectly
grant the app the rest of the permissions that belonged to the same permission
group, and that were registered in the manifest.

For apps targeting Android 8.0, this behavior has been corrected. The app is
granted only the permissions it has explicitly requested. However, once the
user grants a permission to the app, all subsequent requests for permissions
in that permission group are automatically granted."
https://developer.android.com/about/versions/oreo/android-8.0-changes#rmp

Our FilePicker can delegate other applications to record media files
(photo/audio/video) which are then to be sent to websites. They must be saved
locally before the upload, scenario that wasn't possible anymore on Oreo+
because of the change in how Android handles runtime permissions.

As a way to get around this one could grant the "Storage" permission from
System Settings which would grant the app both READ and WRITE access.
But for actually being prepared to handle all situations our FilePicker must
ask for the WRITE_EXTERNAL_STORAGE permission at runtime.

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

--HG--
extra : moz-landing-system : lando
2019-02-22 15:43:13 +00:00
Thomas Wisniewski
19cbb97ab8 Bug 1488845 - Add an about:compat page to the Webcompat GoFaster addon. r=denschub,kmag,Pike
Add an about:compat page to the Webcompat GoFaster addon.

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

--HG--
extra : moz-landing-system : lando
2019-02-25 23:10:41 +00:00
Noemi Erli
7e23372938 Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
extra : rebase_source : de8796d5d7d7079af1b895a2f537371885f8cc6c
2019-02-26 00:09:40 +02:00
Christoph Kerschbaumer
c8bb3d7749 Bug 1529869: Remove the 2 from speculate speculative(Anonymous)Connect2 within nsISpeculativeConnect.idl. r=valentin 2019-02-24 20:26:56 +01:00
Agi Sferro
ee86fd5efc Bug 1518841 - Allow embedders to load WebExtensions in GeckoView. r=snorp,esawin
Depends On D16913

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

--HG--
extra : moz-landing-system : lando
2019-02-25 17:00:18 +00:00
Andreea Pavel
f49b3214e3 Backed out changeset 51467afba450 (bug 1518841) for failing eslint at GeckoViewWebExtension.jsm on a CLOSED TREE 2019-02-25 18:53:15 +02:00
Agi Sferro
9ccb6c983d Bug 1518841 - Allow embedders to load WebExtensions in GeckoView. r=snorp,esawin
Depends On D16913

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

--HG--
extra : moz-landing-system : lando
2019-02-25 15:38:46 +00:00
Agi Sferro
d6b900089c Bug 1522137 - Make resource://android return a nsIJARURI. r=snorp,mayhemer,bzbarsky
resource://android URIs always point to a "jar:" URI so it doesn't make sense
that the returned URL object implements nsIFileURL.

This also makes it so extensions can be loaded from a resource://android URI.

Audited all places where we use `nsIJARURI` and check for places where we
assume it looks like `jar:`: the only (!) place where we do that is here:

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/dom/xhr/XMLHttpRequestMainThread.cpp#1852

Where we have special handling for `jar:` URIs. It looks like we would have
less special handling for such a request to a `resource://android` and it could
be fixed by just checking for the interface instead, but that's what's already
happening today so it should work. That code is never reached for
`resource://android` URIs as `mIsMappedArrayBuffer` is false for those URIs
(see #2822). And the code is consistent in checking for the scheme instead of
the interface (the other check is here:
https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/dom/xhr/XMLHttpRequestMainThread.cpp#2822)

Audited all places where we do `EqualsLiteral("jar")`:
https://searchfox.org/mozilla-central/search?q=.EqualsLiteral%28%22jar%22%29&path=

`SubstituteRemoteChannel`: looks interesting, but uses
`nsISubstitutingProtocolHandler::ResolveURI` to first get the real URI (which
is a `jar:`) so it works for our case.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/netwerk/protocol/res/ExtensionProtocolHandler.cpp#414

`SubstitutingProtocolHandler.cpp`

This case is explicitly fixed by this change, making it account for both
`"jar"` and `"resource"`.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/netwerk/protocol/res/SubstitutingProtocolHandler.cpp#299

`ReadSourceFromFileName`: this also looks interesting, but uses the channel to
get the URI which returns the real `"jar"` URI and not the mapped `"resource"`.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/js/xpconnect/src/XPCJSRuntime.cpp#2837

`nsStringBundle.cpp`

Accounts for both `"jar"` and `"resource"`, so it should work the same.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/intl/strres/nsStringBundle.cpp#437

Audited all places where we use `nsINestedURI` to make sure they would work for
a `nsIJARURI` which does not implement `nsINestedURI`.

`BrowserContentHandler.jsm`

Uses `nsINestedURI` to figure out if a URI is local or not and then it checks
whether it's a `"file"`, `"resource"` or `"chrome"` URI, for a `nsIJARURI &
nsINestedURI` it would return a `"file"` which passes the test, for a
`nsIJARURI` alone it would return `"resource"` which is also considered local
by this code, so the result wouldn't change.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/browser/components/BrowserContentHandler.jsm#395-399

`nsScriptSecurityManager.cpp`

`GetOriginFromURI`: This is the reason why `SubstitutingJARURI` doesn't
implement `nsINestedURI`, the origin is computed starting from the innermost
URI, which in our case would be a file. The behavior in our case is that the
origin from a `resource://android` URI behaves like other `resource://` URIs,
which is what we expect.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/caps/nsScriptSecurityManager.cpp#169

`CheckLoadURIWithPrincipal`: for `nsIJARURI & nsINestedURI` this code will only
allow pages from the same jar to be in the same origin (which is correct), for
`nsIJARURI` this code is unreachable and it would allow every
`resource://android` to load every other `resource://android` URI (which is
essentially the same thing).

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/caps/nsScriptSecurityManager.cpp#874-876

`nsDocShell.cpp`

`DisplayLoadError`: Just looping through the nested URI chain to build an error
message, no concerns here (it would just ignore the `jar:` part, which is
fine).

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/docshell/base/nsDocShell.cpp#3986

`DoURILoad`: Looking for `view-source`, no concerns for `resource://android`.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/docshell/base/nsDocShell.cpp#9645

`nsObjectLoadingContent.cpp`

Also looking for `view-source`, no concerns.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/dom/base/nsObjectLoadingContent.cpp#2004

`nsIconURI.cpp`/`nsIconURI.h`

Exposing `nsINestedURI`. No concerns.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/image/decoders/icon/nsIconURI.cpp#58

`nsJARURI.cpp`/`nsJARURI.h`

Exposing `nsINestedURI`, the subject of this audit.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/modules/libjar/nsJARURI.cpp#45

`nsIOService.cpp`

`URIChainHasFlags`: This code looks at the chain of nested URIs to figure out
if the chain of protocols has a certain flags. for `nsIJARURI & nsINestedURI`
it would look at both `jar:` and `file:` protocols, while in `nsIJARURI` it
would only look at the `resource:` protocol, which is our intention, since we
want this URI to be treated like a `resource:` URI and nothing else. Note the
`resource:` URI is always local (enforced by `NewURI`), so this should be ok.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/netwerk/base/nsIOService.cpp#1494

`nsNetUtil.cpp`/`nsNetUtil.h`

Implementation of `NS_ImplGetInnermostURI`, which wouldn't work for `nsIJARURI`
alone, as expected.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/netwerk/base/nsNetUtil.h#704

`nsSimpleNestedURI.cpp`/`nsSimpleNestedURI.h`

Implementing `nsINestedURI` for `nsSimpleNestedURI`, no concerns.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/netwerk/base/nsSimpleNestedURI.cpp#19

`nsViewSourceHandler.cpp`

Looking at `view-source` inner URI to get the flags, no concerns.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/netwerk/protocol/viewsource/nsViewSourceHandler.cpp#49

`nsHtml5StreamParser.cpp`/`nsHtml5TreeOpExecutor.cpp`

More `view-source` handling code. No concerns.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/parser/html/nsHtml5StreamParser.cpp#310

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/parser/html/nsHtml5TreeOpExecutor.cpp#884

`DownloadPlatform.cpp`

`IsURLPossiblyFromWeb`: This line is unreachable as the method would return
true because resource has `URI_IS_UI_RESOURCE`.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/toolkit/components/downloads/DownloadPlatform.cpp#314

`getAnonymizedPath`: This code looks a little scary, and it's the first one
that seems to conflate the fact that `jar: == nsINestedURI`.

On the android case (line 2130) this code manually replaces the
`resource://android` URI with a `jar:` URI, so it wouldn't matter whether
`resource://android` implements `nsINestedURI` or not.

Actually this code could be a lot easier by using
`nsISubstitutingURL::resolveURI`, maybe I should open a bug.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/toolkit/components/search/SearchService.jsm#2148

`getRemoteTypeForURIObject`: This also looks interesting. The switch at line
157 would go straight to line 218 for `resource:` URIs (irrespective of
`nsINestedURI`) and then for `nsINestedURI` we would look at the `jar:` URI
(and eventually the `file:` URI). While for not `nsINestedURI` we would call
straight to `validatedWebRemoteType`. This might return `WEB_REMOTE_TYPE`
instead of `FILE_REMOTE_TYPE`, but since it's already happening it should be ok
(`resource://android` maps _today_ to a `jar:` file that return
`WEB_RETURN_TYPE`)

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/toolkit/modules/E10SUtils.jsm#150

`getURIHost`:

This is another piece of code that benefits from not implementing
`nsINestedURI` as the host would be correctly `"android"` instead of the apk
path.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/toolkit/mozapps/downloads/DownloadUtils.jsm#390

`initDialog`:

Download dialog would show the `resource://android` URI instead of the actual
`jar:` URI, kind of expected.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/toolkit/mozapps/downloads/HelperAppDlg.jsm#423

There are no places in the codebase where we do `== "jar"`. Looks like I've
already looked at all hits for "jar" too.

Checked for `"jar:` too and It looks like they are all from code that tries to
build a `jar:` URI manually which is fine for this change.

Audited all `schemeIs("jar")` occurrences:
https://searchfox.org/mozilla-central/search?q=schemeIs(%22jar%22)&path=

`browser-identity.js`

Uses the channel URI which is always resolved to `jar:`, so that works
regardless.  See also:
https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/netwerk/protocol/res/SubstitutingProtocolHandler.cpp#229

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/browser/base/content/browser-siteIdentity.js#812

`tabbrowser.js`

Only for `scheme == "about"` URIs.

https://searchfox.org/mozilla-central/rev/b36e97fc776635655e84f2048ff59f38fa8a4626/browser/base/content/tabbrowser.js#789

`HelperAppDialog.js`

Treats "jar:" and "resource" the same way.

https://searchfox.org/mozilla-central/rev/dc0adc07db3df9431a0876156f50c65d580010cb/mobile/android/components/HelperAppDialog.js#63

`WebNavigationContent.js`

This code checks if the scheme is "jar" and if the original URI is "resource"
it will use that instead, so in our case it will use the "resource" URI either
way.

https://searchfox.org/mozilla-central/rev/dc0adc07db3df9431a0876156f50c65d580010cb/toolkit/modules/addons/WebNavigationContent.js#158

Depends on D18740

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

--HG--
extra : moz-landing-system : lando
2019-02-25 15:38:33 +00:00
Agi Sferro
3ba359e0a9 Bug 1522137 - Move resource://android handler to C++. r=mayhemer
This is needed to make the handler to avoid race conditions where some code
tries to access a resource://android URI before the handler has been
registered.

Depends on D18739

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

--HG--
extra : moz-landing-system : lando
2019-02-25 15:38:21 +00:00
Agi Sferro
31607a16bb Bug 1522137 - Fix HasSubstitution for special cases. r=bzbarsky
Before this change, HasSubstitution would return false for "gre" or "app" which
is incorrect, since these handlers exist.

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

--HG--
extra : moz-landing-system : lando
2019-02-25 15:38:08 +00:00
Christoph Kerschbaumer
90e6dc3e93 Bug 1518454: Part 3, mobile changes, add CSP to loadURIOptions dictionary and pass CSP explicitly from frontend to docshell. r=snorp 2019-02-12 10:34:24 +01:00
Kartikaya Gupta
b3227123e2 Bug 1500941 - Add searchfox task for Android (ARMv7/API16). r=nalexander
The bulk of this is copy/pasted from a standard android-api-16 debug
build. The only changes are a few extra environment variables in the
taskcluster config, the subconfig file, and the mozconfig, as well as
the --enable-mozsearch-plugin flag in the mozconfig.

Depends on D20766

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

--HG--
extra : moz-landing-system : lando
2019-02-22 11:31:58 +00:00
Matthew Noorenberghe
004fdc8088 Bug 1474143 - Switch earlyformsubmit pwmgr observers to DOMFormBeforeSubmit listeners. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D16652

--HG--
extra : moz-landing-system : lando
2019-02-23 00:24:12 +00:00
James Willcox
6f4446a1d8 Bug 1529297 - Make GeckoWebExecutor.resolve() fail with UnknownHostException r=geckoview-reviewers,esawin
Also clean up some doc strings.

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

--HG--
extra : moz-landing-system : lando
2019-02-22 14:23:37 +00:00