Commit Graph

607129 Commits

Author SHA1 Message Date
Nicholas Nethercote
e0dbe1b052 Bug 1478896 - Fix HashTable.h style. r=froydnj
This patch converts HashTable.h from SpiderMonkey style to Gecko style.

It was created by first running `./mach clang-format -p mfbt/HashTable.h` to
fix the whitespace, and then doing manual patch-ups, the most significant of
which were:

- Adding braces around single-statement if/else/for/while blocks.

- Renaming class members to `mFoo` form and arguments to `aFoo` form.

- Converting `typedef Old New` to `using New = Old` throughout.

MozReview-Commit-ID: LJ1emPyuAjK
2018-07-31 13:39:31 +10:00
sotaro
60415ddc5b Bug 1479680 - Change clear_color to (0.0, 0.0, 0.0, 0.0) in webrender r=nical 2018-08-01 08:50:48 +09:00
Boris Zbarsky
ee565cfd06 Bug 1479486. Remove some unused chromeonly history APIs on Window. r=mccr8
Well, back() is used, but only in tests, and those can use history.back().
2018-07-31 17:27:03 -04:00
Boris Zbarsky
c15a7558ea Bug 1479475 part 2. Remove dead code in nsGlobalWindowOuter that is inner-window-only. r=nika 2018-07-31 17:27:02 -04:00
Boris Zbarsky
c70cb82b91 Bug 1479475 part 1. Remove dead code in nsGlobalWindowInner that is outer-window-only. r=nika 2018-07-31 17:27:02 -04:00
Boris Zbarsky
e847da3a28 Bug 1479497. Use the API for getting the canvas frame instead of groveling around for it in nsGlobalWindowInner::UpdateCanvasFocus. r=heycam 2018-07-31 17:27:02 -04:00
Rob Wu
c7c432f91a Bug 1454627 - Run "onclick" event of menu with user input r=mixedpuppy
MozReview-Commit-ID: r1URJfOKUB

--HG--
extra : rebase_source : 1f5c5bb7b6dbd9709a26bf10abddcda919eff70f
2018-07-27 19:06:00 +02:00
Rob Wu
0fb02494af Bug 1454627 - Re-enable browser_ext_user_events.js (bug 1381305) r=mixedpuppy
Re-enable the test that was disabled in bug 1381305 and fix the
underlying issue that caused th intermittent failure in the first place.

MozReview-Commit-ID: BL9wS2fogaf

--HG--
extra : rebase_source : 685f43b2e47d80f71814385a5c8b94fd3000eac9
2018-07-27 18:52:21 +02:00
Dorel Luca
fa7b36bf43 Backed out changeset e80000bf992c (bug 1478668) for build bustage 2018-08-01 12:26:14 +03:00
Dão Gottwald
26aea6f1ff Bug 1479874 - On Windows 10, let active menu bar items inherit their color from the title bar. r=Felipe
MozReview-Commit-ID: 1FxqSz2U6Lo

--HG--
extra : rebase_source : 287de9e88d4240f5088d9b239a1d1ef220d738c8
2018-07-31 21:20:07 +02:00
Nicholas Nethercote
997e790c3f Bug 1477626 - Use mozilla::HashTable instead of js::HashTable in Bench.cpp. r=froydnj
MozReview-Commit-ID: 4P5L9Kdkiuu

--HG--
extra : rebase_source : 3311757797cbc7c699c39b5ee583910c1924cfb1
2018-07-26 20:16:00 +10:00
Nicholas Nethercote
6998f465ed Bug 1477626 - Use mozilla::HashTable instead of JS::HashTable in DMD. r=erahm
Also use mozilla::HashNumber where appropriate.

MozReview-Commit-ID: BTq0XDS5UfQ

--HG--
extra : rebase_source : 28f45a9b27e831e99620a2b575f373003f1301f2
2018-07-26 20:15:58 +10:00
Nicholas Nethercote
234016c13e Bug 1477626 - Document some differences between mozilla::HashTable and PLDHashTable. r=Waldo
MozReview-Commit-ID: DB0KUy99DDM

--HG--
extra : rebase_source : 4d14c47c48cb821f6c69654c1c5d90c48f217e48
2018-07-26 20:15:55 +10:00
Panos Astithas
3536af633e Bug 1472921 - Fix sampling interval persistence for values <1ms. r=julienw
MozReview-Commit-ID: TxKzT8MCZY

--HG--
extra : rebase_source : 534e6a93928428cd24c306a0f78737d7d6a1d36f
2018-07-26 12:47:30 +03:00
Petru Gurita
5341019c70 Bug 1319793 - [marionette harness tests] Default to not swallow stdout from pytest. r=whimboo
Added the flag 'capture --no' to the harness_unit tests. Stdout is now displayed by default.

MozReview-Commit-ID: HZj3vntLcKI

--HG--
extra : rebase_source : 4de9697cf8cae7ed1707049609812de6f6e22387
2018-07-25 09:00:42 +03:00
Franziskus Kiefer
2b958d46de Bug 1478668 - windows key store adapter, r=keeler
OS key-store adapter for Windows Credential Manager.
It looks like Windows doesn't allow locking the credential manager without locking the desktop. So `lock` and `unlock` are no-ops here.

Depends on D2487.

Differential Revision: https://phabricator.services.mozilla.com/D2550

--HG--
extra : moz-landing-system : lando
2018-08-01 07:52:13 +00:00
Petru Lingurar
bdca79e5ac Bug 1478970 - Can't update Nightly from about:firefox or notification bar - Android O+; r=jchen
As per
https://android-developers.googleblog.com/2017/08/making-it-safer-to-get-apps-on-android-o.html
and
https://developer.android.com/reference/android/Manifest.permission.html#REQUEST_INSTALL_PACKAGES
after targeting API 26 we need a new permission to be able to install Apks.

MozReview-Commit-ID: BF28HTkwYTN

--HG--
extra : rebase_source : cbbbbfb8578d1430810c773d2da99ecd99e69615
2018-08-01 09:09:11 +03:00
Cameron McCormack
046bd5fe7f Bug 1475197 - Part 1: Shrink selectors::Component to 24 bytes. r=emilio
This saves about 37 KiB of memory across the UA style sheets.

MozReview-Commit-ID: EoZnlmyWwxX

--HG--
extra : rebase_source : cd8ef0ba838618f9a4583b7d9896caa3a0602199
2018-07-16 12:15:47 +10:00
Coroiu Cristina
248cd91be4 Backed out changeset 150241c71d9d (bug 1478265) for ESlint failure at toolkit/components/places/tests/maintenance/test_preventive_maintenance.js 2018-08-01 08:17:36 +03:00
Lina Cambridge
1f602b9b67 Bug 1478265 - Add a Places maintenance task to clean up duplicate URLs. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D2351

--HG--
extra : moz-landing-system : lando
2018-08-01 04:55:56 +00:00
Mihir Iyer
f7cad8b983 Bug 1473047 - Re-resolve row-gap percentages after intrinsic block size calculated. r=dholbert
MozReview-Commit-ID: EHX1WFvqwr1

--HG--
extra : rebase_source : fb9c082c1c3f74fcc9404016343eb456cb8948ed
2018-07-24 11:38:54 -07:00
Zibi Braniecki
a0c2cfd168 Bug 1479606 - Sync BCP47 language tags between processes, not lang tags. r=jfkthame
Sync BCP47 language tags between processes, not lang tags.

Differential Revision: https://phabricator.services.mozilla.com/D2579

--HG--
extra : moz-landing-system : lando
2018-07-31 21:42:37 +00:00
Jared Wein
6ecd2e45dd Bug 1468153 - Update the edit strings (Add/Update) and the failure strings to use the hostname. r=sfoster
MozReview-Commit-ID: HcOMsP5zWBg

--HG--
rename : browser/components/payments/test/mochitest/test_labelled_checkbox.html => browser/components/payments/test/mochitest/test_completion_error_page.html
extra : rebase_source : a5e2ed74badabed047e707620f977081ae99247b
2018-07-30 14:22:52 -04:00
Johannes Willbold
cacc747881 Bug 1477072: Enabled media.peerconnection.sdp.rust.enabled in Nightly, r=dminor
Enabled media.peerconnection.sdp.rust.enabled in Nightly
Enabled media.peerconnection.sdp.rust.compare in Nightly

MozReview-Commit-ID: BbfH1dYhRWG

--HG--
extra : rebase_source : c6ab4ef469ae2e5e799c852ebb38c876e6c443d2
2018-07-28 11:52:52 -07:00
Johannes Willbold
783eb76c4a Bug 1477815: Removed RustSdpAttributeType, r=dminor
Removed the enum RustSdpAttributeType and replaced it with the SdpAttributeType enum.

MozReview-Commit-ID: IcJnbnWa4IB

--HG--
extra : rebase_source : befb118948740122dbbdd033e20176351bdd2884
2018-07-23 13:45:04 -07:00
Bogdan Tara
bd351673a5 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-01 01:05:56 +03:00
Bogdan Tara
9c44097a0d Merge inbound to mozilla-central. a=merge 2018-08-01 00:58:55 +03:00
Felipe Gomes
c09addaf9a Bug 1479251 - registeredURLs may not have been set up yet when the first process launches. r=mossop
MozReview-Commit-ID: A9kC8yJavrg

--HG--
extra : rebase_source : 388b0587010ca2547f6157580c29e1b89fbc40bc
2018-07-31 10:30:38 -03:00
Andrew Swan
ad31645d25 Bug 1451513 Part 3: Make loading the mochitest extension more robust r=kmag
A couple of changes to ensure that the mochitest harness doesn't try to
start executing changes before the mochitest extension is loaded:
1. Fix the marionette driver to wait for an installed extension to
   be started before returning from Addon:install
2. Wait for extension API onStartup() handlers to finish before
   considering a webextension started.

MozReview-Commit-ID: 8YEdNn6s5qh

--HG--
extra : rebase_source : 67e9abadcda82d55ac73c33367ec65cdbf7b823d
2018-07-30 17:03:27 -07:00
Brad Werth
774ae7e6d8 Bug 1479627 Part 1: Set overflow:hidden for webconsole message-body style, to avoid a slow path in restyling. r=nchevobbe
MozReview-Commit-ID: ImKq594IB7P

--HG--
extra : rebase_source : ae8f6aa599d7c4e34be0dbe2c262edf7e820b030
2018-07-30 16:41:47 -07:00
Bogdan Tara
642f18b262 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-07-31 21:32:12 +03:00
Bogdan Tara
b95ba78360 Merge inbound to mozilla-central. a=merge 2018-07-31 21:30:12 +03:00
Bogdan Tara
fb57ee9280 Backed out changeset 7e49d55f0240 (bug 1446956) for browser_ext_omnibox.js failures CLOSED TREE 2018-07-31 21:07:33 +03:00
Bogdan Tara
8ccee52ef3 Backed out changeset cc67a75b9160 (bug 1446956) for browser_ext_omnibox.js failures CLOSED TREE 2018-07-31 21:03:08 +03:00
Gijs Kruitbosch
dcbec7c8b6 Bug 1478404 - remove _xpcom_categories annotations as they're dead code, r=florian
Support for the _xpcom_categories property was removed in Bug 568691,
but we left a bunch of consumers behind, and it's been cargo-culted a bit more.
We should remove the remaining remnants.

Differential Revision: https://phabricator.services.mozilla.com/D2429

--HG--
extra : moz-landing-system : lando
2018-07-31 17:39:25 +00:00
Narcis Beleuzu
d948e64c34 Backed out changeset 0a485a8db67c (bug 1472921) for debug-mochitest-chrome failures on test_perf-settings-interval.html 2018-07-31 19:52:32 +03:00
Emilio Cobos Álvarez
3deb38c4a8 Bug 1474142: Don't skip calling _onDragEnd even if the from and to target is the customizable area. r=Gijs
We may not really receive a dragend event if we're fast enough.

Calling _onDragEnd multiple times is fine (it should be idempotent).

This particular exception was added in bug 978084 along with all the _onDragEnd
calls, but I don't think it's sound over-all.

I don't really want to dig into the XUL button code to see why drag end was
consistently firing there, unless you think it's really really needed :)

Differential Revision: https://phabricator.services.mozilla.com/D2019

--HG--
extra : moz-landing-system : lando
2018-07-31 15:38:34 +00:00
Nicolas Chevobbe
d4fdced45f Bug 1457478 - Do not call Services.console.logStringMessage in clearMessagesCache; r=bgrins.
This was causing an empty message to appear in the
browser console when clicking the clear button.
This specific call was introduced 5 years ago without
much explanation, and since the error console is now
gone, I think it's safe to remove the call.

A test is added to make sure we do not print any extra
messages when clearing the browser console.

Differential Revision: https://phabricator.services.mozilla.com/D2551

--HG--
extra : moz-landing-system : lando
2018-07-31 14:16:42 +00:00
Devika Sugathan
ae8a6c6dcc Bug 1472121 - Remove unused patches from build/build-clang/. r=marco 2018-07-31 00:35:36 +05:30
Emilio Cobos Álvarez
27250792bc Bug 1479240: Make system metric queries always return false instead of not matching for fingerprinting-resistance. r=heycam
Looks like these used this mechanism for no great reason, and actually doing
this exposes trivially whether fingerprinting-resistance is enabled, which looks
like an anti-goal (if a media query parses correctly, and doesn't match either 1
or 0, then fingerprinting-resistance is enabled).

Differential Revision: https://phabricator.services.mozilla.com/D2493

MozReview-Commit-ID: 76tIIkwlpeP
2018-07-31 12:55:59 +02:00
Jan Varga
27932e0385 Bug 1478573; r=asuth 2018-07-31 12:27:17 +02:00
shindli
eb2f38acfb Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-07-31 13:09:14 +03:00
Emilio Cobos Álvarez
6c81e2e79c Bug 1479450: Convert GetStringValue to use Servo. r=xidorn
And remove gPropertyTable / kCSSRawProperties while at it.

Differential Revision: https://phabricator.services.mozilla.com/D2516

MozReview-Commit-ID: 8U87BcBkrJF
2018-07-31 12:05:00 +02:00
Emilio Cobos Álvarez
2996813963 Bug 1479450: Implement nsCSSProps::LookupProperty using Rust. r=xidorn
Always assume allowed-for-all-content. There are a couple callers which weren't
doing that:

 * A unit test -> removed.

 * ComputeAnimationDistance: Used for testing (in transitions_per_property), and
   for the animation inspector. The animation inspector shouldn't show
   non-enabled properties. The transitions_per_property test already relies on
   getComputedStyle stuff which only uses eForAllContent.

 * GetCSSImageURLs: I added this API for the context menu page and such. It
   doesn't rely on non-enabled-everywhere properties, it was only using
   eInChrome because it was a ChromeOnly API, but it doesn't really need this.

Differential Revision: https://phabricator.services.mozilla.com/D2514

MozReview-Commit-ID: 4VOi5Su3Bos
2018-07-31 12:00:15 +02:00
Emilio Cobos Álvarez
1ad081c136 Bug 1479681: Fix the loop in nsTransitionManager dealing with stopping all transitions. r=hiro
The loop was mutating the nsCSSPropertyID used to guard the exit, which is
obviously wrong.

This branch is pretty rarely taken, since people don't usually specify `all` as
a transition property other than the first, for which case we take the fast path
with `checkProperties = false`. Our test-suite failed to catch this.

Added a crashtest that hangs without this patch.

The reason bug 1478990 regressed this is because it changed the order of
nsCSSPropertyID so that `p` actually went backwards causing the infinite loop,
but the bug was introduced (by me, whoops) in bug 1309752.

Differential Revision: https://phabricator.services.mozilla.com/D2552

MozReview-Commit-ID: Ii3D1FaZ31R
2018-07-31 11:54:41 +02:00
Emilio Cobos Álvarez
196560b95f Bug 1479681: Fix the loop in nsTransitionManager dealing with stopping all transitions. r=hiro a=aryx
The loop was mutating the nsCSSPropertyID used to guard the exit, which is
obviously wrong.

This branch is pretty rarely taken, since people don't usually specify `all` as
a transition property other than the first, for which case we take the fast path
with `checkProperties = false`. Our test-suite failed to catch this.

Added a crashtest that hangs without this patch.

The reason bug 1478990 regressed this is because it changed the order of
nsCSSPropertyID so that `p` actually went backwards causing the infinite loop,
but the bug was introduced (by me, whoops) in bug 1309752.

Differential Revision: https://phabricator.services.mozilla.com/D2552

MozReview-Commit-ID: Ii3D1FaZ31R

--HG--
extra : source : 78be4bbf4b050f6614bb9f4115f57fb61f4890df
2018-07-31 11:32:53 +02:00
shindli
f0d8729e09 Merge inbound to mozilla-central. a=merge 2018-07-31 12:50:32 +03:00
Jon Coppeard
79f79d4af0 Bug 1479388 - Move most WeakMap inline method definitions into a separate header r=sfink 2018-07-31 10:06:06 +01:00
shindli
bd8a5ade23 Backed out changeset e988c40d5519 (bug 1479388) for spidermonkey bustages in /builds/worker/workspace/build/src/js/src/vm/Debugger-inl on a CLOSED TREE 2018-07-31 11:56:47 +03:00
Paolo Amadini
1866365ec8 Bug 1479215 - Back out spurious files from changeset 162e063abd54. a=backout
--HG--
extra : rebase_source : 137b47f944935184bf4c26ba9b6e7f8616a72c42
2018-07-31 09:49:53 +01:00