Commit Graph

21616 Commits

Author SHA1 Message Date
Sylvestre Ledru
fc3e6d5a4c Bug 1446809 - Ride along: also remove some mobile/xul/ legacy declaration r=florian
MozReview-Commit-ID: 102syxweBN3

--HG--
extra : rebase_source : ba1d55d140a675c0acd47ebc66a29b28157c70c6
2018-03-19 10:43:17 +01:00
James Willcox
2ed97dae93 Bug 1322579 - Add GeckoSession.loadData() and loadString() r=esawin,rbarker
MozReview-Commit-ID: 8D46nhtKIzG
2018-03-19 18:11:42 -05:00
James Willcox
4ec2cdb14e Bug 1322579 - Add flags to GeckoSession.loadUri() r=esawin,droeh
MozReview-Commit-ID: 9meMsIOIZRX
2018-03-19 18:11:42 -05:00
James Willcox
ab5dbd8c7f No bug, make GeckoView tests build, r=me DONTBUILD
MozReview-Commit-ID: LJxvOUG4jhG
2018-03-19 18:11:41 -05:00
Sebastian Kaspari
7d29801a42 Bug 1443825 - Update sanitizing methods for autocomplete domains. r=ekager,mcomella
MozReview-Commit-ID: 2cB62XXdflS

--HG--
extra : rebase_source : c3bf6eb138c5fa8598d8569362a0506cc2564561
2018-03-07 17:51:33 +01:00
Dylan Roeh
7392134c6b Bug 1443904 - Fix enabled/disabled logic for choice prompts in BasicGeckoViewPrompt r=snorp 2018-03-16 15:35:57 -05:00
Eitan Isaacson
f765d0d585 Bug 1184142 - Support WebSpeech in GeckoView. r=snorp r=smaug
--HG--
extra : rebase_source : 81eb1ce2f67f70ee08908d69db54f8625df341cb
2018-03-16 12:08:00 +02:00
James Willcox
a22befd731 Bug 1443822 - Use BUILD_ID in version string for non-release/beta GeckoView r=nalexander
MozReview-Commit-ID: JNcbpLmCWz3
2018-03-16 14:38:54 -05:00
Andreas Pehrson
cee7fb987b Bug 1443157 - Disregard aData for event recording-device-events. r=johannh
MozReview-Commit-ID: 8Lo8PWmOAPQ

--HG--
extra : rebase_source : 73ad3259abdef72f5b35d4f1e61f24e17b938dfd
2018-03-14 18:39:03 +01:00
Coroiu Cristina
51fd916771 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-03-16 01:43:13 +02:00
Tim Nguyen
f74cd699cc Bug 1445100 - Remove pageReport property from browser binding. r=Paolo 2018-03-15 17:56:48 +00:00
James Willcox
1738c4b66f No bug, fix the GeckoView docs build, r=me and DONTBUILD
MozReview-Commit-ID: 895PZCZWWVi
2018-03-15 11:59:40 -05:00
Marco Bonardo
014fcdedcd Bug 474043 - Part 5 - Remove the json suffix from nsHandlerService. r=Paolo
MozReview-Commit-ID: C7H7VlYO25i

--HG--
rename : uriloader/exthandler/nsHandlerService-json.js => uriloader/exthandler/HandlerService.js
rename : uriloader/exthandler/nsHandlerService-json.manifest => uriloader/exthandler/HandlerService.manifest
extra : rebase_source : b27f3134ec035b9c2fa846c0b6152e65afeb2b7c
2018-03-15 14:44:00 +01:00
Marco Bonardo
afe040fd02 Bug 474043 - Part 1 - Get rid of the remaining mimeTypes.rdf references. r=Paolo
MozReview-Commit-ID: 78LHYTVlEtR

--HG--
extra : rebase_source : b16b0c5d202419bd39a287d2868f09fbf6ad45e7
2018-03-12 22:24:07 +01:00
Grigory Kruglov
e4c559d97b Bug 1445462 - Ensure tasks aren't scheduled during upload after flow has been aborted r=rnewman
This should have been a part of Bug 1408710, but alas, here we are.

Patch changes two things:
- serializes process failures in BatchingUploader if record-to-be-uploaded fails sanity checks and server requirements
-- this helps us short-circuit flow in RecordsChannel
- avoids performing any work in ServerSession's storeDone if flow has been aborted

MozReview-Commit-ID: 9qevdzRvHEx

--HG--
extra : rebase_source : 2e30aa7e222916acb791a9803bab0d4d95e5e491
2018-03-14 14:14:23 -04:00
Grigory Kruglov
f7b60c03fd Bug 1445462 - Pre: Clean up "ignore records on batch failure" code r=rnewman
No functional change; added tests to cover the decision tree a bit better, renamed stuff.

MozReview-Commit-ID: LwvyBaAg421

--HG--
extra : rebase_source : 4e46be5f67317f6bd5ea0c4701587908a3628634
2018-03-14 14:12:48 -04:00
arthur.iakab
8976abf9ca Merge inbound to mozilla-central. a=merge 2018-03-14 12:00:13 +02:00
Masayuki Nakano
fcb248a698 Bug 1343451 - part 5: Make GeckoEditableSupport dispatch dummy eKeyDown and eKeyUp event during composition always r=jchen
On Android, GeckoEditableSupport has already dispatched eKeyDown event and
eKeyUp event even during composition.  I.e., the pref which will be enabled
by bug 354358 has already been set to true only on Android.

On the other hand, GeckoEditableSupport does not dispatch them if content
listens to "input", "compositionstart", "compositionupdate" or
"compositionend".  So, different from the other platforms, we need additional
pref to make the new behavior behind pref.

Therefore, this patch adds a new pref,
"intl.ime.hack.on_any_apps.fire_key_events_for_composition", to override
existing "intl.ime.hack.on_ime_unaware_apps.fire_key_events_for_composition"
pref.  And sets mKeyCode and mKeyNameIndex of the dummy KeyboardEvents to
NS_VK_PROCESSKEY and KEY_NAME_INDEX_Process.

MozReview-Commit-ID: Fuy0Ir2xiO5

--HG--
extra : rebase_source : c76b613ea186458ebdf0d67f4bc984e8ac5f1041
2018-02-27 17:24:35 +09:00
Eugen Sawin
7901ffbada Bug 1445389 - [1.0] Add IntDef annotations to int flags. r=snorp 2018-03-13 20:25:05 +01:00
Eugen Sawin
1f9570b937 Bug 1445240 - [1.0] Add element type to onContextMenu callback for image and media elements. r=snorp 2018-03-13 20:25:05 +01:00
Narcis Beleuzu
298d1d55b5 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-13 12:36:54 +02:00
Andrew Gaul
24e313e7c7 Bug 1437430: Make some immutable final fields static; r=mcomella
Adding static reduces memory overhead from per-instance to per-class and allows
initialization at compile-time instead of run-time.  Found via a proposed
error-prone pull request:

https://github.com/google/error-prone/pull/930

MozReview-Commit-ID: CMj6vqFeCdI

--HG--
extra : rebase_source : 43e91b3d8ff4bd8171ac25bd0b333d09645687a6
2018-02-11 22:36:58 -08:00
Noemi Erli
ac0a30f58c Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-13 01:16:04 +02:00
Margareta Eliza Balazs
d6d1b8a6a5 Merge inbound to mozilla-central. a=merge 2018-03-13 01:10:10 +02:00
Sylvestre Ledru
06b7836c7e Bug 1444628 - Fix a bunch of typo in the doc r=ahal
MozReview-Commit-ID: SNXsViVUm0

--HG--
extra : rebase_source : d1a73dd5399854c0ec28087b207bb1b1d4bb9c02
2018-03-10 17:14:38 +01:00
Nick Alexander
348abe631c Bug 1444534 - Part 2: Fold m/a/base/locales into m/a/base. r=ted.mielczarek
At last, another part of our long nightmare bites the dust.  We had a
complicated system where m/a/base used a FORCE $(MAKE) to produce
l10n-dependent pieces in m/a/base/locales, foiling sensible recursive
Make dependencies and causing much pain and suffering.  Now that
things are in moz.build, we can fold this into m/a/base, simplifying
the dependencies.  This gets us one step closer to expressing the APK
generation that consumes the dependencies in moz.build.

MozReview-Commit-ID: FzLtgR8AMue

--HG--
extra : rebase_source : 39a3da192822bea9fa803a2bcae76a89dde41a17
2018-03-08 14:19:13 -08:00
Nick Alexander
9ff601f55f Bug 1444534 - Pre: Don't generate JNI wrappers for multi-locale builds or single-locale repacks. r=ted.mielczarek
As the comment says, these aren't useful during the final stage of
assembling a multi-locale build (when AB_CD=multi is set -- they're
definitely useful for the initial build, when AB_CD is unset and
implicitly en-US).  And single-locale repacks don't do any
compilation, so they're definitely not useful there.

By guarding, we avoid having to be specific about what we're building
in the build invocations that will be moved out of |mach package| and
into different parts of the multi-locale build and single-locale
repack processes.

Subsequent tickets will migrate this whole JNI wrapper generation
mechanism to GENERATED_FILES anyway, moving the JNI wrapper generation
closer to the build steps that need the wrappers and avoiding the
problem entirely: those build steps won't be invoked at all for
multi-locale builds or for single-locale repacks.

MozReview-Commit-ID: Lt2d6uFm5Dq

--HG--
extra : rebase_source : 88cb76a01641a46e21f4e21da86c07a068ee64cc
2018-03-09 10:39:46 -08:00
Nick Alexander
228cff2600 Bug 1444534 - Pre: Don't hide l10n Make invocations. r=ted.mielczarek
There's just no need for this: it makes interpreting build logs that
little bit harder.

MozReview-Commit-ID: 7gq73I8I3Bt

--HG--
extra : rebase_source : 1e5be3b243fc785c195c442e162edc8fc1fffc1d
2018-03-07 12:25:26 -08:00
Geoff Brown
13a76c5039 Bug 1439037 - Do not delay import of NotificationDB on Android; r=snorp
--HG--
extra : rebase_source : 719ba8a54c22c09164c7027f178118a2222d609e
2018-03-12 07:46:50 -06:00
Gijs Kruitbosch
4340ba60f2 Bug 1444082 - sync reader mode to github tip ( 8525c6af36d3badbe27c4672a6f2dd99ddb4097f ), r=johannh
MozReview-Commit-ID: LZLFf9kyUR5

--HG--
extra : rebase_source : 9f2e517afa764dbe339b84abfaaf948b1402cba1
2018-03-08 14:35:02 +00:00
Noemi Erli
40b1baaab5 Merge inbound to mozilla-central. a=merge 2018-03-10 11:58:34 +02:00
Jim Chen
d5f3264031 Bug 1442250 - 5. Reset native queue early when transferring; r=esawin
When we reset the old native queue when transferring to another session,
perform the reset right after the transfer() call, instead of in
onTransfer(), which is too late for clearing stale pending calls.

Then, after transferring to a new queue, let Gecko call Window.onReady
to set the new queue's state if needed. That way the Java queue state is
consistent with the Gecko state.

MozReview-Commit-ID: CUXGrhR4FCD

--HG--
extra : rebase_source : a196361f1db1304c178a3471082d586dddfe2a32
2018-03-09 12:34:38 -05:00
Jim Chen
61fc7e2276 Bug 1442250 - 4. Fix crash when child preloading fails; r=jchen
Fix a null pointer crash when we fail to preload a child process.

MozReview-Commit-ID: FIJopxOVAEj

--HG--
extra : rebase_source : 600466740c684bfadcfac0e30d5bf2fc075e4d25
2018-03-09 12:34:37 -05:00
Jim Chen
ef46dc1706 Bug 1442250 - 2. Unregister then re-register all listeners on close; r=esawin
Ensure that we unregister and re-register all listeners on
closeWindow, so that the listeners are ready for any new windows that
are subsequently opened.

MozReview-Commit-ID: EKzCRS10odN

--HG--
extra : rebase_source : 80615ef28839d9e76ecc47881d7b47b59ddea563
2018-03-09 12:34:37 -05:00
Jim Chen
42d71d7dc2 Bug 1442250 - 1. Add SessionLifecycleTest; r=esawin
Add session lifecycle tests for testing behavior for
openWindow/closeWindow, Parcelable support, and how some methods behave
when the session is open.

MozReview-Commit-ID: 4UfBRY1pLv6

--HG--
extra : rebase_source : d5c700b467fe6e812e013ea7f89a4ba3bc99974c
2018-03-09 12:34:37 -05:00
Csoregi Natalia
d61cdcf041 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-09 02:20:43 +02:00
Csoregi Natalia
cb78fdf973 Merge inbound to mozilla-central. a=merge 2018-03-09 02:17:42 +02:00
Nick Alexander
05bb797bce Bug 1443204 - Remove org.mozilla.geckoview.BuildConfig generation in moz.build. r=chmanchester
MozReview-Commit-ID: 4cOecBeUxJX

--HG--
extra : rebase_source : 04b0f2ae0c258f6fb4a2281f11350fa09438b5f5
2018-03-07 09:47:19 -08:00
Randall Barker
a248afab67 Bug 1443283 - Prevent crash when a null or open GeckoSession is registered with GeckoView.setSession() r=jchen,esawin
MozReview-Commit-ID: HV7xoz7fr6k
2018-03-08 08:27:16 -08:00
James Willcox
f76a1e66de Bug 1443659 - Rename GeckoSession.openWindow and closeWindow r=esawin,droeh
MozReview-Commit-ID: 1zhNRw2OJ7y
2018-03-08 08:56:34 -06:00
James Willcox
9387d7282b Bug 1443660 - Rename NavigationDelegate.onLoadUri() to onLoadRequest() r=jchen,esawin
MozReview-Commit-ID: o5NHVH6BMo
2018-03-08 08:56:34 -06:00
James Willcox
276f1505eb Bug 1443658 - Use an integer for target in NavigationDelegate.onLoadUri() target r=esawin
MozReview-Commit-ID: AXv8eHQ9sgG
2018-03-08 08:56:33 -06:00
shindli
c2506585bc Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
rename : devtools/client/shared/frame-script-utils.js => devtools/client/shared/test/frame-script-utils.js
rename : devtools/client/framework/test/shared-head.js => devtools/client/shared/test/shared-head.js
rename : devtools/client/framework/test/shared-redux-head.js => devtools/client/shared/test/shared-redux-head.js
2018-03-08 02:26:38 +02:00
shindli
568f98c908 Merge inbound to mozilla-central. a=merge 2018-03-08 02:20:08 +02:00
Paolo Amadini
d8a9df9c85 Bug 1363061 - Rename toolkit/components/jsdownloads to toolkit/components/downloads. r=mak
MozReview-Commit-ID: GuWeax0ubv3

--HG--
rename : toolkit/components/jsdownloads/src/DownloadCore.jsm => toolkit/components/downloads/DownloadCore.jsm
rename : toolkit/components/jsdownloads/src/DownloadHistory.jsm => toolkit/components/downloads/DownloadHistory.jsm
rename : toolkit/components/jsdownloads/src/DownloadIntegration.jsm => toolkit/components/downloads/DownloadIntegration.jsm
rename : toolkit/components/jsdownloads/src/DownloadLegacy.js => toolkit/components/downloads/DownloadLegacy.js
rename : toolkit/components/jsdownloads/src/DownloadList.jsm => toolkit/components/downloads/DownloadList.jsm
rename : toolkit/components/jsdownloads/src/DownloadPaths.jsm => toolkit/components/downloads/DownloadPaths.jsm
rename : toolkit/components/jsdownloads/src/DownloadPlatform.cpp => toolkit/components/downloads/DownloadPlatform.cpp
rename : toolkit/components/jsdownloads/src/DownloadPlatform.h => toolkit/components/downloads/DownloadPlatform.h
rename : toolkit/components/jsdownloads/src/DownloadStore.jsm => toolkit/components/downloads/DownloadStore.jsm
rename : toolkit/components/jsdownloads/src/DownloadUIHelper.jsm => toolkit/components/downloads/DownloadUIHelper.jsm
rename : toolkit/components/jsdownloads/src/Downloads.jsm => toolkit/components/downloads/Downloads.jsm
rename : toolkit/components/jsdownloads/src/Downloads.manifest => toolkit/components/downloads/Downloads.manifest
rename : toolkit/components/jsdownloads/src/moz.build => toolkit/components/downloads/moz.build
rename : toolkit/components/jsdownloads/public/mozIDownloadPlatform.idl => toolkit/components/downloads/mozIDownloadPlatform.idl
rename : toolkit/components/jsdownloads/test/browser/.eslintrc.js => toolkit/components/downloads/test/browser/.eslintrc.js
rename : toolkit/components/jsdownloads/test/browser/browser.ini => toolkit/components/downloads/test/browser/browser.ini
rename : toolkit/components/jsdownloads/test/browser/browser_DownloadPDFSaver.js => toolkit/components/downloads/test/browser/browser_DownloadPDFSaver.js
rename : toolkit/components/jsdownloads/test/browser/head.js => toolkit/components/downloads/test/browser/head.js
rename : toolkit/components/jsdownloads/test/browser/testFile.html => toolkit/components/downloads/test/browser/testFile.html
rename : toolkit/components/jsdownloads/test/data/.eslintrc.js => toolkit/components/downloads/test/data/.eslintrc.js
rename : toolkit/components/jsdownloads/test/data/empty.txt => toolkit/components/downloads/test/data/empty.txt
rename : toolkit/components/jsdownloads/test/data/source.txt => toolkit/components/downloads/test/data/source.txt
rename : toolkit/components/jsdownloads/test/unit/.eslintrc.js => toolkit/components/downloads/test/unit/.eslintrc.js
rename : toolkit/components/jsdownloads/test/unit/common_test_Download.js => toolkit/components/downloads/test/unit/common_test_Download.js
rename : toolkit/components/jsdownloads/test/unit/head.js => toolkit/components/downloads/test/unit/head.js
rename : toolkit/components/jsdownloads/test/unit/test_DownloadCore.js => toolkit/components/downloads/test/unit/test_DownloadCore.js
rename : toolkit/components/jsdownloads/test/unit/test_DownloadHistory.js => toolkit/components/downloads/test/unit/test_DownloadHistory.js
rename : toolkit/components/jsdownloads/test/unit/test_DownloadIntegration.js => toolkit/components/downloads/test/unit/test_DownloadIntegration.js
rename : toolkit/components/jsdownloads/test/unit/test_DownloadLegacy.js => toolkit/components/downloads/test/unit/test_DownloadLegacy.js
rename : toolkit/components/jsdownloads/test/unit/test_DownloadList.js => toolkit/components/downloads/test/unit/test_DownloadList.js
rename : toolkit/components/jsdownloads/test/unit/test_DownloadPaths.js => toolkit/components/downloads/test/unit/test_DownloadPaths.js
rename : toolkit/components/jsdownloads/test/unit/test_DownloadStore.js => toolkit/components/downloads/test/unit/test_DownloadStore.js
rename : toolkit/components/jsdownloads/test/unit/test_Downloads.js => toolkit/components/downloads/test/unit/test_Downloads.js
rename : toolkit/components/jsdownloads/test/unit/test_PrivateTemp.js => toolkit/components/downloads/test/unit/test_PrivateTemp.js
rename : toolkit/components/jsdownloads/test/unit/xpcshell.ini => toolkit/components/downloads/test/unit/xpcshell.ini
extra : rebase_source : 7062bc9278460abf0da3f1ae2ba02daa3c4f6abc
2018-03-06 17:40:59 +00:00
Bogdan Tara
e3282a1fb3 Merge inbound to mozilla-central. a=merge 2018-03-07 12:03:48 +02:00
Jim Chen
5c88095f46 Bug 1442255 - 7. Switch the order of fd arguments; r=jchen
Switch the order of the IPC FD argument and the crash FD argument in
e10s calls, because the IPC FD is the primary FD, and the crash FD
should be grouped with the crash annotation FD.

MozReview-Commit-ID: CAVyYAIIBPm

--HG--
extra : rebase_source : 596f590443f727d1a79582202eed122f79ae85cf
2018-03-06 13:52:50 -05:00
Jim Chen
8865f7185a Bug 1442255 - 6. Adjust process count for GeckoView; r=jchen
Set process count to 1 because we only support one child process right
now.

MozReview-Commit-ID: HJAWvN4aqSX

--HG--
extra : rebase_source : 53e997b69b4b11fc3673a546ba0ad276e772d570
2018-03-06 13:52:50 -05:00
Jim Chen
cfa417a938 Bug 1442255 - 5. Use extras bundle to initialize child processes; r=esawin
Pass the extras bundle from the main process to the child process
through IChildProcess.start, instead of through the Intent, which is not
guaranteed to work because intent extras are not guaranteed to be passed
to Service.onBind.

MozReview-Commit-ID: I2EToBNE2Y6

--HG--
extra : rebase_source : 48df1d42d75db9cf5e562d7ee294c938ea765699
2018-03-06 13:52:50 -05:00
Jim Chen
e44c2b2651 Bug 1442255 - 4. Use extras bundle to initialize Gecko in Fennec; r=esawin
Use extras bundle (e.g. from an Intent) to initialize Gecko in GeckoApp
and GeckoService.

MozReview-Commit-ID: AmLZ8Uir8f4

--HG--
extra : rebase_source : 89b93e482eb4cd90760fd22f7702b6c1fa71ec10
2018-03-06 13:52:50 -05:00