Commit Graph

77313 Commits

Author SHA1 Message Date
Xidorn Quan
dfa276073a Bug 1491192 - Get raw pointer from RefPtr in ternary expression to fix MSVC build. a=tier2-permafail-fix 2018-09-14 15:41:31 +10:00
Noemi Erli
c2716211ca Merge inbound to mozilla-central. a=merge 2018-09-14 06:31:31 +03:00
Xidorn Quan
abdaa90858 Bug 1375319 part 3 - Try dispatching fullscreen events to element first rather than document. r=smaug
Some steps in file_fullscreen-api.html are adjusted in order to test
the behavior that the event is correctly dispatched to the document
when element is disconnected.

Depends on D5415

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

--HG--
extra : moz-landing-system : lando
2018-09-14 00:06:16 +00:00
Xidorn Quan
6239a69055 Bug 1375319 part 2 - Use a global const for element to fullscreen in file_fullscreen-api test. r=smaug
Depends on D5414

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

--HG--
extra : moz-landing-system : lando
2018-09-14 00:05:53 +00:00
Xidorn Quan
35bf576e96 Bug 1375319 part 1 - Make DispatchTrustedEvent able to dispatch composed event and have fullscreen events composed. r=smaug
Depends on D5394

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

--HG--
extra : moz-landing-system : lando
2018-09-14 00:05:39 +00:00
Timothy Guan-tin Chien
052ca9c390 Bug 1487143 - Properly dispatch MozAutoplayMediaBlocked event to content, r=alwu
The MozAutoplayMediaBlocked event should have its target set to the video
element, not the document.

Also, MozNoControlsBlockedVideo event has to initialized from the CustomEvent
constructor of the right window for the XBL binding to access it. I don't know
when it stopped working.

Test is added to ensure the entire UI won't break.

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

--HG--
extra : moz-landing-system : lando
2018-09-13 21:21:11 +00:00
Timothy Guan-tin Chien
9455e67e2c Bug 1491066 - Allow TextTrackManager to pass cue without videocontrols r=alwu
With UA Widget, the videocontrols container is created lazily.
It won't be a problem for WebVTT.processCues() in vtt.jsm, so
TextTrackManager::UpdateCueDisplay() should not early return there, but pass
nullptr to it.

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

--HG--
extra : moz-landing-system : lando
2018-09-13 22:38:43 +00:00
Noemi Erli
abe2f49a95 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-14 01:17:10 +03:00
Noemi Erli
a548d10a8c Merge inbound to mozilla-central. a=merge 2018-09-14 01:01:37 +03:00
Christoph Kerschbaumer
c52fe4b959 Bug 1459544: Only assert that about page has CSP if nothing stopped the load of the doc. r=smaug 2018-09-13 14:47:24 +02:00
Brian Grinstead
a4630f7000 Bug 1487568 - Ignore whitespace only text nodes for XBL compatibility hack for unmatched children dropping content;r=smaug
For browser.xhtml, we have extra whitespace text nodes that appear inside of
mBoundElement, which was causing XBL content to be incorrectly dropped.

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

--HG--
extra : moz-landing-system : lando
2018-09-13 18:53:41 +00:00
Cosmin Sabou
679b5e2db1 Backed out 5 changesets (bug 1485040) for causing build bustages on test_mozwebidlcodegen. CLOSED TREE
Backed out changeset b417c2d937e8 (bug 1485040)
Backed out changeset c567c4c7438f (bug 1485040)
Backed out changeset 806c36cb2c4c (bug 1485040)
Backed out changeset 0fbb490ffc7f (bug 1485040)
Backed out changeset a9622e7761eb (bug 1485040)
2018-09-13 23:04:55 +03:00
Andrew McCreight
93b3b0138c Bug 1485040, part 5 - Automatically fix mode lines in WebIDL files r=qdot
This patch was generated by my modeline.py script.

MozReview-Commit-ID: EbVjPLwiUAT

Depends on D4159

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

--HG--
extra : moz-landing-system : lando
2018-09-13 19:30:51 +00:00
Andrew McCreight
a67f84df8d Bug 1485040, part 4 - Add mode lines, but not the MPL, to some test files r=qdot
MozReview-Commit-ID: 8X4XDj3JOpe

Depends on D4158

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

--HG--
extra : moz-landing-system : lando
2018-09-13 19:30:49 +00:00
Andrew McCreight
32a20c7f30 Bug 1485040, part 3 - Add missing modeline/licenses to WebIDL files r=qdot
MozReview-Commit-ID: JVgOCbO2nn6

Depends on D4157

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

--HG--
extra : moz-landing-system : lando
2018-09-13 19:30:47 +00:00
Andrew McCreight
0a60d2df38 Bug 1485040, part 2 - Fix indentation in some WebIDL files r=qdot
MozReview-Commit-ID: DYMdVo1tO6a

Depends on D4156

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

--HG--
extra : moz-landing-system : lando
2018-09-13 19:30:45 +00:00
Andrew McCreight
a1594361bd Bug 1485040, part 1 - Switch line endings from DOS to Unix in WebIDL files r=qdot
MozReview-Commit-ID: 92KAIEErO51

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

--HG--
extra : moz-landing-system : lando
2018-09-13 19:30:42 +00:00
Andrew McCreight
70fe7daafb Bug 1489690, part 4 - Fix some misc. issues with the XUL sort service r=bzbarsky
Depends on D5593

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

--HG--
extra : moz-landing-system : lando
2018-09-13 18:37:50 +00:00
Andrew McCreight
c7b30c67ec Bug 1489690, part 3 - De-COM the XUL sort service r=bzbarsky
There's only one method that is used, and we never need to create any
instances of the object, so turn it into a single method.

Depends on D5592

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

--HG--
extra : moz-landing-system : lando
2018-09-13 18:37:48 +00:00
Andrew McCreight
4db3f10eaa Bug 1489690, part 2 - Move everything not in the nsI interface into the cpp file r=bzbarsky
There's no state on the object, so all of the methods can be turned
into static methods in the CPP files. I leave the one public method,
Sort, alone for simplicity. The internal data structure definitions
also don't need to be publicly exposed.

This patch is a bit messy because I had to rearrange methods so they
were defined before they were used. This makes the resulting code a
little nicer (as compared to forward declaring methods), but makes the
VCS history worse.

Depends on D5591

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

--HG--
extra : moz-landing-system : lando
2018-09-13 18:37:46 +00:00
Andrew McCreight
4a93f15458 Bug 1489690, part 1 - Remove the registration for the sort service r=bzbarsky
This is only used in a single place, so having a service for it is overkill.

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

--HG--
extra : moz-landing-system : lando
2018-09-13 18:37:44 +00:00
alwu
96bbc1cbf8 Bug 1490074 - add Telemetry to know how long the AudioContext become audible since it was created. r=padenot,francois
I want to know how many sites will have that scenario which is to create AudioContext in advance and produces sound later (ex. when user click the page or certain button).

I will add a Telemetry probe to meausure how long the AudioContext would become audible since it was created.

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

--HG--
extra : moz-landing-system : lando
2018-09-13 16:58:05 +00:00
Bryce Van Dyk
bedc01c77a Bug 1487811 - P4: Implement CDM10 -> CDM9 compat layer. r=cpearce
Implement a compatibility layer so that we can expose a CDM10 interface while
still using CDM9. Notably, this layer checks to make sure the new encryption
scheme introduced with CDM10 is not used with CDM9.

Depends on D5630

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

--HG--
extra : moz-landing-system : lando
2018-09-13 15:11:17 +00:00
Bryce Van Dyk
ebabdad8ee Bug 1487811 - P3: Add CDM10 functions to IPDL. r=cpearce
The CDM10 interface makes 2 notable changes here:
1) Instead of the binary choice between unencrypted and encrypted (which assumed
cenc encryption), the interface now allows for specification of encryption used.
Practically this means we will eventually need to support choosing between not
encrypted, cenc, or cbcs.
2) The interface adds a bool for hardware secure codecs for use when
initializing the CDM.

This changeset adjusts the IPDL for the CDM to accommodate these changes. The
changes are also supported in surrounding code, but are not fully plumbed to
either the web, or the CDM.

Fully supporting new encryption schemes and hardware secure codecs will require
further work which is beyond the scope of this bug.

Some formatting drive bys so new formatting and old formatting both match
expected formatting by clang-format.

Depends on D5629

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

--HG--
extra : moz-landing-system : lando
2018-09-13 14:49:45 +00:00
Bryce Van Dyk
0a25798c4e Bug 1487811 - P2 Remove CDM8 interface specific IPDL. r=cpearce
Remove members only used by CDM8 from the IPDL and remove code that depended on
the removed IPDL. Rename various instances of 'error' to 'exception' as from
CDM9 'exception' is used exclusively to refer to promise failure states.

Depends on D5628

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

--HG--
extra : moz-landing-system : lando
2018-09-13 14:49:27 +00:00
Bryce Van Dyk
413ba3feef Bug 1487811 - P1: Update Widevine headers and C++ code to prepare for CDM interface 10 support. r=cpearce
Update content_decryption_module.h and other Widevine headers. This removes the
CDM8 interface and adds in the CDM10 and CDM11 interfaces. As such this patch
removes references to CDM8 from the code and adds some of the foundations for
supporting CDM10. Most of the CDM10 code will be implemented in another bug, but
there are a number of cases where it was straight forward to shuffle CDM8+9 code
-> CDM9+10, rather than deleting it and replacing it later.

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

--HG--
extra : moz-landing-system : lando
2018-09-13 14:49:10 +00:00
Margareta Eliza Balazs
850a93cf13 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-13 13:02:36 +03:00
Margareta Eliza Balazs
dd965445ec Merge inbound to mozilla-central. a=merge 2018-09-13 12:37:56 +03:00
Xidorn Quan
f80c6e2629 Bug 1490539 followup - Get document of fullscreen request in a separate step for fixing failures on non-clang builds. a=tier2-permafail-fix
--HG--
extra : amend_source : 16de0136b8d53e2034a9099fe8fdf4304a283350
2018-09-13 14:35:42 +10:00
Alexander Surkov
0868d78991 Bug 1446831 - move label, description css rules out of minimal-xul.css, patch=bgrins, surkov, r=smaug 2018-09-13 11:06:32 +08:00
Daniel Varga
296d94715f Merge mozilla-inbound to mozilla-central. a=merge 2018-09-13 05:30:59 +03:00
Daniel Varga
36ff93dc81 Backed out 4 changesets (bug 1290420) for devtools failures on rowser_styleeditor_media_sidebar_links.js on a CLOSED TREE
Backed out changeset 210fdc42d29f (bug 1290420)
Backed out changeset 1d9dad3046ee (bug 1290420)
Backed out changeset a6eb531e1216 (bug 1290420)
Backed out changeset 755a32f27943 (bug 1290420)
2018-09-13 03:09:25 +03:00
Thomas Daede
65fe410cae Bug 1490877: Make codecs=av01* mimetypes work with MSE. r=jya
While the MP4 parser correctly handles the av01* codec string, it
is then converted to a video/av01* mimetype to search for a PDM.
The libaom PDM only accepts video/av1, so always produce a video/av1
MIME type from a codecs=av01 string.

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

--HG--
extra : moz-landing-system : lando
2018-09-13 07:55:17 +00:00
Gabriele Svelto
b605bebd6a Bug 1488401 - Remove the remnants of the DiskSpaceWatcher r=asuth,janv,smaug
Differential Revision: https://phabricator.services.mozilla.com/D4933

--HG--
extra : moz-landing-system : lando
2018-09-13 06:40:51 +00:00
Xidorn Quan
2629806922 Bug 1490539 part 3 - Put CallerType into FullscreenRequest. r=smaug
Depends on D5640

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

--HG--
extra : moz-landing-system : lando
2018-09-12 19:28:53 +00:00
Xidorn Quan
b75f5a16d1 Bug 1490539 part 2 - Remove unnecessary && from UniquePtr<FullscreenRequest>. r=smaug
We only do unconditional move for FullscreenRequest, so the &&s are
pointless, based on guidance of UniquePtr.

Depends on D5639

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

--HG--
extra : moz-landing-system : lando
2018-09-12 19:26:01 +00:00
Xidorn Quan
30703bafcb Bug 1490539 part 1 - Change FullScreen to Fullscreen in various names. r=smaug
Some methods on Window are not changed because they are part of public
interface. Method names from widget are also unchanged.

Many "full-screen" in comments are also updated to "fullscreen" instead.

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

--HG--
extra : moz-landing-system : lando
2018-09-12 15:51:30 +00:00
Tom Tung
b98b2f6c82 Bug 1486445 - P1 - Propagate the sw internally redirected URL to fetching request; r=asuth
Bug 1222008 didn't propagate a sw redirected URL to outer response properly. To
fix that this patch mainly make a redirecting request be overwritten while it's
redirected by a service worker. This patch also add a private setter function
for InternalRequest and a public checking function to avoid that function from
being used widely.

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

--HG--
extra : moz-landing-system : lando
2018-09-12 12:44:30 +00:00
Zibi Braniecki
84ee6e9599 Bug 1490457 - Support dynamically inserted localization links when a document didn`t have any links during parse. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D5612

--HG--
extra : moz-landing-system : lando
2018-09-11 23:19:26 +00:00
Botond Ballo ext:(%2C%20Brad%20Werth%20%3Cbwerth%40mozilla.com%3E)
53c3707fbc Bug 1290420 Part 2: Respect the metaViewportOverride flag on the docshell. r=dholbert
Depends on D3373

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

--HG--
extra : moz-landing-system : lando
2018-09-11 15:17:24 +00:00
Andreas Pehrson
15606e2807 Bug 1404992 - Initialize primitive VP8TrackEncoder members in declarations. r=dminor
--HG--
extra : rebase_source : c121870ba14181687c5492d42fb748dcb666065f
extra : source : 5cdee8077cab849ffe6e9dbf6f6498d6d20c6817
2018-09-11 14:51:18 +02:00
Andreas Pehrson
16fdd518b3 Bug 1404992 - Use common code to convert images to I420. r=dminor
--HG--
extra : rebase_source : 7cb2c551870e06f4929da3366a523eaff9b86b2c
extra : source : f37bd9a9f4af84a6068d0b030427dab47bed7eb8
2018-09-11 14:51:16 +02:00
Marcos Cáceres
eb155e743a Bug 1474499 - Add support for onmerchantvalidation and MerchantValidationEvent. r=edenchuang,baku 2018-09-12 22:56:00 +03:00
Jason Orendorff
a644a2e695 Bug 1488417 - Even better error message on property access on undefined/null variable.
Differential Revision: https://phabricator.services.mozilla.com/D5711

--HG--
extra : moz-landing-system : lando
2018-09-12 22:02:17 +00:00
Emilio Cobos Álvarez
511d794764 Bug 1490791 - Make ShadowRoot stylesheet list work only when the shadow root is connected. r=smaug
This avoids the issue of triggering stylesheet loads for disconnected stuff and
such, and is more consistent with Chrome and WebKit.

This is per the recent CSSWG resolution at
https://github.com/w3c/csswg-drafts/issues/3096.

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

--HG--
extra : moz-landing-system : lando
2018-09-12 19:54:48 +00:00
Daniel Varga
55257c5b6a Backed out changeset 9139afaa8d77 (bug 1487568) for crashtest failure at tests/reftest/tests/layout/generic/crashtests/382745-1.xhtml on a CLOSED TREE
--HG--
extra : amend_source : e49c7ec6b1b05baab713fc4a0665b47628849d8a
2018-09-12 22:25:00 +03:00
Brian Grinstead
d6983041d7 Bug 1487568 - Ignore whitespace only text nodes for XBL compatibility hack for unmatched children dropping content;r=smaug
For browser.xhtml, we have extra whitespace text nodes that appear inside of
mBoundElement, which was causing XBL content to be incorrectly dropped.

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

--HG--
extra : moz-landing-system : lando
2018-09-12 14:55:06 +00:00
Margareta Eliza Balazs
5a72930a01 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-09-13 13:03:31 +03:00
Tom Tung
7211623860 Bug 1379411 - Apply CheckedInt to infoLength for preventing it from overflowing in the future; r=janv
CheckedInt propagates the mIsValid in each add operation so that it avoids
having a bunch of code for the overflow check in each add operation.
Furthermore, it avoids mismatching parameters between the computing result and
the additional overflow check. This patch uses it based on advantages described
above.

--HG--
extra : rebase_source : d36e39d5ccdfa206a47b8c75d91553dd260e79dd
2018-09-11 12:39:14 +02:00
Nicholas Nethercote
28c99ee121 Bug 1489381 - Remove nsISettingsService.idl. r=mccr8
This is an old B2G leftover. The directory isn't even traversed by the build
system.

--HG--
extra : rebase_source : 7b659ba1a03e9d830af1a6b959987dfb585ce704
2018-09-07 14:58:54 +10:00