Граф коммитов

46172 Коммитов

Автор SHA1 Сообщение Дата
Csoregi Natalia 5a9ee59e75 Merge inbound to mozilla-central. a=merge 2018-02-01 20:11:41 +02:00
Marco Castelluccio a306e990c6 Bug 1434782 - Mark updater tests as passing on Windows coverage builds. r=jmaher
--HG--
extra : rebase_source : da2723bd6023c7281b34057e680fdfb3abb0ba20
2018-02-01 01:18:19 +01:00
Martin Stransky bdd7d89f6c Bug 1434574 - Build wayland with EGL OpenGL backend, r=glandium
MozReview-Commit-ID: LpGmUVOYqRI

--HG--
extra : rebase_source : f26825fedcf66b6bdb2bcb32093b1d4451fe60e7
2018-01-31 13:13:50 +01:00
Mathieu Leplatre 5dccbe9c9c Bug 1399864 - Send If-Modified-Since header when polling for blocklist.xml changes, r=florian
MozReview-Commit-ID: oAM9lDhtlt

--HG--
extra : rebase_source : 22b143db53aaafd155bac825bc74f41f2ae0ed70
2018-01-31 11:45:53 +00:00
Narcis Beleuzu eeb7190f9a Merge inbound to mozilla-central. a=merge 2018-02-01 12:05:39 +02:00
Nicholas Nethercote eeb14c6c69 Bug 1423840 (attempt 2) - Rewrite the prefs parser. r=glandium,Manishearth
The prefs parser has two significant problems.

- It doesn't separate tokenizing from parsing.

- It is implemented as a loop around a big switch on a "current state"
  variable.

As a result, it is hard to understand and modify, slower than it could be, and
in obscure cases (involving comments and whitespace) it fails to parse what
should be valid input.

This patch replaces it with a recursive descent parser (albeit one without any
recursion!) that has separate tokenization. The new parser is easier to
understand and modify, more correct, and has better error messages. It doesn't
do error recovery, but that would be much easier to add than in the old parser.

The new parser also runs about 1.9x faster than the existing parser. (As
measured by parsing greprefs.js's contents from memory 1000 times in
succession, omitting the prefs hash table construction. If the table
construction is included, it's about 1.6x faster.)

The new parser is slightly stricter than the old parser in a few ways.

- Disconcertingly, the old parser allowed arbitrary junk between prefs
  (including at the start and end of the prefs file) so long as that junk
  didn't include any of the following chars: '/', '#', 'u', 's', 'p'. I.e.
  lines like these:

    !foo@bar&pref("prefname", true);
    ticky_pref("prefname", true);       // missing 's' at start
    User_pref("prefname", true);        // should be 'u' at start

  would all be treated the same as this:

    pref("prefname", true);

  The new parser disallows such junk because it isn't necessary and seems like
  an unintentional botch by the old parser.

- The old parser allowed character 0x1a (SUB) between tokens and treated it
  like '\n'.

  The new parser does not allow this character. SUB was used to indicate
  end-of-file (*not* end-of-line) in some old operating systems such as MS-DOS,
  but this doesn't seem necessary today.

- The old parser tolerated (with a warning) invalid escape sequences within
  string literals -- such as "\q" (not a valid escape) and "\x1" and "\u12"
  (both of which have insufficient hex digits) -- accepting them literally.

  The new parser does not tolerate invalid escape sequences because it doesn't
  seem necessary and would complicate things.

- The old parser tolerated character 0x00 (NUL) within string literals; this is
  dangerous because C++ code that manipulates string values with embedded NULs
  will almost certainly consider those chars as end-of-string markers.

  The new parser treats NUL chars as end-of-file, to avoid this danger and
  because it facilitates a significant optimization (described within the
  code).

- The old parser allowed integer literals to overflow, silently wrapping them.

  The new parser treats integer overflow as a parse error. This seems better,
  and it caught existing overflows of places.database.lastMaintenance, in
  testing/profiles/prefs_general.js (bug 1424030) and
  testing/talos/talos/config.py (bug 1434813).

The first of these changes meant that a couple of existing prefs with ";;" at
the end had to be changed (done in the preceding patch).

The minor increase in strictness shouldn't be a problem for default pref files
such as greprefs.js within the application (which we can modify), nor for
app-written prefs files such as prefs.js. It could affect user-written prefs
files such as user.js; the experience above suggests that integer overflow and
";;" are the most likely problems in practice. In my opinion, the risk here is
acceptable.

The new parser also does a better job of tracking line numbers because it (a)
treats "\r\n" sequences as a single end-of-line marker, and (a) pays attention
to end-of-line sequences within string literals.

Finally, the patch adds thorough tests of both valid and invalid syntax.

MozReview-Commit-ID: JD3beOQl4AJ
2018-02-01 16:21:47 +11:00
Servo VCS Sync 47d56b8748 No bug - Revendor rust dependencies 2018-02-01 04:40:14 +00:00
Kit Cambridge 5d06c194b0 Bug 1434800 - Don't treat children moved out of a deleted synced folder as orphans. r=markh
MozReview-Commit-ID: GAQMYNCvyDj

--HG--
extra : rebase_source : ffe065a6489400b30407bd75eddbec033eaaeccb
2018-01-31 18:58:27 -08:00
Cameron McCormack 24cbcff6fa Bug 1430014 - Part 1: Add --enable-stylo=only configure option and MOZ_OLD_STYLE define. r=glandium,xidorn
MozReview-Commit-ID: FsypJFV1sxS

--HG--
extra : source : 3043d52e91a1768dddf603a8a6fd992a8fc89ebf
2018-02-01 15:04:04 +11:00
Cosmin Sabou 9efa17a39e Backed out 2 changesets (bug 1423840) for mass Talos failures due to forbidden connections. CLOSED TREE
Backed out changeset e8b798a5205a (bug 1423840)
Backed out changeset e500592d3551 (bug 1423840)
2018-02-01 03:05:08 +02:00
Sam Foster a396e6b9fa Bug 1427936 - Add an order-details component and details-payment-items. r=MattN
* The order-details container arranges and populates the items list and the 2nd total line under the items.
* The displayItems list is rendered into 2 lists, a "footer-items" list which displays tax and similar items just before the total, and a "main" list for everything else.
* The list items are instances of a payment-details-item component
* Initial layout of the line items and total with css grid

* Tests for order-details component
* Tests for payment-detail-item component


MozReview-Commit-ID: 68r8SSgwHgq

--HG--
extra : rebase_source : 8b2287124615bd4c16ab900d1f029d02538ccf1f
2018-01-12 15:03:54 -08:00
Tom Ritter 6d070e11bd Bug 1235982 Add CFG to firefox.exe and mozglue, and a mochitest to ensure a crash r=glandium,mconley
MozReview-Commit-ID: EYKgDyGtw8m

--HG--
extra : rebase_source : 76166d4fca452674d0a442778290e40106ce339c
2018-01-25 12:15:40 -06:00
Mike Cooper aadef66cfa Bug 1434714 - Support Telemetry pings that are larger than 500,000 bytes after gzip r=gfritzsche
MozReview-Commit-ID: B1Bq5czcpdL

--HG--
extra : rebase_source : 67884027b1bd33030bed2f852254b30e84e68527
2018-01-31 13:05:21 -08:00
Cosmin Sabou 7092b51729 Merge mozilla-central to autoland. a=merge on CLOSED TREE 2018-02-01 01:19:48 +02:00
Cosmin Sabou cbddf62d14 Merge inbound to mozilla-central. a=merge 2018-02-01 01:14:44 +02:00
Boris Zbarsky 2c472fbf65 Bug 1434399 part 12. Remove JS uses of nsIDOMXULDocument. r=mystor
MozReview-Commit-ID: HUK8ahBwG0e
2018-01-31 14:49:28 -05:00
Cosmin Sabou 94617f91cf Backed out 19 changesets (bug 1434399) for build bustages on nsXULPopupManager.cpp on a CLOSED TREE
Backed out changeset 499f6dffd9cb (bug 1434399)
Backed out changeset 018290612415 (bug 1434399)
Backed out changeset f4c3179f8e59 (bug 1434399)
Backed out changeset f3ce2826b857 (bug 1434399)
Backed out changeset 6d2391af01dd (bug 1434399)
Backed out changeset dc98ed8c609a (bug 1434399)
Backed out changeset 8eaa395d6200 (bug 1434399)
Backed out changeset 19b18f4a53be (bug 1434399)
Backed out changeset 8ff378a6e96a (bug 1434399)
Backed out changeset 60fe73be1a26 (bug 1434399)
Backed out changeset faefb2751fdc (bug 1434399)
Backed out changeset 55cdf8b3a959 (bug 1434399)
Backed out changeset b578cc8efb92 (bug 1434399)
Backed out changeset 54cc4cb2fca1 (bug 1434399)
Backed out changeset f5343ef34d6c (bug 1434399)
Backed out changeset 8fb30e066cbd (bug 1434399)
Backed out changeset 21341b656b0f (bug 1434399)
Backed out changeset fab1f8b087a2 (bug 1434399)
Backed out changeset 55250a54852a (bug 1434399)
2018-01-31 22:45:26 +02:00
Boris Zbarsky 928d0d4fa7 Bug 1434318 part 13. Remove nsIDOMDocument::CreateEvent. r=mystor
MozReview-Commit-ID: EaUjTLeaQ0n
2018-01-31 15:18:11 -05:00
Boris Zbarsky c62e23596a Bug 1434318 part 2. Stop using nsIContentViewer::GetDOMDocument in C++. r=mystor
MozReview-Commit-ID: FoMoVgCngGR
2018-01-31 15:18:09 -05:00
Boris Zbarsky 05b8447eb6 Bug 1434399 part 12. Remove JS uses of nsIDOMXULDocument. r=mystor
MozReview-Commit-ID: HUK8ahBwG0e
2018-01-31 14:49:28 -05:00
Dave Townsend 8780a97e4e Bug 1418314: Make the learn more links in plugin details work properly again. r=aswan
MozReview-Commit-ID: BZJ4XPiX0Uc

--HG--
extra : rebase_source : 403c62ab7d6595a2a2621dfe595925edbde9eb77
2018-01-31 13:06:04 -08:00
Valentin Gosu 1c25c7a3ac Bug 1432928 - Use nsIURIMutator in extensions.xml::refreshInfo r=mossop
MozReview-Commit-ID: GN4PXoWkX8V

--HG--
extra : rebase_source : 33709d70cfe24eb5173bb8c89c3bec07848d7438
2018-01-31 02:43:13 +01:00
Noemi Erli 9df7ea51ac Backed out 8 changesets (bug 633062) as requested by eoger on a CLOSED TREE
Backed out changeset 590656f7b5c5 (bug 633062)
Backed out changeset 0888aa122056 (bug 633062)
Backed out changeset 0780cf391c52 (bug 633062)
Backed out changeset 9798cbd03027 (bug 633062)
Backed out changeset 4b31c73a585f (bug 633062)
Backed out changeset 0a8866062136 (bug 633062)
Backed out changeset 20ff83289564 (bug 633062)
Backed out changeset 5e52125316e1 (bug 633062)
2018-01-31 22:09:30 +02:00
Edouard Oger 6991ad1d07 Bug 633062 p8 - Add Async observers. r=kitcambridge,markh,tcsc
MozReview-Commit-ID: IvwyleXBcNH

--HG--
extra : rebase_source : 30b4e09cb2a5f0da1845c842a464a277554f61a4
2018-01-04 18:07:10 -05:00
Edouard Oger 7f72c53748 Bug 633062 p4 - Remove miscellaneous uses of event loop spinning in services/. r=markh
MozReview-Commit-ID: IDGWJevEHLK

--HG--
extra : rebase_source : 0db05e713e55d680a85a1280d6540eec8c39f96c
2017-12-08 14:41:02 -05:00
Francois Marier e6be1157ca Bug 1431192 - Only fetch download protection lists when Safe Browsing is enabled. r=gcp
Download protection requires both the malware list as well as its
own special lists. The code therefore checks that both Safe
Browsing and download protection are enabled before checking
downloaded files.

The list manager should check the same prefs before downloading
any of the download protection lists in order to avoid connecting
to the Safe Browsing server when Safe Browsing is fully disabled.

MozReview-Commit-ID: 66vMA56T4pJ

--HG--
extra : rebase_source : cef14cf5a03290bd10d8d02367709e1ffd5e9030
2018-01-29 15:16:54 -08:00
Francois Marier 21fb2aec25 Bug 1431370 - Make DoRiceDeltaDecode allocation fallible to fix startup OOM crash. r=gcp
MozReview-Commit-ID: 2vf4EU4TVCq

--HG--
extra : rebase_source : 2db85c786beb35cf2f203fcec7d0825e7b2b9a52
2018-01-30 13:26:43 -08:00
Andreea Pavel d652648d08 Merge mozilla-central to autoland a=merge on a CLOSED TREE
--HG--
rename : dom/media/webrtc/MediaEngine.h => dom/media/webrtc/MediaEnginePrefs.h
extra : rebase_source : 661454de54cac8d23010da02d0c0d68c1856500d
2018-01-31 19:39:52 +02:00
Mark Banner 0bd55b8ddd Bug 1433979 - Remove deprecated code from PlacesBackups.jsm as it is no longer necessary. r=mak
MozReview-Commit-ID: 5bNYJZvRInk

--HG--
extra : rebase_source : 782ac84bb6314d6905d5d5c989fa27695d6a1e7e
2018-01-29 18:20:24 +00:00
Marco Bonardo 32f24725d5 Bug 1434588 - Remove PlacesUtils.setAnnotationsForURI. r=standard8
MozReview-Commit-ID: 6O0z6vPLjTd

--HG--
rename : toolkit/components/places/tests/unit/test_utils_setAnnotationsFor.js => toolkit/components/places/tests/unit/test_utils_setAnnotationsForItem.js
extra : rebase_source : 79e41e39827b1130a6e4ac258c536ecee7fa105d
2018-01-31 14:36:33 +01:00
Johann Hofmann 13b0b2923f Bug 1428320 - Extend the indexedDB storage type telemetry to version 62. r=liuche
Because of a small correction in how we measure this data,
I'd like to get more releases worth of information for this.

MozReview-Commit-ID: JAAsQly6Is8

--HG--
extra : rebase_source : 918591e48d2998af24af7e61ea9206e10bfc70c8
2018-01-05 12:53:54 +01:00
Dão Gottwald 8df93b652f Bug 1395732 - Implement new defaultFavicon.svg with context-fill. r=jwatt,mak
MozReview-Commit-ID: IB5TWxbg0MX

--HG--
extra : rebase_source : d42f405ad71e2c05cf9bbc46bdb92bd36da1498a
2018-01-24 15:15:51 +01:00
Mark Banner 204f9ceae9 Bug 1433983 - Remove deprecated PlacesUtils.setPostDataForBookmark/getPostDataForBookmark functions. r=mak
MozReview-Commit-ID: 9WD2A4jA761

--HG--
extra : rebase_source : 63a66fe95f29102db6a8486525bd430985a8f8ed
2018-01-29 18:31:42 +00:00
Jeremy Lempereur d8d9f7c8da Bug 1432871 - about:telemetry - Fix selected option comparison in the Histograms section r=chutten
Followup on the previous commit, the same pattern occured in the Histograms section.

MozReview-Commit-ID: 41SiI1nBLSm

--HG--
extra : rebase_source : 2e642658c5721cab41f25c4a6c81f38390badef7
2018-01-31 15:08:31 +01:00
Jeremy Lempereur 4956f5e043 Bug 1432871 - about:telemetry - showing the Keyed Histograms category. r=chutten
The "Keyed Histograms" category didn't alway have the "has-data" class although there were some data to display. "option" was compared to a string but it's a dom element, so its value should be compared instead.

MozReview-Commit-ID: 3eC0UPpJaNJ

--HG--
extra : rebase_source : 84e87676959008c4f884d171788682506ac11804
2018-01-29 21:52:54 +01:00
Masayuki Nakano c1d340ed59 Bug 1134540 - Make all tests stop using nsIDOMWindowUtils.sendKeyEvent() r=smaug
nsIDOMWindowUtils.sendKeyEvent() can dispatch any keyboard events, i.e.,
may dispatch different key events from actual Gecko's behavior.  Instead,
they should use nsITextInputProcessor directly or synthesizeKey() of
EventUtils which wraps nsITextInputProcessor.

MozReview-Commit-ID: EDWqXy1OxJp

--HG--
extra : rebase_source : 158c6f3d1611646540133297e4c8352e0b85ab79
2018-01-30 22:05:44 +09:00
Nicholas Nethercote 67e80b725b Bug 1423840 - Rewrite the prefs parser. r=glandium,Manishearth
The prefs parser has two significant problems.

- It doesn't separate tokenizing from parsing.

- It is implemented as a loop around a big switch on a "current state"
  variable.

As a result, it is hard to understand and modify, slower than it could be, and
in obscure cases (involving comments and whitespace) it fails to parse what
should be valid input.

This patch replaces it with a recursive descent parser (albeit one without any
recursion!) that has separate tokenization. The new parser is easier to
understand and modify, more correct, and has better error messages. It doesn't
do error recovery, but that would be much easier to add than in the old parser.

The new parser also runs about 1.9x faster than the existing parser. (As
measured by parsing greprefs.js's contents from memory 1000 times in
succession, omitting the prefs hash table construction. If the table
construction is included, it's about 1.6x faster.)

The new parser is slightly stricter than the old parser in a few ways.

- Disconcertingly, the old parser allowed arbitrary junk between prefs
  (including at the start and end of the prefs file) so long as that junk
  didn't include any of the following chars: '/', '#', 'u', 's', 'p'. I.e.
  lines like these:

    !foo@bar&pref("prefname", true);
    ticky_pref("prefname", true);       // missing 's' at start
    User_pref("prefname", true);        // should be 'u' at start

  would all be treated the same as this:

    pref("prefname", true);

  The new parser disallows such junk because it isn't necessary and seems like
  an unintentional botch by the old parser.

- The old parser allowed character 0x1a (SUB) between tokens and treated it
  like '\n'.

  The new parser does not allow this character. SUB was used to indicate
  end-of-file (*not* end-of-line) in some old operating systems such as MS-DOS,
  but this doesn't seem necessary today.

- The old parser tolerated (with a warning) invalid escape sequences within
  string literals -- such as "\q" (not a valid escape) and "\x1" and "\u12"
  (both of which have insufficient hex digits) -- accepting them literally.

  The new parser does not tolerate invalid escape sequences because it doesn't
  seem necessary and would complicate things.

- The old parser tolerated character 0x00 (NUL) within string literals; this is
  dangerous because C++ code that manipulates string values with embedded NULs
  will almost certainly consider those chars as end-of-string markers.

  The new parser treats NUL chars as end-of-file, to avoid this danger and
  because it facilitates a significant optimization (described within the
  code).

- The old parser allowed integer literals to overflow, silently wrapping them.

  The new parser treats integer overflow as a parse error. This seems better,
  and it caught an existing overflow in testing/profiles/prefs_general.js, for
  places.database.lastMaintenance (see bug 1424030).

The first of these changes meant that a couple of existing prefs with ";;" at
the end had to be changed (done in the preceding patch).

The minor increase in strictness shouldn't be a problem for default pref files
such as greprefs.js within the application (which we can modify), nor for
app-written prefs files such as prefs.js. It could affect user-written prefs
files such as user.js; the experience above suggests that ";;" is the most
likely problem in practice. In my opinion, the risk here is acceptable.

The new parser also does a better job of tracking line numbers because it (a)
treats "\r\n" sequences as a single end-of-line marker, and (a) pays attention
to end-of-line sequences within string literals.

Finally, the patch adds thorough tests of both valid and invalid syntax.

MozReview-Commit-ID: 8EYWH7KxGG
* * *
[mq]: win-fix

MozReview-Commit-ID: 91Bxjfghqfw

--HG--
extra : rebase_source : a8773413e5d68c33e4329df6819b6e1f82c22b85
2017-12-03 00:26:36 +11:00
shindli 8bf605352e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-01 00:38:55 +02:00
Luca Greco 84852d9e50 Bug 1420485 - Reduce memory usage related to the tabs.insertCSS cssCode urls. r=mixedpuppy
This patch introduces a cache of blob urls which are related to the cssCode
injected by the extensions using tabs.insertCSS, which aims to reduce the
amount of memory used by the extensions to store the cssCode injected
into the tabs and their subframes in the content child process.

The generated Blob URL are associated to the extension principal,
so that it is easier to identify in the about:memory reports
which is extension that is using the cached data.

MozReview-Commit-ID: ERhR5nmVMqY

--HG--
extra : rebase_source : af8e2c3312c84bec6715158bcc8af82b76c8a8a6
2017-11-24 19:17:33 +01:00
Bogdan Tara 1a6614b8b5 Merge inbound to mozilla-central. a=merge 2018-01-31 12:00:14 +02:00
Dorel Luca 9f8b519dae Backed out 8 changesets (bug 633062) for xpcshell failures on browser/extensions/formautofill/test/unit/test_sync.js on a CLOSED TREE
Backed out changeset d60ca66f2b62 (bug 633062)
Backed out changeset d80494d5bc36 (bug 633062)
Backed out changeset 33f832b59e86 (bug 633062)
Backed out changeset 968db19986aa (bug 633062)
Backed out changeset a55a3647ea49 (bug 633062)
Backed out changeset bb1030bdab48 (bug 633062)
Backed out changeset 9c4cd2a6965c (bug 633062)
Backed out changeset 669c76bd2618 (bug 633062)

--HG--
extra : amend_source : cf95d15507de46de393cdef797a5808c4e0407ff
2018-01-31 07:28:06 +02:00
Edouard Oger 3e4633d6e3 Bug 633062 p4 - Remove miscellaneous uses of event loop spinning in services/. r=markh
MozReview-Commit-ID: IDGWJevEHLK

--HG--
extra : rebase_source : 8471048a68b9b6204402f3ea9039a21af8c3740c
2017-12-08 14:41:02 -05:00
Sebastian Hengst adbe513381 Bug 1431533: Part 5z - Use ChromeUtils import methods at positions highlighted by eslint after merge. a=eslint-fix 2018-01-31 02:02:52 +02:00
Kartikaya Gupta 7de925da29 Bug 1432475 - Enable rust analysis on mozsearch jobs and save the output to a build artifact. r=glandium
This requires unlocking the unstable features in the rust compiler
by using RUSTC_BOOTSTRAP=1

MozReview-Commit-ID: 1uUG1Ekp1YH

--HG--
extra : rebase_source : d8a5aa5d13f3ee055de8a544b0d5ca8af0aab751
2018-01-30 16:32:01 -05:00
Andrew Swan 1acce175af Bug 1356331 Remove hotfix code from addons manager and related tests r=rhelmer
MozReview-Commit-ID: EjCOOgmXvVH

--HG--
extra : rebase_source : 051c618bd73e7bac41d5dc9339972742b029a879
extra : source : 9af7407fa9309e1fa2dc590309ed2329f02dc61e
2017-12-13 12:33:52 -08:00
Andrew Swan cf4c6f2553 Bug 1356331 Remove hotfix from telemetry r=chutten
MozReview-Commit-ID: GmNhsQnZ8Mh

--HG--
extra : rebase_source : 54c612f7875841968ae836fe501547498bc602bc
extra : source : 1f10773e304757ecefea9d75400960ee23ba101a
2018-01-04 14:16:56 -08:00
Shane Caraveo 7e53463587 Bug 1393940, reenable proxy script tests which were rewritten in bug 1381290 r=mixedpuppy
MozReview-Commit-ID: Fvz60yOK2tF

--HG--
extra : rebase_source : 7fbf33d5bdd13063f7627f2fbc8a2770d9e46656
2018-01-30 14:57:03 -07:00
arthur.iakab c4dd80eca3 Merge mozilla-central to autoland 2018-01-31 00:41:58 +02:00
Sebastian Hengst 732cb1d98b merge mozilla-inbound to mozilla-central. r=merge a=merge 2018-01-31 00:22:27 +02:00
Zibi Braniecki e4b89607c0 Bug 1201232 - Use Services.intl for Intl.* APIs in Gecko. r=Paolo,Pike
It's a minor change that should align us better with our selection of locales
(Services.intl will use user selection of regional preference locales).
I also removed the western arabic numeral system limitation to allow persian locales
to use eastern arabic numerals correctly.

MozReview-Commit-ID: 8TXX0X9RY9z

--HG--
extra : rebase_source : a7c8f507d841945e47f2d4cc142b4b05bbfab08f
2018-01-24 11:50:30 -08:00