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

77145 Коммитов

Автор SHA1 Сообщение Дата
Edgar Chen 0773815846 Bug 1487343 - Correct set the prefix for an autonomous custom element; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D4871

--HG--
extra : moz-landing-system : lando
2018-09-03 22:13:35 +00:00
Olli Pettay a6fa8c7c32 Bug 1488279 - Reorder the member variables of Animation, r=hiro
--HG--
extra : rebase_source : efe0da082de85c58edb68e030837bceae7faf7d5
2018-09-04 00:58:15 +03:00
Daniel Varga f46d581d52 Merge mozilla-inbound to mozilla-central. a=merge 2018-09-04 00:54:07 +03:00
Ciure Andrei 7f72d950ae Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-03 18:44:13 +03:00
Emilio Cobos Álvarez 541e942cb1 Bug 1487649 - Don't do a name check when cloning a shadow root for print preview. r=smaug
Otherwise the ShadowRoot for <use> or other internal ones may not get cloned
properly.

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

--HG--
extra : moz-landing-system : lando
2018-09-03 14:10:58 +00:00
Brian Hackett dc1aeebdd0 Bug 1486591 - Run devtools server code in recording process when middleman can't rewind, r=mccr8.
--HG--
extra : rebase_source : 10e0626fe1de9001d6c2e99819809dcd5c1738f4
2018-09-02 12:38:24 -10:00
Gijs Kruitbosch ef7146a4be Bug 1486824 - change BrowserTestUtils to just call OpenBrowserWindow so it does the same thing as opening a window normally, r=mconley,nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D4466

--HG--
extra : rebase_source : e51b66bb18d0e600814b48d5cd3ec9d5dea3028a
extra : source : 96b5a88ac0041a1bd382a731749e1fca9aa911ed
2018-09-03 14:43:38 +01:00
Nicholas Nethercote f369a978ca Bug 1487296 - Merge nsISHistoryInternal into nsISHistory. r=nika
With legacy add-ons gone, there is no benefit to keeping them separate.
2018-08-30 11:37:40 +10:00
Narcis Beleuzu 28a443cd37 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-09-02 01:00:31 +03:00
Boris Zbarsky 295c5598a9 Bug 1487237. Add some content lists stored in DOM slots to memory reporting. r=smaug
This reports the memory as part of element-nodes, but I think that's OK for
now.  If we want to, we can try to add more nsWindowSizes buckets for this stuff.

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

--HG--
extra : moz-landing-system : lando
2018-09-01 14:55:47 +00:00
Brian Hackett ecc7252452 Bug 1486565 - Don't initialize cubeb when recording/replaying, r=kinetik.
--HG--
extra : rebase_source : 7b6302026c1f64fa5e92f26bd6162d55888fcfe9
2018-08-31 05:24:38 -10:00
Brian Hackett 44f3ddf9d7 Bug 1486562 - Record reference count changes for SourceListener, r=jib.
--HG--
extra : rebase_source : efd7935de09e85e15d6bd77fd65a49c42be7ff6f
2018-08-31 05:24:09 -10:00
Cosmin Sabou c8483bebfa Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : gfx/doc/AsyncPanZoom-HighLevel.png => gfx/docs/AsyncPanZoomArchitecture.png
rename : gfx/doc/silkArchitecture.png => gfx/docs/SilkArchitecture.png
rename : gfx/doc/README.webrender => gfx/webrender_bindings/README.webrender
2018-09-01 12:27:26 +03:00
Ciure Andrei db22ef8d8a Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-01 02:43:10 +03:00
Sebastian Hengst 4f39161869 Backed out 18 changesets (bug 1487647, bug 1487271, bug 1487001, bug 1487105, bug 1486845, bug 1485738, bug 1487595, bug 1347060, bug 1480900, bug 1487889) for accidential push of inbound to central. a=backout
Backed out changeset 331706d8558f (bug 1487595)
Backed out changeset d78b833293db (bug 1487595)
Backed out changeset f292ef31ef0b (bug 1487595)
Backed out changeset ef8c5c529210 (bug 1486845)
Backed out changeset 9cbc8592d649 (bug 1487889)
Backed out changeset 05a0118455e4 (bug 1487105)
Backed out changeset 78b8ff889992 (bug 1487105)
Backed out changeset 5a55e5b74107 (bug 1480900)
Backed out changeset ea2402bdef40 (bug 1347060)
Backed out changeset 3f831b709e37 (bug 1485738)
Backed out changeset d1c29bfb5ea9 (bug 1480900)
Backed out changeset 8e60483ec824 (bug 1480900)
Backed out changeset 328589a86dd1 (bug 1487647)
Backed out changeset d974ef1647f3 (bug 1480900)
Backed out changeset 0509636cc5d5 (bug 1487001)
Backed out changeset c57165730494 (bug 1487271)
Backed out changeset a55d81761fc4 (bug 1480900)
Backed out changeset eaa2d0e9b62d (bug 1480900)

--HG--
rename : gfx/docs/AsyncPanZoomArchitecture.png => gfx/doc/AsyncPanZoom-HighLevel.png
rename : gfx/webrender_bindings/README.webrender => gfx/doc/README.webrender
rename : gfx/docs/SilkArchitecture.png => gfx/doc/silkArchitecture.png
2018-09-01 02:01:23 +03:00
Sebastian Hengst 973b725f51 Bug 1485400 - Remove ')' from merge conflict. a=bustage-fix 2018-09-01 01:56:12 +03:00
Ciure Andrei d1376bd7ec Merge inbound to mozilla-central. a=merge 2018-09-01 01:40:48 +03:00
Tiberius Oros f45e3bae18 Backed out changeset 8e012f9ed34a (bug 1487850) for build bustages on a CLOSED TREE 2018-09-01 01:36:35 +03:00
Fabrice Desré 746936fcad Bug 1487850 - Link.cpp doesn't build if MOZ_PLACES is not defined on non-ANDROID platforms r=Ehsan
The current code only compiles with ANDROID defined when MOZ_PLACES is undefined. This patch sets
the history service to nullptr in the remaining case. The value was already null-checked.

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

--HG--
extra : moz-landing-system : lando
2018-08-31 22:04:26 +00:00
Boris Zbarsky 5a90b528ce Bug 1486932 part 2. Remove nsIDOMStorage. r=mccr8 2018-08-31 13:56:55 -04:00
Boris Zbarsky 1fcc87c931 Bug 1486932 part 1. Stop using nsIDOMStorage in xpidl APIs. r=mccr8 2018-08-31 13:56:54 -04:00
Jan-Ivar Bruaroey 4dc294148a Bug 1487431 - Fix typo in mediasource test_FrameSelection_mp4.html to make last two tests work. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D4798

--HG--
extra : moz-landing-system : lando
2018-08-31 20:38:59 +00:00
Masayuki Nakano 9ab2669f86 Bug 1487659 - Make Selection treat SelectionChangeListener as a concrete class rather than nsISelectionListener r=smaug
SelectionChangeListener is an nsISelectionListener class.  This is added only
to Selection for "normal" and added by nsFrameSelection::Init() after
AccessibleCaretEventHub.  So, we can make Selection directly treat
SelectionChangeListener.

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

--HG--
extra : moz-landing-system : lando
2018-08-31 21:22:57 +00:00
Masayuki Nakano 9c349ade9b Bug 1487591 - Make Selection treat AccessibleCaretEventHub as concrete class rather than nsISelectionListener r=smaug
AccessibleCaretEventHub is an nsISelectionListener of Selection whose type is
"normal".  This is added only when nsFrameSelection::Init() is called and
accessible caret is enabled.  Additionally, nsFrameSelection::Init() is
always called immediately after creating nsFrameSelection.

Therefore, when AccessibleCaretEventHub is installed to Selection, this is
always second selection listener and won't be installed multiple times.  So,
Selection can store pointer of AccessibleCaretEventHub directly only when
it's enabled and the Selection needs to notify it of selection change.

This patch makes Selection stores AccessibleCaretEventHub with RefPtr, then,
makes Selection::NotifySelectionListeners() call its OnSelectionChange()
immediately after AutoCopyListener.

Unfortunately, this patch includes making of MOZ_CAN_RUN_SCRIPT_BOUNDARY and
MOZ_CAN_RUN_SCRIPT a lot since some methods of AccessibleCaretEventHub are
marked as MOZ_CAN_RUN_SCRIPT and including AccessibleCaretEventHub.h into
Selection.h causes compile the compile errors.

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

--HG--
extra : moz-landing-system : lando
2018-08-31 21:19:44 +00:00
Andreea Pavel 21676b6ed7 Backed out changeset 65b36a89443f (bug 1487649) for failing mochitest chrome at layout/base/tests/chrome/test_printpreview.xu 2018-08-31 23:52:40 +03:00
Robert Longson 5050624201 Bug 1486115 - use mozilla::IsAsciiDigit and mozilla::AsciiAlphanumericToNumber r=dholbert 2018-08-31 16:55:04 +01:00
Coroiu Cristina 71432717b8 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-08-31 19:18:33 +03:00
Andrea Marchesini 40a8c122d3 Bug 1487331 - STATE_BLOCKED_TRACKING_COOKIES must tell why cookies are blocked, r=ehsan
Introduce these new blocking state values:

const unsigned long STATE_COOKIES_BLOCKED_BY_PERMISSION = 0x10000000;
const unsigned long STATE_COOKIES_BLOCKED_TRACKER       = 0x20000000;
const unsigned long STATE_COOKIES_BLOCKED_ALL           = 0x40000000;
const unsigned long STATE_COOKIES_BLOCKED_FOREIGN       = 0x80000000;
2018-08-31 11:02:33 +02:00
Liang-Heng Chen cc816d6cf4 Bug 1485400 - Part 0: separate blocked tracker counter; r=smaug
separate tracker counter API

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

--HG--
extra : rebase_source : 2a786ca9d008e01e465d1d34951d07493c5c9d2b
extra : source : 9370432b26adcd6399e586190a47d4c8a8cdc56d
2018-08-30 20:21:44 +00:00
Coroiu Cristina 437a1f4445 Backed out 2 changesets (bug 1485400) for build bustage at build/src/netwerk/base/nsChannelClassifier.cpp on a CLOSED TREE
Backed out changeset c476aa79a8ca (bug 1485400)
Backed out changeset 9370432b26ad (bug 1485400)
2018-08-31 18:57:58 +03:00
Liang-Heng Chen 2d642ae078 Bug 1485400 - Part 0: separate blocked tracker counter; r=smaug
separate tracker counter API

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

--HG--
extra : moz-landing-system : lando
2018-08-30 20:21:44 +00:00
Margareta Eliza Balazs 4a29900034 Merge autoland to mozilla-central. a=merge 2018-08-31 12:22:29 +03:00
Margareta Eliza Balazs 5ddcd7b745 Backed out changeset 96b5a88ac004 (bug 1486824) for causing frequent failures e.g: browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about.js a=backout 2018-08-31 12:17:27 +03:00
Masayuki Nakano 85dcb074f4 Bug 1487402 - Selection should stop notifying AutoCopyListener of selection changes after unlinked r=smaug
This is a regression of bug 1486370.

Unlink of Selection removes all nsISelectionListener first, then, it removes
all its ranges since it does not want to notify the changes anymore.

After bug 1486370, Selection starts to store only bool flag whether it should
notify AutoCopyListener of selection changes. So, unless it sets the bool flag
to false in Unlink, it'll notify selection change caused by Unlink.

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

--HG--
extra : moz-landing-system : lando
2018-08-30 23:47:25 +00:00
Dave Townsend e1f6637191 Bug 1487246: Remove uses of comma sequences in linted code. r=Standard8
Two cases were hiding permanently failing tests. I've commented those out and
filed bug 1487431.

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

--HG--
extra : rebase_source : 232fa6173de8844a9c47d59926ec8e39d0640ecd
2018-08-29 16:12:55 -07:00
Masatoshi Kimura da55f7e44b Bug 1487657 - Re-enable clang-cl warnings in dom/base/. r=dmajor
--HG--
extra : rebase_source : 26ac5e8e6f7ea96f0cc07b259c29f31e9015fae4
2018-08-31 02:16:31 +09:00
Jon Coppeard 2b37d7089c Bug 1481844 - Clear expando for objects with an ExpandoAndGeneration before wrapping r=bz a=abillings 2018-09-03 10:46:39 +01:00
Olli Pettay 43064176ca Bug 1487271 - Add telemetry about ForgetSkippable frequency, r=mccr8,chutten
--HG--
extra : rebase_source : 620536c30d012220b07da7561e4274898ac2e1aa
2018-08-31 20:47:24 +03:00
Olli Pettay 81b7f360a7 Bug 1487271 - Add telemetry about ForgetSkippable frequency, r=mccr8,chutten
--HG--
extra : source : c5716573049496e1514dbb8156eaf3ad7065854a
2018-08-31 20:47:24 +03:00
Paul Adenot 5b3025f021 Bug 1308436 - Remove test_audioParamSetCurveAtTimeTwice.html because it's now wrong per spec. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D4108

--HG--
extra : rebase_source : 96cf54b6b5fb9a03475fe68fa5b4ef8c2e92b34f
extra : histedit_source : 7e0f47ac83c9652616959a9637ff96f32744df4d
2018-08-23 17:55:15 +02:00
Emilio Cobos Álvarez d4aeb28fd2 Bug 1487649 - Don't do a name check when cloning a shadow root for print preview. r=smaug
Otherwise the ShadowRoot for <use> or other internal ones may not get cloned
properly.

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

--HG--
extra : moz-landing-system : lando
2018-08-31 12:08:04 +00:00
Ehsan Akhgari b26b734898 Bug 1488112 - Remove the XPCOM component registration for nsBaseCommandController; r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D4835
2018-09-04 15:03:22 -04:00
Ehsan Akhgari d37a149353 Bug 1488111 - Remove the XPCOM component registration for nsCommandManager; r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D4834
2018-09-04 15:03:22 -04:00
Ehsan Akhgari 8ee774da84 Bug 1487396 - Part 1: Enable the secure browser UI object to keep track of the newly added content blocking states for each document; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D4809
2018-09-04 14:20:22 -04:00
Gurzau Raul 031bc0c262 Backed out changeset f7d509458e63 (bug 1487295) for failing at PaymentMethodChangeEvent/methodDetails-attribute.https.html on a CLOSED TREE 2018-09-04 21:18:53 +03:00
Marcos Cáceres 15c023f206 Bug 1487295 - Add defaults to PaymentMethodChangeEventInit's members. r=baku 2018-09-04 01:21:00 +03:00
Olli Pettay 7dd4c36d7a Bug 1487273 - add a limit how often forget skippable only cycles run, r=mccr8
--HG--
extra : rebase_source : e0c051d0af828c0febd99e6866f2770eccdce89a
2018-09-04 18:39:24 +03:00
Paul Adenot 7953a4769c Bug 1488218 - Remove one more unneeded keyword in dom/media/webaudio. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D4866

--HG--
extra : rebase_source : 8790e201432d6f2030ef0f4ff4eee24054ce09ec
2018-09-04 17:05:41 +02:00
Paul Adenot 35f174a2b4 Bug 1308436 - Remove test_audioParamSetCurveAtTimeTwice.html because it's now wrong per spec. r=karlt
--HG--
extra : rebase_source : 9327fbfa9ec655fcf222145aa07803db9b583a17
2018-09-04 14:57:25 +02:00
Paul Adenot bc962c7382 Bug 1308436 - Remove test_audioParamSetCurveAtTimeZeroDuration.html. r=karlt
--HG--
extra : rebase_source : f55b68c787c43564a24640c0847572ca6ea6ae78
2018-09-04 14:49:45 +02:00
Paul Adenot 95dcc68529 Bug 1308436 - Adjust the AudioParam processing algorithm to match the spec. r=karlt
--HG--
extra : rebase_source : 13f085ac8e7d4e313a4fbe1996a3b1cb5f81ea38
2018-09-04 14:46:11 +02:00
Paul Adenot c9104891cb Bug 1308436 - Rework the AudioParam event insertion algorithm to be spec compliant, and fix the exception types and values. r=karlt
--HG--
extra : rebase_source : 48227c953316a45c81be3ed39366133096de43a9
2018-09-04 14:44:03 +02:00
Paul Adenot d3e189242f Bug 1308436 - Remove TestAudioEventTimeline.cpp. r=karlt
--HG--
extra : rebase_source : 3a4bd55abdb58bb1a0064cd27826fadfbfa869d5
2018-09-04 14:55:38 +02:00
Paul Adenot 36e6573cce Bug 1308436 - Don't convert the curve duration from double to float in the EventInsertionHelper to avoid losing precision. r=karlt
--HG--
extra : rebase_source : f0ccc616f6ad0098302538f3d62f147acacdcb74
2018-09-04 14:43:01 +02:00
Paul Adenot 952bbf4613 Backout all patches of bug 1308436, wrong patches have landed.
--HG--
extra : rebase_source : 0ad64a5fbbeeedc1015218c6a27a03cfaf972aa7
2018-09-04 14:42:34 +02:00
Fabrice Desré 945900da3d Bug 1487850 - Link.cpp doesn't build if MOZ_PLACES is not defined on non-ANDROID platforms r=Ehsan 2018-09-04 10:07:38 -04:00
Olli Pettay e520af2423 Bug 1488359 - Inline GetPrevious/NextElementSibling, r=emilio 2018-09-04 13:35:16 +03:00
Marcos Cáceres 8128af9850 Bug 1485881 - Drop support for PaymentAddress.languageCode r=smaug
--HG--
extra : rebase_source : 6400765c8b669126c7a71f5094dd160b2b1a89ce
2018-08-27 16:30:00 +03:00
Andrea Marchesini 24005dab5f Bug 1485492 - Disable fastblocking when the user has interacted with a document, r=ehsan 2018-08-31 13:21:17 +02:00
Paul Adenot 7a16eb0d00 Bug 1308436 - Remove TestAudioEventTimeline.cpp. r=karlt
It's too difficult to maintain, obsolete and also it duplicates the
functionnality of wpt.

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

--HG--
extra : rebase_source : 2ccc77b285c41835e1675713c2cc126d93cfd458
extra : histedit_source : cefb7f2953974f33517e5d9ce4d8512ff4504ebe
2018-08-14 18:45:14 +02:00
Bogdan Tara ba6cae21b7 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-09-05 02:45:18 +03:00
Olli Pettay 57b81277a0 bug 1483963, cache the index of a child node when ordering animations for event dispatch, r=hiro,ehsan
--HG--
extra : rebase_source : f98586625b199e7b2d0eb7db8dc9c1c5235289fe
2018-09-05 00:31:57 +03:00
Olli Pettay 017918778d Bug 1488278 - Add back a cache for IndexOf(childnode), r=ehsan
--HG--
extra : rebase_source : 31afe2e465a1544a8e34fe40c2307ecdfae6fde7
2018-09-05 00:30:05 +03:00
Luke Wagner c0aa80a617 Bug 1330661 - Baldr: move Assumptions out of Module (r=lth)
--HG--
extra : rebase_source : 7f19de5d639149a89ad07d99c12b6d1121c538e1
2018-09-04 14:23:10 -05:00
Jonathan Watt ee0d09389e Bug 1448507 - Clone the additional style sheets when static cloning a document. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D4995

--HG--
extra : rebase_source : 5ddb20a1104bab007aa204bdf3e235ceed434c02
extra : amend_source : b61c176690d25f802f7f6859134903f5375c1f00
2018-08-07 17:03:36 +01:00
Brian Grinstead a5cb861f39 Bug 1487476 - Expose lightweight themes as chrome-only features on nsIDocument instead of XULDocument;r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D4719

--HG--
extra : moz-landing-system : lando
2018-08-30 23:17:58 +00:00
Xidorn Quan 63a8649721 Bug 1486297 - Add a pref for Pointer Lock API so that user can disable it. r=smaug!
Differential Revision: https://phabricator.services.mozilla.com/D4637

--HG--
extra : moz-landing-system : lando
2018-08-30 22:55:31 +00:00
Gijs Kruitbosch 9d70cb3843 Bug 1486824 - change BrowserTestUtils to just call OpenBrowserWindow so it does the same thing as opening a window normally, r=mconley,nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D4466

--HG--
extra : moz-landing-system : lando
2018-08-30 15:07:36 +00:00
Narcis Beleuzu 1e60ae6690 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-30 20:08:44 +03:00
Narcis Beleuzu 05d91d3e02 Merge inbound to mozilla-central. a=merge 2018-08-30 19:58:52 +03:00
Henri Sivonen 7753be203b Bug 1484990 - Use BulkWrite instead of write past length via BeginWriting() in XHR. r=baku
The old code assumes that it's OK to use nsAString::BeginWriting() to write
past the string's logical length if the string has enough capacity. This is
bogus, because the string doesn't know of data written past its logical
length.

The BulkWrite API has been created precisely for this purpose and allows
orderly capacity-aware low-level writes to the string.

MozReview-Commit-ID: BYQHl8Z9Fbd

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

--HG--
extra : moz-landing-system : lando
2018-08-30 14:24:58 +00:00
Narcis Beleuzu 1bb581bc8f Merge mozilla-central to inbound.
--HG--
extra : rebase_source : 063f3df7ad6d834fa3e72cd6825c31792716586b
2018-08-30 16:09:37 +03:00
Andrew Osmond 9322f6a4fb Bug 1486318 - Actually apply transform from canvas pattern when drawing text to a canvas. r=lsalzman 2018-08-30 09:09:06 -04:00
Narcis Beleuzu a4ec006bb0 Backed out changeset 4e195f7b2d6b (bug 1486824) for clipboard failures on OSX browser_editcontrols_update. a=backout 2018-08-30 15:59:59 +03:00
Narcis Beleuzu 78f15dbb01 Merge mozilla-central to autoland. a=merge 2018-08-30 16:08:00 +03:00
arthur.iakab 5c9e5bd8cc Merge mozilla-central to autoland 2018-08-30 07:37:51 +03:00
arthur.iakab 044707fc78 Merge inbound to mozilla-central a=merge 2018-08-30 07:37:00 +03:00
Imanol Fernandez 424bea6436 Bug 1487079 - Fix hasOrientation and hasPosition are switched on WebVR GamepadPose r=qdot,kip
Differential Revision: https://phabricator.services.mozilla.com/D4534

--HG--
extra : moz-landing-system : lando
2018-08-29 22:09:48 +00:00
Emilio Cobos Álvarez 20da0ddffb Bug 1487135 - Make the allocation of AuthorStyles for ShadowRoot lazy. r=xidorn,firefox-style-system-reviewers
So that we don't waste a bunch of memory with stuff like <svg:use>. I
plan to shrink AuthorStyles further, but this should help regardless, and isn't
very complex.

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

--HG--
extra : moz-landing-system : lando
2018-08-30 12:00:00 +00:00
Masayuki Nakano be86e183fd Bug 1486370 - Change nsAutoCopyListener to a static class r=smaug
nsAutoCopyListener is a singleton class but refcountable and a selection
listener.  nsFrameSelection adds it to only normal Selection when it's on
macOS or it's enabled by the pref.  Additionally, it's always first selection
listener since it's added immediately after Selection instance is created.

So, we can make it a static class, and normal Selection instance should have
a bool to decide whether it should notify nsAutoCopyListener of its changes.
Then, we can save the cost of grabbing it with local RefPtr and the virtual
call.

Additionally, this patch renames nsAutoCopyListener to mozilla::AutoCopyListener
and optimizes constructor of nsFrameSelection (using bool var cache to retrieve
the pref, avoid retrieving the pref on macOS).

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

--HG--
rename : layout/generic/nsAutoCopyListener.h => layout/generic/AutoCopyListener.h
extra : moz-landing-system : lando
2018-08-30 07:36:23 +00:00
Emilio Cobos Álvarez 872e125c91 Bug 1487198 - Measure memory usage of the identifier map in ShadowRoot as well. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D4615

--HG--
extra : moz-landing-system : lando
2018-08-29 22:49:04 +00:00
Emilio Cobos Álvarez 2537e52ca0 Bug 1486728 - Report memory usage of Shadow DOM style data. r=njn
This is on top of bug 1486623.

While at it removed the 'stale computed styles' report, since it was unused
since I removed the undisplayed maps.

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

--HG--
extra : moz-landing-system : lando
2018-08-29 22:24:29 +00:00
Emilio Cobos Álvarez 75bea4ec60 Bug 1486623 - Skip less nodes when reporting memory, and report ShadowRoot's StyleSheets. r=bzbarsky
This moves all the node-specific reporting to nsIDocument.

OrphanReporter delegates all the reporting to that and then returns the sum of
all sizes, which is not ideal but was pre-existing.

Also, I moved the main mStyleSheets size reporting to DocumentOrShadowRoot for
it to be shared between document and ShadowRoot.

I'll add memory reporting for the computed stylesheet maps and such in the
ShadowRoot in a followup.

I went through all the XBL bindings, though it seems I could just use
GetBindingWithContent(), since according to:

  https://searchfox.org/mozilla-central/rev/55da592d85c2baf8d8818010c41d9738c97013d2/dom/xbl/nsXBLBinding.cpp#615

We don't allow multiple bindings to contribute anon content. Anyway it was the
same amount of code...

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

--HG--
extra : moz-landing-system : lando
2018-08-29 22:19:42 +00:00
Gijs Kruitbosch a8e2b8e702 Bug 1486824 - change BrowserTestUtils to just call OpenBrowserWindow so it does the same thing as opening a window normally, r=mconley,nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D4466

--HG--
extra : moz-landing-system : lando
2018-08-29 17:58:25 +00:00
Imanol Fernandez 01d16686d3 Bug 1487115 - Fix navigator.Gamepads returns empty VR array after a page load when using gfxVRExternal r=qdot,kip
Differential Revision: https://phabricator.services.mozilla.com/D4570

--HG--
extra : moz-landing-system : lando
2018-08-29 19:10:55 +00:00
Gabriele Svelto 6bddc0a55e Bug 1486772 - Refactor the screen-orientation types and headers r=smaug
This patch removes the 'ScreenOrientationInternal' type from
dom/base/ScreenOrientation.h and moves it into the
HalScreenConfiguration.h header, renaming it simply to 'ScreenOrientation'
in the process. This has several knock-off effects:

- It allows files that needed ScreenOrientationInternal to include a much
  smaller header than before

- It greatly reduces the number of headers pulled in when including Hal.h

- It clarifies the role of the type. The 'Internal' part in the name had
  nothing to do with it being part of the implementation. The type was public
  and called that way only to avoid clashing with the 'ScreenOrientation'
  class. Since we moved it into a different namespace it can be renamed
  safely.

- It allows a file that was manually re-declaring 'ScreenConfigurationInternal'
  type to use the original one

- Finally this fixes a few files which were missing headers they actually
  required but that would still build because unified compilation put them into
  units that already had those headers thanks to ScreenConfiguration.h

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

--HG--
extra : moz-landing-system : lando
2018-08-29 20:54:56 +00:00
Daniel Holbert ed94d8a8f4 Bug 1487168: Give ShouldShowFocusRingIfFocusedByMouse() an #ifndef guard to match its caller & to avoid -Wunused-function build warning. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D4583

--HG--
extra : moz-landing-system : lando
2018-08-29 18:01:12 +00:00
Cosmin Sabou 27822f2d77 Merge mozilla-central to autoland. a=merge 2018-08-29 21:04:28 +03:00
Cosmin Sabou 55bf096f3d Merge mozilla-inbound to mozilla-central. a=merge 2018-08-29 20:34:13 +03:00
shindli 3ec63f1901 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-30 14:22:59 +03:00
Paolo Amadini 5aaf848c8b Bug 1457218 - Part 3 - Remove the "menu-button" binding. r=surkov,bgrins
Differential Revision: https://phabricator.services.mozilla.com/D4531

--HG--
extra : rebase_source : 502aa0ff24d0e3d46ef60c7a14498e25c66d1c81
2018-08-29 14:04:25 +01:00
Alexander Surkov b27e40d606 Bug 1486674 - get rid of nsIDOMXULCheckboxElement, r=smaug 2018-08-30 08:17:11 +08:00
Henri Sivonen c33fde86d8 Bug 1485722 - Improve thread assertions in EventSourceImpl. r=smaug.
MozReview-Commit-ID: Aq7vVSronYg

Differential Revision: https://phabricator.services.mozilla.com/D4245
2018-08-30 12:25:26 +03:00
arthur.iakab c9d7c4fa05 Merge mozilla-central to mozilla-inbound 2018-08-30 01:16:38 +03:00
Rob Wu 88ec13510d Bug 1465388 - Resume about:blank parser upon unblocking the document r=hsivonen
When `document.blockParsing()` is called, the nsIParser is suspended
until the document is unblocked. For about:blank documents, this is a
nsParser.

When a document is unblocked, nsParser::ContinueInterruptedParsingAsync
is invoked, which delegates its implementation to nsIContentSink, which
is a nsHTMLContentSink for about:blank documents. Due to a missing
implementation of nsHTMLContentSink::ContinueInterruptedParsingAsync,
the parser was never resumed, causing bug 1465388 and bug 1407501.

This patch fixes the problem, by implementing the required method (and
using a load blocker to ensure that the (about:blank) document does not
finish before the parser finishes).

This patch is tested through extension tests: Currently document_start
stylesheets always activate the parser blocker, and document_start
scripts trigger the parser blocker when the script has not been
preloaded yet (e.g. at the first run).
Before this patch, the test failed due to the assertion failure as
reported in the linked bugs. After this patch, the tests pass.

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

--HG--
extra : moz-landing-system : lando
2018-08-29 11:52:49 +00:00
Margareta Eliza Balazs 2fe43133db Merge inbound to mozilla-central. a=merge 2018-08-29 12:43:37 +03:00
Margareta Eliza Balazs 7bc4b7b684 Merge autoland to mozilla-central. a=merge 2018-08-29 12:42:34 +03:00
Andreea Pavel 65e947cc68 Backed out changeset 126368a5c3ec (bug 1465388) for causing topcrash bug 1487004 a=backout 2018-08-29 11:39:19 +03:00
Ciure Andrei d716a04e20 Merge inbound to mozilla-central. a=merge 2018-08-29 00:58:21 +03:00
alwu 490f94cf41 Bug 1453862 - Log to web console when autoplay blocked. r=flod,baku
Log to the web console when we block autoplay, in order to help web developers debug their sites.

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

--HG--
extra : moz-landing-system : lando
2018-08-29 16:51:24 +00:00