Commit Graph

76261 Commits

Author SHA1 Message Date
Tarek Ziadé
a3fdf4760e Bug 1477943 - Add a unique id per PerformanceCounter instance - r=baku,froydnj
This new id is added in the PerformanceInfo data and helps consumers distinguish
counters.

MozReview-Commit-ID: 7kEmqJcVggM

--HG--
extra : rebase_source : 40cca4c937f846db93ec1315036ad1bac04bc762
2018-07-27 11:44:22 +02:00
Hiroyuki Ikezoe
9cb3bb79e5 Bug 1479133 - Use AnimationInfo::GetGenerationFromFrame to get the animation generation for WebRender. r=birtles
WebRender has no layers at all.

MozReview-Commit-ID: 7qYE8vONfU9

--HG--
extra : rebase_source : 58e0853ce4f694bfb32e7fa34ef37db6db511185
2018-07-30 11:20:53 +09:00
Hiroyuki Ikezoe
0ffcf23607 Bug 1478643 - Apply change hints for transform animation in the case where the current transform style is 'none' and no change hint produced in AddLayerChangesForAnimation. r=birtles
The applying change hints are the same as what we apply for transform style
changed from something to 'none'.

All test cases pass with this fix fail without the fix.

MozReview-Commit-ID: 7HStU26lRPq

--HG--
extra : rebase_source : 701361d477ab7954ab15fde75fd40d98724e47b3
2018-07-30 11:13:54 +09:00
Hiroyuki Ikezoe
66cfd53581 Bug 1478643 - Introduce a new change hint set for added or removed transform style. r=birtles
MozReview-Commit-ID: GfK1e5QaOu6

--HG--
extra : rebase_source : c6e28e7fabb43f54d04e756865a652fc4752ce30
2018-07-30 10:51:18 +09:00
Hiroyuki Ikezoe
0637266108 Bug 1478643 - Add test cases checking finished opacity animation on the compositor. r=birtles
All test cases here pass without any changes on the current trunk, but all
counter part test cases for transform introducing in a subsequent patch will
fail without the proper fix.

MozReview-Commit-ID: 3hgsVfFJPrZ

--HG--
extra : rebase_source : 535b74c6ddb070af1b1803d966a94bf7ae7bd37d
2018-07-30 10:44:47 +09:00
Jan-Ivar Bruaroey
ec94f36a20 Bug 1478367 - Move RTCRtpTransceiver API mochitest to web-platform-tests. r=bwc
MozReview-Commit-ID: JyZMU0BKwVH

--HG--
rename : dom/media/tests/mochitest/test_peerConnection_transceivers.html => testing/web-platform/tests/webrtc/RTCRtpTransceiver.https.html
extra : rebase_source : 48b3c8dc327e257350dc6da6d15f6f860805d713
2018-07-24 23:14:29 -04:00
Chris Pearce
4a6ff21ab5 Bug 1473671 - Don't store persistent block permission if ESC pressed while showing permission doorhanger. r=florian
While showing a doorhanger permisison prompt, if the user presses the ESC key
we call the secondary action callback, passing in whether any checkbox on
the popup notification was checked.

In the case of an autoplay-media permission prompt, we have a "remember"
checkbox, which is checked by default. So pressing ESC means the user will
remember a "block" result for the current site.

We believe that users don't expect pressing ESC to result in a remembered
decision, they expect pressing ESC to avoid making a decision. So we want to
ignore the checkbox when ESC is pressed for autoplay-media.

So this patch adds a new PopupNotification behaviour which reports the source
of event which caused the action callback to be called. This enables the ESC
key press to ignore storing a permission.

Note: the change here to not store a permission on ESC press applies to all
permissions, not just autoplay-media.


MozReview-Commit-ID: IUWFN8LG9VF

--HG--
extra : rebase_source : b004bc211177a7bfb6dcea563d75db9a6750b214
2018-07-17 14:45:17 +12:00
Csoregi Natalia
b0f4e9eb05 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-07-29 12:47:28 +03:00
Hiroyuki Ikezoe
aae11e059f Bug 1479246 - Use z-index for the property running on the main thread instead of background-color. r=boris
background-color animations will run on the compositor.  So we have to change
the property in tests which suppose that background-color animation runs on the
main-thread.

The reason why we use z-index is that the property produces only
nsChangeHint_RepaintFrame, thus it's throttled and won't be unthrottled
periodically on out-of-view elements just like background-color animations.

MozReview-Commit-ID: LZYs0qOGskh

--HG--
extra : rebase_source : f299e46a293db067f771ebd50be34ba9460e8ea7
2018-07-29 15:59:21 +09:00
Bogdan Tara
4916c9a0b3 Merge inbound to mozilla-central. a=merge 2018-07-29 00:48:22 +03:00
Jan de Mooij
6e34ef61c4 Bug 1478955 part 4 - Use JSAutoRealm in Codegen.py in a few places. r=bz 2018-07-28 12:16:12 +02:00
Jan de Mooij
80adc67aba Bug 1478955 part 1 - Rename JSAutoRealm to JSAutoRealmAllowCCW. r=luke 2018-07-28 12:12:26 +02:00
Gurzau Raul
db79375c66 Merge inbound to mozilla-central. a=merge 2018-07-28 12:45:44 +03:00
Boris Zbarsky
6748ffcaed Bug 1478890. Stop using ToXPCOMCallback in GetUserMediaDevices. r=jib 2018-07-28 00:40:29 -04:00
Boris Zbarsky
057c310979 Bug 1478890. Stop using ToXPCOMCallback in GetUserMedia code. r=jib
We don't want to expose nsXPCWrappedJS to the web, and this code is doing that.
2018-07-28 00:40:26 -04:00
Daniel Holbert
fccedb8262 Bug 1477856: In flexbox devtools API, report max-width:none as +infinity. r=bradwerth
Previously we were just directly converting this nscoord sentinel-value representation (NS_UNCONSTRAINEDSIZE) into CSS pixels and producing a particular bogus number of pixels.

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

--HG--
extra : moz-landing-system : lando
2018-07-27 21:38:46 +00:00
Cosmin Sabou
d71fce60ce Merge mozilla-central to mozilla-inbound. a=merge 2018-07-28 01:56:40 +03:00
dvarga
6da1abdab8 Merge autoland to mozilla-central. a=merge 2018-07-28 01:30:42 +03:00
Cosmin Sabou
778ca4f84f Backed out 8 changesets (bug 1476405) for causing frequent failures in bug 1479022. a=backout
Backed out changeset ad1674e9152d (bug 1476405)
Backed out changeset e0a021b27d2c (bug 1476405)
Backed out changeset 771288dbf852 (bug 1476405)
Backed out changeset aeebad4f2dc3 (bug 1476405)
Backed out changeset 4831cbfd03de (bug 1476405)
Backed out changeset 0b0c243a1827 (bug 1476405)
Backed out changeset 236b366fdf37 (bug 1476405)
Backed out changeset c767b1b618fb (bug 1476405)
2018-07-28 01:25:25 +03:00
Jeff Gilbert
0e128a3868 Bug 1470985 - s/PodEqual/ArrayEqual/ from ArrayUtils.h. - r=waldo
We can't use memcmp to compare PODs, largely because of undefined
padding. The rest of the Pod* functions are fine though, since we're
replicating or zeroing PODs.

MozReview-Commit-ID: LSspAi8qCWw
2018-07-27 14:11:18 -07:00
dvarga
d78485112a Merge inbound to mozilla-central. a=merge 2018-07-27 20:42:15 +03:00
Gijs Kruitbosch
5c0e726193 Bug 1477670 - remove content handler code from browser/, r=florian,jkt
MozReview-Commit-ID: 3kS7yPdkjGs

--HG--
extra : rebase_source : 6aae9414ed8e5c2a31509f85ef0cbfc9b31895fd
2018-07-24 17:54:40 +01:00
Gijs Kruitbosch
b3a715cbd5 Bug 1477670 - empty out DOM implementation of registerContentHandler, r=baku
MozReview-Commit-ID: 7Oe6P1sC4KW

--HG--
extra : rebase_source : 8b147b2b951adcc257ba5dcd0dca027a728bd83c
2018-07-24 17:41:06 +01:00
Dorel Luca
3e8fbc2f0f Merge mozilla-central to autoland 2018-07-27 13:44:50 +03:00
Dorel Luca
704612cf44 Merge mozilla-inbound to mozilla-central. a=merge 2018-07-27 13:19:26 +03:00
Kris Maglione
a7ff7da720 Bug 1476405: Part 6 - Register AudioIPC threads with the profiler. r=kinetik
Presumably the Rust portion of this will have to land externally first and
then be imported, but I have no idea how or where to submit it.

MozReview-Commit-ID: 2gzQbRKxaZ9

--HG--
extra : source : 6d18a8bd5ee351da1a0cdfaa63f49706a2f95ba3
extra : histedit_source : aa7995595e2699d53f1dc60410b90cfd0d4a5c4e
2018-07-18 23:29:16 -07:00
Coroiu Cristina
6d037d0cba Backed out 9 changesets (bug 1476405) for causing leaks
Backed out changeset 4113d6fb3c1c (bug 1476405)
Backed out changeset cb7f7cc32687 (bug 1476405)
Backed out changeset 6d18a8bd5ee3 (bug 1476405)
Backed out changeset b2a99f50e642 (bug 1476405)
Backed out changeset b5b9d295545d (bug 1476405)
Backed out changeset f092a32a3639 (bug 1476405)
Backed out changeset 6c154f4d9dd9 (bug 1476405)
Backed out changeset d0ebb3aa8e0f (bug 1476405)
Backed out changeset 06b8093ddc6a (bug 1476405)
2018-07-27 08:56:36 +03:00
Boris Zbarsky
a410b62f8d Bug 1478806. Remove nsIBrowserElementNextPaintListener. r=mccr8
There's no particular reason for us to have this interface.  The only consumer
is JS-implemented, and the only caller has JS values to start with; we can just
pass these as jsval.
2018-07-27 00:37:44 -04:00
Boris Zbarsky
1aa33b0003 Bug 1478721. Remove nsIIdleObserver. r=mccr8 2018-07-27 00:37:44 -04:00
Kris Maglione
89c5723e0a Bug 1476405: Part 6 - Register AudioIPC threads with the profiler. r=kinetik
Presumably the Rust portion of this will have to land externally first and
then be imported, but I have no idea how or where to submit it.

MozReview-Commit-ID: 2gzQbRKxaZ9

--HG--
extra : rebase_source : 05924114b7ff1c48ce0c4584469b3b2ef0bc26cb
2018-07-18 23:29:16 -07:00
Csoregi Natalia
3708e71462 Merge inbound to mozilla-central. a=merge 2018-07-27 00:58:11 +03:00
Benjamin Bouvier
962d9c7182 Bug 1416723: Remove SIMD.js support; r=luke, r=nbp
--HG--
extra : rebase_source : d0af6d791d53015f9da0b70ebeda640a4ad5952a
2018-07-24 15:15:01 +02:00
Ian Moody
f221ebee1f Bug 1477458 - Add test for XML Pretty Print with restrictive CSP. r=bz
MozReview-Commit-ID: 3OkdYbkci40

--HG--
extra : rebase_source : 17aac4bb4b73a52b72e9feaa498270db34543e2f
2018-07-21 13:46:31 +01:00
Ian Moody
e50427aec6 Bug 1477458 - Use <link/> instead of <style/> to insert CSS for XML Pretty Printing to avoid site CSP. r=bz
This only works because the Gecko CSP implementation special-cases linked
stylesheets with chrome:// URLs.
See
https://hg.mozilla.org/mozilla-central/file/085cdfb90903d4985f0de1dc7786522d9fb45596/dom/security/nsCSPService.cpp#l92

MozReview-Commit-ID: EvFTgVObCiS

--HG--
extra : rebase_source : e69a8e297f371e08a1de580b0391d95aa23aadc4
2018-07-21 12:36:39 +01:00
Tarek Ziadé
4c1f27f6b2 Bug 1474286 - Throw a JS exception in ChromeUtils::RequestPerformanceMetrics if pref is off - r=baku
This change will avoid unecessary IPDL messages and potentially, content processes crashes.

MozReview-Commit-ID: HHUEXz7ePEQ

--HG--
rename : dom/tests/browser/browser_test_performance_metrics.js => dom/tests/browser/perfmetrics/browser_test_performance_metrics.js
rename : dom/tests/browser/ping_worker.html => dom/tests/browser/perfmetrics/ping_worker.html
rename : dom/tests/browser/ping_worker.js => dom/tests/browser/perfmetrics/ping_worker.js
rename : dom/tests/browser/ping_worker2.html => dom/tests/browser/perfmetrics/ping_worker2.html
extra : rebase_source : b3d90cd22ed68fe7e09f44fe4145b9cde0dfafa1
2018-07-26 10:28:39 +02:00
Paul Adenot
cc16352f8d Bug 1414366 - Take into account start and end time when processing ConstantSource output. r=karlt
MozReview-Commit-ID: IA5sjDTP1t5

--HG--
extra : rebase_source : 056c0bd1e67baf0b42b2d3fe3a67a98b4c3c5fa7
2018-07-19 17:59:19 +02:00
Paul Adenot
9fba355645 Bug 1414366 - Don't assume aStart is aligned on block boundary in AudioParamTimeline::GetValuesAtTime. r=karlt
MozReview-Commit-ID: JQoDwVPQ2s6

--HG--
extra : rebase_source : f9d653ca530a54f310c915d8745de1266cabb71a
2018-07-19 17:58:35 +02:00
Dorel Luca
e549807ade Merge mozilla-central to mozilla-inbound 2018-07-27 13:48:50 +03:00
Nicholas Nethercote
8fe0520c19 Bug 1478895 - Add an explanatory comment to HashName(). r=janv
DONTBUILD because it's a comment-only change.

--HG--
extra : rebase_source : 253f953876f11136122344ffb7da8dabe1ff7005
2018-07-27 18:26:37 +10:00
Brian Grinstead
6a6ca1a08c Bug 1475342 - Move document.getElementsByAttribute[NS] to ParentNode so it'll work for HTML document and elements;r=bz
It's currently only accessible on XULDocument and XULElement, but that makes porting existing
JS to run in an HTML document inconvenient. We could alternatively change calling JS, but
this can be easily moved and exposed in chrome contexts.

MozReview-Commit-ID: JitYET20NSE

--HG--
extra : rebase_source : 75d823c688cba8d84dc19705e83284be383962f2
2018-07-26 13:40:13 -07:00
Dan Glastonbury
38547fef82 Bug 1466529 - P1: Cache MiscContainer to avoid malloc/free churn. r=emilio,smaug
Spinning on setting nsStyledElement::SetInlineStyleDeclaration causes
high malloc/free as MiscContainer is created for nsAttrValue passed to
Element::SetAttrAndNotify before the old one is delete'd.

Keep a cache of one MiscContainer in nsAttrValue to alleviate this
pattern.

MozReview-Commit-ID: 2RGaltPvVOn

--HG--
extra : rebase_source : a517035b1637ec7408b7b39bc7cce85074cabb44
2018-07-24 19:10:00 +10:00
Csoregi Natalia
470d472200 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-07-27 01:01:27 +03:00
Blake Kaplan
e4a0da7d25 Bug 1477343 - Remove PBrowser::IsParentWindowMainWidgetVisible. r=mccr8,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D2347

--HG--
extra : moz-landing-system : lando
2018-07-26 19:26:02 +00:00
Tokio Kajitsuka
a7d855f037 Bug 1468110 - add AccessibleNode relation attributes, r=yzen, qdot
based on ARIA and AOM's ARIA reflection specs (https://wicg.github.io/aom/spec/aria-reflection.html)
2018-07-17 08:37:37 +09:00
Kris Maglione
3728216a20 Bug 1477753: Implement missing cycle collection hooks for SharedMap. r=mccr8
MozReview-Commit-ID: E0ncT3e1Wb2

--HG--
extra : rebase_source : b7697484e3cb8a3b5c77332ddca4019160e7fe80
2018-07-26 14:36:57 -07:00
Brian Birtles
53282fc266 Bug 1478266 - Don't reset pending tasks when setting the target effect to null r=boris
This updates our implementation and tests to match the following spec change:

  2e56cd7d77

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

--HG--
extra : moz-landing-system : lando
2018-07-26 05:20:41 +00:00
Masayuki Nakano
5f1e6f2a03 Bug 1477898 - Make AutoRestoreEditorState not call EditorBase::SetFlags() since the virtual call cost appears in profile r=m_kato
Unfortunately, EditorBase::SetFlags() is virtual call even though
AutoRestoreEditorState always works only with TextEditor (the method is
overridden only by HTMLEditor).  And AutoRestoreEditorState is a hot path
when <input>.value or <textarea>.value is set a lot.

Fortunately, EditorBase::Flags() can be an inline method.  So, we can make
both constructor and destructor of the class check if it'll change flags
actually.

Additionally, this patch fixes nsTextEditorState::PrepareEditor() too.

MozReview-Commit-ID: 7S4hLRRrbfB

--HG--
extra : rebase_source : 3c3e7438cd7e6c9853e5cf876277d7459b86c343
2018-07-23 22:04:54 +09:00
Dipen Patel
7641beb1f8 Bug 1475647 - Remove nsISSLStatusProvider interface. r=baku,Gijs,jchen,jryans,keeler,mcmanus
- Access nsISSLStatus directly as a member of nsITransportSecurityInfo
and nsISecureBrowserUI.  This is part of a larger effort to consolidate
nsISSLStatus and nsITransportSecurityInfo.
- The TabParent implementation of GetSecInfo will always return null.
- Removed unnecessary QueryInterface calls
- Style adherence updates

MozReview-Commit-ID: Dzy6t2zYljL

--HG--
extra : rebase_source : 9c400bed3c9d29a186fc987c9bd0ffceb37bfd94
2018-07-13 11:48:55 -07:00
dvarga
0201242956 Merge mozilla-central to autoland. a=merge
--HG--
extra : rebase_source : 29933c2409d7ab8c51343cf463aa4303e569c530
2018-07-28 01:40:41 +03:00
Zibi Braniecki
befb9a51e6 Bug 1475704 - Check for OOM in nsINode::Localize. r=smaug
Check for OOM in nsINode::Localize.

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

--HG--
extra : moz-landing-system : lando
2018-07-27 22:36:14 +00:00