Commit Graph

77440 Commits

Author SHA1 Message Date
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
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
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
Xidorn Quan
f398a3ed0e Bug 1491212 part 1 - Move PendingFullscreenRequestList to a higher place. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D5988

--HG--
extra : moz-landing-system : lando
2018-09-17 13:39:02 +00:00
Jean-Yves Avenard
8768e0b175 Bug 1491132 - Clamp cache reads to content size. r=gerald
Prior bug 1416085, reads were clamped to the content's duration (if known). It appears that the new code relied on MediaCacheReadBlockFromCache to properly account for the end of content.

However, this was not the case, the MediaCache always reads (and write) one full block at a time regardles of the size requested (a block is 32768 bytes).

Rather than clamping in the Read() method as it used to be, we clamp in ReadBlockFromCache as such safety will benefit other callers that would have otherwise also returned garbage reads.

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

--HG--
extra : moz-landing-system : lando
2018-09-17 17:41:31 +00:00
Bogdan Tara
c8f52c0158 Merge inbound to mozilla-central. a=merge 2018-09-18 00:58:07 +03:00
Robert Helmer
99c30d6feb Bug 1485620 - add gtest for PrioEncoder r=bholley,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D6049

--HG--
extra : moz-landing-system : lando
2018-09-17 17:38:36 +00:00
alwu
500a400737 Bug 1479218 - deny request when inner window is destroyed. r=cpearce
The AutoplayPermissionManager might be destroyed before the AutoplayPermissionRequest, so we can't
get the response from request before AutoplayPermissionManager is destroyed.

Therefore, we should manually reject the promise when the inner window is going to be destroyed.

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

--HG--
extra : moz-landing-system : lando
2018-09-17 17:09:46 +00:00
alwu
1506a7fce4 Bug 1477767 - disconnect request when XPCOM is going to shutdown. r=cpearce
The reason we hit this assertion is that we still connected to Then() and waited for its result when the resolve or reject
runnable which dispatched by ThenValue can't be executed because the target thread had been shutdown.

Therefore, when XPCOM is going to shutdown, we should disconnect the Then() because it might not have a chance to execute
its resolve/reject method.

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

--HG--
extra : moz-landing-system : lando
2018-09-17 16:54:17 +00:00
Eric Rahm
e6b9a7e016 Bug 1491151 - Part 5: Convert content list to use MRU cache. r=smaug
--HG--
extra : rebase_source : eb2e545211a9b2cb91707cfe684565d96d92d5b1
2018-09-12 18:10:08 -07:00
Eric Rahm
9c97bcb183 Bug 1491151 - Part 3: Use MRU cache in NodeInfoManager. r=smaug
--HG--
extra : rebase_source : d22bc0eb6213e20f74a7db695c1549527ce006fa
2018-09-12 16:39:43 -07:00
Ehsan Akhgari
8b7c71b0af Bug 1469714 - Part 11: Add a storage permission check to Document.hasStorageAccess() to ensure that it always returns the correct value even in the presence of dynamic heuristics grantic storage access permission; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D5923
2018-09-17 13:02:04 -04:00
Ehsan Akhgari
445e2b2bce Bug 1469714 - Part 10: Ensure that private browsing contexts cannot get storage access; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D5819
2018-09-17 13:00:38 -04:00
Ehsan Akhgari
711c013b44 Bug 1469714 - Part 9: Ensure that the granted storage access permission is available for non-sandboxed third-party contexts upon navigation; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D5818
2018-09-17 13:00:38 -04:00
Ehsan Akhgari
d0b639de57 Bug 1469714 - Part 2: Implement the Storage Access API to grant first-party storage access to 3rd party trackers; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D5811
2018-09-17 13:00:38 -04:00