Commit Graph

570337 Commits

Author SHA1 Message Date
James Teh
ff41c00a3e Bug 1416986 part 3: AccessibleHandler: Avoid cross-process QI calls for interfaces which we know don't exist. r=aklotz
The proxy manager caches interfaces marshaled in the payload and returns them on QI without a cross-process call.
However, it doesn't know about interfaces which don't exist.
We can determine this from the payload, since interfaces which don't exist will have a null pointer.
We use this information to avoid querying the proxy in this case.

MozReview-Commit-ID: FnzDetmTiPP

--HG--
extra : rebase_source : 076ce714a69d3883a149487e5f9235ff495eedd0
2017-11-15 12:28:45 +10:00
James Teh
aebc388fb6 Bug 1416986 part 2: Include interfaces the client is likely to request in the accessible handler payload. r=aklotz
Now that virtual buffers have to render across processes, we want to eliminate as many cross-process calls as possible.
This includes QueryInterface calls, since buffers query for several interfaces on every node they visit.
To avoid these cross-process QI calls, we include interfaces clients are likely to request in the handler payload.
This way, they get marshaled in the single call used to retrieve the object.

This patch does the following:

1. Passes the interceptor when building the payload.
We need this so we can get interceptors for other interfaces.

2. Splits the payload into two main parts: a static part and a dynamic part.
The (new) static part contains the interface pointers. The dynamic part contains the rest.
This is necessary because the refresh call cannot pass the interceptor, but the interceptor is needed to build the static part.
Also, re-building the static part is pointless when refreshing.

3. Includes the interface pointers in the payload (BuildStaticIA2Data).
The pointers also have to be cleaned up after marshaling.

4. Releases the interface pointers in the handler after the payload is received.
We do this because they're aggregated by the proxy manager as they're unmarshaled.

MozReview-Commit-ID: 6VRLMNScgwW

--HG--
extra : rebase_source : 249589643b7a69e870962ea55a44849bf03a2693
2017-11-15 12:18:18 +10:00
James Teh
980e6321f7 Bug 1416986 part 1: Allow an mscom Handler to signal that it knows an interface is definitely not available. r=aklotz
If QueryHandlerInterface returns E_NOINTERFACE, the proxy will be queried for the interface.
However, the handler might know that the interface is definitely not available and could thus avoid a pointless cross-process call.
To facilitate this, the handler can now return S_FALSE to signal that the proxy should not be queried, thus immediately returning E_NOINTERFACE to the client.

MozReview-Commit-ID: 4RtBsA9BTOV

--HG--
extra : rebase_source : 4b0dcb16c469361c1944b24568ceb83fd0ac09c1
2017-11-15 09:59:44 +10:00
Ethan Lin
a661b32865 Bug 1418869 - Do not try to share the fallback images. r=aosmond
The flag of force update is only for fallback items. Fallback items can't share the images with other items.
So I replace 'aForceUpdate' with 'aFallback' and remove some unnecessary checks.

MozReview-Commit-ID: Dcu95FZXlUz

--HG--
extra : rebase_source : 1ec96e0b5d39cc5760b4b5490c5ca9ccbc1933c6
2017-11-20 10:36:14 +08:00
Mike Hommey
04927bc058 Bug 1419269 - Support installing mercurial on Debian versions != 9. r=gps
--HG--
extra : rebase_source : 187146a14083960b2175f907f466a46ad9091ce8
2017-11-21 14:11:14 +09:00
Alexandre Poirot
38ebed24c2 Bug 1408182 - Replace ImmutableJS by plain JS code; r=rickychien
MozReview-Commit-ID: 4f9Bv3XDuoc

--HG--
extra : rebase_source : 834d1cfae3e32054fcaad6faa3569c4c3a885287
2017-10-11 17:35:09 +02:00
Munro Mengjue Chiang
7afd6261d5 Bug 1418871 - release RWLock before return if CreateCapabilityMap failed. r=jib
MozReview-Commit-ID: 7wPGf4Dxjq5

--HG--
extra : rebase_source : 1bb561a454f4a26d0d8f40aa1efef7aaab1fe572
2017-11-20 15:04:42 +08:00
Edouard Oger
0154c0f443 Bug 1416320 - Do a quick sync before going to sleep. r=markh
MozReview-Commit-ID: I36uvEFlEz5

--HG--
extra : rebase_source : 93812879d3ea19042356e51672f7f464e30e9ee5
2017-11-10 14:09:44 -05:00
Masayuki Nakano
806984a06a Bug 1417492 - HTMLEditRules::TryToJoinBlocks() should no do nothing when left list node and right list node are not descendant of each other r=m_kato
We hit assertion which were added by bug 1414713.  That tells us an ancient bug.

There is comment which claims that we should move all list items in the right
list node to left list node if the list nodes should be merged.  However, this
has never been done actually since 2002.  The code tried to move *some* list
items in the right list node to the list list node.  However, retrieving first
list item at an offset almost always failed because the offset variable has
never been initialized.

If we believe the comment, we should move all children of the right list node
to the left list node.  However, until we get a testcase to reach this case,
we should keep current behavior, i.e., do nothing, for unexpected regression.

MozReview-Commit-ID: 1r81q1m44oW

--HG--
extra : rebase_source : fc02520f76440d5900fec0517aa6bcd188e1a14f
2017-11-18 16:12:44 +09:00
Cosmin Sabou
959009f1a8 Backed out changeset 23fbfd83e957 (bug 1416320) for ESlint failure at gecko/services/sync/modules/policies.js:558:71 on a CLOSED TREE 2017-11-21 07:26:51 +02:00
Anthony Ramine
b957047e49 servo: Merge #19310 - Update clap to 2.27.1 (from servo:bumps); r=KiChjang
This brings bitflags 0.9.1 to clap, which removes bitflags 0.7.0.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4d5ff42751ed25ebdc3f298d89acb7eaf58572e5

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 36bb86929c90eadca1f49981d472a96bbf2d9c1a
2017-11-20 22:04:35 -06:00
Edouard Oger
ab35b46c98 Bug 1416320 - Do a quick sync before going to sleep. r=markh
MozReview-Commit-ID: I36uvEFlEz5

--HG--
extra : rebase_source : 1910ac25084f6a8c37a6d21accf17da974d56493
2017-11-10 14:09:44 -05:00
Jim Chen
676e0a6e5c Bug 1416310 - 5. Remove GeckoLayerClient.java and update generated bindings; r=jchen
Remove GeckoLayerClient.java since it's no longer used, and update
auto-generated JNI bindings. r=me for trivial patch.

MozReview-Commit-ID: CiNPLLkh3VJ

--HG--
extra : rebase_source : 0cddae4f8914dd6f6a0631a7e69701828476f2b8
2017-11-20 17:17:02 -05:00
Jim Chen
a845c063bf Bug 1416310 - 4. Don't use GeckoLayerClient in native code; r=rbarker
Use LayerSession::Compositor or NativePanZoomController to call back
into Java from nsWindow.

MozReview-Commit-ID: 9JUKAE5XQK1

--HG--
extra : rebase_source : 9d6861b9d641e6abb6b6f94f5f9c4b3661ff071c
2017-11-20 17:17:02 -05:00
Jim Chen
85057e2e9a Bug 1416310 - 3. Merge GeckoLayerClient into other classes; r=rbarker
Move the GeckoLayerClient JNI callbacks to LayerSession.Compositor. Move
the rest of the viewport code to LayerView. Finally, move the input
event synthesis code to NativePanZoomController.

MozReview-Commit-ID: 1FEAM43KcwL

--HG--
extra : rebase_source : af2ded170a79f13afbb1f690ae466e77c7145ff6
2017-11-20 17:17:02 -05:00
Jim Chen
75a417ee33 Bug 1416310 - 2. Use per-GeckoView event to handle scroll-to-focused-input; r=rbarker
Instead of sending an event through the global EventDispatcher in
GeckoLayerClient, switch to using the per-GeckoView EventDispatcher in
GeckoInputConnection, to handle scroll-to-focused-input-on-resize. This
lets us implement the same functionality for standalone GeckoView.

The patch also fixes some small bugs including unregistering
not-registered events, not scrolling when switching input focus, and
inadvertent scrolling when not showing the keyboard.

MozReview-Commit-ID: 20OZP9dMXtI

--HG--
extra : rebase_source : d9dee0fd8b3d01147b8b2eda5154c380d0f167dd
2017-11-20 17:17:01 -05:00
Jim Chen
bbe7b4e34c Bug 1416310 - 1. Remove getMatrixForLayerRectToViewRect; r=rbarker
Patch gets rid of `LayerView.getMatrixForLayerRectToViewRect`, and just
uses `LayerView.getZoomFactor` directly when calculating the matrix in
GeckoInputConnection. This also lets us avoid the `isCompositorReady`
call on a non-UI thread. To get the correct offset, we need the screen
bounds from Gecko, so it's passed to Java as the first element in the
rect array. Using bounds from Gecko lets us avoid having to deal with
things like the dynamic toolbar animator ourselves.

MozReview-Commit-ID: 6I61SZGyQyO

--HG--
extra : rebase_source : d576fb7ef9a42de10b14db662e5c4833f16f6312
2017-11-20 17:17:00 -05:00
Mike Hommey
e760c78ddc Bug 1419217 - Change comparison functions for red-black trees. r=njn
- This makes all of them return an enum, quite similar to rust.
- This makes all of them derive from a single implementation of an
  integer comparison.
- This implements that integer comparison in terms of simple operations,
  rather than "smart" computation, which turns out to allow compilers
  to do better optimizations.
  See https://blogs.msdn.microsoft.com/oldnewthing/20171117-00/?p=97416

--HG--
extra : rebase_source : 89710d7954f445d43e6da55aaf171b1f57dce5fc
2017-11-21 09:11:54 +09:00
Manish Goregaokar
8dd74554ea servo: Merge #19274 - Fetch cancellation (from Manishearth:xhr-cancel); r=jdm
This PR implements cancellation for fetch, and uses it for XHR. This means that fetch clients can now send a message to the fetch task asking for the network request to be aborted.

Previously, clients like XHR had abort functionality but would implement it by simply ignoring future messages from the network task; and would not actually cancel the network fetch.

Source-Repo: https://github.com/servo/servo
Source-Revision: 00b3612fe9045f1cb6ba6c89ba7801642a6fa2c9

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 4ab32f3b8477c9f2157490eeeb76683e5a5d98f7
2017-11-20 20:48:17 -06:00
KuoE0
65de3f260a Bug 1419247 - Allow Stringify() to support nsSize. r=mtseng
MozReview-Commit-ID: 5OU6Db5z29S

--HG--
extra : rebase_source : 6cebd66f1cd0ca248e18a5f81cb63347d00c9e6a
2017-11-20 17:39:38 +08:00
Mark Hammond
4b0e06f570 Bug 1395453 - add tooltips to the sync engine names in about:preferences. r=eoger
MozReview-Commit-ID: 89nFDOf3N0U

--HG--
extra : rebase_source : eab42551364f7c21eb9e1dabc88392ab5d34ddd4
2017-09-15 13:29:37 -07:00
Jon Leighton
578d926271 servo: Merge #19272 - Further changes in relation to #19171 (from jonleighton:issue-19171-2); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 979793593269ed1197e15adeb0b029662ff9d460

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 732ddd589692b2b6e50f5aa81035b8fb704321ac
2017-11-20 19:31:52 -06:00
Ting-Yu Lin
dc7e13b5d5 Bug 1418905 - Move nsRuleNode::ComputeCoordPercentCalc() into nsStyleCoord. r=heycam
MozReview-Commit-ID: GLLseBxhUiP

--HG--
extra : rebase_source : 2940610dbb5e81e463db82459a46a54eb693e5cb
2017-11-20 14:05:19 +08:00
Ting-Yu Lin
320b123d4b Bug 1418905 - Move nsRuleNode::ComputeComputedCalc() into nsStyleCoord. r=heycam
MozReview-Commit-ID: LFxZGzyyii6

--HG--
extra : rebase_source : 516a8ed1a372d483f4c96cd392c1d382b0b4e38a
2017-11-20 13:30:27 +08:00
Gregory Terzian
c949aef52f servo: Merge #18676 - Continue http cache work (from gterzian:continue_http_cache_work); r=jdm
<!-- Please describe your changes on the following line: -->

Work in progress, and not quite worth a review yet. (Continuation of https://github.com/servo/servo/pull/4117)

TODO

- [ ] cache metadata (find some subset of`net_traits::Metadata` that can be shared across threads, it seems the problem is mainly stuff inside `hyper::header` in the `headers` field)

- [ ] determine which other fields of a `Response` need to be cached, so a full and valid one can be returned upon a cache hit.

- [ ] determine how to best share the cache across fetch threads (inside HttpState like I tried now?)

- [ ] Spend more time reading the spec and make sure the cache follows it where it matters.

- [ ] Make the current wpt tests pass.

- [ ] More...

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #12972  (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: e2bc0f017cfd24734777f64d8607b23dbe9552d7

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 059fa41ef6c333ab9cc0adece4f431fec59a84c2
2017-11-20 18:22:06 -06:00
Robert Helmer
56ca69de9d Bug 1389341 - start generating jsdoc for AddonManager API r=kmag
MozReview-Commit-ID: IpREaXBIMbq

--HG--
extra : rebase_source : 83fa1b40a52f890b25bbf477bef2aaf146f77098
2017-09-14 13:18:11 -07:00
Robert Helmer
42315c18f8 Bug 1389341 - add basic support for sphinx-js to mach doc r=gps
MozReview-Commit-ID: FIzWD8tnjYi

--HG--
extra : rebase_source : 655ea46cffefda77f0908924fdbbb8d17212654a
2017-09-14 13:17:09 -07:00
Alan Jeffrey
b305ce9dec servo: Merge #19305 - Include OS and architecture in test-perf data (from asajeffrey:test-perf-os-and-arch-in-data); r=jdm
<!-- Please describe your changes on the following line: -->

Initially, we're just running test-perf on linux-nightly, but at some point we should run on other architectures.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because they're test infrastructure

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 721723291cfc4bf6ee2facd2b919446038fa0c94

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 7cd48d859821bb419920e68e6bc38d754bf4721e
2017-11-20 17:24:45 -06:00
Miko Mynttinen
8f00af8953 Bug 1415485 - Make the pref layout.display-list.retain live again r=mattwoodrow
MozReview-Commit-ID: 6QFc4Sq3WiC

--HG--
extra : rebase_source : 268c2959d38e955d1af9ab39fdb8cce0146788e3
extra : intermediate-source : 7ee9657574a2ee223b6184d1657803a0d382be59
extra : source : 558439637eba09eaae8a653ffc77d5830b16ff42
2017-11-09 16:10:21 +01:00
Robin Grenet
34508b32f6 Bug 1360278 - Add preference to trigger context menu on mouse up for GTK+ and macOS, r=mstange,smaug
MozReview-Commit-ID: Bg60bD8jIg6

--HG--
extra : rebase_source : cc8bd5796096f49ad4fdab81885a426afd6117e4
2017-11-16 13:35:58 +01:00
Axel Hecht
7245bd41b2 bug 1385227, use proper make steps to put l10n repacks in sequence, r=gps
This drops the abuse of make dependencies to factor our steps
in l10n repacks and language packs.
It's replaced with clobbers, libs, and the packaging, which
can be shared between installers and the language pack.

MozReview-Commit-ID: 2vEHp0QogXQ

--HG--
extra : rebase_source : c14f0b17904f8f9e0e3f004384c2a292ceeafe4f
extra : source : e95f8bd7b5190bf1d3fae75a88a15ebbe6613809
2017-08-04 17:19:12 +02:00
Axel Hecht
fcebba4388 bug 1385227, generate full update from l10n-stage directly, r=rail
For regular builds, we build the mar from an unpackaged exe on windows.
For repacks, we just built that from our l10n-stage directory,
don't unpack again.

MozReview-Commit-ID: 8gQ9G23RgzB

--HG--
extra : rebase_source : b3eb944a0cf423a4b0e22d8884fc90780a3bb109
extra : source : 84091f931dff9e1253b0cfa96b4197255a94ddb2
2017-08-22 15:27:51 +02:00
Doug Thayer
78bc8cef16 Bug 1338800 - await completeDeferred for all resources r=mak
To reduce any contention from migrating multiple resources at the
same time, it seems prudent to wait for each to finish before
migrating the next. res.migrate is only sometimes properly async,
so the simplest thing to do today is to just always await
completeDeferred.promise. Additionally I am filing Bug 1418455
to track simplifying this to simply await res.migrate.

MozReview-Commit-ID: LdgNsxfuzu4

--HG--
extra : rebase_source : d111110f1445ed84785523ee12b5afb3da2d7207
2017-11-17 11:45:44 -08:00
Emilio Cobos Álvarez
0a8a704eab servo: Merge #19297 - style: Expose some properties to chrome code, and hide some accidentally-exposed ones (from emilio:hidden-props); r=upsuper
I'm adding a test for internal properties after this in Gecko.

Source-Repo: https://github.com/servo/servo
Source-Revision: e67bb6ccb5a4fa64f5aaea76cfe76943e873c7c5

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 5a281b0b961cb73d8837b11393fd63fc33e3dae7
2017-11-20 15:58:46 -06:00
Tim Nguyen
a8dec5b3f6 Bug 1370499 - Support WebExtensions bookmark context menus. r=mixedpuppy
MozReview-Commit-ID: AkYxeGHlDvi

--HG--
extra : rebase_source : 104e86ceec0994076b1c05d6de2000ac1bc77e8c
2017-11-20 23:01:02 +00:00
Daosheng Mu
395b4fcfac Bug 1418879 - Refine dom/vr and gfx/vr to fit with static-analysis; r=kip
MozReview-Commit-ID: K1r5NgQuuPK

--HG--
extra : rebase_source : 23a7d8d1ed9d1f6caa6a160afd969d21a69b5d6e
2017-11-20 12:00:31 +08:00
Gerald Squelart
d886d393e0 Bug 1418851 - Inlined constant-time definition of nsDisplayItem::Count() - r=mattwoodrow
The "linear time" comment was rendered incorrect by bug 1404181.
And as the body is now only returning a member variable, it's more efficient
and maintainable to just have it to the header.

MozReview-Commit-ID: 4vjB1PyemxR

--HG--
extra : rebase_source : 8089dd66218922a07ffcca9a35f9809522752255
2017-11-21 09:14:32 +11:00
Gabriele Svelto
0a82b2b0c6 Bug 1418398 - Always un-define _FORTIFY_SOURCE before defining it; r=glandium
MozReview-Commit-ID: 6yN6kA0jQWg

--HG--
extra : rebase_source : 6b805851198fac42e556361557ea6e0524e0ff82
2017-11-20 14:41:35 +01:00
Robin Miller
189e35c016 Bug 1403686 - Crops screenshots to a region based on a selector. Initial Impl of cropping with Chris Cho. r=jaws
Can now crop screenshots to a given list of XUL elements, which is specified by CSS selectors or custom functions.
Also changed behavior so that if different window types are given, the application exits.

MozReview-Commit-ID: CqmIJFufONw

--HG--
extra : rebase_source : ede33b1c25a8507cdc6abcc6f4bc697e3acd9f0d
2017-10-14 17:00:37 -04:00
Brad Werth
f6f94ad8e2 Bug 1414920 Part 2: Add test of getElementsWithGrid. r=dholbert
MozReview-Commit-ID: GwBlW6Qw3NZ

--HG--
extra : rebase_source : 2de3a02f48fd994dfb8e1ad9beb9d895682b9c7d
2017-10-31 13:53:40 -07:00
Brad Werth
c9815751c2 Bug 1414920 Part 1: Add chrome-only API getElementsWithGrid(), for devtools. r=dholbert,smaug
MozReview-Commit-ID: L44Q95wEqDA

--HG--
extra : rebase_source : d3892120516b30b1ee090ed7b9f5a108313d0532
2017-10-31 12:05:02 -07:00
Edouard Oger
6341dc253c Bug 1419146 - Respect mozErrors in Request. r=bkelly
MozReview-Commit-ID: Lbx395q7BYF

--HG--
extra : rebase_source : 9928a998378b4f84914f0b45ebb2266f34b04230
2017-11-20 17:07:26 -05:00
Brindusan Cristian
9bd6ed7630 Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : 4c68fb1a967a7c1b64e9779851573eb29a412908
2017-11-21 00:24:13 +02:00
Cosmin Sabou
fdc83a94aa Merge inbound to mozilla-central r=merge a=merge 2017-11-21 00:01:02 +02:00
Cosmin Sabou
9d255b82df Merge autoland to mozilla-central r=merge a=merge 2017-11-20 23:58:28 +02:00
ffxbld
cde731d2d0 No bug, Automated HPKP preload list update from host bld-linux64-spot-034 - a=hpkp-update 2017-11-20 11:37:26 -08:00
ffxbld
d7e570ab96 No bug, Automated HSTS preload list update from host bld-linux64-spot-034 - a=hsts-update 2017-11-20 11:37:22 -08:00
Brindusan Cristian
9a077dca00 Backed out changeset da9706e0d3c2 (bug 1403686) for ESlint failures on browser_screenshots_cropping.js r=backout on a CLOSED TREE 2017-11-20 21:19:56 +02:00
ffxbld
21d7bcc344 No bug, Automated HPKP preload list update from host bld-linux64-spot-030 - a=hpkp-update 2017-11-20 10:57:37 -08:00
ffxbld
2fb6a219c1 No bug, Automated HSTS preload list update from host bld-linux64-spot-030 - a=hsts-update 2017-11-20 10:57:34 -08:00