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

85351 Коммитов

Автор SHA1 Сообщение Дата
alwu 55e171e76b Bug 1563949 - part5 : return nullptr when time overflow. r=jya
If the result of expected dts/pts after added `fuzz` is overflow, we should return nullptr as if we reach to the end of the file.

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

--HG--
extra : moz-landing-system : lando
2019-07-19 02:16:44 +00:00
alwu 441473d744 Bug 1563949 - part4 : prevent direct usage of 'AppendElement()' to append sample. r=jya
We should always append sample by using `AppendSample()` to assert whether a sample is valid, so making `mSamples` private can prevent a direct usage of the nsTarry's `AppendElement()`.
Also provide a method to return non-const mSamples which is only used for the move semantics.

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

--HG--
extra : moz-landing-system : lando
2019-07-19 21:11:21 +00:00
alwu 44cfc7989a Bug 1563949 - part3 : handle invalid sample in demuxer. r=jya
Return demux error when we get a invalid sample. For mp4 demuxer, we use `MOZ_DIAGNOSTIC_ASSERT` instead because we are pretty sure that it won't happen.

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

--HG--
extra : moz-landing-system : lando
2019-07-19 20:48:15 +00:00
alwu 424b48c982 Bug 1563949 - part2 : add 'AppendSample' to assert that a sample should always be valid r=jya
We don't want to have a sample with invalid time, duration, end time or end timecode, so add a diagnostic assertion to check. And will handle invalid sample for demuxers in next patch.

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

--HG--
extra : moz-landing-system : lando
2019-07-19 20:16:26 +00:00
alwu 7cea87585a Bug 1563949 - part1 : add function 'GetEndTimeCode'. r=jya
We already have function `GetEndTime()`, so it's good to have a similar function `GetEndTimeCode()` so that we won't have to calculate end time code by ourselves.

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

--HG--
extra : moz-landing-system : lando
2019-07-18 11:03:28 +00:00
Nika Layzell 2a0d22e428 Bug 1523638 - Part 10: Implement WindowGlobalParent::GetRootFrameLoader in terms of Top()->GetEmbedderElement(), r=farre
Differential Revision: https://phabricator.services.mozilla.com/D38552

--HG--
extra : moz-landing-system : lando
2019-07-19 19:53:53 +00:00
Nika Layzell 83236ff0f4 Bug 1523638 - Part 9: Use provided 'WindowGlobalChild' actors to create the initial about:blank document, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37656

--HG--
extra : moz-landing-system : lando
2019-07-18 19:38:22 +00:00
Nika Layzell d3369b5645 Bug 1523638 - Part 7: Transmit permissions for newly created WindowGlobalParent actors, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D37654

--HG--
extra : moz-landing-system : lando
2019-07-18 19:38:18 +00:00
Nika Layzell d57e4902c0 Bug 1523638 - Part 6: Create an initial WindowGlobal actor for popup browser construction, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37653

--HG--
extra : moz-landing-system : lando
2019-07-18 19:38:16 +00:00
Nika Layzell 96156f34c3 Bug 1523638 - Part 5: Create a WindowGlobal actor during normal PBrowser construction, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37652

--HG--
extra : moz-landing-system : lando
2019-07-18 19:38:14 +00:00
Nika Layzell 5dc554280a Bug 1523638 - Part 4: Move NextWindowId logic into nsContentUtils, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37651

--HG--
extra : moz-landing-system : lando
2019-07-18 19:38:12 +00:00
Nika Layzell b1f124f20a Bug 1523638 - Part 3: Construct WindowGlobal actors using ManagedEndpoint, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37650

--HG--
extra : moz-landing-system : lando
2019-07-18 19:38:10 +00:00
Nika Layzell 68e5c025a2 Bug 1523638 - Part 2: Store and expose URI and Principal on WindowGlobalChild, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37649

--HG--
extra : moz-landing-system : lando
2019-07-18 19:38:03 +00:00
Nika Layzell 29cceccb51 Bug 1523638 - Part 1: Remove mIPCClosed from PWindowGlobal, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37648

--HG--
extra : moz-landing-system : lando
2019-07-18 19:38:01 +00:00
Nika Layzell 2f4cd365ad Bug 1566806 - Check discarded status before forwarding WindowProxy messages between processes, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D38545

--HG--
extra : moz-landing-system : lando
2019-07-22 01:54:36 +00:00
Boris Zbarsky 0f70d08ec8 Bug 1566595. Stop using [array] in nsIBinaryOutputStream. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D38387

--HG--
extra : moz-landing-system : lando
2019-07-22 20:27:39 +00:00
Ciure Andrei 24c0d0e47d Backed out 2 changesets (bug 1506219) for causing test_presentation_datachannel_sessiontransport.html to perma fail CLOSED TREE
Backed out changeset 7e39db6e12a5 (bug 1506219)
Backed out changeset ab31fbc14a00 (bug 1506219)
2019-07-22 23:54:45 +03:00
Bobby Holley de399107e1 Bug 1566839 - Use NS_WARNING rather than NS_ERROR when child process initialization fails. r=jld
Differential Revision: https://phabricator.services.mozilla.com/D38908

--HG--
extra : moz-landing-system : lando
2019-07-22 19:14:45 +00:00
Emilio Cobos Álvarez 8d47bdf9ba Bug 1566684 - Make sure to unlink rule declarations before unlinking css::Rule. r=smaug,emilio
Rules and their declarations are a single object as far as the CC is concerned.  They have a single nsCycleCollectionISupports and they are represented by a single node in the CC graph.  That single object has two nsWrapperCache instances in it that point to different JS objects, and we need to make sure that the ordering of the unlink operations for those nsWrapperCache instances is handled correctly.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 18:33:29 +00:00
Sean Feng cb9b749a6c Bug 1522288 - Start using microtask for img loading and img decode r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D38717

--HG--
extra : moz-landing-system : lando
2019-07-22 17:35:20 +00:00
Ryan Alderete 14e5b45ecc 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-22 15:42:06 +00:00
Ryan Alderete 35bd2662ca 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-22 15:43:12 +00:00
Ciure Andrei 98278afa46 Backed out changeset a858e4411532 (bug 1566595) for causing Windows MinGW builds bustages CLOSED TREE 2019-07-22 21:39:08 +03:00
Byron Campen [:bwc] 13d7ab645a Bug 1566445: Rename a couple of macros to avoid conflicts. r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D38226

--HG--
extra : moz-landing-system : lando
2019-07-20 15:56:31 +00:00
Boris Zbarsky 9c74919340 Bug 1566595. Stop using [array] in nsIBinaryOutputStream. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D38387

--HG--
extra : moz-landing-system : lando
2019-07-22 14:52:04 +00:00
Nika Layzell e691fe7a86 Bug 1565489 - Part 1: Avoid null dereference in IsProcessRoot, r=farre
The crash appears to be being caused by the GetEmbedderWindowGlobal call
returning a null value. This patch simply avoids the crash in this case, and
returns a reasonable default value of false, as it should never be true for a
BrowsingContext with a parent without Fission enabled.

This patch should be small enough to safely uplift if necessary.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 08:43:14 +00:00
Sebastian Streich d19c155e9e Bug 1100630 - Print Related JS-Line on CSP Violation (if any) r=ckerschb,dveditz
Differential Revision: https://phabricator.services.mozilla.com/D31420

--HG--
extra : moz-landing-system : lando
2019-07-22 09:31:57 +00:00
Christian Holler 35c00b8242 Bug 1567442 - Check TrackInfo validity in media benchmark. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D38649

--HG--
extra : moz-landing-system : lando
2019-07-22 09:35:36 +00:00
Henri Sivonen 0233c4cddc Bug 1540688 - Sort all-lowercase XHR headers as if all-uppercase. r=baku,annevk
This makes the underscore sort after letters, which works around tacit
assumption that such custom headers don't sort to the beginning of the
string.

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

--HG--
extra : moz-landing-system : lando
2019-05-24 13:43:57 +00:00
Masayuki Nakano 15fcb38af8 Bug 1548389 - part 10: Make `TextEditor::SetUnmaskRangeInternal()` expand the range if specified offset is middle of a surrogate pair r=m_kato
Unmasking is an optional style of showing password.  Therefore, if callers of
`nsIEditor::Unmask()` specify middle of surrogate pair(s), it may mean that
they want to expand the unmask range from shorter range which does not include
the high and/or low surrogate.  Therefore, one of the surrogates is in unmasked
range, we unmask the surrogate pair.  However, we handle this in a lot of
places, i..e., we have duplicated code.  This can get rid of these duplicates
with making `nsIEditor::Unmask()` expand the range automatically.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 03:56:33 +00:00
Masayuki Nakano 1e6858f9fe Bug 1548389 - part 9: Make ContentEventHandler return masked text r=m_kato
In some cases, other tools may show selected content in their UI.  E.g.,
character palette of macOS.  Therefore, we shouldn't allow them to show
masked password.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 03:56:15 +00:00
Masayuki Nakano 0f0e091c25 Bug 1548389 - part 7: Drop supporting dragging text from `<input type="password">` r=smaug
Now, the anonymous text node has raw value of password so that we shouldn't
allow users to drag the text since another user may have typed the password
and left from the device.

Note that we've supported the operation, however, it does not make sense
since the dragging data is masked text.

Additionally, Chrome also doesn't support dragging text in password fields.
So, we have no reason to support dragging raw value from password fields.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 03:55:30 +00:00
Masayuki Nakano aa340cd1c7 Bug 1548389 - part 4: Implement `nsContentUtils::GetTextEditorFromAnonymousNodeWithoutCreation()` to retrieve `TextEditor` instance from an anonymous node in `HTMLInputElement` or `HTMLTextAreaElement` r=smaug
This method makes the following patches simpler and avoid duplicating same
code.

The utility method retrieves `TextEditor` from `HTMLInputElement` and
`HTMLTextAreaElement`.  However, this won't cause creating corresponding
editor because when it calls from `TextEditor`, editor shouldn't be created
at that time due to requiring another reflow.  Additionally, it's not
necessary for `nsTextFrame` because without `TextEditor`, all characters
in password field should be masked.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 03:54:33 +00:00
Masayuki Nakano 3102de8053 Bug 1548389 - part 3: Make editor mark text node in password field as "maybe masked" r=smaug
With the previous patches, editor has stopped masking characters in password
field.  Instead, layout code needs to handle it.  However, layout code
especially around `nsTextFrame` is performance critical area.  Therefore,
layout code requires a quick way to check whether a text node in password
field or not.

This patch creates new flag for `CharacterData` node and marks all text nodes
whose characters should be masked with the flag when `EditorBase` or
`nsTextControlFrame` creates them.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 03:54:16 +00:00
Nicholas Nethercote 7974362afd Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm
Currently it's completely unclear at use sites that the getters for `once`
static prefs return the pref value from startup, rather than the current pref
value. (Bugs have been caused by this.) This commit improves things by changing
the getter name to make it clear that the pref value obtained is from startup.

This required changing things within libpref so it distinguishes between the
"base id" (`foo_bar`) and the "full id" (`foo_bar` or
`foo_bar_DoNotUseDirectly` or `foo_bar_AtStartup` or
`foo_bar_AtStartup_DoNotUseDirectly`; the name used depends on the `mirror` and
`do_not_use_directly` values in the YAML definition.) The "full id" is used in
most places, while the "base id" is used for the `GetPrefName_*` and
`GetPrefDefault_*` functions.

(This is a nice demonstration of the benefits of the YAML file, BTW. Making
this change with the old code would have involved adding an entry to every
single pref in StaticPrefList.h.)

The patch also rejigs the comment at the top of StaticPrefList.yaml, to clarify
some things.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 02:10:14 +00:00
Jean-Yves Avenard a34f058d11 Bug 1561486 - shutdown demuxer early. r=alwu
We don't need the demuxer after we've resolved the promise.

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

--HG--
extra : moz-landing-system : lando
2019-07-10 12:04:50 +00:00
Eugen Sawin 532f60a55d Bug 1501108 - [1.7] Add GeckoView Session Context ID support. r=snorp,baku,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D19182

--HG--
extra : moz-landing-system : lando
2019-07-21 17:18:37 +00:00
Emilio Cobos Álvarez cf7beea50e Bug 1561794 - Do not crop display text of themed comboboxes due to padding. r=dbaron
This is a potential fix that I thought it was worth doing rather than
implementing Blink's platform-dependent silliness. This ensures that the display
frame always has enough space to display itself.

Note that it may still get clipped, if there's no room for both the display
frame and the button.

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

--HG--
extra : moz-landing-system : lando
2019-07-20 14:54:33 +00:00
Andreas Pehrson 59a2b619f0 Bug 1565374 - Reset state. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D37784

--HG--
extra : moz-landing-system : lando
2019-07-17 19:57:31 +00:00
Andreas Pehrson 49f7e9bdc2 Bug 1565374 - Improve test. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D37783

--HG--
extra : moz-landing-system : lando
2019-07-17 19:57:30 +00:00
Kashav Madan b1d0050ee1 Bug 1563629 - Inherit TabContext values from the current BrowserParent, r=nika,kmag
Differential Revision: https://phabricator.services.mozilla.com/D37618

--HG--
extra : moz-landing-system : lando
2019-07-19 19:00:31 +00:00
André Bargull 1fe1b5271f Bug 1522070 - Part 18: Update 'lang' member test for Web manifest to match latest ECMA-402. r=marcosc
ECMA-402 changed the language tag specification from RFC-5646 BCP-47 language
tags to UTS 35 Unicode BCP-47 locale identifiers. Update the expected
canonicalisation results accordingly.

Depends on D37450

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

--HG--
extra : moz-landing-system : lando
2019-07-19 13:37:47 +00:00
Gurzau Raul 9866332964 Backed out 3 changesets (bug 1559975) for linting failure at WebIDL.py on a CLOSED TREE.
Backed out changeset a7154744a5d7 (bug 1559975)
Backed out changeset 4005ac274170 (bug 1559975)
Backed out changeset 68ed1ccb5921 (bug 1559975)
2019-07-19 18:25:10 +03:00
Thomas Nguyen 20e4651f5b Bug 1566417 - Update to use ReferrerInfo in prefetch and preload URI r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D38323

--HG--
extra : moz-landing-system : lando
2019-07-19 11:42:09 +00:00
Edwin Gao 805e1d99d2 Bug 1559975 - convert dom/bindings to python3 r=ahal,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D36634

--HG--
extra : moz-landing-system : lando
2019-07-19 14:15:00 +00:00
Boris Zbarsky 1c016bfe56 Bug 1566678. Handle attempts to setImmutablePrototype on a WindowProxy more gracefully. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D38555

--HG--
extra : moz-landing-system : lando
2019-07-19 08:14:14 +00:00
Oana Pop Rus eec75f66cd Merge inbound to mozilla-central. a=merge 2019-07-19 06:57:32 +03:00
Brindusan Cristian 7b5bfee772 Backed out changeset 1cf52744c859 (bug 1566417) for wpt failures at Element.h:2006. 2019-07-19 03:37:49 +03:00
Olli Pettay 7c88ba1685 Bug 1539497, navigator.maxTouchPoints returns 0 in child process, r=ehsan
Differential Revision: https://phabricator.services.mozilla.com/D38583

--HG--
extra : amend_source : 52f1fdbf79f18a6c3ff52eab0a45b397cee76baf
2019-07-19 01:45:16 +03:00
Oana Pop Rus f52133cc3d Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-07-19 01:06:05 +03:00