Commit Graph

78241 Commits

Author SHA1 Message Date
Daniel Varga
9a610a8759 Merge mozilla-central to mozilla-inbound. a=merge
--HG--
rename : mobile/android/extensions/webcompat/webextension/background.js => mobile/android/extensions/webcompat/injections.js
rename : mobile/android/extensions/webcompat/webextension/injections/js/bug0000000-dummy-js-injection.js => mobile/android/extensions/webcompat/injections/js/bug0000000-dummy-js-injection.js
rename : mobile/android/extensions/webcompat/webextension/injections/js/bug1452707-window.controllers-shim-ib.absa.co.za.js => mobile/android/extensions/webcompat/injections/js/bug1452707-window.controllers-shim-ib.absa.co.za.js
rename : mobile/android/extensions/webcompat/webextension/injections/js/bug1457335-histography.io-ua-change.js => mobile/android/extensions/webcompat/injections/js/bug1457335-histography.io-ua-change.js
rename : mobile/android/extensions/webcompat/webextension/injections/js/bug1472075-bankofamerica.com-ua-change.js => mobile/android/extensions/webcompat/injections/js/bug1472075-bankofamerica.com-ua-change.js
rename : mobile/android/extensions/webcompat/webextension/injections/js/bug1472081-election.gov.np-window.sidebar-shim.js => mobile/android/extensions/webcompat/injections/js/bug1472081-election.gov.np-window.sidebar-shim.js
rename : mobile/android/extensions/webcompat/webextension/injections/js/bug1482066-portalminasnet.com-window.sidebar-shim.js => mobile/android/extensions/webcompat/injections/js/bug1482066-portalminasnet.com-window.sidebar-shim.js
2018-10-20 13:32:54 +03:00
Daniel Varga
4fc7bfa931 Merge mozilla-inbound to mozilla-central. a=merge 2018-10-20 13:10:23 +03:00
Andrea Marchesini
2f03a57005 Bug 1500448 - Avoid the parsing of the FeaturePolicy 'allow' attribute when not needed, r=ckerschb 2018-10-20 06:08:46 +02:00
Hiroyuki Ikezoe
9f4a9ec916 Bug 1494422 - Test cases for viewport calculation. r=botond
Depends on D8690

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

--HG--
extra : moz-landing-system : lando
2018-10-19 22:11:24 +00:00
Hiroyuki Ikezoe
43d051c26b Bug 1494422 - Introduce extend-to-zoom and resolve width and height using it. r=botond
The relevant parts of the spec are:
 https://drafts.csswg.org/css-device-adapt/#resolve-extend-to-zoom
 https://drafts.csswg.org/css-device-adapt/#resolve-initial-width-height
 https://drafts.csswg.org/css-device-adapt/#resolve-width
 https://drafts.csswg.org/css-device-adapt/#resolve-height

This patch also introduces the parsing steps for width and height values in
viewport meta tag.
https://drafts.csswg.org/css-device-adapt/#width-and-height-properties

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

--HG--
extra : moz-landing-system : lando
2018-10-19 04:19:21 +00:00
Daniel Holbert
a597621867 Bug 1500608: Don't skip the flex-item early-freeze for devtools after all. r=bradwerth
This patch basically reverts the functional part of changeset 52bd865d757c.
I'd optimistically hoped we could skip this early-freeze in order to compute &
report a bit more "potential flexing" information via devtools.  Bbut it turns
out that breaks assertions & produces bogus information for flex items whose
base size vs. min/max-clamped "hypothetical" sizes are very
different. (Specifically: it produces nonsense for flex items whose base sizes,
if unclamped, would reverse the directionality of flexing.)

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

--HG--
extra : moz-landing-system : lando
2018-10-19 22:05:46 +00:00
Gurzau Raul
8e9ffaaf06 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-20 01:09:52 +03:00
Karl Tomlinson
40f6bff7f7 Bug 1500303 apply input gain correctly for stereo-to-stereo StereoPanner r=padenot
The gains passed to GainStereoToStereo() are applied on only one of the input channels.

Depends on D9213

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

--HG--
extra : moz-landing-system : lando
2018-10-19 09:36:08 +00:00
Karl Tomlinson
59c4ccaacc Bug 1500303 correct expected result for stereoPanningWithGain tests r=padenot
Depends on D9212

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

--HG--
extra : moz-landing-system : lando
2018-10-19 21:04:37 +00:00
Karl Tomlinson
ad45a8d475 Bug 1500238 correct mono-to-stereo panning at centre position r=padenot
and re-use input buffer instead of copying.

Depends on D9211

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

--HG--
extra : moz-landing-system : lando
2018-10-19 09:25:27 +00:00
Karl Tomlinson
6e306581c2 Bug 1500238 output null from StereoPannerNode when input is null r=padenot
This is necessary for efficient processing of silence, and is consistent with
behavior of other nodes.

A null block current has a single channel of silence, which isn't aligned with
the current spec, but is consistent with the direction of
https://github.com/WebAudio/web-audio-api/issues/1471#issuecomment-405668690

Depends on D9210

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

--HG--
extra : moz-landing-system : lando
2018-10-19 09:25:25 +00:00
Karl Tomlinson
49ec510d94 Bug 1500238 correct expected result for monoPanningNoop tests r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D9210

--HG--
extra : moz-landing-system : lando
2018-10-19 09:25:18 +00:00
Andrea Marchesini
2ed3dd4f7d Bug 1500370 - MemoryBlobImpl and TestNonBlockingAsyncInputStream must expose nsITellableInterface, r=mayhemer 2018-10-19 15:31:36 +02:00
Narcis Beleuzu
90d51e6cd9 Merge inbound to mozilla-central. a=merge 2018-10-19 16:11:27 +03:00
Narcis Beleuzu
5d00f78a13 Backed out changeset 8dd09fad1f35 (bug 1492648) for bc failures on browser_auto_close_window.js
--HG--
rename : docshell/base/nsDocShellLoadState.cpp => docshell/base/nsDocShellLoadInfo.cpp
rename : docshell/base/nsDocShellLoadState.h => docshell/base/nsDocShellLoadInfo.h
2018-10-19 10:11:33 +03:00
Brian Birtles
d250a94f0d Bug 1472917 - Fix a couple of typos in transform interpolation tests; r=hiro
Depends on D9182

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

--HG--
extra : moz-landing-system : lando
2018-10-19 04:40:54 +00:00
Cosmin Sabou
c88b3a1fa7 Merge mozilla-central to mozilla-inbound. a=merge 2018-10-19 07:22:06 +03:00
Cosmin Sabou
9cb3e24150 Merge mozilla-inbound to mozilla-central. a=merge 2018-10-19 07:17:09 +03:00
Kyle Machulis
0bb3246aa5 Bug 1492648 - Move from nsDocShellLoadInfo to nsDocShellLoadState r=bzbarsky,nika
Creates the nsDocShellLoadState object, which is basically
nsDocShellLoadInfo plus a few extra fields to make it usable as a
single argument to nsDocShell::LoadURI (and eventually
nsDocShell::InternalLoad).

Subframe history handling is a huge logic block in
nsDocShell::LoadURI, which is only used on history loads. This patch
also extracts the logic out into its own function to make the body of
LoadURI clearer.

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

--HG--
rename : docshell/base/nsDocShellLoadInfo.cpp => docshell/base/nsDocShellLoadState.cpp
rename : docshell/base/nsDocShellLoadInfo.h => docshell/base/nsDocShellLoadState.h
extra : moz-landing-system : lando
2018-10-18 22:14:54 +00:00
Cosmin Sabou
a833a61a1b Merge mozilla-central to mozilla-inbound. a=merge 2018-10-19 00:59:32 +03:00
Daniel Holbert
fd3bb50eac Bug 1499875 part 2: Give mochitest test_flex_items.html some tests for a flex container that has multiple passes of flex-grow + clamping. r=bradwerth
Depends on D9152

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

--HG--
extra : moz-landing-system : lando
2018-10-19 06:04:26 +00:00
Daniel Holbert
6e01c82c66 Bug 1499875 part 1: Adjust existing tests/content in test_flex_items.html to prepare for additional flex containers to be added. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D9152

--HG--
extra : moz-landing-system : lando
2018-10-18 23:47:47 +00:00
Diego Pino Garcia
0de27c4f76 Bug 1341390. Remove unused tests dom/tests/html and dom/tests/js. r=bzbarsky
All the properties tested by those tests is covered by web-platform-tests.
2018-10-18 19:46:34 -04:00
Boris Zbarsky
348aa22e01 Bug 1398354 part 2. Update document.all item() and legacycaller to new spec semantics. r=mccr8 2018-10-17 23:00:49 -04:00
Jim Blandy
7937c2dd77 Bug 1499792: Remove unneeded 'ThrottledEventQueue' forward declarations. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D9008

--HG--
extra : moz-landing-system : lando
2018-10-18 12:20:14 +00:00
Brian Hackett
0315be6e61 Bug 1488808 Part 4 - Rename MaybeCreateInitialCheckpoint, r=mccr8.
--HG--
extra : rebase_source : 97b9f63531db75b81508040fbc7a25cf6f5389b5
2018-10-17 10:00:29 -06:00
Daniel Holbert
8d0f407881 Bug 1498281: Make flexbox devtools API report actual flex base size (not its min/max-clamped version). r=bradwerth
This patch also updates the expectations in the mochitest test_flex_items.html.
Before this commit, the test (incorrectly) expected the mainBaseSize API to
return some items' *final sizes*, because that's what our implementation did
return, up until now. As of this patch, that API will now return the item's
actual flex base size, which means the text expectations need to change.

I'm also adding a new flex item to the test, to exercise a formerly-untested
scenario.  And to accommodate this new item, I'm also doubling the width of
the flex container to be sure there's plenty of space.

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

--HG--
extra : moz-landing-system : lando
2018-10-18 23:45:51 +00:00
Cosmin Sabou
11fa187a60 Merge mozilla-central to autoland. a=merge 2018-10-19 07:20:02 +03:00
Brendan Dahl
934e37ef92 Bug 1486888 - Support XUL broadcasters in non-XUL documents. r=smaug
The majority of the XUL broadcaster logic is moved out of XULDocument and
into a separate class (XULBroadcastManager). The hookup points for when
listeners need to be created and listeners need to be notified is now
handled by the XULElement itself and nsDocument. To avoid any overhead,
the XULBroadcastManager is only ever created when a document uses a
listener.

The new approach does have the disadvantage that broadcasting can now only
work with XULElements, but going forward we'd like to discontinue this
feature and rely on MutationObservers to implement similar things.

One test had to be modified to use XUL elements instead of HTML elements
because of the reason noted above.

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

--HG--
extra : moz-landing-system : lando
2018-10-19 01:22:46 +00:00
Daniel Holbert
f82f9bd967 Bug 1499542 part 3: Give test_flex_items.html an item that's trivially clamped to small max-size. r=bradwerth
Depends on D9018

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

--HG--
extra : moz-landing-system : lando
2018-10-17 19:15:15 +00:00
Ciure Andrei
e6f9a6308b Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-18 19:39:05 +03:00
Neil Deakin
51f69a2c2a Bug 1494000, use Element::GetFrame in XULMenuElement and XULPopupElement, r=bz 2018-10-18 08:40:10 -04:00
Andrea Marchesini
4ebf5b4364 Bug 1496581 - Split nsISeekableStream in 2 classes: nsISeekableStream and nsITellableStream, f=mayhemer, r=froydnj
In the current code there are 3 main issues:

1. nsFileStream is not really thread-safe. There is nothing to protect the
internal members and we see crashes.

2. nsPipeInputStream doesn't implement ::Seek() method and that caused issues
in devtools when a nsHttpChannel sends POST data using a pipe. In order to fix
this, bug 1494176 added a check in nsHttpChannel: if the stream doesn't
implement ::Seek(), let's clone it. This was an hack around nsPipeInputStream,
and it's bad.

3. When nsHttpChannel sends POST data using a file stream, nsFileStream does
I/O on main-thread because of the issue 2. Plus, ::Seek() is called on the
main-thread causing issue 1.

Note that nsPipeInputStream implements only ::Tell(), of the nsISeekableStream
methods. It doesn't implement ::Seek() and it doesn't implement ::SetEOF().

With this patch I want to fix point 2 and point 3 (and consequentially issue 1
- but we need a separate fix for it - follow up). The patch does:

1. it splits nsISeekableStream in 2 interfaces: nsITellableStream and
nsISeekableStream.
2. nsPipeInputStream implements only nsITellableStream.  Doing this, we don't
need the ::Seek() check for point 2 in nsHttpChannel: a simple QI check is
enough.
3. Because we don't call ::Seek() in nsHttpChannel, nsFileStream doesn't do I/O
on the main-thread, and we don't crash doing so.
2018-10-18 13:35:35 +02:00
Nathan Froyd
f3eed4c3a6 Bug 1499850 - make MediaTimer slightly more efficient; r=pehrsons
Instead of creating a timer and then setting the timer's target, we can
determine the timer's target and pass it in directly when the timer is
created.  This reordering of steps is slightly more efficient, since
SetTarget() is both a virtual call and requires locking, both of which
can be skipped if we know the target at timer creation time.
2018-10-18 07:00:11 -04:00
Margareta Eliza Balazs
201d77abf9 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-10-18 13:27:07 +03:00
Margareta Eliza Balazs
c56977420d Merge inbound to mozilla-central. a=merge 2018-10-18 13:20:43 +03:00
Andrea Marchesini
d4e4884960 Bug 1499788 - midi feature policy should have 'self' as default allowlist, r=qdot 2018-10-18 11:08:37 +02:00
Andrea Marchesini
39b3c89ada Bug 1499768 - camera, microphone and speaker feature policies should have 'self' as default allowlist, r=jib 2018-10-18 11:08:37 +02:00
Thomas Wisniewski
3c40ce1478 Bug 1499136 - Disable dom.xhr.standard_content_type_normalization for now due to webcompat issues; r=hsivonen
Disable dom.xhr.standard_content_type_normalization for now due to webcompat issues

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

--HG--
extra : moz-landing-system : lando
2018-10-18 02:10:25 +00:00
Brad Werth
b7374a380b Bug 1497589 Part 5: Add tests of Flex mainAxisDirection and crossAxisDirection. r=dholbert
Depends on D8617

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

--HG--
extra : moz-landing-system : lando
2018-10-17 20:23:27 +00:00
Brad Werth
e2f5a79f00 Bug 1497589 Part 4: Set ComputedFlexContainerInfo physical axis values, and expose them through the Flex API. r=dholbert
Depends on D8616

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

--HG--
extra : moz-landing-system : lando
2018-10-17 20:23:09 +00:00
Brad Werth
55045f0ce3 Bug 1497589 Part 3: Stub in physical direction enums for Flex API main and cross axes. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D8616

--HG--
extra : moz-landing-system : lando
2018-10-17 20:22:46 +00:00
Brad Werth
04ba5f13c0 Bug 1497589 Part 2: Rename Flex API classes to avoid namespace collision with nsFlexContainerFrame classes. r=dholbert
Depends on D9022

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

--HG--
rename : dom/flex/FlexItem.cpp => dom/flex/FlexItemValues.cpp
rename : dom/flex/FlexItem.h => dom/flex/FlexItemValues.h
rename : dom/flex/FlexLine.cpp => dom/flex/FlexLineValues.cpp
rename : dom/flex/FlexLine.h => dom/flex/FlexLineValues.h
extra : moz-landing-system : lando
2018-10-17 20:22:26 +00:00
Brad Werth
2813ca23fa Bug 1497589 Part 1: Move Flex.webidl to the chrome-webidl directory. r=bzbarsky,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D9022

--HG--
rename : dom/webidl/Flex.webidl => dom/chrome-webidl/Flex.webidl
extra : moz-landing-system : lando
2018-10-18 00:08:02 +00:00
Valentin Gosu
5ac68030f7 Bug 1487100 - Allow calling nsICacheInfoChannel.preferAlternativeDataType(altDataType, contentType) multiple times r=michal,luke
This patch changes the way we set and handle the preferred alternate data type.
It is no longer just one choice, but a set of preferences, each conditional
on the contentType of the resource.

For example:
  var cc = chan.QueryInterface(Ci.nsICacheInfoChannel);
  cc.preferAlternativeDataType("js-bytecode", "text/javascript");
  cc.preferAlternativeDataType("ammended-text", "text/plain");
  cc.preferAlternativeDataType("something-else", "");

When loaded from the cache, the available alt-data type will be checked against
"js-bytecode" if the contentType is "text/javascript", "ammended-text" if the contentType is "text/plain" or "something-else" for all contentTypes.
Note that the alt-data type could be "something-else" even if the contentType is "text/javascript".

The preferences are saved as an nsTArray<mozilla::Tuple<nsCString, nsCString>>.

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

--HG--
extra : rebase_source : eb4961f05a52e557e7d2d986d59e0a2cf18a3447
extra : source : dd1c31ea78c2b15d14750d137037a54d50719997
2018-10-17 13:58:30 +00:00
Masayuki Nakano
09c4ea6dd3 Bug 1482425 - PresShell::PageMove() should use different rules to look for a container element for aExtend value r=smaug
PresShell::PageMove() climbs up to parent document when there is no scrollable
parent in current document.  However, if aExtend is true, it should expand
Selection in the document itself.  Therefore, it needs different rules to
look for container of expanding Selection from scrollable element to scroll.

Additionally, old rules (i.e., before the fix of bug 1369072 which caused
this regression) were also buggy.  It used parent scrollable element or
root scrollable element simply.  Therefore, if found scrollable element is
ancestor of selection limiter, it didn't work as expected.

This patch creates nsFrameSelection::GetFrameToPageSelect() to retrieve
per-page selection container element with the following rules:
- look for a scrollable element in selection limiter.
- if there is no scrollable element, use selection limiter.
- if there is no selection limiter, use the root frame.

So, nsFrameSelection::CommonPageMove() should take nsIFrame rather than
nsIScrollableFrame since container of per-page selection may be used in
non-scrollable contenteditable element.  If it's called with non-scrollable
frame, it needs to compute the expanding range with the frame size.

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

--HG--
extra : moz-landing-system : lando
2018-10-18 04:42:53 +00:00
Dorel Luca
1a48c88d19 Backed out 2 changesets (bug 1487100) for XPCShell failures in netwerk/test/unit_ipc/test_alt-data_simple_wrap.js
Backed out changeset 7f9d03c29a6f (bug 1487100)
Backed out changeset dd1c31ea78c2 (bug 1487100)
2018-10-18 05:51:42 +03:00
Daniel Holbert
d2eff8f7ac Bug 1499569: Rewrite test_flex_items.html to be simpler & easier to extend. r=bradwerth
Primary changes:
 - Rewrap some lines that are too long.
 - Adjust some failure-messages with s/has/should have/ etc.
 - Replace 'nearlyEqual' function with the standard mochitest
   'isfuzzy()' API (which is like 'is()' with an extra epsilon arg)
 - Remove dependence on hardcoded element IDs, and simply walk over the
   flex container's children in order instead (still noting each child node
   and making sure it matches the node in the flex API).

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

--HG--
extra : moz-landing-system : lando
2018-10-17 21:42:54 +00:00
Jim Blandy
9ac840bc86 Bug 1499473: Simplify TabGroup a bit, now that ThrottledEventQueue::Create is infallible. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D8915

--HG--
extra : moz-landing-system : lando
2018-10-17 20:41:59 +00:00
Valentin Gosu
e392dbc5dd Bug 1487100 - Allow calling nsICacheInfoChannel.preferAlternativeDataType(altDataType, contentType) multiple times r=michal,luke
This patch changes the way we set and handle the preferred alternate data type.
It is no longer just one choice, but a set of preferences, each conditional
on the contentType of the resource.

For example:
  var cc = chan.QueryInterface(Ci.nsICacheInfoChannel);
  cc.preferAlternativeDataType("js-bytecode", "text/javascript");
  cc.preferAlternativeDataType("ammended-text", "text/plain");
  cc.preferAlternativeDataType("something-else", "");

When loaded from the cache, the available alt-data type will be checked against
"js-bytecode" if the contentType is "text/javascript", "ammended-text" if the contentType is "text/plain" or "something-else" for all contentTypes.
Note that the alt-data type could be "something-else" even if the contentType is "text/javascript".

The preferences are saved as an nsTArray<mozilla::Tuple<nsCString, nsCString>>.

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

--HG--
extra : moz-landing-system : lando
2018-10-17 13:58:30 +00:00