Commit Graph

80323 Commits

Author SHA1 Message Date
Ehsan Akhgari
4137a92662 Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh
Differential Revision: https://phabricator.services.mozilla.com/D16052
2019-01-21 09:58:50 -05:00
Ehsan Akhgari
5d7e383969 Bug 1514340 - Part 1: Add the nsISecurityEventSink::OnContentBlockingEvent() helper method; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D16051
2019-01-21 09:58:50 -05:00
Jon Coppeard
d86ab4b794 Bug 1518075 - Fix rooting hazard r=me on a CLOSED TREE 2019-01-21 14:26:24 +00:00
Jon Coppeard
a96229ddb3 Bug 1512749 - Convert JS::gcreason::Reason to enum class JS:GCReason r=jonco r=mccr8 2019-01-21 13:09:12 +00:00
longsonr
deb24b809c Bug 1519253 - Move nsSMILInterval and nsSMILRepeatCount to the mozilla namespace r=birtles
--HG--
rename : dom/smil/nsSMILInterval.cpp => dom/smil/SMILInterval.cpp
rename : dom/smil/nsSMILInterval.h => dom/smil/SMILInterval.h
rename : dom/smil/nsSMILRepeatCount.cpp => dom/smil/SMILRepeatCount.cpp
rename : dom/smil/nsSMILRepeatCount.h => dom/smil/SMILRepeatCount.h
2019-01-21 13:08:12 +00:00
Jon Coppeard
173ea88195 Bug 1518075 - Add another check for null script because compilation can 'succeed' if scripting is disabled r=smaug 2019-01-21 12:40:55 +00:00
Tom Tung
698bbba539 Bug 1521017 - Using NS_NAMED_LITERNAL_CSTRING to avoid increasing the number of static constructors; r=asuth
This patch uses nsLiteralCString instead of nsCString for avoiding increasing
the number of static constructors. Also, it removes the declaration of
kInternalError and kExternalError on Beta and Release since they won't be use
in these channels.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 22:52:06 +00:00
Cosmin Sabou
7ccc9d8b0b Merge mozilla-inbound to mozilla-central. a=merge 2019-01-19 11:57:49 +02:00
Alastor Wu
d929d261a0 Bug 1519430 - part3 : add test. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D16614

--HG--
extra : moz-landing-system : lando
2019-01-18 18:23:44 +00:00
Alastor Wu
9bb36dab32 Bug 1519430 - part2 : only resume AudioContext which is blocked by autoplay policy. r=padenot
We would only start the AudioContext blocked by our autoplay policy, won't resume AudioContext which is suspended explictly by page.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 18:23:58 +00:00
Alastor Wu
7915740446 Bug 1519430 - part1 : add new methods for calling suspend/resume from chrome. r=padenot
In order to separate resume/suspend called from chrome and content side, we need to create new methods.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 18:35:07 +00:00
Timothy Guan-tin Chien
5d97e91896 Bug 1521211 - Remove unused property nsContentUtils::sIsCustomElementsEnabled r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D17036

--HG--
extra : moz-landing-system : lando
2019-01-19 00:11:26 +00:00
Gijs Kruitbosch
bc65d4cf7f Bug 1519074 - delay deserializing some CSP info until necessary, r=bzbarsky,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D16794

--HG--
extra : moz-landing-system : lando
2019-01-19 00:15:13 +00:00
Andrew McCreight
9e451b1da0 Bug 1517611 - Cycle collect WebAuthnManager and U2F more. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D17026

--HG--
extra : moz-landing-system : lando
2019-01-18 23:21:46 +00:00
Muchtar Salimov
a12b9e7b37 Bug 1508984 - Enable ESLint for dom/tests/unit/ and dom/system (manual changes) r=Standard8,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D13624

--HG--
extra : moz-landing-system : lando
2019-01-18 18:56:46 +00:00
alwu
aab68ffe88 Bug 1442399 - refactor seamless-looping test. r=padenot
To make it output more debug information which is helpful to debug intermittent fail and refactor the test flow.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 19:23:08 +00:00
Tim Nguyen
60a5143df0 Bug 1241885 - Implement support for -moz-window-dragging in GTK and remove toolkit toolbar-drag binding. r=dao,bzbarsky,stransky
The restriction preventing fullscreen windows from being dragged is removed.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 22:42:24 +00:00
Andreea Pavel
600eb759a4 Backed out changeset a69c1a1dc6fe (bug 1519074) for build bustages on a CLOSED TREE 2019-01-19 00:08:59 +02:00
Andreea Pavel
95431afe85 Backed out 1 changesets (bug 1241885) for build bustages on a CLOSED TREE
Backed out changeset 176be7000d33 (bug 1241885)
2019-01-18 23:49:55 +02:00
Emilio Cobos Álvarez
c0c8f2b418 Bug 1521152 - Constify nsContentUtils::IsChromeDoc. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D17004

--HG--
extra : moz-landing-system : lando
2019-01-18 19:05:31 +00:00
Nika Layzell
083cc0a7c3 Bug 1520372 - Add an ownerElement property to nsITabParent, r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D16713

--HG--
extra : moz-landing-system : lando
2019-01-16 20:00:17 +00:00
Gijs Kruitbosch
8e2cad84f0 Bug 1519074 - delay deserializing some CSP info until necessary, r=bzbarsky,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D16794

--HG--
extra : moz-landing-system : lando
2019-01-18 17:17:32 +00:00
Michael Froman
269633857f Bug 1520975 - only bind RemoteDecoderManagerChild's IPC connection when needed. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D16925

--HG--
extra : moz-landing-system : lando
2019-01-18 03:53:51 +00:00
Greg Tatum
7042c8f1c3 Bug 1520526 - Add categories to all profiler markers; r=mstange
This commit adds categories to all markers. This way the profiler's
marker categories and frame label categories agree. There are a few
duplicate category properties on some of the marker payloads, but
this could be cleaned up in a follow-up if needed.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 15:40:15 +00:00
Tim Nguyen
495df7ddea Bug 1241885 - Implement support for -moz-window-dragging in GTK and remove toolkit toolbar-drag binding. r=dao,bzbarsky,stransky
The restriction preventing fullscreen windows from being dragged is removed.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 16:51:08 +00:00
Emilio Cobos Álvarez
62fdf6f313 Bug 1430623 - Move the lang font prefs to Document instead of nsPresContext. r=jfkthame
This will allow me to (in different patches):

 * Make the default style structs constructible without a pres context (default
   color and co. would need to be faked or moved to Document as well, but that's
   ok, since those cannot affect media queries, the default font-size does).

 * Remove the nsPresContext pointer from ComputedStyle (moving it to nsFrame,
   probably).

That would in turn allow me to have the default style computed without a pres
context, which allows us to fix both bug 1490401 and bug 1471231.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 13:43:06 +00:00
Boris Zbarsky
3bf84b1452 Bug 1519284. Fix rooting hazards in PaymentRequest. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D16891

--HG--
extra : moz-landing-system : lando
2019-01-18 09:18:18 +00:00
Margareta Eliza Balazs
0ba2ee586d Backed out changeset 92c56dcf69b8 (bug 1512949) for mochitest failures setup | Login to delete is defined: login0 - false == true - got false, expected true (operator ==) CLOSED TREE 2019-01-18 14:19:05 +02:00
vinoth
5d09ad138e Bug 1512949 - Remove eval from tests and flip assertion flag r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D14054

--HG--
extra : moz-landing-system : lando
2019-01-15 13:11:19 +00:00
Margareta Eliza Balazs
ec14417cc3 Merge inbound to mozilla-central. a=merge 2019-01-18 11:40:07 +02:00
sotaro
c7b3c3a546 Bug 1508522 - Relax aysnc animation size restriction with WebRender r=mattwoodrow
Performance of sync animation with large images is worse with WebRender than non-WebRender case. We want to use async animation as much as possible and relax aysnc animation size restriction. With WebRender, memory usage increase for async animation is limited compared to non-WebRender case.  Image does not needs additional TextureClient allocation for async animation and majority of frames are comverted to WebRenderCommands. Then we could relax aysnc animation size restriction with WebRender.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 23:59:44 +00:00
alwu
80d152a07a Bug 1520912 - remove 'mUserGestureActivated' from Document. r=nika
We've changed the way to set `userGestureActivation` flag which will be set in `BrowsingContext`, so we should remove `mUserGestureActivated` flag from Document.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 02:41:15 +00:00
Dimi Lee
632a821b8a Bug 1501458 - Remove unused tracking protection code from nsUrlClassifierDBService. r=baku
No one is using the aUseTrackingProtection parameter and also tracking
protection related preference in Classify API. And we shouldn't use it
that way in the future.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 21:24:43 +00:00
Johann Hofmann
ee15b3664f Bug 1483440 - Part 1 - Remove purge-domain-data, add purge-sessionStorage notification. r=baku
The browser:purge-domain-data notification had two different intentions,
- to clear session store information and
- to clear all localStorage and sessionStorage
Firing the notification accomplished both at the same time, which from a
user perspective is of course totally not understandable. This commit
removes purge-domain-data in favor of the two distinct purge-localStorage and
purge-sessionStorage events. This gives callers more granular choice on
what they want to clear.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 17:40:35 +00:00
Tom Tung
a4b7f90f3f Bug 1436188 - Add telemetry probes to collect the number of failures during the QuotaManager initialization; r=asuth, data-review=chutten
This patch uses categorical keyed Historgram to collect data. While the key is
used to determine whether is it an external error or an internal error (Note:
the external error is referred to low level failure, for example: database
corrupt, OS API errors, ... etc; the internal error is referred to errors, like:
not handle file properly, unexpected filenames, ... etc), the labels for
categorical indicates where the error happens.
Furthermore, this patch make QuotaManager keep traversing the profile even if
an error happens so that we can get more information in the telemetry data.
Please note that these things should only happen in the Nightly Channel.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 17:12:27 +00:00
Jeff Muizelaar
3cf4f88e68 Bug 1520559. Move DataMutex from EME to xpcom/threads. r=froydnj
This is a better place for it and is more appropriate given that it
already exports to mozilla/DataMutex.h. I'll fix the rvalue reference
problems in a follow up.

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

--HG--
rename : dom/media/eme/DataMutex.h => xpcom/threads/DataMutex.h
extra : moz-landing-system : lando
2019-01-17 15:09:18 +00:00
Alphan Chen
58400124a1 Bug 1497146 part 2 - Convert FormData.jsm to C++ [collect() part] r=nika,peterv,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D12112

--HG--
extra : moz-landing-system : lando
2019-01-17 14:56:51 +00:00
Alphan Chen
5d28867416 Bug 1497146 part 1 - Add SessionStoreUtils.webidl r=nika
Let SessionStoreUtils be a WebIDL namespace, rather than a XPCOM service

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

--HG--
rename : toolkit/components/sessionstore/nsSessionStoreUtils.cpp => toolkit/components/sessionstore/SessionStoreUtils.cpp
extra : moz-landing-system : lando
2019-01-17 14:58:31 +00:00
Tom Tung
222f8c6163 Bug 1498183 - Supporting async/await for mochitest and xpcshell test in indexedDB; r=asuth
This patch mainly uses add_task while running async/await scripts. To support that in workers, it also changes testHarness logic for worker from "yield" to promise.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 15:05:21 +00:00
Jonathan Kingston
46c31543ae Bug 1514396 - Only pass the mixedContentBlocker codebase principals for aRequestingLocation. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D16205

--HG--
extra : moz-landing-system : lando
2019-01-16 17:07:52 +00:00
Paul Adenot
9829894232 Bug 1520457 - Adjust the message written in the console when the auto-play policy block an AudioContext. r=flod,cpearce
Differential Revision: https://phabricator.services.mozilla.com/D16692

--HG--
extra : moz-landing-system : lando
2019-01-16 22:14:08 +00:00
shindli
a082a36cea Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-17 11:58:24 +02:00
Coroiu Cristina
576b2b1b23 Backed out 3 changesets (bug 1519430) for mda failures at test_autoplay_policy_web_audio_notResumePageInvokedSuspendedAudioContext.html
Backed out changeset b7bc38b0f9c5 (bug 1519430)
Backed out changeset 987aa2594ba6 (bug 1519430)
Backed out changeset 521176ad7ae8 (bug 1519430)
2019-01-17 09:45:15 +02:00
Alastor Wu
48f1fe4a35 Bug 1519430 - part3 : add test. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D16614

--HG--
extra : moz-landing-system : lando
2019-01-17 02:58:05 +00:00
Alastor Wu
736d0d470b Bug 1519430 - part2 : only resume AudioContext which is blocked by autoplay policy. r=padenot
We would only start the AudioContext blocked by our autoplay policy, won't resume AudioContext which is suspended explictly by page.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 02:58:03 +00:00
Alastor Wu
c3a0523cce Bug 1519430 - part1 : add new methods for calling suspend/resume from chrome. r=padenot
In order to separate resume/suspend called from chrome and content side, we need to create new methods.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 02:56:22 +00:00
arthur.iakab
8098d0047a Merge mozilla-central to autoland 2019-01-17 06:22:18 +02:00
arthur.iakab
48fa943d27 Merge inbound to mozilla-central a=merge 2019-01-17 06:21:08 +02:00
Tooru Fujisawa
5387becfb9 Bug 1519302 - Add pref to restrict BinAST feature to specific hosts. r=baku
To reduce the attack surface in early test for BinAST, add a preference to
restrict the hosts that Firefox accepts BinAST file from.
The preference is turned on by default (BinAST itself is turned off by
default for now), and the list contains hosts which is going to be used in
early test.
For hosts not listed in the list, Firefox doesn't send BinAST MIME-Type in
Accept field, and doesn't handle BinAST file in case the server returns
BinAST file.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 03:22:39 +00:00
Andrea Marchesini
24ceacee0e Bug 1495363 - Abort the previous request, if a form is submitted twice - tests, r=smaug 2019-01-16 22:51:17 +01:00