Commit Graph

550636 Commits

Author SHA1 Message Date
David Teller
164c1cbbcd Bug 1377272 - Making ParserContext less intertwined with Parser;r=shu+381259
To implement the BinJS decoder of Bug 1377007, we need to access ParserContext without a Parser. This patch makes it possible to construct one.

MozReview-Commit-ID: Fx3S0UkU7Hq

--HG--
extra : rebase_source : 7470b03fb45bd8d80ffd66b1507d1491b5e3158f
2017-08-03 11:27:03 +02:00
Masatoshi Kimura
436186d6f8 Bug 1387791 - Remove [deprecated] Components.reportError. r=bholley
MozReview-Commit-ID: CCqFQid7ZDi

--HG--
extra : rebase_source : bce691e8a83d3a2837fbf28f44f5390aae2c2716
2017-08-06 11:04:11 +09:00
Masatoshi Kimura
06311d2e3a Bug 1375125 - Remove nsILocalFile. r=froydnj
MozReview-Commit-ID: 6oU6Ya5UXtC

--HG--
extra : rebase_source : 55b6e30aa348c1b939326698b0da7d72c26b479c
2017-08-05 09:43:49 +09:00
Masatoshi Kimura
f6b1dc1043 Bug 1375125 - Fix errors caused by mechanical replacement. r=froydnj
MozReview-Commit-ID: 1kOvLdeCJiR

--HG--
extra : rebase_source : 94b04b16ac5d951600d31d1cdb78b494d8275ad1
2017-08-05 08:21:55 +09:00
Masatoshi Kimura
8b713b2b0f Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj
This mechanically replaces nsILocalFile with nsIFile in
*.js, *.jsm, *.sjs, *.html, *.xul, *.xml, and *.py.

MozReview-Commit-ID: 4ecl3RZhOwC

--HG--
extra : rebase_source : 412880ea27766118c38498d021331a3df6bccc70
2017-08-04 17:49:22 +09:00
Sebastian Hengst
ca40024d84 Backed out changeset 1538b0445eda (bug 1366555) for timing browser_locationBarCommand.js and browser_locationBarExternalLoad.js. r=backout 2017-08-05 23:15:16 +02:00
Jan Henning
9983e4f87d Bug 1266683 - Part 4 - Forward private browsing state to GeckoInputConnection and use it there. r=jchen
MozReview-Commit-ID: 4BxZ9HyzDh2

--HG--
extra : rebase_source : 53312aa13caa79dd20e9d04b556e19a9750cfd44
2017-08-01 20:18:05 +02:00
Jan Henning
641e43da0b Bug 1266683 - Part 3 - Update notifyIMEContext JNI bindings to include private mode info. r=jchen
MozReview-Commit-ID: Gl2iRWxo9lE

--HG--
extra : rebase_source : 4b0aad157af22dcb96aeb68b199bfa9404902dea
2017-07-31 22:45:54 +02:00
Jan Henning
34bb1f8a36 Bug 1266683 - Part 2 - Add private browsing mode info to InputContext. r=masayuki
Android now supports telling an IME that it shouldn't store user-entered content into it's dictionary/language model/etc. and we want to automatically enable this in private browsing.

As the code that handles input on Android doesn't have any notion of tabs (and therefore of the difference between normal and private tabs), the best way to get that info across is to retrieve it directly within the IMEStateManager from the corresponding document and store it in the inputContext, which is then passed to Java for Fennec to handle.
Implementing this within Gecko also has the benefit that this part of the code can be used by other platforms as well should they want to support similar features in the future.

MozReview-Commit-ID: DsxjC4Ma7DR

--HG--
extra : rebase_source : f0940cb40170ab32cf5a172d07a61d083427be8a
2017-07-30 19:45:03 +02:00
Jan Henning
3bc46f7b3d Bug 1266683 - Part 1 - Support IME private mode in address bar. r=jchen
We don't build with the required version of the support library yet, so in the meantime we just copy the needed options flag definition and define it ourselves.

MozReview-Commit-ID: 3wAbquE5rOT

--HG--
extra : rebase_source : efe0a2bfcb72d030aed39da822efa68211dc8b91
2017-07-30 00:21:46 +02:00
Jan Henning
b6a8437b43 Bug 1266683 - Part 0 - Add TargetApi annotation to silence linter. r=jchen
MozReview-Commit-ID: 1PEfJVFTsGl

--HG--
extra : rebase_source : b57ae0a356ca3b3d8a4c6bb733d4683db1c2922c
2017-07-29 23:09:00 +02:00
Michael Kohler
45d5f35624 Bug 1366555 - Remove MOZ_PHOTON_THEME ifdefs and non-MOZ_PHOTON_THEME code r=dao
MozReview-Commit-ID: CoHv9mKpAe

--HG--
extra : rebase_source : 20d6404db9f90cfcb7de03d4c527ad6ed79d49f8
2017-08-05 20:37:40 +02:00
Henri Sivonen
41573b4bfd Bug 1048191 - Remove capability to generate entities other than quot, amp, gt, lt and nbsp. r=emk.
MozReview-Commit-ID: CHQQzPHxrus

--HG--
extra : rebase_source : 0fad8c86a374c29ab9f691b53f6495aa8287cb65
2017-08-04 12:37:53 +03:00
Andreas Tolfsen
e6afed160b Bug 1381876 - Ensure Maximize Window is synchronous. r=automatedtester
Because the sizemodechange event is not synchronous on all platforms,
we additionally need to await the window's dimensions to change.

However, if the window manager does not have a notion of a maximised
state, this operation too could time out.  However, it is believed
that the additional wait will allow for the window to transition to the
required state in this scenario.

MozReview-Commit-ID: KeHJMKSJfjQ

--HG--
extra : rebase_source : 797b3be8f6adb027f15dd638f22afa6efd0f0432
2017-08-01 18:30:52 +01:00
Andreas Tolfsen
e611d3c375 Bug 1381876 - Introduce TimedPromise. r=automatedtester
This introduces a specialisation of the well-known Promise that can
time out after a set limit, causing the promises' "reject" callback to
be invoked.

The TimedPromise object represents the timed, eventual completion
(or failure) of an asynchronous operation, and its resulting value.
In contrast to a regular Promise, it times out after a set timeframe.

MozReview-Commit-ID: Rb3POsPYeT

--HG--
extra : rebase_source : cdff792dfa43af3cff1b20b3e81edb1a826e561e
2017-08-01 18:28:13 +01:00
Andreas Tolfsen
c956360dcb Bug 1381876 - Rename WaitCondition to Condition. r=automatedtester
The condition can be used for other things than poll-waiting.

MozReview-Commit-ID: 1sudv5JuEQT

--HG--
extra : rebase_source : ff58917f6fc0a860e149805ad838816541091705
2017-08-01 18:26:09 +01:00
Andreas Tolfsen
cc1f6bf3b3 Bug 1381876 - Skip resetting namespaced interfaces in client.Session. r=automatedtester
Resetting these interfaces means they will not be set up again if the
client.Session instance is reused.

MozReview-Commit-ID: 7JW61VrMFpD

--HG--
extra : rebase_source : 6cf19950ab66e04f1e8999dc13497c435249c98d
2017-08-01 18:23:47 +01:00
Andreas Tolfsen
5a4b1ff65e Bug 1381876 - Make client.Session#maximize a method. r=automatedtester
The Maximize Window command is a POST endpoint and should consequently
be a method, not a property.

MozReview-Commit-ID: DJfKdhMIX75

--HG--
extra : rebase_source : 03409f3a30ac338704921801832d3210e8ef9236
2017-08-01 18:22:52 +01:00
Andreas Tolfsen
29bd3722d2 Bug 1381876 - Allow assert_success to be used without an expected value. r=automatedtester
It happens that we receive responses that do not have a body value.
We want to be able to use assert_success with these as well.

MozReview-Commit-ID: B1f0Hn406Nj

--HG--
extra : rebase_source : 6f47e4bd8a72fecf365a6e06771effb1f8e055a5
2017-08-01 18:21:59 +01:00
Andreas Tolfsen
e6fdbe4caf Bug 1381876 - Compare window rect, not window size. r=automatedtester
The dictionary from Marionette#window_size is a subset of what is returned
from Marionette#window_rect, causing the self.assertEqual to complain
that they are not equal.  We want to compare the same types.

MozReview-Commit-ID: L4XTlgtUYKW

--HG--
extra : rebase_source : c3adf89777ac589cab2fb84fe3e543f22d9895fc
2017-08-01 18:21:04 +01:00
Andreas Tolfsen
107a4758fb Bug 1381876 - Remove unused import from test_window_maximize.py. r=automatedtester
MozReview-Commit-ID: 5C7ewMqY1iY

--HG--
extra : rebase_source : e545b6c24bd246e4d9554f35ede9ae7489cf6215
2017-08-01 18:19:58 +01:00
Andreas Tolfsen
acef2ddd2d Bug 1381876 - Fix window maximised assertions. r=automatedtester
The "delta" in the second assertion was not deducted from the height.
The patch also improves the error message.

MozReview-Commit-ID: 8u8UhKg3Q62

--HG--
extra : rebase_source : a3771620fc15225ac6932c718515b8dfcf2fdab0
2017-08-01 18:19:34 +01:00
Andreas Tolfsen
6e4c649956 Bug 1381876 - Include window state in window rect. r=automatedtester
The window state was included for only some of the commands' responses
earlier.

MozReview-Commit-ID: DdNyR7vdgtY

--HG--
extra : rebase_source : b7c3c7376f8affff673c903ba2c90e2cee93878a
2017-08-01 18:18:12 +01:00
Andreas Tolfsen
adf6b1ae3e Bug 1381876 - Return window rect from Context#rect consistently. r=automatedtester
MozReview-Commit-ID: D5pCPK2PEr3

--HG--
extra : rebase_source : a9e6c80314084a6b9fe3b4313d1599911528297b
2017-08-01 18:17:29 +01:00
Andreas Tolfsen
dc3d5d774e Bug 1381876 - Rename Maximize Window test to match command name. r=automatedtester
MozReview-Commit-ID: 6g2GgZW846h

--HG--
rename : testing/web-platform/tests/webdriver/tests/window_maximizing.py => testing/web-platform/tests/webdriver/tests/maximize_window.py
extra : rebase_source : 22f12bffa8ee98e63d5ab815f006253b71492849
2017-07-26 17:34:59 +01:00
Nathan Froyd
4213350301 servo: Merge #17974 - remove testing feature from stylo_tests (from froydnj:remove-testing-feature); r=SimonSapin
`stylo_tests` currently requires a separate version of the `style` crate, compiled with the `testing` feature, so a function testing the size of specified values can be accessed.  With a few tweaks, we can make the information needed for the test available to the `stylo_tests` crate directly, eliminating the need for a separately-compiled `style` crate.

This doesn't matter much for Servo itself (it might make CI times slightly faster?), but Gecko automation/development would like to run `stylo_tests`, and not having to compile two versions of the `style` crate (or have a dead, test-only function hanging around in the `style` crate) would be a win.

---

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] There are tests for these changes

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : f23cc39c69a996f3d1023f4c00f8d564d4a3e97f
2017-08-05 09:58:26 -05:00
Jonathan Kingston
5e6bfdc997 Bug 1387117 - Fix containers highlight for square tabs to be an underline. r=dao
MozReview-Commit-ID: L5YLL7qCRfv

--HG--
extra : rebase_source : 42180d9d07b3198b56723a34836a4d9177c822b9
2017-08-03 18:22:29 +01:00
Dão Gottwald
9c17a9deed Bug 1387701 - Simplify lineScrollAmount. r=masayuki
MozReview-Commit-ID: 401ja5XzBpO

--HG--
extra : rebase_source : f08808c8a6a9a1033e0cd7b24af1be7cd9fca74a
2017-08-05 12:17:11 +02:00
Cameron McCormack
cbc2dccd7d servo: Merge #17982 - style: Don't perform parent display-based style fixups on most pseudos (from heycam:parent-fixup); r=emilio
Reviewed by Emilio in https://bugzilla.mozilla.org/show_bug.cgi?id=1379865.

Source-Repo: https://github.com/servo/servo
Source-Revision: 586f84f5fea9a15c90dc5bc5415e2c5f5caa3ddb

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 2bc4a44859b0b32200c2816c0a4ffbfeb2eebcde
2017-08-05 05:52:59 -05:00
Cameron McCormack
b7431c3fa2 servo: Merge #17981 - style: Preserve font-family identifier sequence when serializing (from heycam:family-serialization); r=emilio
Reviewed by Emilio in https://bugzilla.mozilla.org/show_bug.cgi?id=1384398.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6cb790f8eb5024dba1d82ad5f7fb4bb912aeda46

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b09e6dc743ee10df53d9b25acc9a4a1125f2ccc7
2017-08-05 04:56:08 -05:00
Cameron McCormack
3c2086d486 Bug 1384398 - Separate family names in font-family serialization with ", ". r=emilio
MozReview-Commit-ID: 9DBCXoy59g3

--HG--
extra : rebase_source : 2dbabd5e0e9426d1e5c943904d313e6e30dc62b6
2017-08-01 23:01:57 +08:00
Sebastian Hengst
8c82624aa1 merge mozilla-central to autoland. r=merge a=merge 2017-08-05 11:59:12 +02:00
Sebastian Hengst
39ccebaf18 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9IxbB2vCH4S
2017-08-05 11:55:25 +02:00
Dão Gottwald
c2876c7355 Bug 1387084 - Use instant scroll behavior when doing pixel scrolling. r=Gijs
Touchmove and wheel events are sent frequently enough that smooth scroll behavior
prevents the expected pixel distance from being reached before the next event.

Also replace aSmoothScroll parameters with aInstant to better reflect how this
works: its purpose is to force instant scrolling, whereas omitting it falls back
to "auto" (which may mean instant or smooth depending on different factors).

The ensureElementIsVisible call from browser-customization.js can go away as
customize mode doesn't add padding around the window anymore.

Finally, remove the unused scrollPosition and scrollPaddingRect properties.

MozReview-Commit-ID: 3Ac7g6zZ0hW

--HG--
extra : rebase_source : e43d0bcab82c74e65d01a0fd79bfaec96952b35a
2017-08-05 10:12:38 +02:00
Emilio Cobos Álvarez
f4670943e9 Bug 1382568: followup: Fix comment wording. r=me
MozReview-Commit-ID: IHhceyG4oDz
2017-08-05 11:42:08 +02:00
Emilio Cobos Álvarez
c7b665bcf3 Bug 1382568: Test. r=heycam
MozReview-Commit-ID: DLvVBoXubGT

--HG--
extra : rebase_source : 1edc227048565d9bfb8ba342195ac3b7ff9b06d5
2017-08-05 08:53:03 +02:00
Emilio Cobos Álvarez
9f99a8ad5f Bug 1382568: Avoid trying to resolve styles in an uninitialized presshell in GetInnerText. r=heycam
MozReview-Commit-ID: DFFb5OCQpHG

--HG--
extra : rebase_source : 2338719ce46efc405d845cc41ea633336c4e971c
2017-08-05 08:55:50 +02:00
Bobby Holley
a0324a142f servo: Merge #17980 - Introduce a new flag and use it to be more permissive about cousin sharing (from bholley:fix_initial_sharing); r=emilio
https://bugzilla.mozilla.org/show_bug.cgi?id=1387116

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 4f81898b45e85740b61ae598a7f855708d8c0f2b
2017-08-05 03:23:55 -05:00
Dão Gottwald
ee6b05b899 Bug 1387602 - Update customize mode favicon. r=Gijs
MozReview-Commit-ID: 7gin0zuJTN0

--HG--
extra : rebase_source : 7b1d2394e32f4ed5763bc9562a6e7e87bdbf2c74
2017-08-04 23:00:00 +02:00
Phil Ringnalda
494797c31f Backed out changeset ec99e3ba4e7a (bug 1355451) for frequent failures in browser_urlbar_search_speculative_connect_mousedown.js
MozReview-Commit-ID: 8NZP5vza6Hz
2017-08-04 23:02:01 -07:00
Blake Kaplan
13c1e54354 Bug 1387626 - Move to 100% of eligible users on beta. r=Felipe
MozReview-Commit-ID: EkVvGAZfZJI

--HG--
extra : rebase_source : 8b76441f90029d3ae6ded26b64a4de682709d105
2017-08-04 15:18:20 -07:00
Kris Maglione
1baacd82db Bug 1385880: Part 3 - Wait for add-on startup before showing inline options browser. r=aswan
MozReview-Commit-ID: JPPUjIGPRvs

--HG--
extra : rebase_source : 82081628ce5ee1af6ad5e0cbbed4221518e55191
extra : histedit_source : 03cafbcfbaefb40a15b8b50af4b5010c96407bcc
2017-08-04 13:20:58 -07:00
Kris Maglione
9c95f65043 Bug 1385880: Part 2 - Store promise returned by bootstrap startup method. r=aswan
This is also the first step in moving async startup/shutdown tracking into the
add-on manager.

MozReview-Commit-ID: Uf4ecSW77S

--HG--
extra : rebase_source : 16029f3c84feec4b98b23b3beabf763978a6b60d
extra : histedit_source : a7478fd19ebd6fa827856f299ebb824f29db5575
2017-08-04 13:20:36 -07:00
Kris Maglione
2a0de7a281 Bug 1385880: Part 1 - Remove WebExtensionBootstrap.js. r=aswan
MozReview-Commit-ID: X4JoEC61TF

--HG--
extra : rebase_source : 3947f6e19224458908deaebb8fcca4808b28540c
extra : histedit_source : 5052190e259539037083f7e66a91e8ea78a1d319%2C82a29ad415665027f7ba0b6333af0c3f58b1592d
2017-08-04 23:12:24 -07:00
Landry Breuil
ea28e9774d Bug 1387510 - Use glob() when looking for libclang.so on OpenBSD. r=froydnj 2017-08-04 12:43:00 -04:00
Dão Gottwald
472f05bc4d Bug 1387420 - Remove obsolete rules from browser/themes/windows/compacttheme.css and browser/themes/linux/compacttheme.css. r=daleharvey
MozReview-Commit-ID: EntiLXoGfQb

--HG--
extra : rebase_source : 8dbd0cdb886a4be8f90ee62131903dd8152804e4
2017-08-04 15:02:15 +02:00
Cameron McCormack
557434233a servo: Merge #17979 - style: Revert font-family serialization commit #17972 (from heycam:font-family-revert); r=heycam
This reverts commit 4f525f6fa04195cdb93fc4394fbc0c78f2626bd7.

I accidentally included some unrelated changes in #17972, so backing out here.

Source-Repo: https://github.com/servo/servo
Source-Revision: 40315a6bf701dc8ade850f7521acf023966d1a09

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 96056d1c77c1afd7638026bab0a3a43346bdb131
2017-08-05 02:03:47 -05:00
Cameron McCormack
adcdde26a2 Bug 1384824 - Part 2: Crashtests. r=bholley
MozReview-Commit-ID: B8MqVBlxEBx
2017-08-04 19:26:04 +10:00
Cameron McCormack
5a641131b9 Bug 1384824 - Part 1: Lazily clear stale Servo element data from a document when its pres shell changes. r=bholley
MozReview-Commit-ID: 1c566PRqFpe
2017-08-04 19:26:04 +10:00
Cameron McCormack
32d1c2df59 Bug 1384824 - Part 0: Consolidate lazy style resolution entrypoints. r=bholley
MozReview-Commit-ID: HPdviA570N1
2017-08-04 19:26:03 +10:00