Commit Graph

556522 Commits

Author SHA1 Message Date
Sebastian Hengst
8e0b4e937f Backed out changeset 5d320d8864e9 (bug 1353013) for failing e.g. test_accessiblecaret_cursor_mode.py of Marionette headless on OS X. r=backout 2017-09-05 22:44:20 +02:00
Francesco Lodolo (:flod)
c74d83de8c Bug 1396211 - Use mozIntl for dates in aboutTelemetry.js, clean up unused code r=chutten
MozReview-Commit-ID: KdUDzYNQqvD

--HG--
extra : rebase_source : 34eab3e454802f14ea55c1d3c40f22792315de80
2017-09-02 12:00:25 +02:00
Wei-Cheng Pan
db698c7b45 servo: Merge #18271 - Propagate dirty bits after invalidation if needed (from legnaleurc:propagate_dirty_bits); r=emilio
<!-- Please describe your changes on the following line: -->

Follow up for [bug 1388298](https://bugzil.la/1388298).

---
<!-- 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
- [ ] These changes fix #__ (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: 122e49d516c7c22d8672e40929760b11682df272

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 4fffb9b7e1bfcf8d42de1d61ea00b58bc82db41d
2017-09-05 14:18:52 -05:00
Sebastian Hengst
37ab9d8a49 Backed out changeset 78cce071b69e (bug 1396211) for eslint failure in toolkit/content/aboutTelemetry.js: Strings must use doublequote. r=backout 2017-09-05 22:09:17 +02:00
J. Ryan Stinnett
fcac089386 Bug 1330412 - Clean up Stylo Treeherder symbols. r=jmaher
Clean up and standardize Treeherder symbols for Talos and AWSY tasks:

* Stylo disabled groups include `sd`
* Stylo sequential groups include `ss`

MozReview-Commit-ID: 7cl6e0XvXNO

--HG--
extra : rebase_source : a7b4e7c78af673e204d7ff7479ce5fc87614248c
2017-09-01 13:07:48 -05:00
J. Ryan Stinnett
22df5aef06 Bug 1330412 - Convert Stylo jobs to Stylo disabled. r=jmaher
Convert all jobs that were exercising Stylo enabled to Stylo disabled instead.

Stylo enabled is now handled by the default jobs.

In Perfherder, Stylo enabled jobs will be untagged and take over the existing
Gecko series.  Stylo disabled jobs will have a new `stylo-disabled` tag and
create a new series.

MozReview-Commit-ID: BMXBRg3A95j

--HG--
extra : rebase_source : 0f3a6a1f6807dbb90c00d060a3a7f220c2141c64
2017-08-31 11:18:46 -05:00
J. Ryan Stinnett
3b56163041 Bug 1330412 - Schedule Linux Stylo Talos like others. r=jmaher
Make Linux Stylo Talos jobs explicit in the task list, like they are for macOS
and Windows.  This way we avoid have different approaches per platform.

(This is still the Stylo enabled form.  The next patch coverts to Stylo
disabled for all platforms.)

MozReview-Commit-ID: K4CcWvR9tlJ

--HG--
extra : rebase_source : 3727ddb09114e56493b5ee42df1b45a830a3a6dc
2017-08-31 12:10:48 -05:00
J. Ryan Stinnett
15a0f40522 Bug 1330412 - Limit reftest-stylo to linux64. r=jmaher
MozReview-Commit-ID: 4GIr1fIoils

--HG--
extra : rebase_source : dcbd763b617eb0dba3901317333a46ca19eb6c26
2017-08-31 11:57:27 -05:00
J. Ryan Stinnett
fb81e3161b Bug 1330412 - Stylo seq. runs for memory / perf only. r=jmaher
We no longer need to run unit / integration tests on Stylo sequential, but we'd
like to retain it for memory and performance checks.

In addition, we no longer need to explicitly `--enable-stylo` since it is the
default.  This also drops the `stylo` tag in Perfherder.

MozReview-Commit-ID: 3OI8Y7Q5PW

--HG--
extra : rebase_source : d80103b3c7991a833dc4603d1df4a6c4b62fd6c9
2017-08-31 11:28:17 -05:00
J. Ryan Stinnett
258ab1f0a4 Bug 1330412 - Enable Stylo by default. r=bholley,froydnj
MozReview-Commit-ID: LqrUHJ4WNFG

--HG--
extra : rebase_source : 1ae2b31908a252f448e6c4de86cde95f2d063fe1
2017-08-24 18:22:22 -05:00
Sebastian Hengst
3501d62e32 Backed out changeset b84fc40ed8c2 (bug 1394580) for eslint failure at mobile/android/modules/geckoview/Messaging.jsm:201: Missing space after *. r=backout 2017-09-05 21:53:24 +02:00
Sebastian Hengst
d7c61803f9 Backed out changeset 6c4c8b4e38cf (bug 1394580) 2017-09-05 21:51:30 +02:00
Sebastian Hengst
aead58a5ad Backed out changeset 995d9ef9af5f (bug 1394580) 2017-09-05 21:51:24 +02:00
Sebastian Hengst
17f8a84fbf Backed out changeset a9b1cbbeea9a (bug 1394580) 2017-09-05 21:51:19 +02:00
Sebastian Hengst
4b29fe66f5 Backed out changeset 1cc1955d6af3 (bug 1394580) 2017-09-05 21:51:13 +02:00
Sebastian Hengst
8f20753676 Backed out changeset f069f3c69597 (bug 1394580) 2017-09-05 21:51:07 +02:00
Mike Conley
ec416a2990 Bug 1353013 - Be less aggressive about preloading about:newtab. r=florian
Based on a patch that Dão Gottwald <dao+bmo@mozilla.com> wrote.

We used to preload about:newtab as soon as a tab had finished being opened,
which meant that the first opened tab was _never_ preloaded, and that we
risked janking the browser immediately after the user opened a new tab
(which is, arguably, the worst time to do it, since the user is probably
about to navigate that tab somewhere).

This patch makes it so that about:newtab is preloaded after:

1) 1 second of user inactivity, and
2) When we have at least 40ms of idle time to spend in an idle callback.

The 1s and 40ms thresholds were chosen arbitrarily, and we might tune them
over time.

MozReview-Commit-ID: J5xkPQvCdW6

--HG--
extra : rebase_source : 51aed2f47ee5c6a68d04036d0bdc9e6357a5fc8d
2017-08-24 15:23:18 -07:00
Marco Bonardo
7298681f5c Bug 1392081 - Reset the Places toolbar view when the toolbar is collapsed. r=Gijs
MozReview-Commit-ID: IFOxCnslZRX

--HG--
extra : rebase_source : 446fb2849146df0560336bd8cf751d93e18648b3
2017-08-29 23:26:24 +02:00
Marco Bonardo
97831f5b2c Bug 1392081 - Mochitest browser test for bookmarks toolbar overflow. r=Gijs
MozReview-Commit-ID: DwDZl2AELXC

--HG--
extra : rebase_source : 2668e6d8dc1b227992b632dacc1c6bb501a1bdee
2017-08-28 14:43:59 +02:00
Marco Bonardo
d81ea2a51e Bug 1392081 - Only build a subset of the buttons that may become visible on the bookmarks toolbar. r=Gijs
MozReview-Commit-ID: GOlQzUKw2go

--HG--
extra : rebase_source : b721087519e686f256e86308b8fcecec2afc7f47
2017-08-25 17:14:31 +02:00
Marco Bonardo
c2d287bf75 Bug 1392081 - Set the image attribute on bookmarks toolbar buttons only when they are visible. r=Gijs
MozReview-Commit-ID: HIalcxcCBsv

--HG--
extra : rebase_source : a5e6107f63d4a16005852511ab3b15cbb9771015
2017-08-25 15:31:06 +02:00
Marco Bonardo
2168017f1d Bug 1392081 - Use a document fragment to populate toolbar and menu Places views. r=Gijs
MozReview-Commit-ID: 1Q4U3xXfF4Y

--HG--
extra : rebase_source : 2cd7816f9b61a3099b3ea5e81c61e14413a048ae
2017-08-25 15:20:00 +02:00
Francesco Lodolo (:flod)
b92c2356cf Bug 1396211 - Use mozIntl for dates in aboutTelemetry.js, clean up unused code r=chutten
MozReview-Commit-ID: KdUDzYNQqvD

--HG--
extra : rebase_source : ab6ba41e8887b6e87bafe6aaba62cbdd1f09dd05
2017-09-02 12:00:25 +02:00
steveck-chung
be214a9581 Bug 1395519 - [Form Autofill] Keep the original data when record updated via submission. r=lchang
MozReview-Commit-ID: DkVgOlTqVhH

--HG--
extra : rebase_source : f02b7cddedb06ef6e41447bf2fe344115d6d5b68
2017-09-01 10:11:19 +08:00
Jonathan Kingston
7703be00cb Bug 1339610 - Web extension API for container icon and colors. r=baku,kmag
MozReview-Commit-ID: BosKoxM8FMZ

--HG--
extra : rebase_source : 594bd4bf0fbd03973c2bc29d46f99322ac3ace91
2017-08-27 00:47:02 +01:00
Jonathan Kingston
774f114ec8 Bug 1339610 - Move chrome:// container icons to be resource:// paths so extension developers can use them. r=baku
MozReview-Commit-ID: JLmKPftt2rG

--HG--
rename : browser/base/content/usercontext-briefcase.svg => browser/components/contextualidentity/content/briefcase.svg
rename : browser/base/content/usercontext-cart.svg => browser/components/contextualidentity/content/cart.svg
rename : browser/base/content/usercontext-chill.svg => browser/components/contextualidentity/content/chill.svg
rename : browser/base/content/usercontext-circle.svg => browser/components/contextualidentity/content/circle.svg
rename : browser/base/content/usercontext-dollar.svg => browser/components/contextualidentity/content/dollar.svg
rename : browser/base/content/usercontext-fingerprint.svg => browser/components/contextualidentity/content/fingerprint.svg
rename : browser/base/content/usercontext-food.svg => browser/components/contextualidentity/content/food.svg
rename : browser/base/content/usercontext-fruit.svg => browser/components/contextualidentity/content/fruit.svg
rename : browser/base/content/usercontext-gift.svg => browser/components/contextualidentity/content/gift.svg
rename : browser/base/content/usercontext-pet.svg => browser/components/contextualidentity/content/pet.svg
rename : browser/base/content/usercontext-tree.svg => browser/components/contextualidentity/content/tree.svg
rename : browser/base/content/usercontext-vacation.svg => browser/components/contextualidentity/content/vacation.svg
extra : rebase_source : 0f7875ce0fd4c7c987beb7953e66ffc0e475f13d
2017-08-25 12:30:16 +01:00
Jim Chen
30cae04acc Bug 1394580 - 6. Use WindowEventDispatcher for prompt if available; r=jchen
MozReview-Commit-ID: BZJSvnNC3OS

--HG--
extra : rebase_source : a443c3bff2a716620448e869aeadd6c9b34e1f53
2017-09-05 15:27:37 -04:00
Jim Chen
4c4c02d8cf Bug 1394580 - 5. Lazy-load Task.jsm in Messaging.jsm; r=esawin
We're not lazy-loading Task.jsm in Messaging.jsm right now (despite
declaring it through XPCOMUtils.defineLazyModuleGetter) because we
unnecessarily reference `Task` when Messaging.jsm is loading. This patch
makes us load Task.jsm only when `Task` is really needed.

MozReview-Commit-ID: 9rrnLQLaW4y

--HG--
extra : rebase_source : fab1379719a9fdf75ce45b1002d03300e5dbd9e8
2017-09-05 15:27:36 -04:00
Jim Chen
367bc83a53 Bug 1394580 - 4. Disable MDNS service for GeckoView; r=snorp
Standalone GeckoView doesn't make use of MDNS AFAIK (i.e. MDNS is only
used by features like casting or FlyWeb), but it takes up startup time,
so we should disable it.

MozReview-Commit-ID: CseHUos5B9I

--HG--
extra : rebase_source : 2dc6af2a360da05cf3d6ba2aaae87a64dd67c480
2017-09-05 15:27:36 -04:00
Jim Chen
98dc4b6b01 Bug 1394580 - 3. Lazy-load AndroidLog.jsm; r=droeh
Lazily load AndroidLog.jsm since we only need it for debug logging, and
logging is normally turned off in GeckoView code.

MozReview-Commit-ID: 5HNzYTwujMS

--HG--
extra : rebase_source : 5ef9bbe21ff1a53bc0e805f473154e1cf60d3b08
2017-09-05 15:27:36 -04:00
Jim Chen
2995c5fd29 Bug 1394580 - 2. Add GeckoViewStartup to consolidate startup tasks; r=snorp
Add a GeckoViewStartup component to consolidate tasks performed during
GeckoView startup, such as adding lazy observers and event listeners.
This enables us to not load individual GeckoView modules such as
GeckoViewPermission and GeckoViewPrompt until they are actually needed.

MozReview-Commit-ID: IsaUGwBHKbs

--HG--
extra : rebase_source : c22e71eda6ad11230046de64dc54c882be2ed555
2017-09-05 15:27:35 -04:00
Jim Chen
e71f44e7d6 Bug 1394580 - 1. Only load AsyncPrefs for Fennec; r=esawin
Move AsyncPrefs initialization to inside browser.js to only load it for
Fennec. Also, delay initialization until later in startup.

MozReview-Commit-ID: 7gLaXA5UJud

--HG--
extra : rebase_source : c721bbc6c9340f65161c415405dfba16e527b962
2017-09-05 15:27:29 -04:00
Nicholas Nethercote
fb0b046a21 Bug 1387958 - Measure the stylist during memory reporting. r=heycam.
Example output from the Obama Wikipedia page:

> ├──2,315,600 B (01.16%) -- stylist
> │  ├──1,916,928 B (00.96%) ── invalidation-map
> │  ├────228,800 B (00.11%) ── rule-tree
> │  ├────142,336 B (00.07%) ── element-and-pseudos-maps
> │  ├─────14,336 B (00.01%) ── revalidation-selectors
> │  ├──────9,648 B (00.00%) ── other
> │  └──────3,552 B (00.00%) ── precomputed-pseudos

This change requires new code to measure HashMaps, which uses the new
'malloc_enclosing_size_of' functions that can measure a heap block from an
interior pointer.

The patch changes MallocSizeOfFn to a newtype, and introduces
MallocEnclosingSizeOfFn alongside.

It also adds new traits: MallocSizeOfBox, MallocSizeOfVec, MallocSizeOfHash.
These each contain a single method that does shallow measurement of the
relevant type, which is often useful. (This is a different style to the
existing MallocSizeOf trait, which does deep measurement, but I'm moving away
from the always-deep-measurement style because it's less flexible.)

MozReview-Commit-ID: FgJCCmdw0ZF

--HG--
extra : rebase_source : c692c2073aa66020224489b97247c49de95a99a4
2017-09-05 11:38:45 +10:00
Emilio Cobos Álvarez
d5b2e6c551 servo: Merge #18384 - style: Don't waste a whole selector map for each class / id in the document (from emilio:invalidation-map-bloat); r=bholley
On top of #18375, only last commit needs review.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4721ef81fd7fb6ee15546a6abe140a66ce0280e8

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 4ae2ca7c3f5142c06b900602fb49a00c8d601e4e
2017-09-05 12:51:17 -05:00
Nils Ohlmeier [:drno]
f99d62032b Bug 1264479: adapt WPT to interface changes. r=jgraham
MozReview-Commit-ID: 4ox2A5qnRW4

--HG--
extra : rebase_source : 8995a8b2eb22987a7089d1c615edbf6aadc5d2b9
2017-08-30 15:50:50 -07:00
Nils Ohlmeier [:drno]
b81119f1e6 Bug 1264479: don't crash on disappearing data channels. r=bwc
MozReview-Commit-ID: 3DmM7teByR8

--HG--
extra : rebase_source : 238054d17ff624eb203f8352493cd2ce99e11402
2017-08-31 14:30:50 -07:00
Nils Ohlmeier [:drno]
e3c345fd9b Bug 1264479: added mochitest to test current and pending descriptions from JS. r=bwc
MozReview-Commit-ID: 8fSvyiPz2Tv

--HG--
rename : dom/media/tests/mochitest/test_peerConnection_promiseSendOnly.html => dom/media/tests/mochitest/test_peerConnection_verifyDescriptions.html
extra : rebase_source : afe7ab872b3daf83bef3afd86a9387f8dbde28c3
2017-08-30 14:30:24 -07:00
Nils Ohlmeier [:drno]
8c19cc6c3b Bug 1264479: added current and pending descriptions to PeerConnection.webidl. r=smaug
MozReview-Commit-ID: 3Ud3pUP1GUh

--HG--
extra : rebase_source : 06c0db3005c85f473a7d8f87a05299c9e213f5e4
2017-08-30 14:29:28 -07:00
Neerja Pancholi
5146535a52 Bug 1389295 - Confine BCDamageArea while appending cells to within the table area and remove assert for test 460637-2.xhtml r=mats
MozReview-Commit-ID: 6lJahcAmlIN

--HG--
extra : rebase_source : 7140aaa930570d1fb190e584ca5ee193273bd75a
2017-08-24 17:39:44 -07:00
Francesco Lodolo (:flod)
78ed2814d9 Bug 1396927 - Switch Diec2 (Catalan) search plugin to https r=mkaply
MozReview-Commit-ID: 7JWJhqCvRJV

--HG--
extra : rebase_source : 3205073a5cae04b68e520c2faee929044593750f
2017-09-05 20:09:19 +02:00
Gijs Kruitbosch
fd7064ce6b Bug 1374315 - fix CSS overflow:hidden in overflow panel and page action panel to fix rounded corners, r=mikedeboer
MozReview-Commit-ID: B5lHCaAMvyu

--HG--
extra : rebase_source : 4b0995e4ef6558ad418c8782f4bdfdf5cba1f91d
2017-08-15 13:03:33 +01:00
Jared Wein
d395875dc0 Bug 1393565 - De-duplicate the JS code and CSS that sets the bookmark and pocket library animation. r=Gijs
MozReview-Commit-ID: Z1kIdrY2Um

--HG--
extra : rebase_source : fbff99adf6446d060f32cb49cfdce8a9912da891
2017-08-30 15:58:24 -04:00
Jan Henning
0b7a53e9cb Bug 1396292 - Part 2 - Explicitly run permissions callback on background thread where applicable. r=sebastian
Currently, this only concerns setImageAs, where not running on the UI thread after a permissions prompt triggers a network-related strict mode violation and interestingly enough results in a crash (as opposed to a logcat complaint) on release builds.

There's also a permissions check in the UpdateService which runs on a (but not *the*) background thread, but since we don't prompt in that case there's no action necessary.

MozReview-Commit-ID: KKxW96AyDWH

--HG--
extra : rebase_source : db12529acc9b257930c37c2295f69a7b8e75232c
2017-09-02 21:55:40 +02:00
Jan Henning
fe27b4a96d Bug 1396292 - Part 1 - Provide facilities to explicitly run permissions check callbacks on the background thread. r=sebastian
The permissions check itself is synchronous, but if we then decide to prompt the user to acquire the permission, we have to do so asynchronously and eventually continue execution on the UI thread as a result. Therefore we need to provide a counterpart of onUIThread() for operations that want their callback to stay off the UI thread in all situations.

MozReview-Commit-ID: AOCX1v69R1J

--HG--
extra : rebase_source : ed0bab9f3ae3198bf2af90eabc86fd5ddd95b3a0
2017-09-02 21:22:30 +02:00
Jan Henning
573a12d384 Bug 1396292 - Part 0 - Clean up imports. r=JanH
MozReview-Commit-ID: 12CjJ2zZ2Qr

--HG--
extra : rebase_source : d216e689ed667e43e200101985bffd45d74fefc8
2017-09-02 21:44:55 +02:00
Jeremy Chen
1c06004c65 Bug 1394994 - stylo: update annotations for Devtools tests. r=xidorn
MozReview-Commit-ID: 2x0EZ9ririK

--HG--
extra : rebase_source : 32102bcb54d9e8becf77d642b97a2288f5402256
2017-09-04 13:03:14 +08:00
Jeremy Chen
03a9b4e928 Bug 1394994 - stylo: get line and column for ServoKeyframeRule. r=xidorn
The Servo_KeyframesRule_GetKeyframe binding function has been empowerd and
renamed to Servo_KeyframesRule_GetKeyframeAt in the servo side patch. In this
patch, we use Servo_KeyframesRule_GetKeyframeAt to get line and column
information for ServoKeyframeRule, so that the inspector can present Keyframe
rules on the devtool panel properly.

MozReview-Commit-ID: BGd9FFsC3Nz

--HG--
extra : rebase_source : f2b5ff73a84a3cd4e5d0b17d5e0c5ac5fd57f817
2017-09-04 13:38:23 +08:00
Andrew McCreight
e81ef49017 Bug 1390660, part 3 - Make QIing to a few CCed classes faster. r=peterv
QIing to CC interfaces shows up in Speedometer profiles for a few
classes. Presumably there are many of these objects being created and
destroyed. By making these classes check first for the CC interfaces
directly, rather than going up the inheritance chain, this overhead
should be reduced.

MozReview-Commit-ID: I3sf3my8oua

--HG--
extra : rebase_source : f08884a944d5b4ed1eb1da1070de64f21fc9868a
2017-08-16 14:31:40 -07:00
Andrew McCreight
64b725c5cd Bug 1390660, part 2 - Define and use a new macro for CC isupports. r=peterv
The main purpose of defining this is to make conversion of places that
use the non-CC variant easier. There are many more places that could
be converted to use these new macros, if somebody felt motivated.

MozReview-Commit-ID: HspjcN76fjg

--HG--
extra : rebase_source : bf3baa586f90f0afbe9229c32d38cb34cc909b9b
2017-08-16 13:14:11 -07:00
Andrew McCreight
e8ec349629 Bug 1390660, part 1 - Clean up some uses of the table-to-map segue. r=peterv
In a number of places, there's no substantial use of maps any more
after the segue.

The ELEMENT segue tries the FragmentOrElement QI, but that is
redundant with the Element QI.

This lets me use a few higher-level macros.

MozReview-Commit-ID: Gstq3Cm8LDl

--HG--
extra : rebase_source : f0c7dbf5281ce7375b1369b49db095a211569d6c
2017-08-16 13:37:20 -07:00