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

25545 Коммитов

Автор SHA1 Сообщение Дата
Jim Chen 9cf5255ceb Bug 1438682 - 2. Implement dummy closeConnection; r=esawin
closeConnection is a new API introduced in N. We don't really support it
at the moment but we also don't want the default behavior, so we
implement a dummy.

MozReview-Commit-ID: JY1Tl30X2s7

--HG--
extra : rebase_source : a64371a05aed9db957df2a97da5b23c90760cdb1
2018-02-15 18:06:07 -05:00
Jim Chen a1a66f9c59 Bug 1438682 - 1. Cache initial selection offsets; r=esawin
Getting the selection offsets in onCreateInputConnection can fail
because of us being on a wrong thread. The solution is to cache the last
selection offsets and use those in onCreateInputConnection.

MozReview-Commit-ID: AOlZsuOvzHm

--HG--
extra : rebase_source : 42f35bc60219707fc29db7cc2803f64313806244
2018-02-15 18:06:06 -05:00
Thomas Wisniewski 14c2bbe588 Bug 792808 - Change mobile/android/ to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=sebastian
MozReview-Commit-ID: JHIHB11vdWL

--HG--
extra : rebase_source : ac365f5a97f5b2c8ddfcda1d5444dbd4cc6a240e
2017-09-19 12:05:47 -04:00
Timothy Guan-tin Chien a2a559db3e Bug 1234008 - Recompress some png images with zopflipng r=Dolske,Grisha,jryans
MozReview-Commit-ID: Cr2iMSB04uu

--HG--
extra : rebase_source : 49f69cca3a4f27af1060ed82283b5cc96f717229
2018-01-27 15:57:42 +08:00
Narcis Beleuzu 2d9816273c Merge inbound to mozilla-central. a=merge 2018-02-16 11:49:59 +02:00
Dylan Roeh 8819d6c766 Bug 1432233 - Eliminate GeckoBundles from public APIs in GeckoSession. r=snorp 2018-02-15 12:44:32 -06:00
Margareta Eliza Balazs 55aa0e75d6 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-15 22:43:18 +02:00
Dylan Roeh 5457d433a9 Bug 1438342 - Fix context menu for media elements in GV. r=snorp
We're currently determining whether a node is a media element by checking if the node's classname is HTMLMediaElement; but that's an abstract class and thus the condition is never satisfied. This checks against the concrete HTMLVideoElement and HTMLAudioElement classes instead.
2018-02-14 15:49:52 -06:00
Andreea Pavel 2a7b1dfa56 Merge mozilla-central to autoland. on a CLOSED TREE 2018-02-15 12:34:12 +02:00
Andreea Pavel 74b7ffee40 Merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : js/src/jscompartment.cpp => js/src/vm/JSCompartment.cpp
rename : js/src/jscompartment.h => js/src/vm/JSCompartment.h
rename : js/src/jsscript.cpp => js/src/vm/JSScript.cpp
rename : js/src/jsscript.h => js/src/vm/JSScript.h
extra : amend_source : 9c233cb959c45e401189d089a094f9d141d2b912
2018-02-15 12:24:21 +02:00
Snowrries 6eed2ab7a2 Bug 1435060 - Allow keyword bookmark as search query; r=JanH
Function queryExists added to StringUtils to check
if a given URL allows for arguments.
Tests for said function added to TestStringUtils.
Function loadUrlOrKeywordSearch in BrowserApp.java updated to also pass
the entire entered string along regardless of whether or not the first
words are keyword bookmarks iff there is additional text after the
keyword bookmark, and the keyword bookmark does not accept any input arguments

MozReview-Commit-ID: 2eyi5Botd3F

--HG--
extra : rebase_source : a08dd11a1595051a2dc727cc361cebecc14fa8c8
2018-02-14 03:07:13 -05:00
Dorel Luca 75f385b6d6 Merge mozilla-centra to mozilla-inbound 2018-02-15 00:37:44 +02:00
Dorel Luca 4234703a53 Merge mozilla-inbound to mozilla-central a=merge 2018-02-15 00:23:02 +02:00
Dorel Luca 90035255ae Merge autoland to mozilla-central a=merge 2018-02-15 00:19:43 +02:00
Jim Chen 784142edc5 Bug 1391268 - 4. Display message when APK is corrupt; r=snorp
Display a message on startup when the APK is corrupt. Right now the
"wrong SDK" message is displayed. I think we can potentially reuse that
message for Beta, but we need a different message for Nightly.

MozReview-Commit-ID: 9NEw252Ytkc
2018-02-14 16:56:54 -05:00
Jim Chen ef4e739d2a Bug 1391268 - 3. Detect corrupt APK when loading libs; r=snorp
On the second pass after failing the first time to load libraries,
enable CRC verification and detect if the APK is corrupt. In that case,
instead of crashing, we send out an event to the application.

MozReview-Commit-ID: 4b97Z8EUHZe
2018-02-14 16:56:54 -05:00
Jim Chen 589e7e1a01 Bug 1391268 - 1. Add call to verify CRC; r=glandium
To reliably detect corrupt APK, this patch adds a GeckoLoader.verifyCRC
call to enable verification of CRC before extracting libs.

MozReview-Commit-ID: 5EpIfwREGIv
2018-02-14 16:56:54 -05:00
L10n Bumper Bot 4be2a1313f no bug - Bumping Fennec l10n changesets DONTBUILD r=release a=l10n-bump
km -> default
meh -> default
tl -> default
2018-02-14 03:40:46 -08:00
Dylan Roeh c34f6ed90c Bug 1391076 - Update GeckoSession.setActive to focus/blur as appropriate. r=snorp 2018-02-12 12:38:11 -06:00
Jan Henning ce7ac5c8a9 Bug 1437388 - Don't set different session store write interval while in background. r=esawin
We had some issues with tabs closed shortly before backgrounding Firefox re-
appearing during session restore, however in hindsight bug 1282830 (closing a
zombie tab didn't trigger a session store file write) seems a more likely cause
for that than my initial theory from bug 1256277 comment 6 (tab events
dispatched *just* before backgrounding might be processed only after our
application-background handling), because as far as I can tell the latter theory
actually requires really split-second timing.

With that in mind, the differing, smaller minimum file write interval while in
background can be removed again.

MozReview-Commit-ID: GSQZYKeYME6

--HG--
extra : rebase_source : 598f49df98b7a09d63cd7e0aad6ad079916fad99
2018-02-11 19:43:16 +01:00
Eugen Sawin 0d21e3454c Bug 1436887 - [1.1] Add GeckoView prefs file. r=snorp,jchen 2018-02-14 19:52:20 +01:00
Dorel Luca dabf7b41ee Merge mozilla-central to autoland. CLOSED TREE
--HG--
extra : amend_source : 021950f3661e3b1d96e768155c5754b7af039f84
2018-02-15 00:35:45 +02:00
Adrian Wielgosik 6c854a7275 Bug 1438270 - Remove nsIDOMDocumentXBL. r=bz
MozReview-Commit-ID: 4TsjUaEdDP2

--HG--
extra : rebase_source : ab61d1832113a8c7b126b8856de59056fcf5ec5e
2018-02-14 20:10:45 +01:00
Nick Alexander 68000223b0 Bug 1437201 - Part 0: Use toolchain clang for host compiler on Android. r=froydnj
MozReview-Commit-ID: DgwfKbjEuIq

--HG--
extra : rebase_source : cdd73c729a063507b841297520cafb8d20a8dc65
2018-02-13 10:32:18 -08:00
Jim Chen 5e9435a262 Bug 1434469 - Add ACCESS_COARSE_LOCATION to list of permissions; r=snorp
Add ACCESS_COARSE_LOCATION to the Fennec and GeckoView list of
permissions. For completeness, also add ACCESS_COARSE_LOCATION to JS
modules that handle runtime permissions.

MozReview-Commit-ID: 8UHaiJcRnq

--HG--
extra : rebase_source : 5a74d4138d6d7b4bf6cf70724f695ff06201c38c
2018-02-13 13:01:18 -05:00
Alex Gaynor de20b74dc4 Bug 1407693 - Part 2 - when a child process crashes, write extra annotation data to a pre-opened file descriptor instead of creating a new file; r=gsvelto,rbarker
This removes the need for the content process to have permissions to create new
files on macOS, allowing more aggressive sandboxing.

MozReview-Commit-ID: 8agL5jwxDSL

--HG--
extra : rebase_source : 17ebcef3e9d24f3d4e7515e3fae95e65cef76a79
2017-11-27 14:37:34 -06:00
Suhail Alkowaileet b2174ae597 Bug 1432854 - Fix Tab counter doesn't show native numbers for non-arabic numeral languages r=JanH
MozReview-Commit-ID: 3STmgEGAbJG

--HG--
extra : rebase_source : be198c358e765471c95a7ec678848b04f768111f
2018-02-08 18:26:00 +03:00
Bogdan Tara 5bbbbe17bc Merge inbound to mozilla-central. a=merge 2018-02-10 11:57:47 +02:00
Tim Nguyen 4fd514d97b Bug 1429573 - Remove spinbuttons.xml bindings now that they are unused. r=Paolo
MozReview-Commit-ID: Cbj7vZcrDrL

--HG--
extra : rebase_source : 9b844911072ab2cc526f4ad16838e83f44a230da
2018-02-09 21:54:42 +00:00
Sebastian Hengst 87f465d8f7 merge mozilla-central to mozilla-inbound. CLOSED TREE
--HG--
extra : amend_source : 0e657a5dd4f6c8893d3f5ab7b173e3c4178e9e61
2018-02-10 00:29:53 +02:00
Eugen Sawin 520f595f89 Bug 1434210 - [2.0] Trim selection text for search. r=snorp 2018-02-09 21:35:49 +01:00
Jim Chen 3cb126bc3d Bug 1432160 - Initialize PushService for custom tabs / PWA; r=snorp
We currently initialize PushService on delayed startup, which only
happens when Fennec is launched. This patch makes us also initialize
PushService if needed by web content from custom tabs / PWA, by
listening for the push initialization event in GeckoApplication.

MozReview-Commit-ID: 9CTOEZmOqls

--HG--
extra : rebase_source : ccd7d8e61e1de5de8ded1f6793234eb885c92672
2018-02-08 18:33:19 -05:00
Csoregi Natalia 2d4c080565 Backed out 2 changesets (bug 1429573) for reftest failures /tests/reftest/tests/editor/reftests/xul/number-3.xul. on a CLOSED TREE
Backed out changeset bd6892535d35 (bug 1429573)
Backed out changeset 1c398da94994 (bug 1429573)
2018-02-09 16:56:39 +02:00
Tim Nguyen 96e5c9837c Bug 1429573 - Remove spinbuttons.xml bindings now that they are unused. r=Paolo
MozReview-Commit-ID: 6sb1zcGv4k9

--HG--
extra : rebase_source : 35636617336551fb3aadc8fb321c66b5e5993239
2018-02-09 13:53:49 +00:00
arthur.iakab f58e902071 Backed out 2 changesets (bug 1429573) for failing reftest on reftest/tests/editor/reftests/xul/number-3.xul on a CLOSED TREE
Backed out changeset 75364898f5f6 (bug 1429573)
Backed out changeset fe69b415f45b (bug 1429573)
2018-02-09 23:27:59 +02:00
Tim Nguyen 9235487cb3 Bug 1429573 - Remove spinbuttons.xml bindings now that they are unused. r=Paolo
MozReview-Commit-ID: D7cMQyriekm

--HG--
extra : rebase_source : 189fe22d8b9619707753773b92f83bbdef3a247a
2018-02-09 19:24:11 +00:00
Cosmin Sabou bc9a975314 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-02-09 02:32:28 +02:00
Cosmin Sabou 2400be0754 Merge inbound to mozilla-central. a=merge 2018-02-09 02:29:56 +02:00
Jim Chen e85d442ce0 Bug 1427239 - Always create FormAssistPopup in WebAppActivity; r=droeh
Right now we create FormAssistPopup in WebAppActivity based on whether
the manifest is successfully loaded. We should always create it because
we always try to destroy it in onDestroy().

MozReview-Commit-ID: KskEZmYrDS1

--HG--
extra : rebase_source : bef84833438aa425a154bdf89cfa61dda7d8651d
2018-02-08 13:44:54 -05:00
Jim Chen 46eaff60e5 Bug 1434925 - Skip drawing hidden toolbar elements; r=rbarker
Apparently a toolbar element can be zero-sized when we try to draw it to
the bitmap. We should just skip drawing in that case.

MozReview-Commit-ID: LlFQX5uN20h

--HG--
extra : rebase_source : cc3ba0cce8157274ef758530888629d4d372d0c0
2018-02-08 13:55:15 -05:00
Jim Chen 243a24b3e1 Bug 1435499 - Guard against OOM when getting toolbar pixels; r=rbarker
Guard against OOM errors when getting toolbar pixels, and send a failure
message back to compositor when OOM happens.

MozReview-Commit-ID: FooZlE979DD

--HG--
extra : rebase_source : 98104304d20c26f4764c14e07c1edbb1e52b649f
2018-02-08 13:23:35 -05:00
Dylan Roeh 5f5a90ae77 Bug 1434126 - Call GeckoSession.closeWindow() from onDestroy() in CustomTabsActivity and WebAppActivity. r=snorp 2018-02-08 12:15:08 -06:00
Narcis Beleuzu d299fdd9b4 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-08 21:36:33 +02:00
Andrew McCreight b7bb86d0d4 Bug 1436184 - Remove definitions of Ci, Cr, Cc, and Cu from httpd.js and .sjs files. r=florian
MozReview-Commit-ID: IKKb9zr2OSf

--HG--
extra : rebase_source : 72d949405c18e6d421422e7865182352eee0c407
2018-02-06 15:03:13 -08:00
Jim Chen a361be5f80 Bug 1326101 - 2. Fix some GeckoBundle bugs; r=snorp
Fix some GeckoBundle tests uncovered by the new unit test.

MozReview-Commit-ID: FEKryW81R2y
2018-02-08 13:36:22 -05:00
Jim Chen 397b87dfe2 Bug 1326101 - 1. Add unit test for GeckoBundle; r=snorp
Add a unit test for GeckoBundle, which tests GeckoBundle more thoroughly
than testEventDispatcher. This also lets us remove the Parcelable test
from testEventDispatcher.

MozReview-Commit-ID: Gn48Zw4Rvx5
2018-02-08 13:36:22 -05:00
Jim Chen 50ae81a660 Bug 1433322 - 3. Run GeckoView unit tests with 'mach android test'; r=nalexander
Run unit tests under geckoview/ when running 'mach android test'. This
also lets us run those tests on Taskcluster.

The test report parser for 'mach android test' had a bug where the input
directory was wrong. As a result, we weren't producing test output at
all. This patch fixes the input directory, and outputs an error if no
reports are found at all to avoid this bug in the future.

MozReview-Commit-ID: IiswQaSPCr0
2018-02-08 13:36:22 -05:00
Jim Chen 338a932c87 Bug 1433322 - 2. Mass move GeckoView unit tests to under geckoview/; r=nalexander
These tests involve GeckoView classes, so move them to under geckoview/.
We use a custom test runner for Fennec unit tests, but I didn't notice
any problems when using standard test runners (e.g. MockitoJUnitRunner),
so I changed these tests to use standard runners.

MozReview-Commit-ID: 7JMhqJqahTC

--HG--
rename : mobile/android/app/src/test/java/org/mozilla/gecko/permissions/TestPermissions.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/permissions/TestPermissions.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/NetworkUtilsTest.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/NetworkUtilsTest.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestContextUtils.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestContextUtils.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestDateUtil.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestDateUtil.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestFileUtils.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestFileUtils.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestFloatUtils.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestFloatUtils.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestIntentUtils.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestIntentUtils.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestStringUtils.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestStringUtils.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestUUIDUtil.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestUUIDUtil.java
2018-02-08 13:36:22 -05:00
Jim Chen ff9b633e5e Bug 1433322 - 1. Move publicsuffix utils to under Fennec; r=nalexander
The publicsuffix utils are not used in GeckoView and more importantly,
their accompanying asset is only included in Fennec and not GeckoView.
Therefore, it makes sense to move the utils to Fennec.

MozReview-Commit-ID: A5jhiqURUdB

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/publicsuffix/PublicSuffix.java => mobile/android/base/java/org/mozilla/gecko/util/publicsuffix/PublicSuffix.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/publicsuffix/PublicSuffixPatterns.java => mobile/android/base/java/org/mozilla/gecko/util/publicsuffix/PublicSuffixPatterns.java
2018-02-08 13:36:21 -05:00
Noemi Erli 919e711783 Backed out changeset fa7b76f98931 (bug 1434126) for Deleting file '.gradle.deps'bustages on a CLOSED TREE 2018-02-08 19:10:40 +02:00