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

77457 Коммитов

Автор SHA1 Сообщение Дата
Nathan Froyd e7b3b3140d Bug 1415980 - make hash keys movable and not copyable; r=erahm
Everything that goes in a PLDHashtable (and its derivatives, like
nsTHashtable) needs to inherit from PLDHashEntryHdr. But through a lack
of enforcement, copy constructors for these derived classes didn't
explicitly invoke the copy constructor for PLDHashEntryHdr (and the
compiler didn't invoke the copy constructor for us). Instead,
PLDHashTable explicitly copied around the bits that the copy constructor
would have.

The current setup has two problems:

1) Derived classes should be using move construction, not copy
   construction, since anything that's shuffling hash table keys/entries
   around will be using move construction.

2) Derived classes should take responsibility for transferring bits of
   superclass state around, and not rely on something else to handle that.

The second point is not a huge problem for PLDHashTable (PLDHashTable
only has to copy PLDHashEntryHdr's bits in a single place), but future
hash table implementations that might move entries around more
aggressively would have to insert compensation code all over the
place. Additionally, if moving entries is implemented via memcpy (which
is quite common), PLDHashTable copying around bits *again* is
inefficient.

Let's fix all these problems in one go, by:

1) Explicitly declaring the set of constructors that PLDHashEntryHdr
   implements (and does not implement). In particular, the copy
   constructor is deleted, so any derived classes that attempt to make
   themselves copyable will be detected at compile time: the compiler
   will complain that the superclass type is not copyable.

This change on its own will result in many compiler errors, so...

2) Change any derived classes to implement move constructors instead of
   copy constructors. Note that some of these move constructors are,
   strictly speaking, unnecessary, since the relevant classes are moved
   via memcpy in nsTHashtable and its derivatives.
2018-09-20 11:20:36 -04:00
Margareta Eliza Balazs 9a7413349e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-09-20 16:31:54 +03:00
Thomas Daede 3e8224c602 Bug 1368843: Enable libaom on Android. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D6336

--HG--
extra : moz-landing-system : lando
2018-09-20 08:25:35 +00:00
Bogdan Tara 0a366c8ced Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-20 07:15:43 +03:00
Bogdan Tara 86023d88c4 Merge inbound to mozilla-central. a=merge 2018-09-20 07:13:05 +03:00
Thomas Wisniewski b4751b61e6 Bug 1454325 - have XHRs adjust content type of uploads per spec using the MIME Sniffing standard; r=hsivonen
have XHRs adjust content type of uploads per spec using the MIME Sniffing standard

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

--HG--
extra : moz-landing-system : lando
2018-09-20 01:04:51 +00:00
Chris Peterson a9e2a34ec1 Bug 979649 - Part 1: Drop webrtc test check for Windows XP. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D6120

--HG--
extra : moz-landing-system : lando
2018-09-19 12:43:22 +00:00
Bogdan Tara 9f17cab93a Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-20 01:03:35 +03:00
Bogdan Tara e7c653959c Merge inbound to mozilla-central. a=merge 2018-09-20 00:58:18 +03:00
Chris Peterson 174ab56914 Bug 1472894 - Part 2: Regenerate webgl-conf/generated-mochitest.ini. r=jgilbert
Bug 1472894 modified mochitest-errata.ini but didn't regenerate generated-mochitest.ini to actually un-skip the test_2_conformance2__rendering__blitframebuffer-size-overflow.html test.

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

--HG--
extra : moz-landing-system : lando
2018-09-19 19:11:49 +00:00
Matthew Noorenberghe 5cc8014d08 Bug 1491996 - Add a pref to disable the user activation/gesture requirement for PaymentRequest.show(). r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6092

--HG--
extra : moz-landing-system : lando
2018-09-19 15:32:22 +00:00
Doug Thayer f0ed0dee36 Bug 1417699 - Remove PrimitiveType enum r=mstange
Ran into a couple of test failures because I was leaving
mAttributes empty for empty things like MergeAttributes, and
only setting mType. Since mType is now redundant though, and
since it's the only use of PrimitiveType, I figured I'd just
remove it entirely.

Depends on D4900

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

--HG--
extra : moz-landing-system : lando
2018-09-19 17:18:44 +00:00
Doug Thayer e79792a58a Bug 1417699 - Replace hash map with tagged union r=mstange
This replaces the hash map of attributes with a tagged union. In
this case, all filter attributes will be stored in line, with the
exception of some more complex attributes which have an internal
nsTArray of floats. This should help avoid all the hashing and
extra heap allocations.

Depends on D4899

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

--HG--
extra : moz-landing-system : lando
2018-09-19 17:18:16 +00:00
Doug Thayer 39b28dbb28 Bug 1417699 - Avoid copies of filter attributes when possible r=mstange
This is a more conservative optimization for bug 1417699. There's no
reason we need to be copying these everywhere, so let's just go ahead
and implement moves.

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

--HG--
extra : moz-landing-system : lando
2018-09-19 17:17:43 +00:00
Andreas Pehrson 35e775d5ca Bug 1253499 - Add live setParameters checks to simulcast_OddResolution mochitest. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D4128

--HG--
extra : moz-landing-system : lando
2018-09-19 15:00:15 +00:00
Andreas Pehrson 022de58578 Bug 1253499 - Add method for changing size to VideoFrameEmitter. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D5860

--HG--
extra : moz-landing-system : lando
2018-09-19 15:00:08 +00:00
Andreas Pehrson ed6cf715a9 Bug 1253499 - Add mochitest for live-updating scaleResolutionDownBy. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D4127

--HG--
extra : moz-landing-system : lando
2018-09-19 15:00:02 +00:00
Andreas Pehrson f389699776 Bug 1253499 - Update simulcast mochitests to cover new scaling algorithm. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D4126

--HG--
extra : moz-landing-system : lando
2018-09-19 14:59:56 +00:00
Andreas Pehrson 9ef4251a71 Bug 1253499 - Make VideoFrameEmitter use both width and height. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D4125

--HG--
extra : moz-landing-system : lando
2018-09-19 14:59:50 +00:00
Narcis Beleuzu 04ab391b65 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-19 19:44:24 +03:00
Narcis Beleuzu 49ae56e475 Merge inbound to mozilla-central. a=merge 2018-09-19 19:42:36 +03:00
Byron Campen [:bwc] 79ea3c1025 Bug 1468451: Add a closed check to addTransceiver. r+jib r=jib
MozReview-Commit-ID: DMmorKFz5EL

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

--HG--
extra : moz-landing-system : lando
2018-09-19 21:03:30 +00:00
Neil Deakin 00b778c4e7 Bug 1478372, allow QueryInterface to be used for custom element implemented interfaces, r=bz,bgrins 2018-09-19 06:46:41 -04:00
Eric Rahm 0c061732bd Bug 1492204 - Part 1: Stop using deprecated string writing iterators. r=froydnj
This switches over the few remaining usages of the deprecated
BeginWriting/EndWriting(iterator&) functions to the more standard
BeginWriting/EndWriting() functions.

--HG--
extra : rebase_source : 3c54621d4921eb45157ec4edce0b693bdd7f02d5
2018-09-18 09:44:57 -07:00
Timothy Guan-tin Chien a19c690eeb Bug 1484048 - Part IV, Don't reset mDocumentLoadGroup if the same LoadGroup is passed r=bzbarsky
nsIDocument::ResetToURI() resets and set the mDocumentLoadGroup property
even if it is given the same instance. This has caused BlockOnload() to
break on media documents, which calls into there while removing UA Widget.

This patch checks the weak ref before resets it.

Depends on D3841

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

--HG--
extra : moz-landing-system : lando
2018-09-17 20:49:17 +00:00
Dan Minor 5e340f6470 Bug 1491128 - Add comment block to dom/webidl/RTCDTMFToneChangeEvent.webidl; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D5857

--HG--
extra : moz-landing-system : lando
2018-09-17 13:58:02 +00:00
Marcos Cáceres f616da00ba Bug 1472026 - Implement PaymentResponse.prototype.onpayerdetailchange. r=edenchuang,baku
Implement PaymentResponse.prototype.onpayerdetailchange, per spec.

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

--HG--
extra : moz-landing-system : lando
2018-09-19 11:23:33 +00:00
Narcis Beleuzu 756c9d5a26 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-19 13:03:12 +03:00
Jean-Yves Avenard 5957f22482 Bug 1492365 - Prevent arithmetic overflow. r=gerald
Should mStreamLength be > 2^32, we could have overflowed leading to false positive test.

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

--HG--
extra : moz-landing-system : lando
2018-09-19 08:34:15 +00:00
shindli 70bf79757d Backed out changeset 376c2bf5bcbf (bug 1472026) for PaymentRequest failures in dom/payments/test/test_block_none10s.html 2018-09-19 12:31:51 +03:00
Alexander Surkov 5050b3952b Bug 1492046 - get rid of nsIDOMXULLabeledControlElement, r=smaug 2018-09-19 15:11:02 +08:00
Christoph Kerschbaumer 18859e6634 Bug 1490977: Assert content privileged about page has CSP. r=smaug 2018-09-19 06:50:23 +02:00
Marcos Cáceres 9dd1b3aeae Bug 1472026 - Implement PaymentResponse.prototype.onpayerdetailchange. r=edenchuang,baku
Implement PaymentResponse.prototype.onpayerdetailchange, per spec.

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

--HG--
extra : moz-landing-system : lando
2018-09-19 08:41:53 +00:00
arthur.iakab 1ee75a928a Merge inbound to mozilla-central a=merge 2018-09-19 05:18:50 +03:00
Ted Mielczarek de99592416 Bug 1399870 - make DEFFILE a Path instead of a string; r=gps
All but one of the current uses of DEFFILE use `SRCDIR + '/file.def'` to
get a srcdir-relative path anyway, and the other one wants an
objdir-relative path, so using Path makes everything clearer.

This makes it more straightforward to translate the paths for the WSL
build.
2018-09-18 15:50:19 -04:00
Jed Davis 734f735b83 Backed out changeset 933bd1aed20f (bug 1488993) 2018-09-18 12:51:26 -06:00
Robert Longson dad3e866c1 Bug 1396642 - support smaller viewBox coordinates at the expense of larger ones r=dholbert 2018-09-18 19:43:53 +01:00
Noemi Erli efdd6a208a Backed out changeset 7aa742bff8fb (bug 1473736) for xpcshell failures and bc failures in browser_urlbarSearchSingleWordNotification.js 2018-09-18 22:07:58 +03:00
Tom Ritter c9db0052d9 Bug 1491846 GetFrameLoader inside child objects vtbls could not be resolved by linker. It looks like a clang bug, but requires closer look. I worked around it by having explicit forwards. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D6051

--HG--
extra : moz-landing-system : lando
2018-09-18 18:18:32 +00:00
Dragana Damjanovic f000a5b4b0 Bug 1473736 - Implement necko part of ESNI r=mcmanus
Implement necko part of ESNI

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

--HG--
extra : moz-landing-system : lando
2018-09-17 23:08:14 +00:00
Doug Thayer 5806cd56cd Bug 1492202 - Fix typo in forcepaint telemetry r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D6172

--HG--
extra : moz-landing-system : lando
2018-09-18 17:06:30 +00:00
alwu 6b88cb930f Bug 1489375 - part1 : do not recreate AudioChannelAgent. r=padenot
When calling resume() on a running AudioContext, there is no need to discard current AudioChannelAgent and then create a new one.

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

--HG--
extra : moz-landing-system : lando
2018-09-18 14:57:30 +00:00
Timothy Guan-tin Chien 9464df5529 Bug 1490793 - Localization DTDs should not be subject to CSP r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D5713

--HG--
extra : moz-landing-system : lando
2018-09-18 08:17:41 +00:00
Margareta Eliza Balazs fdb780335d Merge inbound to mozilla-central. a=merge 2018-09-18 17:33:09 +03:00
Jonathan Kew 0d4dbd1e37 Bug 1490997 - Use nsAtom instead of nsString for font family name in the FontFamilyName struct, and switch its methods from 16-bit to 8-bit strings. r=lsalzman 2018-09-18 09:34:21 +01:00
Gabriele Svelto a1f6255102 Bug 1463048 - Remove asynchronous minidump generation r=ted
This reverts the changes in bug 1360308, bug 1390143 and bug 1469603. Minidump
generation will now only happen on the main process' main thread which might
lead to hangs but is known to be fairly robust. Asynchronous generation proved
too brittle and enormously increased the complexity of this already
hard-to-read code.

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

--HG--
extra : moz-landing-system : lando
2018-09-17 20:51:45 +00:00
Jean-Luc Bonnafoux 31f0693d4a Bug 1491639 - rename function IS_TABLE_CELL r=dbaron
rename function IS_TABLE_CELL

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

--HG--
extra : moz-landing-system : lando
2018-09-18 01:29:19 +00:00
Boris Zbarsky 8e04fc97a0 Bug 1491313. Add some MOZ_CRASH instrumentation to help figure out why ClearDocumentDependentSlots hits its MOZ_CRASH case. r=mccr8
We need the isDOMClass() checks in the Compartment code to pass tests, because
some of the jsapi tests explicitly test those failure codepaths.  But not with
DOM objects, which is what we're interested in here.

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

--HG--
extra : moz-landing-system : lando
2018-09-18 02:31:03 +00:00
Xidorn Quan 2d731ee18d Bug 1491212 part 3 - Have Document.exitFullscreen return a Promise. r=smaug
Depends on D5989

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

--HG--
extra : moz-landing-system : lando
2018-09-17 23:25:10 +00:00
Xidorn Quan 93d16f9841 Bug 1491212 part 2 - Have a new FullscreenChange superclass split from FullscreenRequest. r=smaug
The next patch would create another subclass of FullscreenChange for
handling fullscreen exit.

Depends on D5988

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

--HG--
rename : dom/base/FullscreenRequest.h => dom/base/FullscreenChange.h
extra : moz-landing-system : lando
2018-09-17 23:20:28 +00:00