Commit Graph

543506 Commits

Author SHA1 Message Date
JW Wang
350f03bde7 Bug 1376227. P3 - move Load() down the class hierarchy. r=gerald
So we won't pass an unused |nsIStreamListener**| to MediaSourceDecoder::Load().

MozReview-Commit-ID: 2TCby8m8K5H

--HG--
extra : rebase_source : 349179aa4303c0abd8b86a695789770e158e5c28
extra : intermediate-source : d6f550bd6709a0ee7db6033286af42565a20cdb1
extra : source : ed524d855a1a78665c499152a9360ba961655641
2017-06-23 14:12:41 +08:00
JW Wang
1dbf0f77fa Bug 1376227. P2 - remove unused code following P1. r=gerald
MozReview-Commit-ID: JbwY1Owtk7H

--HG--
extra : rebase_source : 0f82ac16f56ce6ba27944b093b49c8ff6479e66c
extra : intermediate-source : 38c1c8a70fb0209f8c6a3ca596664db9af089763
extra : source : 7cfe394c4790ca7687db9004c96380f088c2bb59
2017-06-21 17:34:22 +08:00
JW Wang
884c26d368 Bug 1376227. P1 - let MediaDecoder sub-classes have the knowledge how to create a MediaResource. r=gerald
MozReview-Commit-ID: 2fHEkU46MUr

--HG--
extra : rebase_source : 18f5b01a065d6acbdc88ce808f8bd1e8e462e8d7
extra : intermediate-source : e003e070535d95f7e6334f4a92d6d763d436023c
extra : source : 450d506c6bb85f53b44fed296a32845bcd777905
2017-06-21 17:30:56 +08:00
Masayuki Nakano
253c8f2129 Bug 1361132 TSFTextStore::GetSelection() shouldn't return if it runs on Win10 Anniversary Update or later r=m_kato
This is remaining cases of bug 1312302.  TSF may set focus to context when it receives focus related message.  In such case, TSF tries to retrieve selection but TSFTextStore::GetSelection() returns E_FAIL due to still not initialized, TSF crashes.

This patch moves the hack to TSFTextStore::GetSelection() and restrict to work only on problematic versions of Windows 10.

MozReview-Commit-ID: 6cTiZ4HCO18

--HG--
extra : rebase_source : 733377be55d52c43ef90d6e949cb851cf4c6dcb2
2017-06-22 20:07:10 +09:00
Sebastian Hengst
a18bb2c61e Backed out changeset eae501f2729b (bug 1374852) for failing browser_openPreferences.js. r=backout 2017-06-26 04:43:39 +02:00
DimiL
9814af0253 Bug 1335943 - Use the right origin attribute in Safe Browsing completions. r=francois
MozReview-Commit-ID: 8HQHzuwE5Cf

--HG--
extra : rebase_source : d6c57eb6b4d16898ca0f067052d8e9064c24c3a5
2017-06-21 17:27:22 +08:00
Cameron McCormack
902f16605c Bug 1291515 - Part 2: Disable pref for <style scoped>. r=dbaron
MozReview-Commit-ID: 8rBHsSTK9SG

--HG--
extra : rebase_source : db36cfa8139ceb53811239b8ddd800f3d08d6698
2017-06-21 09:30:52 +08:00
Cameron McCormack
fab1072b7f Bug 1291515 - Part 1: Introduce a pref for <style scoped>. r=bholley,dbaron
MozReview-Commit-ID: 1J9IvPrC0xh

--HG--
extra : rebase_source : 4a3da0dc41ec71d2804e6f8a778613e8749940be
2017-06-21 09:25:43 +08:00
Harvey Hunt
1b9fe429b2 servo: Merge #17514 - deny_public_fields: display field identifier in help message (from HarveyHunt:deny-public-fields-error-message); r=jdm
Use a binding's field identifier to produce more descriptive output.
Fall back to a binding's identifier if a field identifier is not
available.

Additionally, make the privatize.rs compiletest more specific and
wrap the identifier in backticks to aid readability.

As an aside, should I send a PR to rename ```compile-fail/privatize.rs``` to ```compile-fail/deny_public_fields.rs``` as privatize isn't mentioned in the codebase any more?

```
$ find . -name "*privatize*"
./tests/compiletest/plugin/compile-fail/privatize.rs
```

---
<!-- 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 fix #17438 (github issue number if applicable).

<!-- Either: -->
- [x] There are tests for these changes

<!-- 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: 3f2d7476890bffdaad6fdc0e66aa7ac7bc995a87

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b170b7dc790815fce9081f9765b07a159432def5
2017-06-25 10:45:42 -07:00
Jeremy Lempereur
9e826bc61e servo: Merge #17383 - #17363 : Passing ProfilerChan by reference to the send_profile_data method (from o0Ignition0o:profiler_chan_by_reference); r=jdm
<!-- Please describe your changes on the following line: -->
Passed the ProfilerChan by reference to the send_profile_data method.

I wonder if I should also refactor the
`pub fn profile<T, F>(category: ProfilerCategory, meta: Option<TimerMetadata>, profiler_chan: ProfilerChan, callback: F) -> T where F: FnOnce() -> T method ` , but I don't feel confident enough to make the call, since I don't really understand what it would imply.

---
<!-- 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 fix #17363 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because the project would not compile if there were missing by reference calls.

<!-- 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: d8ae4638397a3834203267ceae075509e9cb9931

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 79e9240a4279e5bf6fa0ac2c835572493926183c
2017-06-25 09:06:28 -07:00
Sebastian Hengst
dfc1ad2562 Backed out changeset 7235d05662b0 (bug 1373984) for Android bustage. r=backout on a CLOSED TREE 2017-06-25 18:30:13 +02:00
Ricky Chien
0ad2b2c56f Bug 1374852 - Visiting preferences should always focus on search field r=jaws
MozReview-Commit-ID: I7mnm5EkeIg

--HG--
extra : rebase_source : 7dc67a6f1e21ee284e8234ed799c3ce3b60264f3
2017-06-22 14:59:51 +08:00
Masatoshi Kimura
2e04751921 Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
MozReview-Commit-ID: GF0YXDwfA14

--HG--
extra : rebase_source : a84ab644f52e68676b45f112ff69f868d89f6177
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Wes Kocher
913ce205d2 Backed out 2 changesets (bug 1291515) for reftest assertions in textarea-fieldset-legend-ref-2.html a=backout CLOSED TREE
Backed out changeset 4fac24cc0437 (bug 1291515)
Backed out changeset 4e8b918dc410 (bug 1291515)

MozReview-Commit-ID: F4yQK5ujqLP
2017-06-25 05:18:22 -07:00
Wes Kocher
e02435a31e Backed out changeset 77af189b5c49 (bug 1373984) for build bustage in nsHtml5Parser.cpp a=backout CLOSED TREE
MozReview-Commit-ID: 6kBmU71j2To
2017-06-25 05:10:14 -07:00
Wes Kocher
55564f75eb Backed out changeset 91950bf37618 (bug 1373299) for build bustage a=backout CLOSED TREE
MozReview-Commit-ID: ERo49BX9ti7
2017-06-25 04:18:13 -07:00
Corey Farwell
ba76ed8d61 servo: Merge #17515 - Merge explicit node iterator structures into single generic structure (from frewsxcv:frewsxcv-simple-node-iterator); r=KiChjang
Source-Repo: https://github.com/servo/servo
Source-Revision: f740366c611d375f0bb259ae0f4d846c05ec276e

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : d9a65faf07d7590305298b420e0c160227e7fc71
2017-06-25 00:38:23 -07:00
Cameron McCormack
b7af0d0585 Bug 1291515 - Part 2: Disable pref for <style scoped>. r=dbaron
MozReview-Commit-ID: 8rBHsSTK9SG

--HG--
extra : rebase_source : dc514c56968336cd29b4d4207cf14169ee3fc7fa
2017-06-21 09:30:52 +08:00
Cameron McCormack
deae2413d6 Bug 1291515 - Part 1: Introduce a pref for <style scoped>. r=bholley,dbaron
MozReview-Commit-ID: 1J9IvPrC0xh

--HG--
extra : rebase_source : 2c3a139cc5e4e223e5b9b7892020c96df2cf264c
2017-06-21 09:25:43 +08:00
Emilio Cobos Álvarez
2d11d8e5c7 Bug 1375930: Test that rem units for the root font-size aren't resolved against the root font size. r=heycam
Of course there wasn't any test for this.

MozReview-Commit-ID: EBMxiC2Ipvb

--HG--
extra : rebase_source : 3e2f35294581e9d70c6e6392f74e2e3c6ee0f003
2017-06-24 09:44:53 +02:00
Masatoshi Kimura
241039fd97 Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
MozReview-Commit-ID: GF0YXDwfA14

--HG--
extra : rebase_source : 09da1685795583513bf019d61c58230c2c4d298d
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Mark Hammond
7e61aa8e97 Bug 1373093 - Add operating system information to the desktop Sync ping. r=tcsc
MozReview-Commit-ID: 9ypnosSawxu

--HG--
extra : rebase_source : 8a0192c70917c952431693c6864f96f7fd9b278e
2017-06-21 12:28:25 +10:00
Emilio Cobos Álvarez
c5d41dbbc6 servo: Merge #17516 - style: Fix rem computation on the root element (from emilio:rem-root-size); r=heycam
Bug: 1375930
Reviewed-By: heycam
MozReview-Commit-ID: DK98SS1w5nO
Source-Repo: https://github.com/servo/servo
Source-Revision: c39de45d81eb54c3a8dc78b41883b07dbd7d3896

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 4b37a44e8001e93736d0d576dce860c26c6dda3d
2017-06-24 17:47:46 -07:00
Emilio Cobos Álvarez
b7a3d1be4c Bug 1376077: Remove aPseudoElement argument from the StyleSet classes. r=heycam
MozReview-Commit-ID: InxDtd5Pmf3

--HG--
extra : rebase_source : 68bfc7fafb75b6b547f035e635300a202a60086d
2017-06-24 11:25:05 +02:00
Nihanth Subramanya
ba481b73fa Bug 1373299 - Pocket icon should be 16x16 like the others. r=dao
MozReview-Commit-ID: BymLetTtqrU

--HG--
extra : rebase_source : 3d0d687b88f2ad8fdf4b9bbf19df1a0beb4c5e9d
2017-06-22 18:33:55 +05:30
Anthony Ramine
811da8a5b6 servo: Merge #17508 - Use generics for SimpleShadow (from servo:derive-all-the-things); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: 946c9aede12b19bab11f7f25db68f18c19c5b4a2

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 8c3f77c83b662b7722a51c04e1f3412d5f0a4409
2017-06-24 04:46:56 -07:00
James Graham
6a1857dae7 Bug 1363428 - Use reftest wait for MathML tests that do click onload, r=ato
MozReview-Commit-ID: CYI4y3B4yNm
2017-06-24 12:03:31 +01:00
James Graham
f6c9b1da3b Bug 1363428 - Use the internal reftest implementation by default on Linux and OSX, r=ato
This is faster and works better in some cases (e.g. with SVG). However
it doesn't work correctly on Windows yet, so remains disabled there by default.

MozReview-Commit-ID: AXyeFUGfVgx
2017-06-24 12:03:30 +01:00
James Graham
71f2f1daf6 Bug 1363428 - Update expectation data for reftest changes, r=ato
The internal reftest harness changes some results, but it's not clear
that it's overall better or worse than the old one, so just update the
expectation metadata for now.

MozReview-Commit-ID: KSE2z1Ct72t
2017-06-24 12:03:28 +01:00
James Graham
105552d940 Bug 1363428 - Copy the Ahem font into the bundled font directory, r=maja_zf
MozReview-Commit-ID: 3VgrawYWoWp
2017-06-24 12:03:12 +01:00
James Graham
8ce434ae01 Bug 1363428 - Add Ahem to wpt fonts directory, r=maja_zf
MozReview-Commit-ID: 8UWoXdDBNhp
2017-06-24 12:03:12 +01:00
James Graham
147951623f Bug 1363428 - Add per-test-queue metadata to wptrunner, r=ato,maja_zf
This adds a metadata object associated with each test queue, and uses
it to pass cache information into the marionette internal reftest
implementation so that we are able to cache only those canvases that
will be reused.

MozReview-Commit-ID: zASrlvnri3
2017-06-24 12:03:11 +01:00
James Graham
e9ca85913c Bug 1363428 - Switch wptrunner to use a deque for test groups, r=ato,jdm
Initially wptrunner had a single test queue that was shared between
all processes. Then for --run-by-dir it changed to a queue of
queues. This change makes it a queue of deques, which is simpler,
since the test queues themselves are no longer shared between
processes. It also changes the implementation when we aren't using
--run-by-dir but are using multiple processes to pre-group the tests
into N queues rather than sharing a single queue between all
processes. This is necessary to use the deque of course, but
importantly anticipates a change in which we will pre-compute per
queue metdata for each queue; that doesn't work well with one shared
queue. The downside of this change is that there is no work stealing,
so it may be less efficient if we randomly assign many slow jobs to
one particular process.

MozReview-Commit-ID: 7e0Odk7yDwr
2017-06-24 12:03:11 +01:00
James Graham
41cffd4ec6 Bug 1363428 - Support Marionette reftest implementation in wptrunner, r=maja_zf
Add an InternalReftestImplmentation that runs reftests using the
built-in Marionette reftest primitives rather than screenshots. This
is actiivated using the --internal-reftest switch, although that may
become the default in the future.

MozReview-Commit-ID: 6HxGuBsTITf
2017-06-24 12:03:11 +01:00
James Graham
5fd8e99e6a Bug 1363428 - Add reftest-specific endpoints to Marionette, r=ato
This adds commands to start a reftest session, run a test, and end the
session. It as assumed that after you start a reftest session you will
just run reftests until you end the session. When starting a session
the user provides a string indicating when screenshots should be
taken, and an object mapping urls to a count of the number of times
that url is expected to be used in the session, to help with
caching. Running the tests takes a url to a test, an expected status,
a timeout, and a nested list of possible references, in which each
entry at a specific level is combined by OR and nested references are
combined by AND.

The implementation is heavilly inspired by the existing reftest
harness, starting a minimal window with no tabs, and loading the urls
directly in there. In order to get a screenshot in the e10s case we
have to pass the DRAW_VIEW and USE_WIDGET_LAYERS flags when taking the
screenshot.

For performance we heavily cache canvases; for references that will be
repeated we cache the full canvas with image, and we also cache a
single canvas to use for all other screenshots to avoid the overhead
of repeatedly creating a new canvas element.

MozReview-Commit-ID: JOFvtmH7tg
2017-06-24 12:03:11 +01:00
James Graham
90846c0258 Bug 1363428 - Make it possible to close tabless content windows, r=ato
MozReview-Commit-ID: 8xltsYCN3QA
2017-06-24 12:03:10 +01:00
James Graham
dc2eb76fe1 Bug 1363428 - Handle top level reftest window specially in Marionette, r=ato
Because this window is a normal Firefox window but doesn't contain any
tabs, the normal Marionette functions for iterating over windows don't
work well. As a sort of hack, identify this window by the id of its
root element, and special case it when finding windows in Marionette.

MozReview-Commit-ID: LxPv13YDXDu
2017-06-24 12:03:10 +01:00
James Graham
860166c010 Bug 1363428 - Refactor Marionette switchToWindow implementation, r=ato
This allows other commands to implicitly change the window handle, by
calling findWindow with appropriate arguments to get a window
properties object and then passing that to setWindowHandle.

MozReview-Commit-ID: 4NpYxjsMM4T
2017-06-24 12:03:10 +01:00
James Graham
2994bec9c1 Bug 1363428 - Use an iterator for iterating windows, r=ato
MozReview-Commit-ID: FKsw9EST2H7
2017-06-24 12:03:10 +01:00
James Graham
bbadf01cb5 Bug 1363428 - Skip element highlighting if there are no highlights, r=ato
MozReview-Commit-ID: 3rc4XnykV1S
2017-06-24 12:03:10 +01:00
James Graham
887aa1f450 Bug 1363428 - Allow passing flags when drawing to a canavs, r=ato
MozReview-Commit-ID: 8QAFiWcsKNE
2017-06-24 12:03:09 +01:00
James Graham
f4cf348d7b Bug 1363428 - Allow passing in an existing canvas to capture.canvas, r=ato
MozReview-Commit-ID: EGvEr7XfHH9
2017-06-24 12:03:09 +01:00
Michael Ratcliffe
e28336051f Bug 1295761 - Stop storage inspector showing items that have been quickly added & removed r=pbro
Fixed conflicts

MozReview-Commit-ID: CiMa0K6PDWi

--HG--
extra : rebase_source : 3399b4abf673dcc32baabc209e0f341a11fcfc21
2017-06-24 11:02:33 +01:00
Sebastian Hengst
20af7eb2dd Backed out changeset 0e2417cb980a (bug 1374852) for failing browser_openPreferences.js, at least on Windows. r=backout 2017-06-24 11:44:12 +02:00
Emilio Cobos Álvarez
7d28af5296 servo: Merge #17507 - style: Fix misindented code in font.mako.rs (from emilio:font-indent); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: d58d1ddbbdb894d51ef29407afb7e0e20b0bd9ed

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 7735c2c76df71b74a23d19c85df1bd599592624e
2017-06-24 01:22:45 -07:00
Sebastian Hengst
38f6df45cb Backed out changeset 517ff2a27de6 (bug 1369287) for failing mochitest-clipboard's browser_newtab_drag_drop_ext.js on Windows and OS X, and browser_newtab_bug752841.js on Windows 8 x64 debug. r=backout 2017-06-24 11:25:27 +02:00
Emilio Cobos Álvarez
38ab611a70 Bug 1364880: Test non-existent pseudo-element styles. r=bz
MozReview-Commit-ID: 5DH6s2EyXii
2017-06-24 11:02:33 +02:00
Emilio Cobos Álvarez
3310a365f1 servo: Merge #17506 - stylo: Return the proper style for non-existent pseudos (from emilio:pseudo-style-probe); r=bzbarsky
Bug: 1364880
Reviewed-By: bz
MozReview-Commit-ID: 5DH6s2EyXii
Source-Repo: https://github.com/servo/servo
Source-Revision: f9049504d2da72877caa37d05540854063a11677

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : a19f8ece5ebb1644d2f490ae0044f8d6a72f087e
2017-06-23 23:58:16 -07:00
Jean-Yves Avenard
a59cb63f30 Bug 1374774: P11. Ignore SPS' timing information when comparing two SPS NALs. r=gerald
They can change from one SPS to the next, causing unecessary reconstruction of the decoder.

MozReview-Commit-ID: IhCnLuzGc2i

--HG--
extra : rebase_source : ff6020c10fe9d2eaee7ee8244c92d0c1535239be
2017-06-23 10:14:07 +02:00
Jean-Yves Avenard
6b75c7d481 Bug 1374774: P10. Attempt to reduce SPS change false positives. r=gerald
We now compare the decoded data rather than the raw data, otherwise as seen in video from bug 1372766, we keep draining the decoder. For some reasons the SPS NALs only differ by 1 byte at a time.

MozReview-Commit-ID: LdXinUZHjD4

--HG--
extra : rebase_source : 0aa768cbcbe5b6df0a2a01df1db61c93537899a2
2017-06-23 03:01:57 +02:00