Commit Graph

628905 Commits

Author SHA1 Message Date
Masayuki Nakano
c8b0ce3150 Bug 1504963 - part 4: Make IMEHandler create native caret over our caret if it's necessary r=Jamie,m_kato
IMMHandler and TSFTextStore are good class to put native caret when they have
enough information.  However, for example, IMMHandler may not have its singleton
instance until first composition of IMM-IME starts.  Therefore, typically,
IMEHandler is a good class to put native caret without composition.

This patch adds IMEHandler::MaybeCreateNativeCaret(), and if it won't create
native caret because not yet received WM_GETOBJCT for OBJID_CARET, we should
fire window event for MSAA applications.  If there is new MSAA application
retrieves OBJID_CARET, we'll receive WM_GETOBJECT for OBJID_CARET
asynchronously.  Then, we should start to put native caret for such
applications.

Note that if we create native caret, some versions of ATOK refers the native
caret and the behavior becomes worse than usual.  Therefore, we need to
keep not using native caret as far as possible.

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

--HG--
extra : moz-landing-system : lando
2018-12-18 08:38:23 +00:00
Masayuki Nakano
682a4d56d1 Bug 1504963 - part 3: Make TSFTextStore create native caret when it gets notified of content change r=Jamie,m_kato
If WM_GETOBJECT for OBJID_CARET is received but a11y module is not active,
IME module should create native caret over our caret because Windows will
handle the request with native caret automatically and we don't need to
enable a11y module only for it.

This patch makes IMEHandler store whether such message has been received and
makes TSFTextStore create native caret when composition, selection or layout
is changed because especially when there is composition, only TSFTextStore
knows correct position to put caret if there is composition or some dispatched
events have not been handled by content process yet.

Note that IMMHandler already does that since some legacy IMEs require native
caret to show its UI and we cannot check active IME strictly.  Therefore, this
patch does not touch IMMHandler.

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

--HG--
extra : moz-landing-system : lando
2018-12-18 08:38:23 +00:00
Masayuki Nakano
55978ba309 Bug 1504963 - part 2: Make IMEHandler manage whether native caret is created by it r=m_kato
IMEHandler needs to create native caret later (when there is no composition).
Therefore, IMEHandler should manage whether it creates native caret or not
and IMMHandler and TSFTextStore should create/destroy native caret via
IMEHandler.

Note that this patch makes IMMHandler stops managing whether native caret
is created for plugin or not because native caret is created only one instance
and anyway IME handlers should stop managing native caret when they loses
focus.

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

--HG--
extra : moz-landing-system : lando
2018-12-18 08:38:22 +00:00
Masayuki Nakano
fd2f9270a7 Bug 1504963 - part 1: Make IME modules not touch native caret if a11y module handles native caret r=Jamie,m_kato
If a11y module is active, it observers caret position and size, and when caret
position or size is changed, it creates/moves native caret to overlap with
our caret.

On the other hand, IME module also creates native caret if active IME requires
it.  Therefore, both of them conflicts each other.

This patch makes IME module stop touching native caret if a11y module is active.

Although, a11y module with Flush Player does not work well for IME.  Therefore,
this patch keeps the conflict between them as-is for now.

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

--HG--
extra : moz-landing-system : lando
2018-12-18 10:40:50 +00:00
Diego Pino Garcia
9a04b4475e Bug 1429198 - Account for supportedNetworks in payment modifiers. r=MattN 2018-12-17 22:15:00 +02:00
Dão Gottwald
334555abe6 Bug 1514512 - Stop setting sizetopopup=pref on the urlbar. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D14685

--HG--
extra : moz-landing-system : lando
2018-12-17 17:49:47 +00:00
Dão Gottwald
cefc261792 Bug 1514509 - Remove unused image, stack, deck include points from urlbar binding. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D14684

--HG--
extra : moz-landing-system : lando
2018-12-17 18:19:48 +00:00
Dão Gottwald
75986fa000 Bug 1514505 - Remove unused urlbar-textbox-container. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D14683

--HG--
extra : moz-landing-system : lando
2018-12-18 11:16:05 +00:00
Valentin Gosu
f9762144c9 Bug 1355207 - Wait for http server shutdown and disable test_host.js on OSX r=dragana
The test intermittently fails on OSX. For some reason start(PORT) doesn't always fail when PORT is in use, so we timeout because the handler is never called. I suspect it's because of how SO_REUSEADDR and SO_REUSEPORT are handled on sockets sever-side on OSX. Since httpd is used for unit tests, there is little risk in disabling the test on OSX.
The alternative is to check for a timeout, and in that case switch to another port - which is cumbersome, and not the purpose of the test.

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

--HG--
extra : moz-landing-system : lando
2018-12-18 11:14:14 +00:00
Jan de Mooij
76238bc575 Bug 1512655 part 3 - Fix assertion in Cu.permitCPOWsInScope and ensure test globals that use it are in a separate compartment. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D14780

--HG--
extra : moz-landing-system : lando
2018-12-18 00:31:08 +00:00
Jan de Mooij
a2a91d4831 Bug 1512655 part 2 - Assert Cu.setWantXrays is never called on system-principal scopes. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D14695

--HG--
extra : moz-landing-system : lando
2018-12-17 20:38:59 +00:00
Jan de Mooij
111454f4a4 Bug 1512655 part 1 - Move forcePermissiveCOWs from CompartmentPrivate to RealmPrivate. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D14694

--HG--
extra : moz-landing-system : lando
2018-12-17 20:38:11 +00:00
James Graham
42aff60af0 Bug 1514285 - Update mozleak version number to 0.2, r=ahal
Depends on D14586

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

--HG--
extra : moz-landing-system : lando
2018-12-17 19:08:18 +00:00
James Graham
299fd88dd2 Bug 1514285 - Update mozlog version number to 3.10, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D14586

--HG--
extra : moz-landing-system : lando
2018-12-17 19:08:20 +00:00
Brindusan Cristian
228a150262 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-12-18 11:52:48 +02:00
Brindusan Cristian
13788edbab Merge inbound to mozilla-central. a=merge 2018-12-18 11:50:37 +02:00
Margareta Eliza Balazs
a5ee709df7 Backed out changeset 90db69624281 (bug 1495962) for reftest failures in reftests/position-sticky/nested-sticky-2.html DONTBUILD 2018-12-18 11:41:34 +02:00
Franziskus Kiefer
fcdcb9d6a7 Bug 1513839 - Make SSL_TIME_UNTIL_HANDSHAKE_FINISHED keyed by kea group r=keeler,jcj
This collects SSL_TIME_UNTIL_HANDSHAKE_FINISHED dependent on the key group used. This is nice to have in general and especially for the ecdhe-sidh thing.

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

--HG--
extra : moz-landing-system : lando
2018-12-18 09:33:34 +00:00
Henri Sivonen
3c6115331f Bug 1513473 - Re-enable the Text Encoding menu telemetry probes on the release channel. datareview=chutten. r=janerik
* Make the probes available on the release channel.
* Migrate the probes to newer probe types.
* Rename the probes.
* Set email.
* Set expiry.

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

--HG--
extra : moz-landing-system : lando
2018-12-18 09:06:55 +00:00
yulia
4b0a97499c Bug 1508660 - migrate getOrCreateHighlighterByType to inspectorFront; r=ochameau
Depends on D12439

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

--HG--
extra : moz-landing-system : lando
2018-12-18 08:45:30 +00:00
yulia
edb57234af Bug 1508660 - make storage front and changes front async; r=ochameau
Depends on D13110

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

--HG--
extra : moz-landing-system : lando
2018-12-18 08:33:11 +00:00
yulia
cda3c1b7bc Bug 1508660 - introduce getCachedFront; r=ochameau
Depends on D12439

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

--HG--
extra : moz-landing-system : lando
2018-12-18 08:32:33 +00:00
yulia
c8a2ddf91b Bug 1508660 - migrate getKnownHighlighter to inspectorFront; r=ochameau
Depends on D12438

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

--HG--
extra : moz-landing-system : lando
2018-12-18 08:45:28 +00:00
yulia
0b73b92f31 Bug 1508660 - migrate getHighlighterByType to inspector front; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D12438

--HG--
extra : moz-landing-system : lando
2018-12-18 08:31:43 +00:00
Nick Alexander
f138f58d97 Bug 1498406 - Part 3: Purge unused ANDROID_BUILD_TOOLS_VERSION. r=froydnj
We don't care anymore: the Gradle build fetches an appropriate version
of the build-tools package, and the one build-tool we actually use --
zipalign -- isn't version sensitive.

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

--HG--
extra : moz-landing-system : lando
2018-12-18 03:28:56 +00:00
Nick Alexander
47d6187d14 Bug 1498406 - Part 2: Don't check for Android platform in configure. r=froydnj
There's no need -- it will be fetched by Gradle when needed.  The only
wrinkle is that the user might be asked to confirm license agreements,
which could be a hassle (and could cause problems in CI, but there we
install relevant platforms in advance).

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

--HG--
extra : moz-landing-system : lando
2018-12-18 03:29:16 +00:00
Nick Alexander
a79bace97e Bug 1498406 - Part 1: Don't check for javac, javah, jar. r=froydnj
The build system no longer invokes these directly: they're all fetched
and invoked by Gradle and its plugins.

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

--HG--
extra : moz-landing-system : lando
2018-12-17 23:04:14 +00:00
WR Updater Bot
c96d792515 Bug 1514944 - Update webrender to commit b0e4a13491f9f780222d3aa374fa8f0c07508e73 (WR PR #3426). r=kats
https://github.com/servo/webrender/pull/3426

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

--HG--
extra : moz-landing-system : lando
2018-12-18 01:37:05 +00:00
WR Updater Bot
ed308cbc4b Bug 1514943 - Update webrender to commit 82286fdca3d27ef31640667de7b81e82be1555e2 (WR PR #3427). r=kats
https://github.com/servo/webrender/pull/3427

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

--HG--
extra : moz-landing-system : lando
2018-12-18 01:35:18 +00:00
WR Updater Bot
0000d47534 Bug 1514735 - Update webrender to commit 4de718f9ea3435c099cabafc02e8b51da539bc62 (WR PR #3428). r=kats
https://github.com/servo/webrender/pull/3428

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

--HG--
extra : moz-landing-system : lando
2018-12-18 01:32:52 +00:00
Blake Kaplan
b7296f0f06 Bug 1514844 - Remove the per-process notification cache. r=asuth
This assumes that all of the notifications for a given origin must be in the
same process. With this patch, we'll always go back to the parent process to
get the notifications. Up next is limiting our search in the parent process to
only the notifications we're looking for.

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

--HG--
extra : moz-landing-system : lando
2018-12-17 22:18:59 +00:00
Blake Kaplan
e131893a41 Bug 1514844 - Fix notification events in service workers. r=asuth
The current code assumes that it can get the ServiceWorkerManager in the child
process to send a message to the proper service worker. That isn't true, we
need to ask the parent to do it for us.

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

--HG--
extra : moz-landing-system : lando
2018-12-18 00:42:53 +00:00
Ricky Rosario
1371950808 Bug 1514352 - Add "hidden focus" functionality to URLbar r=adw
Adds hiddenFocus() and removeHiddenFocus() methods and some CSS selector tweaking to enable focusing without visible changes.

MozReview-Commit-ID: Dq66TET4AVR

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

--HG--
extra : moz-landing-system : lando
2018-12-18 00:38:21 +00:00
Barret Rennie
b3a3c41e3b Bug 1514393 - Correct formatting in nsJPEGEncoder.cpp r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D14771

--HG--
extra : moz-landing-system : lando
2018-12-17 23:50:23 +00:00
Kartikaya Gupta
9b1aa15d7e Bug 1514818 - Guard against sending UpdateZoomConstraints if the IPC channel is not open. r=botond
This might just push the crash to one of the other methods. If it does,
that will confirm that this is the right thing to be guarding against,
and we can extend the guard to any other methods that need it. If the
crash goes away entirely, that's good too and might be because
UpdateZoomConstraints is somehow "special" (it has been found to be
special in the past because at one point it was the first IPDL message
to get sent over some channel).

Depends on D14787

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

--HG--
extra : moz-landing-system : lando
2018-12-17 23:44:16 +00:00
Kartikaya Gupta
eb3a6ab710 Bug 1514818 - Introduce the mIPCOpen boilerplate to APZCTreeManagerChild. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D14787

--HG--
extra : moz-landing-system : lando
2018-12-17 23:44:14 +00:00
Lina Cambridge
d46281dce9 Bug 1514909 - Update the last sync time from X-L-M instead of X-W-T after a batch upload. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D14806

--HG--
extra : moz-landing-system : lando
2018-12-17 23:34:04 +00:00
Jim Blandy
689eea27da Bug 1510768: Move SpiderMonkey promise interface into its own header. r=arai
Move js/src/jsapi.h declarations related to promises and job queues into their
own public header file, js/public/Promise.h. Change the compilation units that
need these declarations to #include the new header.

There should be no changes to the actual functionality here, simply moving the
code to a new file, and removing the "JS" prefix from some typedefs which are
now in the JS namespace.

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

--HG--
extra : moz-landing-system : lando
2018-12-17 23:21:04 +00:00
Dennis Schubert
3a160e5189 Bug 1487401 - Remove mobile UA override for eBay. r=twisniewski,kmag,miketaylr
Differential Revision: https://phabricator.services.mozilla.com/D14717

--HG--
extra : moz-landing-system : lando
2018-12-17 21:38:49 +00:00
Agi Sferro
e75266a619 Bug 1502118 - Enforce GV lints with apilint. r=snorp
This makes it so that apilints lints with "GV" codes are enforced and will fail
the build.

Depends on D13882

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

--HG--
extra : moz-landing-system : lando
2018-12-17 22:32:11 +00:00
Agi Sferro
ba1aba5810 Bug 1502118 - Make FinderResult non-final for testing. r=snorp,esawin
This allows mocking for embedders.

Depends on D13881

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

--HG--
extra : moz-landing-system : lando
2018-12-17 22:31:59 +00:00
Agi Sferro
e03913bdda Bug 1502118 - Add threading annotations to remaining APIs. r=snorp
Depends on D13880

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

--HG--
extra : moz-landing-system : lando
2018-12-17 22:31:46 +00:00
Agi Sferro
4e6222e74d Bug 1502118 - Add @UiThread to all Delegate interfaces. r=snorp,esawin
Differential Revision: https://phabricator.services.mozilla.com/D13880

--HG--
extra : moz-landing-system : lando
2018-12-17 22:31:29 +00:00
Hiroyuki Ikezoe
f0fe14fe8d Bug 1514679 - Drop aFirstPass from ReflowScrolledFrame. r=botond
It hasn't been used since bug 300030.

Depends on D14715

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

--HG--
extra : moz-landing-system : lando
2018-12-17 21:54:41 +00:00
Hiroyuki Ikezoe
d864a9f8f1 Bug 1514679 - Move vScrollbarActualWidth inside the if block where the value is used. r=botond
Depends on D14714

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

--HG--
extra : moz-landing-system : lando
2018-12-17 21:54:24 +00:00
Hiroyuki Ikezoe
0a0f595df0 Bug 1514679 - Use layers::ScrollDirection instead of boolean. r=botond
Depends on D14713

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

--HG--
extra : moz-landing-system : lando
2018-12-17 21:54:11 +00:00
Hiroyuki Ikezoe
f46451eef5 Bug 1514679 - Drop aVertical from GetScrollbarMetrics. r=botond
The argument has never been used since the function the function was introduced
in bug 240276.

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

--HG--
extra : moz-landing-system : lando
2018-12-17 21:53:59 +00:00
Edouard Oger
37b79a2c14 Bug 1513781 - Use cached keys in FxA commands registration. r=vladikoff,rfkelly
Differential Revision: https://phabricator.services.mozilla.com/D14782

--HG--
extra : moz-landing-system : lando
2018-12-17 21:44:42 +00:00
Tooru Fujisawa
dc7c5aedef Bug 1513450 - Do not ignore .rej/.orig files. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D14286

--HG--
extra : moz-landing-system : lando
2018-12-17 21:41:01 +00:00
Emilio Cobos Álvarez
63179c8b0f Bug 1514449 - Use NonNegative more in the border code. r=boris,#style
This ended up not being so small of a patch as I'd have thought, since it
propagated a bit. But most of it is mechanical. Interesting part is
NonNegativeNumberOrPercentage and the actual uses of the NonNegative stuff and
during parsing.

This looks like it'd fix a few correctness issues during interpolation for all
the types except for BorderRadius and co (which handled it manually).

I should write tests for those in a different patch.

Depends on D14672

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

--HG--
extra : moz-landing-system : lando
2018-12-17 21:35:14 +00:00