Commit Graph

85436 Commits

Author SHA1 Message Date
Nicholas Nethercote
18fae65f38 Bug 1563139 - Remove StaticPrefs.h. r=glandium
This requires replacing inclusions of it with inclusions of more specific prefs
files.

The exception is that StaticPrefsAll.h, which is equivalent to StaticPrefs.h,
and is used in `Codegen.py` because doing something smarter is tricky and
suitable for a follow-up. As a result, any change to StaticPrefList.yaml will
still trigger recompilation of all the generated DOM bindings files, but that's
still a big improvement over trigger recompilation of every file that uses
static prefs.

Most of the changes in this commit are very boring. The only changes that are
not boring are modules/libpref/*, Codegen.py, and ServoBindings.toml.

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

--HG--
extra : moz-landing-system : lando
2019-07-26 01:10:23 +00:00
Ryan Alderete
992406dcb2 Bug 1506219 - Use a known remote for applications loaded from file:// URIs r=bwc
Fall back to using Google's DNS server to determine the associated local
addresses for web applications that are not loaded over the network.  This
includes the loopback address, which is frequently used in the unit tests.

Provide a separate function for setting the target for the default local
address lookup.

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

--HG--
extra : moz-landing-system : lando
2019-07-24 21:58:33 +00:00
Ryan Alderete
cd13ca2e02 Bug 1506219 - Update default route according to latest IETF draft r=bwc
draft-ietf-rtcweb-ip-handling specifies that the default route is the route
used to reach the origin rather than the one used to reach the internet, so
update the IP routing to reflect this.  This addresses issues in which the
wrong IP address is used on machines with multiple network interfaces.

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

--HG--
extra : moz-landing-system : lando
2019-07-24 19:50:46 +00:00
Noemi Erli
6fc91e697b Backed out changeset 043b8e2042b8 (bug 1562910) for bustages in RemoteAudioDecoder.cpp CLOSED TREE 2019-07-26 00:33:07 +03:00
Michael Froman
705b5ce214 Bug 1562910 - Use ShmemPool to reduce shmem thrashing in RDD audio decoding. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D36611

--HG--
extra : moz-landing-system : lando
2019-07-25 20:01:49 +00:00
Hiroyuki Ikezoe
69317a4a45 Bug 1498729 - Handle the cases where the name of viewport meta tag changes. r=smaug,botond
Differential Revision: https://phabricator.services.mozilla.com/D38925

--HG--
extra : moz-landing-system : lando
2019-07-25 04:26:04 +00:00
Hiroyuki Ikezoe
d333ece344 Bug 1498729 - Discard the corresponding viewport data when meta viewport node is detached from document. r=smaug,botond
Differential Revision: https://phabricator.services.mozilla.com/D38923

--HG--
extra : moz-landing-system : lando
2019-07-25 04:36:44 +00:00
Hiroyuki Ikezoe
2feab69a17 Bug 1498729 - Store each viewport meta data by the viewport meta tag and use the last one. r=smaug,botond
This is what Chrome and Safari do.
See https://webcompat.com/issues/20701#issuecomment-436054739


So for exmaple, if there are two viewport meta tags like this;

 <meta name="viewport" content="width=980">
 <meta name="viewport" content="initial-scale=1,maximum-scale=1">

We will use "initial-scale=1,maximum-scale=1".  Before this change we used to
use merged "width=980,initial-scale=1,maximum-scale=1".

Another example is to replace the content of a single viewport meta tag like this;

 <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1">

what will happen when this tag is replaced by below;

 <meta id="viewport" name="viewport" content="width=1080">

We will use the replacing one (i.e. "width=1080"), before this change, we used
to use merged "width=1080,initial-scale=1".

As of this commit, we don't properly remove corresponding viewport meta data
when a) viewport meta tag is detached from document and b) `name` attribute is
changed from 'viewport'.  These cases will be handled in subsequent commits.

Note that we no longer store invididual viewport meta data in Document::mHeaderData
so that nsIDOMWindowUtils.getDocumentMetadata doesn't work any more for the
invididual viewport meta data, but there is no use cases for them other than
two test cases which are removed in this commit.

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

--HG--
extra : moz-landing-system : lando
2019-07-25 20:51:23 +00:00
Hiroyuki Ikezoe
859fc2ffb7 Bug 1498729 - Factor out ProcessViewportContent. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D38921

--HG--
extra : moz-landing-system : lando
2019-07-25 04:24:26 +00:00
Hiroyuki Ikezoe
dfb3239dff Bug 1498729 - Move out nsContentUtils::ProcessViewportInfo. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D38920

--HG--
extra : moz-landing-system : lando
2019-07-25 04:24:08 +00:00
alwu
bdbe1ab086 Bug 1566066 - part2 : add 'empty_size.mp3' to playback test. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D39253

--HG--
extra : moz-landing-system : lando
2019-07-25 11:00:10 +00:00
alwu
0b3d5845c0 Bug 1566066 - part1 : use Maybe to distinguish size 0 and uninitialized value. r=jya
We found there is a mp3 where the size is empty in its ID3 header, which makes mp3 parser think of that we haven't parsed the header yet, and then skip unnecessary bytes again and again.

We should use `Maybe` to know whether we finish parsing the size or not.

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

--HG--
extra : moz-landing-system : lando
2019-07-25 16:49:57 +00:00
Jonas Allmann
d329aefed1 Bug 1498560 - Remove new Function from autocomplete.xml, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D38041

--HG--
extra : moz-landing-system : lando
2019-07-25 13:56:57 +00:00
Alphan Chen
a7084554c8 Bug 1567943 - Early return if do_ImportModule() failed. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D39170

--HG--
extra : moz-landing-system : lando
2019-07-25 14:44:09 +00:00
Andreea Pavel
fc92f585e2 Backed out 3 changesets (bug 1559244) for causing bug 1370046
Backed out changeset de76712278a6 (bug 1559244)
Backed out changeset 467caef2ef9c (bug 1559244)
Backed out changeset 17ab0c52dca0 (bug 1559244)
2019-07-25 17:42:32 +03:00
Byron Campen [:bwc]
1106701623 Bug 1568639: Re-enable this test on fission. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D39233

--HG--
extra : moz-landing-system : lando
2019-07-25 00:40:45 +00:00
Thomas Nguyen
db9e147a01 Bug 1566411 Use ReferrerInfo class in imgLoader.idl r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D38177

--HG--
extra : moz-landing-system : lando
2019-07-25 08:23:32 +00:00
François Freitag
b81795066d Bug 1479708 - Hide required date time input reset button. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D39315

--HG--
extra : moz-landing-system : lando
2019-07-25 10:28:52 +00:00
Andreea Pavel
442c23063f Backed out changeset a506f9517ba2 (bug 1479708) for failing test_input_datetime_reset_button.html on a CLOSED TREE 2019-07-25 12:44:04 +03:00
François Freitag
e66c63b690 Bug 1479708 - Hide required date time input reset button. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D38624

--HG--
extra : moz-landing-system : lando
2019-07-25 07:26:13 +00:00
Ciure Andrei
77673dccee Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-07-25 09:28:08 +03:00
Andreea Pavel
e4263c00eb Merge mozilla-inbound to mozilla-central. a=merge 2019-07-25 08:59:39 +03:00
Nicholas Nethercote
cbaaacf6ae Bug 1563139 - Remove StaticPref{s,List}_accessibility.h. r=glandium
These files exist because they were the proof-of-concept first step for
splitting the static prefs header files. Now that those header files can be
generated from a script, we need to move the `accessibility.*` prefs into the
YAML file.

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

--HG--
extra : moz-landing-system : lando
2019-07-25 04:08:14 +00:00
Emilio Cobos Álvarez
eb7d8bffd8 Bug 1567237 - Only use scroll range to select scrollable frames to scroll to, don't use scrollbar visibility. r=tnikkel
This is what other browsers do, and it does make sense to me, it's useless to
try to scroll a frame with no scroll range in a given direction.

I think all callers of this function should be treated like this, so this is
more like a RFC / feedback request than a patch per se.

The wheel handling code already checks scroll range, so there's no difference of
behavior in that case, if I'm reading the code right.

There are a few other functions that check the result of
GetPerceivedScrollingDirections(), but I think if we change this we should
change this consistently.

I also think that if we do this we should rename the method to something like
GetAvailableScrollingDirections() or such.

Anyhow, wdyt? I should also add a test for this if we go with this.

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

--HG--
extra : moz-landing-system : lando
2019-07-24 22:33:57 +00:00
Abdoulaye O. Ly
bda94b6b5d Bug 1559244 - Step 3: Add test for crashing an oop iframe. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D38896

--HG--
extra : moz-landing-system : lando
2019-07-24 18:43:14 +00:00
Abdoulaye O. Ly
71143356cc Bug 1559244 - Step 2: Add support for crashing sub-frame. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D37780

--HG--
extra : moz-landing-system : lando
2019-07-24 18:43:14 +00:00
Abdoulaye O. Ly
ae5c8d4df9 Bug 1559244 - Step 1: make BrowserTestUtils@crashBrowser function work with JSWindowActor. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D37318

--HG--
extra : moz-landing-system : lando
2019-07-24 18:42:48 +00:00
Coroiu Cristina
075c52994f Backed out 4 changesets (bug 1561079, bug 1561913) for mochitest failures at dom/base/test/test_bug375314.html on a CLOSED TREE
Backed out changeset 0d1eaf86253f (bug 1561913)
Backed out changeset 1d1be67a5950 (bug 1561079)
Backed out changeset 528a46ffe2af (bug 1561079)
Backed out changeset f562e67e38cf (bug 1561079)
2019-07-24 20:56:30 +03:00
Coroiu Cristina
50837746c0 Backed out changeset 2fe42a3dda2c (bug 1567237) for causing leaks on a CLOSED TREE 2019-07-24 20:52:07 +03:00
Barret Rennie
2ce8272804 Bug 1562821 - Propagate nsIWebProgress events to the <xul:browser> in responsive design mode r=Ehsan
The work from bug 1510569 that has ported the majority of the `nsIWebProgress`
event handlers from `WebProgressChild`/`RemoteWebProgress` to
`BrowserChild`/`BrowserParent` was not properly propogating the events in the
responsive design mode case. The `BrowserParent` assumed that its frame element
was an `nsIBrowser`, but in RDM it is an `<iframe mozbrowser>` which does not
implement `nsIBrowser`. In the RDM case we now walk up the document in the
`BrowserParent` tree to find the `<xul:browser>` and call the event handlers on
that instead.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 16:43:20 +00:00
Brendan Dahl
b5907700eb Bug 1550801 - Load XUL documents as XHTML documents. r=smaug
Now that the functionality we we wanted to preserve has been moved out of
XULDocument, we can start loading XUL files as XHTML. This will allow
the removal of XULDocument once we are confident that everything is working
correctly as XHTML.

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

--HG--
extra : moz-landing-system : lando
2019-07-19 19:24:58 +00:00
James Willcox
212e5673e3 Bug 1561079 - Add referrerInfo to <browser> r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D36525

--HG--
extra : moz-landing-system : lando
2019-07-24 16:33:47 +00:00
Bogdan Tara
e82c5fe738 Backed out 4 changesets (bug 1561079, bug 1561913) for apilint and checkstyle failures CLOSED TREE
Backed out changeset 50244d8132f9 (bug 1561913)
Backed out changeset 9abb44cca93b (bug 1561079)
Backed out changeset e6e23c902808 (bug 1561079)
Backed out changeset e48cf42b707f (bug 1561079)
2019-07-24 19:23:44 +03:00
James Willcox
a7171dad07 Bug 1561079 - Add referrerInfo to <browser> r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D36525

--HG--
extra : moz-landing-system : lando
2019-07-24 15:47:55 +00:00
Julian Descottes
dc88f9a8eb Bug 1550476 - Remove jsol.js from nsContentSecurityManager whitelist r=ckerschb
Depends on D38515

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

--HG--
extra : moz-landing-system : lando
2019-07-19 07:26:32 +00:00
Julian Descottes
62f7f4274d Bug 1550471 - Remove jszip.js from nsContentSecurityManager whitelist r=ckerschb
Depends on D38517

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

--HG--
extra : moz-landing-system : lando
2019-07-19 07:26:54 +00:00
Julian Descottes
fd9d673a34 Bug 1550463 - Remove lodash.js from nsContentSecurityManager whitelist r=ckerschb
Depends on D38516

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

--HG--
extra : moz-landing-system : lando
2019-07-19 07:27:11 +00:00
Julian Descottes
f25a6fd1fb Bug 1550489 - Remove react-redux.js from nsContentSecurityManager whitelist r=ckerschb
Depends on D38513

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

--HG--
extra : moz-landing-system : lando
2019-07-19 07:27:44 +00:00
Julian Descottes
39e4e14e35 Bug 1550485 - Remove redux.js from nsContentSecurityManager whitlelist r=ckerschb
Depends on D38514

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

--HG--
extra : moz-landing-system : lando
2019-07-19 07:27:51 +00:00
Bogdan Tara
c230c12dae Backed out 2 changesets (bug 1561079) foe ES lint failure on browser-custom-element.js CLOSED TREE
Backed out changeset 74cd5c0338ee (bug 1561079)
Backed out changeset adbc4ea67da9 (bug 1561079)
2019-07-24 18:31:15 +03:00
Emilio Cobos Álvarez
06d6ff95a8 Bug 1567237 - Only use scroll range to select scrollable frames to scroll to, don't use scrollbar visibility. r=tnikkel
This is what other browsers do, and it does make sense to me, it's useless to
try to scroll a frame with no scroll range in a given direction.

I think all callers of this function should be treated like this, so this is
more like a RFC / feedback request than a patch per se.

The wheel handling code already checks scroll range, so there's no difference of
behavior in that case, if I'm reading the code right.

There are a few other functions that check the result of
GetPerceivedScrollingDirections(), but I think if we change this we should
change this consistently.

I also think that if we do this we should rename the method to something like
GetAvailableScrollingDirections() or such.

Anyhow, wdyt? I should also add a test for this if we go with this.

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

--HG--
extra : moz-landing-system : lando
2019-07-24 13:17:11 +00:00
James Willcox
0a734ca6ba Bug 1561079 - Add referrerInfo to <browser> r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D36525

--HG--
extra : moz-landing-system : lando
2019-07-24 14:53:19 +00:00
Michael Froman
de0172246c Bug 1568372 - add mutex in RemoteDecoderModule::LaunchRDDProcessIfNeeded. r=jya
This stops a potential race when multiple media playback threads attempt to
launch the RDD process and setup the IPC connections between
RemoteDecoderManager{Child|Parent} at the same time.

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

--HG--
extra : moz-landing-system : lando
2019-07-24 07:02:07 +00:00
Christian Holler
cd7a74b452 Bug 1499041 - Remove libFuzzer flags from ipc/chromium/. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D39165

--HG--
extra : moz-landing-system : lando
2019-07-24 14:13:30 +00:00
Andrea Marchesini
55dd423fa3 Bug 1567419 - Ensure the BodyStreamHolder has a valid stream always, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D38814

--HG--
extra : moz-landing-system : lando
2019-07-23 23:23:41 +00:00
Alexis Beingessner
57498bb3b4 Bug 1547351 - add IsEmpty and fix OrInsert signature for nsBaseHashtable. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D38597

--HG--
extra : moz-landing-system : lando
2019-07-24 14:10:56 +00:00
Boris Zbarsky
6179d86a65 Bug 1568285. Stop implementing JS-exposed QueryInterface for TreeColumns and TreeContentView. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D39077

--HG--
extra : moz-landing-system : lando
2019-07-24 13:22:07 +00:00
Emilio Cobos Álvarez
5ffd857a02 Bug 1551621 - Downgrade an assertion for now so as to not block people. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D39155

--HG--
extra : moz-landing-system : lando
2019-07-24 13:18:21 +00:00
Boris Zbarsky
63783b438f Bug 1568303. Stop implementing JS-exposed QueryInterface on some core DOM objects. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D39085

--HG--
extra : moz-landing-system : lando
2019-07-24 08:52:41 +00:00
Boris Zbarsky
2f8935720c Bug 1568301. Stop implementing JS-exposed QueryInterface on Selection. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D39083

--HG--
extra : moz-landing-system : lando
2019-07-24 08:50:59 +00:00