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

86519 Коммитов

Автор SHA1 Сообщение Дата
Mirko Brodesser 887a1c3c6d Bug 1575495: part 4) Add `AddLineBreak` to `CurrentLineContent`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D42840

--HG--
extra : moz-landing-system : lando
2019-08-23 14:00:50 +00:00
Mirko Brodesser eea034bd57 Bug 1575495: part 3) Sync argument names of declaration and definition of `DoAddText`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D42839

--HG--
extra : moz-landing-system : lando
2019-08-23 13:16:46 +00:00
Mirko Brodesser 6515718068 Bug 1575495: part 2) Move `MaybeReplaceNbspsForOutput` to `CurrentLineContent`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D42838

--HG--
extra : moz-landing-system : lando
2019-08-23 13:16:37 +00:00
Mirko Brodesser 7dc44a76e6 Bug 1575495: part 1) Simplify assignments to `mAtFirstColumn`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D42837

--HG--
extra : moz-landing-system : lando
2019-08-23 13:16:30 +00:00
Brad Werth 5ba85219c5 Bug 1575097 Part 3: Make nsScreen::GetRDMScreenSize get the size from the window. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D42745

--HG--
extra : moz-landing-system : lando
2019-08-25 23:53:54 +00:00
Brad Werth ea3e370cf2 Bug 1575097 Part 2: Make nsScreen::GetRDMScreenSize accept a CSSIntSize instead of an nsRect. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D42743

--HG--
extra : moz-landing-system : lando
2019-08-25 23:53:31 +00:00
Brad Werth 5dccfe286b Bug 1575097 Part 1: Add a method nsGlobalWindowOuter::GetRDMDeviceSize and use it in GetOuterSize. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D43130

--HG--
extra : moz-landing-system : lando
2019-08-25 23:53:04 +00:00
Edgar Chen 20182dbcb2 Bug 1576154 - Check mSVGDocumentWrapper when trying to report use counters; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D43256

--HG--
extra : moz-landing-system : lando
2019-08-25 22:45:33 +00:00
Jan Varga 359aa0d597 Bug 1576453 - Fix a problem with unused variable in non-nightly builds; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D43357

--HG--
extra : moz-landing-system : lando
2019-08-25 17:39:17 +00:00
Jan Varga f4529437df Bug 1563023 - Part 9: Ignore quota cache if LSNG is disabled; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D39881

--HG--
extra : moz-landing-system : lando
2019-08-25 00:45:41 +00:00
Jan Varga f4d108788b Bug 1563023 - Part 8: Ignore quota cache if the user loads the same profile in different builds; r=asuth
This patch adds support for quota cache invalidation if the profile is loaded in different builds.

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

--HG--
extra : moz-landing-system : lando
2019-08-25 00:45:19 +00:00
Jan Varga 3e97ea2f34 Bug 1563023 - Part 7: Implement caching functionality; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D38817

--HG--
extra : moz-landing-system : lando
2019-08-25 01:34:37 +00:00
Cosmin Sabou 8a4a4f0f3a Bug 1564700 - Disable test_bug949946.html for causing crashes on Android. r=intermittent-reviewers,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D43345

--HG--
extra : moz-landing-system : lando
2019-08-24 23:04:49 +00:00
Ciure Andrei 0a6d4a24f8 Merge inbound to mozilla-central. a=merge 2019-08-24 12:51:09 +03:00
Alex Vincent cec0c5cbdb Bug 1508169, Remove performAction* from nsITreeView.idl in mozilla-central. r=peterv, johannh
performAction, performActionOnRow and performActionOnCell are methods of the
nsITreeView interface that are never called.  This is to remove these methods.
A comm-central patch will be along shortly.

Differential Revision: https://phabricator.services.mozilla.com/D39273
2019-08-24 00:49:55 +02:00
Edwin Gao ae04af04bb Bug 1576011 - set expectation for tests in gl1c for tests that pass in Debian 10 r=jmaher
Changes:
- when specifying `fail-if` condition for linux platform, narrow down the scope using Ubuntu version `16.04` since some tests are passing on Debian 10

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

--HG--
extra : moz-landing-system : lando
2019-08-23 17:41:16 +00:00
Kashav Madan 508a24d1a6 Bug 1562264 - Update skip-if annotations, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D41763

--HG--
extra : moz-landing-system : lando
2019-08-23 16:05:08 +00:00
Kashav Madan ea42e15279 Bug 1562264 - Propagate remote/fission flags from parent to child for content window.open() calls, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D40836

--HG--
extra : moz-landing-system : lando
2019-08-23 16:06:09 +00:00
Csoregi Natalia 77448b7aee Bug 1554808 - Disabled test_streams_element_capture.html on all platforms. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D43235

--HG--
extra : moz-landing-system : lando
2019-08-23 17:56:52 +00:00
Jonathan Watt 4562fab69f Bug 1559841. Make the 'load' event wait for OOP-iframes to load. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D41953

--HG--
extra : moz-landing-system : lando
2019-08-24 00:03:54 +00:00
Kearwood "Kip" Gilbert 291ee2b5f1 Bug 1574682 - Implement VREventObserver::NotifyEnumerationCompleted r=imanol
Differential Revision: https://phabricator.services.mozilla.com/D43202

--HG--
extra : moz-landing-system : lando
2019-08-23 06:30:56 +00:00
Ehsan Akhgari 1b69ad9fa2 Bug 1575609 - Switch away from using Fission-incompatible inprocess APIs for finding the window top in the anti-tracking backend; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D42974

--HG--
extra : moz-landing-system : lando
2019-08-22 17:22:08 +00:00
Ehsan Akhgari ba7fe6ea70 Bug 1556015 - Retrieve the content blocking log using an IPC stream in order to support logs of arbitrary sizes; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D42959

--HG--
extra : moz-landing-system : lando
2019-08-22 17:17:34 +00:00
Logan Smyth 66e57fe122 Bug 1562708 - Allow disabling of the mutation event warning for system-group event listeners. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D43147

--HG--
extra : moz-landing-system : lando
2019-08-23 14:35:05 +00:00
Jan Varga 76cfa3e3e3 Bug 1563023 - Part 6: Simplify iterations over all client types; r=asuth
This patch converts index based client type loops to iterator based client type
loops. This way the static cast is avoided and the loops are simpler and more
readable.

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

--HG--
extra : moz-landing-system : lando
2019-08-23 04:48:36 +00:00
Jan Varga d97b501006 Bug 1563023 - Part 5: Rationalize Client::TypeToText and Client::TypeFromText methods; r=asuth
This patch makes it easier to create new Client::TypeTo and Client::TypeFrom
variations by creating generic reusable helpers.

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

--HG--
extra : moz-landing-system : lando
2019-08-23 04:49:14 +00:00
Jan Varga a650fac7b0 Bug 1563023 - Part 4: Get rid of custom usage tracking in LS by using client usage tracked by QM; r=asuth
This patch gets rid of gUsages in LSNG. This provides better consistency and
makes it easier to cache quota info on disk.
The patch also fixes some edge cases when usage was not adjusted correctly after
a failed file or database operation.

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

--HG--
extra : moz-landing-system : lando
2019-08-23 04:46:14 +00:00
Jan Varga 0e46119bb9 Bug 1563023 - Part 3: Change client usage type to support the null value; r=asuth
This patch wraps the uint64_t type in a Maybe container, so the client usage can
represent a state when there are no files on disk for the given client. Zero
usage then represents a state when there are some files but they are empty or
the client tracks logical size (not physical size of files on disk) and the
logical size is zero. This can be useful especially for LocalStorage.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 20:52:09 +00:00
Abdoulaye O. Ly 92b69fc0cb Bug 1574269 - Improve in-tree documentation for fission. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D43101

--HG--
extra : moz-landing-system : lando
2019-08-22 21:56:50 +00:00
Kearwood "Kip" Gilbert 29c4fe1941 Bug 1574681 - VRManagerChild::GetVRDisplays returns void rather than bool r=thomasmo
Differential Revision: https://phabricator.services.mozilla.com/D42399

--HG--
extra : moz-landing-system : lando
2019-08-22 14:59:53 +00:00
Frédéric Wang 8f3b2a9292 Bug 1575542 - Add counter and warnings for deprecated MathML lengths. r=emilio
This commit introduces new counters and deprecation warnings for the following
MathML features:
* mathspace names (bug 1575542)
* mathsize names (bug 1548527)
* linethickness names (bug 1548529)

Note: helper parsing functions for mfrac and mpadded are changed to non-static
in order to pass the document parameter needed to log warnings to the console.

Change manually tested with
    <math>
      <mspace width="thinmathspace"></mspace>
      <mpadded width="2thickmathspace"></mpadded>
      <mfrac linethickness="thin"><mn>1</mn><mn>2</mn></mfrac>
      <mtext mathsize="big">3</mtext>
    </math>

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

--HG--
extra : moz-landing-system : lando
2019-08-22 06:29:26 +00:00
Jan Varga 9ab967ef1e Bug 1563023 - Part 2: Add support for getting origin usage from memory; r=asuth
This patch modifies getUsageForPrincipal to support getting origin usage from
memory. Support for getting group usage is factored out to a standalone method
called Estimate.
Operations based on NormalOriginOperationBase can now avoid directory locking
if they don't touch disk.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 20:51:09 +00:00
Kris Maglione fb8619c074 Bug 1563578: Make browser_getActor_filter.js Fission-compatible.
Differential Revision: https://phabricator.services.mozilla.com/D36974

--HG--
extra : moz-landing-system : lando
2019-08-22 20:28:36 +00:00
Noemi Erli 2d0fff3267 Backed out changeset 4bedbc45e231 (bug 1505412) for failures in test_bug1505412.html CLOSED TREE 2019-08-22 19:52:49 +03:00
Andrew McCreight ff786abc93 Bug 1575272 - Fix DOM bindings tests to work with Fission. r=peterv
These test that various DOM things fail when done
cross-origin. They'll fail in a different way if done cross-process,
so change the origin used so that it is same-process, but
cross-origin, even with Fission.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 20:10:33 +00:00
Johann Hofmann e91d880e08 Bug 1570674 - Default to "Never Allow" for notification permission prompt denials. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D43081

--HG--
extra : moz-landing-system : lando
2019-08-22 16:24:56 +00:00
Sebastian Streich 140ba11647 Bug 1536058 - Add a Test for cache isolation r=ckerschb,Ehsan
***
Adding Ehsans nits
***

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

--HG--
extra : moz-landing-system : lando
2019-08-22 15:21:09 +00:00
Sebastian Streich 5c3cba344d Bug 1505412 - Skip CSP-Nonce check for CSP-Ro+Redirected Channels r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D36916

--HG--
extra : moz-landing-system : lando
2019-08-22 15:23:17 +00:00
Jan Varga 9f906cd7c4 Bug 1563023 - Part 1: Implement per client usage tracking; r=asuth
This patch adds a fixed-size array of client usages to OriginInfo and modifies
quota tracking APIs to require the client type to be passed in.
A new method ResetUsageForClient is implemented. The method is used during
client-specific origin clearing. ResetUsageForClient is much faster than calling
GetUsageForOrigin and calling DecreaseUsageForOrigin after that.
LockedUsage now has an assertion that verifies that the total sum of client
usages matches total origin usage. This method should be called instead of
touching mUsage directly.
A new assertion is added to GetQuotaObject which verifies that passed file
belongs to the given persistence type, origin, and client.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 13:06:48 +00:00
Christian Holler a5c67a2bba Bug 1567170 - Avoid thread leak in media fuzzing target. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D41719

--HG--
extra : moz-landing-system : lando
2019-08-22 10:29:29 +00:00
Cosmin Sabou a5e3e00d01 Bug 1571583 - Disable test_urgent_start.html on mac debug cause of leaks. r=jmaher 2019-08-22 10:02:17 +03:00
Marcos Cáceres f5706147e3 Bug 1575140 - Manifest ImageResource sizes should be an array r=baku
per spec, the ImageResource sizes member should be returned as an array.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 10:29:16 +00:00
Frédéric Wang 90172bae44 Bug 1575596 - MathML Lengths: Do not accept numbers ending with a dot. r=emilio
See https://github.com/mathml-refresh/mathml/issues/23
and https://groups.google.com/forum/#!topic/mozilla.dev.platform/wIjm9JjVHNg

This commit introduces a new preference option
mathml.legacy_number_syntax.disabled to disable legacy MathML numbers
(e.g. "1234.") that are not supported by CSS. This feature is now disabled by
default.

* test_bug553917.html is updated to check that such legacy values now cause an
  error message to be logged into the console when the feature is disabled.
* Legacy MathML features are now disabled for WPT mathml test in a global
  __dir__.ini file. Removing legacy numbers allow to pass
  mathml/relations/css-styling/lengths-2.html

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

--HG--
extra : moz-landing-system : lando
2019-08-21 23:49:36 +00:00
Nika Layzell 33acd18c7e Bug 1570369 - Part 16: Use IPDL refcounted for POfflineCacheUpdate, r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D40267

--HG--
extra : moz-landing-system : lando
2019-08-16 10:55:52 +00:00
Andreas Pehrson 3321f57840 Bug 1573524 - In MediaRecorder::MediaStreamReady, get the graph rate from a track that's guaranteed live. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D42525

--HG--
extra : moz-landing-system : lando
2019-08-26 07:48:23 +00:00
Mirko Brodesser 1a703a2360 Bug 1575585: prevent mutating individual members of `nsPlainTextSerializer::Settings`. r=hsivonen
Reasoning about this class and its callers becomes easier.

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

--HG--
extra : moz-landing-system : lando
2019-08-26 12:00:58 +00:00
Andreas Farre 6e42fb98f8 Bug 1563619 - Handle subframe crashes in BrowserParent::ActorDestroy. r=mconley,kmag,peterv
Differential Revision: https://phabricator.services.mozilla.com/D40937

--HG--
extra : moz-landing-system : lando
2019-08-26 13:08:32 +00:00
Emilio Cobos Álvarez 70b6fda902 Bug 1575926 - Check that we have a target in CalculateCumulativeChangeHint. r=hiro
Seems we'll update the change hint properly via SetTarget if we get a new
target.

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

--HG--
extra : moz-landing-system : lando
2019-08-26 09:08:22 +00:00
Mike Hommey 66d7fe943e Bug 1575420 - Replace MOZ_WIDGET_TOOLKIT value of "gtk3" with "gtk". r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D42765

--HG--
extra : moz-landing-system : lando
2019-08-21 12:25:42 +00:00
Jan Varga dc66b57d8b Bug 1574569 - Don't abort LocalStorage requests when a sync message from parent is detected; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D42796

--HG--
extra : moz-landing-system : lando
2019-08-21 20:24:00 +00:00
fbcbb8bd8b Bug 1573381 - "gtest MediaMIMETypes.MediaCodecs fails: Bug in MediaCodecs::ContainsPrefix()". r=bvandyk
--HG--
extra : rebase_source : d27b22af894d26dd7c46f90e6e83c831c54e3985
2019-08-13 00:50:00 +03:00
Simon Giesecke 5dd0445963 Bug 1571407 - Add initial code style document for DOM Workers & Storage team r=ttung,asuth,edenchuang
Differential Revision: https://phabricator.services.mozilla.com/D40617

--HG--
extra : moz-landing-system : lando
2019-08-27 16:19:27 +00:00
Noemi Erli 907fe70a3f Backed out changeset f69e1e9da360 (bug 1565991) for failing in test_createPattern_broken.html
--HG--
extra : rebase_source : d62dd3af0147b294668b60ae3c041e1d30b4a044
2019-08-27 19:23:31 +03:00
Sylvestre Ledru d264b841c9 Bug 1576502 - Fix some wording issues r=mhoye
Differential Revision: https://phabricator.services.mozilla.com/D43363

--HG--
extra : moz-landing-system : lando
2019-08-27 15:38:58 +00:00
Kris Taeleman bd77bd2e32 Bug 1565991 - Ensure calling createPattern with `new Image()` returns null. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D42038

--HG--
extra : moz-landing-system : lando
2019-08-27 15:27:42 +00:00
Gerald Squelart e46f3b6c3a Bug 1571648 - Only allow DecoderDoctorLogger on Nightly - r=drno
Differential Revision: https://phabricator.services.mozilla.com/D43228

--HG--
extra : moz-landing-system : lando
2019-08-23 20:06:33 +00:00
Andrew McCreight fc34ba85ae Bug 1576233 - Enable some local storage tests under Fission. r=kmag
These seem to work now.

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

--HG--
extra : moz-landing-system : lando
2019-08-23 18:16:46 +00:00
Oana Pop Rus 3223cd3dc2 Backed out 4 changesets (bug 1510569) for causing build bustage on a CLOSED TREE
Backed out changeset eae555c11f25 (bug 1510569)
Backed out changeset 2fb8938d16db (bug 1510569)
Backed out changeset b480af862022 (bug 1510569)
Backed out changeset 642cd6323cdc (bug 1510569)
2019-08-21 22:55:43 +03:00
Edgar Chen a3adabe5a7 Bug 1568950 - Part 5: Remove nsIDOMWindowUtils::forceUseCounterFlush; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D42818

--HG--
extra : moz-landing-system : lando
2019-08-21 12:52:19 +00:00
Edgar Chen 46e571d433 Bug 1568950 - Part 4: Update existing tests to make them cover real use case; r=smaug
Remove nsIDOMWindowUtils.forceUseCounterFlush calls give that we won't manually
report use counters in real case.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 10:29:14 +00:00
Edgar Chen 8cabeedc83 Bug 1568950 - Part 3: Get rid of using PromiseUtils.jsm in browser_use_counters.js; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D41512

--HG--
extra : moz-landing-system : lando
2019-08-19 20:23:01 +00:00
Edgar Chen da423b7334 Bug 1568950 - Part 1: Record use counters in Document::Destroy, instead of in ~Document; r=smaug
Recording use counters in ~Document doesn't work as expected for some cases, for instance,
user closes tab right after using them:
- In opt build, Document destructor isn't even reached given that we just kill the process
  without doing cleanup;
- In debug build, we reach the recording code, but it doesn't report use counters successfully
  due to it is unable to send the IPC message.

Document::Destroy is a better place that happens earlier and gives us more time to report the use counters.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 12:59:56 +00:00
Barret Rennie d8feee727d Bug 1510569 - Use nsIPrincipal and nsIContentSecurityPolicy in WebProgressLocationChangeData directly r=nika
Now that there is an {IPDL}ParamTraits implementation for nsIPrincipal* and
nsIContentSecurityPolicy*, we need not manually transform it to/form a
PrincipalInfo/CSPInfo ourselves.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 18:26:08 +00:00
Barret Rennie 015c35ed0d Bug 1510569 - Add nsIWebProgressListener2 to BrowserChild's interface map r=Ehsan
The members of nsIWebProgressListener2 were added to BrowserChild (then
TabChild) in commit 1028814583232487b52b9c20d47e3b38dc1c288a, but the interface
was never added to the interface map.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 18:25:11 +00:00
Barret Rennie 52899c1e0d Bug 1510569 - Port onSecurityChange from WebProgressChild.jsm to C++; remove WebProgressChild r=Ehsan,ochameau
This is the last message that WebProgressChild was sending to the
RemoteWebProgress in the parent process, so we can remove the module entirely.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 18:25:04 +00:00
Andrew McCreight 0d718ad91f Bug 1575343, part 3 - Avoid copies in workers and service workers when getting calling location. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D42729

--HG--
extra : moz-landing-system : lando
2019-08-21 14:25:53 +00:00
Andrew McCreight ee73cb534e Bug 1575343, part 2 - Avoid string copies when getting calling location in nsCSPContext. r=smaug
This code grabs the URI, then tries to overwrite it with information
from GetCallingLocation, then possibly overwrites it again with the
original information, then converts the string.

My patch reorders things so that we try GetCallingLocation() first, so
we only set the values once. In the case where GetCallingLocation()
succeeds it avoids a string copy from 8 to 16 bit.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 22:53:53 +00:00
Andrew McCreight 62bd52a17f Bug 1575343, part 1 - Avoid a gratuitous string copy by calling the nsAString overload of GetCallingLocation. r=smaug
The nsAString overload of GetCallingLocation directly converts the
original source file name string into an nsAString. A number of
callers that want the source file name in an nsAString are calling the
nsACString overload of GetCallingLocation, then calling
NS_ConvertUTF8toUTF16. This results in an extra intermediate copy of
the original string data.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 22:53:49 +00:00
Kristen Wright dacc355ec3 Bug 1572505 - Convert network.dns.disablePrefetchFromHTTPS to static pref. r=smaug,njn
Converts network.dns.disablePrefetchFromHTTPS to a static pref. Though the original VarCache pref default to `false`, it looks like the intended value is `true`. (see comment #0 in bug 1572505)

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

--HG--
extra : moz-landing-system : lando
2019-08-21 10:11:04 +00:00
Ryan Alderete 4b595ec1a8 Bug 1570158 - Add proxy information to candidates table in about:webrtc r=bwc,baku
This adds a field to about:webrtc which indicates whether an associated
candidate is behind a proxy or not.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 10:04:45 +00:00
Mirko Brodesser 69a2fc5f69 Bug 1575549: revert `!MayWrap()` check which was unintentionally added in Bug 1574912. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D42844

--HG--
extra : moz-landing-system : lando
2019-08-21 13:57:24 +00:00
Thomas Nguyen cf20303f06 Bug 1528697 - Remove ReferrerPolicy.h and add utils to ReferrerInfo r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D41956

--HG--
extra : moz-landing-system : lando
2019-08-21 12:09:06 +00:00
Thomas Nguyen bbd6f51a56 Bug 1528697 - Add cenum referrerpolicy in ReferrerInfo.idl r=ckerschb,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D41955

--HG--
extra : moz-landing-system : lando
2019-08-21 13:28:23 +00:00
Thomas Nguyen 32ab8293ff Bug 1528697 - Expose ReferrerPolicy.webidl and use referrerpolicy enum r=smaug
ReferrerPolicy gets tossed back and forth as a uint32_t and
ReferrerPolicy enum in header file. Expose ReferrerPolicyValues from
webidl file and use consistently in native code.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 13:24:45 +00:00
Frédéric Wang 7a6019b9e2 Bug 1574750 - Remove support for MathML length values thinmathspace, mediummathspace, thickmathspace, etc. r=emilio
See https://github.com/mathml-refresh/mathml/issues/75
and https://groups.google.com/forum/#!topic/mozilla.dev.platform/yEMdIOo4i-0

This commit introduces a new preference option
mathml.mathspace_names.disabled to disable *mathspace names for MathML lengths.
For now, these are only disabled in Nightly builds.

* test_bug553917.html is updated to check that these values now cause an
  error message to be logged into the console when mathsize names are used
  and the feature disabled.
* mathml-negativespace-ref.html and positive-namedspace.html verify support for
  mathspace names, so force running them with the support enabled.
* The reference files for mo-lspace-rspace-2.html, mo-lspace-rspace-3.html,
  mo-lspace-rspace.html, op-dict-8.html and op-dict-9.html use explicit
  lspace/rspace attributes corresponding to the one read from the operator
  dictionary. Instead of running them with mathspace names enabled, use the
  equivalent em values from core
  https://mathml-refresh.github.io/mathml-core/#operator-dictionary
  See https://github.com/mathml-refresh/mathml/issues/75#issuecomment-523016332
* Force WPT tests
  mathml/presentation-markup/fractions/frac-linethickness-002.html and
  mathml/relations/css-styling/lengths-2.html to be run with the features
  disabled and remove corresponding failure expectation.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 12:56:30 +00:00
Mirko Brodesser f1c86aba93 Bug 1575218: part 3) Remove duplicated debug logging. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D42651

--HG--
extra : moz-landing-system : lando
2019-08-21 10:34:13 +00:00
Mirko Brodesser 6eb342b1ac Bug 1575218: part 2) Factor out `nsPlainTextSerializer`'s members related to current line content. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D42650

--HG--
extra : moz-landing-system : lando
2019-08-21 10:32:29 +00:00
Mirko Brodesser cdf0b8f202 Bug 1575218: part 1) Factor out `nsPlainTextSerializer`'s members to `Settings` struct. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D42649

--HG--
extra : moz-landing-system : lando
2019-08-21 10:31:31 +00:00
Sylvestre Ledru 7759b614e2 Bug 1575249 - Ride along: remove +x permissions on source files r=Ehsan
Depends on D42672

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

--HG--
extra : moz-landing-system : lando
2019-08-21 09:57:03 +00:00
Daniel Varga ae8445aebc Merge mozilla-central to autoland. On a CLOSED TREE 2019-08-21 13:06:00 +03:00
Daniel Varga 597a69c70a Merge mozilla-inbound to mozilla-central. a=merge 2019-08-21 12:52:49 +03:00
Mihai Alexandru Michis 248b072642 Merge mozilla-central to mozilla-inbound. 2019-08-21 06:51:22 +03:00
Mihai Alexandru Michis fea3565134 Merge inbound to mozilla-central. 2019-08-21 01:00:06 +03:00
Simon Giesecke 2772860a85 Bug 1168606 - Added missing assignment of Exists result to rv. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D41191

--HG--
extra : amend_source : 6a9760ea06c66910c9c66875ff69c827d75336cb
2019-08-21 09:27:46 +02:00
Simon Giesecke ffe8213b8d Bug 1168606 - Removed unused methods in IDBKeyRange. r=ttung,asuth
The functionality has been moved to DatabaseOperationBase::BindKeyRangeToStatement
resp. DatabaseOperationBase::GetBindingClauseForKeyRange as part of Bug 994190.

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

--HG--
extra : amend_source : 2c58011d334a35e808e93c1876080db5f83ee659
2019-08-21 09:27:31 +02:00
Simon Giesecke 603ae52908 Bug 1168606 - Reduce code duplication for different cursor directions. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D40957

--HG--
extra : amend_source : 6be8c103a4deec383ac2d4cb22e9ad67f3c74e4d
2019-08-21 09:27:59 +02:00
Simon Giesecke 542ab16b7c Bug 1168606 - Fixed wrong method name in log message. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D40953

--HG--
extra : amend_source : 0e3ff248e6585713193bfac7a29ff607c38a6e82
2019-08-21 09:27:20 +02:00
Alastor Wu 2e47becfef Bug 1571908 - part6 : add debug logs. r=heycam
Add debug logs to show which mode we're using to adjust cue's position.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 07:10:27 +00:00
Alastor Wu b43ac32ce9 Bug 1571908 - part4 : remove redudant function. r=heycam
We have already had a exactly same function, so can remove a redundant one.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 07:10:26 +00:00
Alastor Wu 139cf6cc13 Bug 1571908 - part3 : optimize the result of adjusting position for cues with 'snapToLines=false'. r=heycam
When adjusting cues with `snapToLines=false`, first we would generate an array with all different axises which we would use to move cue on the specific direction.

However, for the different writing directions, we should have different priority for the moving directions.
For example, if the wriring direction is `horizontal`, which means cues will grow from the top to the bottom, then moving cues along the `y` axis should be more important than moving cues along the `x` axis, and vice versa for those cues growing from the left to right, or from the right to the left.

After decided the moving direction, then we have to decide the moving offset. Now we use line box's Bsize as a basic moving unit.

Moving cues, however, by such as large distance as a time would cause too many redudant space between cue boxes, which doesn't provide a good enough visual arrangement result. Therefore, we divide the Bsize by a factor, which can control the granularity of the moving unit and can still preverse a reasonable space between boxes. That can provide way better visual result than the one we had used before, and still has certain good performance comparing with moving 1px at a time.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 07:10:26 +00:00
Alastor Wu f5fee479ba Bug 1571908 - part2 : return null if we can't place the cue box inside the video rendering area. r=heycam
When adjusting the position of the cue box, if we can't find a proper place to display the cue within the video rendering area, we should return `null` and not to show it on the screen.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 07:10:25 +00:00
Alastor Wu 80cb50a3a9 Bug 1571908 - part1 : use correct width and height to compute position percentage. r=heycam
When calculating position percentage, `top` should divide the height of the video rendering area, and `left` should divide the width of the video rendering area.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 07:10:31 +00:00
Ehsan Akhgari a9f1a2a5c2 Bug 1575335 - Avoid creating an extra copy of the file name URI when checking whether the currently running script is from a tracker; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D42706

--HG--
extra : moz-landing-system : lando
2019-08-20 20:58:57 +00:00
Kagami Sascha Rosylight 341ce1c24c Bug 1572155 - Make validationURL use baseURI r=marcosc
Differential Revision: https://phabricator.services.mozilla.com/D41047

--HG--
extra : moz-landing-system : lando
2019-08-20 03:45:58 +00:00
Alastor Wu 9bd4a96457 Bug 1568101 - part5 : implement encoding. r=jolin,jya
In order to encode video frame, we have to convert `webrtc::VideoFrame` to gecko's video data, and then send this YUV-based video data to the encoder.

The encoder won't return an encoded frame everytime when we call its `encode()`, so we have to wait until there are valid samples added to `mEncodedFrames`.

Then, convert the `MediaRawData` to `webrtc::EncodedImage` and provide an NAL entries list to indicate where the NALs are in the encoded bytes stream and how large they are. We would send those data back
to the consumer of the encoder via calling a callback function `OnEncodedImage()`.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 07:41:33 +00:00
Kris Maglione 467bd404f5 Bug 1561705: Part 2 - Use regular SpecialPowers actor for browser chrome tests. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D42179

--HG--
extra : rebase_source : 319e389d7c38d919b2c5d474aa8417f443f94fb4
extra : source : 080ff558e41aad0cf05ca896c7f98bf4c9a2e7e9
2019-08-14 16:14:02 -07:00
Kris Maglione 7467b1470b Bug 1561705: Part 1 - Add JSWindowActor.actorCreated callback. r=jdai
The JSWindowActor constructor is called before the actor is fully initialized,
which means it can't do things like send messages or access its content
window. This patch adds a new callback which can do those things immediately
after the actor is created.

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

--HG--
extra : rebase_source : ba17cacb00d8fc74f84c5d34f64addcc3e6d3f8b
extra : source : ac3da20c687971c412d1164f08b17e0cccc5fbd5
2019-08-14 16:13:13 -07:00
Emilio Cobos Álvarez 8a8e0391b0 Bug 1571517 - Don't bail out when serializing a range starting at the end of an element. r=mbrodesser
We have a range that starts at the end of a cell, and ends somewhere else.

We were bailing out recursively from the beginning, causing the serialization to
be the empty string rather than the actually selected text.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 11:20:16 +00:00
Narcis Beleuzu b8158bd25d Bug 1572560 - Disable browser_destroy_callbacks.js on MacOSX. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D42616

--HG--
extra : moz-landing-system : lando
2019-08-20 10:41:19 +00:00
Cosmin Sabou f0e2c16f12 Bug 1571583 - Disable leaking tests for frequent failures. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D42588

--HG--
extra : moz-landing-system : lando
2019-08-20 10:43:15 +00:00
Mirko Brodesser d465357990 Bug 1574912: part 4) Split `nsPlainTextSerializer::MaybeReplaceNbspsForOutput` out of `nsPlainTextSerializer::Output` method. r=hsivonen
In order to clarify what `Output` does.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 08:03:52 +00:00
Mirko Brodesser 0c4fd744e7 Bug 1574912: part 3) Remove unread `mStartedOutput` member. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D42521

--HG--
extra : moz-landing-system : lando
2019-08-20 08:03:43 +00:00
Mirko Brodesser 231ce6e93d Bug 1574912: part 2) Rename `nsPlainTextSerializer::IsInPre`, `IsHTMLBlock` and `IsElementBlock`. r=hsivonen
In order to clarify their purpose.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 08:05:21 +00:00
Mirko Brodesser c7bcfd69de Bug 1574912: part 1) Slightly simplify `nsPlainTextSerializer::AddToLine`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D42519

--HG--
extra : moz-landing-system : lando
2019-08-20 08:03:20 +00:00
Henri Sivonen 017b63b057 Bug 1574892 - Make a reused TextDecoder apply the original BOM policy. r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D42492

--HG--
extra : moz-landing-system : lando
2019-08-20 07:54:02 +00:00
Cosmin Sabou ce32d49397 Backed out changeset 165672f8816b (bug 1529591) for geolocation related test failures. 2019-08-20 03:43:02 +03:00
Bryce Seager van Dyk 6becef12e3 Bug 1571081 - Make MediaKeys correctly specify a NS_INTERFACE_MAP_ENTRY for nsISupports. r=mccr8
Bug 1522547 overlooked the need for specifying map entries for both nsISupports
and nsIDocumentActivity and only had the latter. This changeset adds the missing
nsISupports case.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 21:45:41 +00:00
longsonr f5f9ccf882 Bug 1572904 - refactor cycle collection code after DOMSVGAngle r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D42453

--HG--
extra : moz-landing-system : lando
2019-08-19 19:10:03 +00:00
Garvan Keeley 4f07263f06 Bug 1529591 - Check Mac system geo permission prior to showing request permission dialog. r=jdm
Differential Revision: https://phabricator.services.mozilla.com/D42540

--HG--
extra : moz-landing-system : lando
2019-08-19 20:42:17 +00:00
Ehsan Akhgari 05feeeb79b Bug 1572240 - Part 5: Use the principal-based version of the permission manager APIs in Gecko when checking the content blocking allow list; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D42206

--HG--
extra : moz-landing-system : lando
2019-08-19 14:38:45 +00:00
Ehsan Akhgari 575c480fc5 Bug 1572240 - Part 3: Introduce nsIHttpChannelInternal.contentBlockingAllowListPrincipal; r=michal
Differential Revision: https://phabricator.services.mozilla.com/D42204

--HG--
extra : moz-landing-system : lando
2019-08-19 19:38:50 +00:00
Ehsan Akhgari e06a6e7ca6 Bug 1572240 - Part 2: Introduce nsIBrowser.contentBlockingAllowListPrincipal; r=baku
This patch also includes some spot fixes for the storage principal
support on the XUL browser element.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 14:38:34 +00:00
Ehsan Akhgari 7b2ff7275b Bug 1572240 - Part 1: Introduce Document.contentBlockingAllowListPrincipal; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D42202

--HG--
extra : moz-landing-system : lando
2019-08-19 14:38:32 +00:00
Oana Pop Rus a69647eae6 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-08-20 01:12:17 +03:00
Oana Pop Rus be1b48a1bc Merge inbound to mozilla-central. a=merge 2019-08-20 00:56:07 +03:00
Abdoulaye O. Ly 55e51c578b Bug 1562990 - Remove 'audioMuted' and 'audioVolume' properties from nsIDOMWindowUtils. r=NeilDeakin,alwu,farre
While working on porting the (audio-playback indicators) bug 1562990 to fission, we saw the potential to delete some methods in nsIDOMWindowUtils because they were not used anymore in our codebase except in a couple of tests files. So now, we should only mute/unmute or change the volume in the parent process. As such, interfaces are added in SpecialPowers to change media muted or volume state from content processes.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 21:17:21 +00:00
Abdoulaye O. Ly 5ce82c5c12 Bug 1562990 - [Fission] Make AudioPlayback work with JSWindowActor. r=NeilDeakin,farre
Differential Revision: https://phabricator.services.mozilla.com/D36648

--HG--
extra : moz-landing-system : lando
2019-08-19 21:17:21 +00:00
Cosmin Sabou f6584dfc70 Backed out changeset 2bd128c84b4e (bug 1574567) for causing assertion failures on ServiceWorkerManagerService.cpp. 2019-08-19 22:00:28 +03:00
Mike Hommey 0058f2a284 Bug 1531309 - Don't use __PRETTY_FUNCTION__ or __FUNCTION__ as format strings. r=sylvestre
__PRETTY_FUNCTION__ and __FUNCTION__ are not guaranteed to be a string
literal, and only string literals should be used as format strings. GCC
9 complains about this with -Werror=format-security.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 07:49:00 +00:00
Mark Banner c1ab51f11c Bug 1574915 - Fix useless try-catch issues in dom/. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D42509

--HG--
extra : moz-landing-system : lando
2019-08-19 17:02:54 +00:00
Frédéric Wang 675225dd5a Bug 1574749 - Remove support for nonzero unitless lengths. r=emilio
See https://github.com/mathml-refresh/mathml/issues/24
and https://groups.google.com/forum/#!topic/mozilla.dev.platform/-yV6wb3klSA

This commit introduces a new preference option
mathml.nonzero_unitless_lengths.disabled to disable MathML nonzero unitless
values like "5" for 500%. MathML nonzero unitless are now disabled by default
but it could be easily enabled again later if we decide otherwise.

* test_bug553917.html is updated to check that these values now cause an error
  message to be logged into the console rather than a deprecated warning
  when nonzero unitless lengths are disabled.
  Additionally, the test checking invalid double dots "2..0" is updated not
  to use unitless syntax.
* The old test 355548-3.xml checks support for mathsize names and also uses
  several features that are going to be deprecated. So it is just run with
  the proper preference adjustment.
* mfrac-linethickness-2.xhtml and number-size-1.xhtml check support for
  unitless lengths so they are now run with that support enabled.
* WPT tests frac-linethickness-001.html and lengths-1.html are executed with
  the some MathML features disabled in order to make them pass.
  We get more assertion passing for the "Legacy numbers" test of
  lengths-2.html ; however there are still some issues to address
  (see bug 1574751).

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

--HG--
extra : moz-landing-system : lando
2019-08-19 17:10:58 +00:00
Frédéric Wang 526e469d17 Bug 1548527 - Remove values "small", "normal", "big" values of the mathsize attribute. r=emilio
See https://github.com/mathml-refresh/mathml/issues/7
    and https://groups.google.com/forum/#!topic/mozilla.dev.platform/kyB34PjYXek

    This commit introduces a new preference option
    mathml.mathsize_names.disabled to disable mathsize keyword values. For
    now, these are only disabled in Nightly builds.

    * test_bug553917.html is updated to check that these values now cause an
      error message to be logged into the console when mathsize names are used
      and the feature disabled.
    * The old test 355548-3.xml checks support for mathsize names and also uses
      several features that are going to be deprecated. So it is just run with
      the proper preference adjustment.
    * mathml/relations/css-styling/mathsize-attribute-legacy-values.html passes
      after this change so the test is run with the mathsize names disabled too
      and the failure expectation is removed.
    * mathml/relations/css-styling/mathsize-attribute-css-keywords.html is added
      to check that CSS keywords won't be supported when we switch to using the
      CSS parser in the future. This test passes now when the "small" keyword
      is not accepted so it is run with the mathsize names disabled too.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 18:28:03 +00:00
Ciure Andrei 9a123fb597 Backed out changeset 81156ff3f4fa (bug 1571656) for causing browser_PageActions.js and test_insertTree_fixupOrSkipInvalidEntries.js to perma fail CLOSED TREE 2019-08-19 13:00:44 +03:00
Daniel Varga 3abf160240 Bug 1210133 - test_filehandle_getFile.html on all platforms - FileHandle will be removed from IDB. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D42431

--HG--
extra : moz-landing-system : lando
2019-08-19 09:01:21 +00:00
Moritz Birghan 240771fa29 Bug 1571656 - Use Assert.jsm numeric comparison functions in tests r=mixedpuppy,MattN
Differential Revision: https://phabricator.services.mozilla.com/D40614

--HG--
extra : moz-landing-system : lando
2019-08-19 07:17:12 +00:00
Masayuki Nakano cf0604278c Bug 1564639 - Make `BrowserParent` use `nsPresContext::GetRootWidget()` when handling IME related messages r=hsivonen
When contents notify IME or requests something to IME, they need to use
an `nsIWidget` instance which may have focus if active, and handles
native keyboard/IME events since that knows correct native IME context.

Currently, such widget exactly matches with the result of
`nsPresContext::GetRootWidget()`.  However, this is unclear for most developers.
Therefore, this patch creates a wrapper method of it named
`nsPresContext::GetTextInputHandlingWidget()`.  Then, also adds
`BrowserParent::GetTextInputHandlingWidget()` wraps it.  Finally, makes
`IMEStateManager` call `GetTextInputHandlingWidget()` of them.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 08:27:32 +00:00
Mirko Brodesser bf3decfac6 Bug 1574479: clarify relations of `OutputFormatted`, `OutputFormatFlowed`, `OutputPreformatted` in nsIDocumentEncoder.idl. r=hsivonen
Deduced from the code and assertions in it.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 07:57:07 +00:00
Mirko Brodesser 5e6d66382d Bug 1574463: remove unused `nsIDocumentEncoder::OutputNonTextContentAsPlaceholder`. r=hsivonen
Doesn't seem to be used by comm-central/Thunderbird.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 07:56:05 +00:00
Mirko Brodesser 881f30fe67 Bug 1574458: remove unused `nsIDocumentEncoder::OutputDontRemoveLineEndingSpaces` functionality. r=hsivonen
Doesn't event seem to be used by comm-central/Thunderbird.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 07:55:22 +00:00
Mark Banner b1970e6a2f Bug 1571466 - Cleanup unnecessary ESLint global definitions. r=mossop
These are raised as redeclares or unused variables by ESLint 6.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 07:11:56 +00:00
Emilio Cobos Álvarez 0062466104 Bug 1562425 - Ensure to bind ShadowRoot before explicit kids, so that slot directionality is up-to-date. r=smaug
When we're slotted, we inherit our directionality from the slot element. But
when binding an ltr subtree into an rtl subtree, we used to bind the explicit
kids first, then the shadow root kids (which includes the slots to which
explicit kids may have been assigned).

So the explicit kids looked at the slot directionality before it was recomputed,
and thus ended up with ltr rather than rtl directionality.

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

--HG--
extra : moz-landing-system : lando
2019-08-17 20:26:56 +00:00
Daisuke Akatsuka 461170519e Bug 1571650: Add test for AnonymousContent::SetStyle(). r=smaug
In this patch, creates a test to confirm whether the AnonymousContent.setStyle()
works correctly.

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

--HG--
extra : moz-landing-system : lando
2019-08-17 18:47:28 +00:00
Daisuke Akatsuka c6a47f400c Bug 1571650: Add an API to change the style of AnonymousContent from devtools. r=smaug
DevTools is using AnonymousContent to highlight the element inspecting.
And now, the z-order of highlighting became to be importance. In case of normal
element, we can change the z-order by z-index or order of DOM. However,
AnonymousContent does not have the such the way to change the z-order from
DevTools side. This patch introduces an API to change the style, and makes the
z-order changeable by the z-index.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 07:38:39 +00:00
Olli Pettay 26c09ef05a Bug 1574223, make touchstart/move passive by default also when using event handlers, not only event listeners, r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D42235

--HG--
extra : moz-landing-system : lando
2019-08-16 15:18:46 +00:00
Perry Jiang 538903d0db Bug 1574457 - Remove unused variable in optimized Beta/Release builds in ServiceWorkerPrivate.cpp r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D42380

--HG--
extra : moz-landing-system : lando
2019-08-17 01:14:08 +00:00
Andrew McCreight c749e75350 Bug 1574627 - Fix some "disbaled" typos. DONTBUILD r=njn
Differential Revision: https://phabricator.services.mozilla.com/D42376

--HG--
extra : moz-landing-system : lando
2019-08-16 23:23:05 +00:00
Razvan Maries 595de881b0 Backed out 2 changesets (bug 1562264) for causing Android perma fails. CLOSED TREE
Backed out changeset b66eec7d2e55 (bug 1562264)
Backed out changeset 445eadfd8ce3 (bug 1562264)
2019-08-17 02:24:40 +03:00
Hiroyuki Ikezoe 0da3f383c0 Bug 1573648 - Use ToFloatAllowTrailingChars for parsing scale values in meta viewport tag. r=botond
From the spec <https://drafts.csswg.org/css-device-adapt/#parsing-algorithm>

  If a prefix of property-value can be converted to a number using strtod,
  the value will be that number. The remainder of the string is ignored.

Note that nsTSubStrubg::ToInteger() allows trailing characters as it is so that
we don't need to modify the width/height parser for meta viewport.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 22:37:42 +00:00
Brian Hackett 091f2992d2 Bug 1573938 - Never collect wrapper JSObjects when recording/replaying, r=mccr8.
Differential Revision: https://phabricator.services.mozilla.com/D42011

--HG--
extra : moz-landing-system : lando
2019-08-16 20:51:12 +00:00
Kashav Madan f74ee91093 Bug 1562264 - Update skip-if annotations, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D41763

--HG--
extra : moz-landing-system : lando
2019-08-16 17:31:52 +00:00
Kashav Madan 05d450499e Bug 1562264 - Propagate remote/fission flags from parent to child for content window.open() calls, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D40836

--HG--
extra : moz-landing-system : lando
2019-08-16 17:31:38 +00:00
Andrew McCreight c226e7e747 Bug 1574567 - Enable various tests for Fission that don't actually crash with ServiceWorkerManagerService signatures. r=kmag
browser_antitracking_subiframes.js also seems to pass.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 19:45:02 +00:00
Abdoulaye O. Ly 6088cf63bf 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-08-15 19:28:13 +00:00
Abdoulaye O. Ly cbbacc1e6a 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-08-15 19:51:42 +00:00
Abdoulaye O. Ly c671c61e37 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-08-15 19:28:16 +00:00
Alastor Wu 9fd259ee61 Bug 1568101 - part1 : implement a basic interface for WebrtcMediaDataEncoderCodec. r=jolin
Implement a basic interface for `WebrtcMediaDataEncoder`, which will only be used on OSX for encoding h264 only.

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

--HG--
extra : moz-landing-system : lando
2019-08-09 20:58:06 +00:00
John Lin 81f1bc6269 Bug 1571127 - p2: enhance unit test. r=jya
- animating input
- minor code cleanup

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

--HG--
extra : moz-landing-system : lando
2019-08-19 16:50:19 +00:00
John Lin 0951fc6fdd Bug 1571127 - p1: retain input image until CVPixelBuffer is released. r=jya
Input could be released during encoding if not retained.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 12:27:12 +00:00
Thomas Nguyen fe6a6a4285 Bug 1567940 Apply ReferrerInfo to Download and fix Go to Download Page button r=Gijs,dimi
In the old way, if referrer is ommited we will not be able to go to
download page. In that case, we should use originalReferrer in
ReferrerInfo object

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

--HG--
extra : moz-landing-system : lando
2019-08-20 16:22:44 +00:00
Botond Ballo 629b3580ff Bug 1565525 - Modify MatrixMessage to carry a Maybe<Matrix>, so that a transform can be cleared by sending Nothing. r=hsivonen
Depends on D42564

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

--HG--
extra : moz-landing-system : lando
2019-08-20 06:37:05 +00:00
Perry Jiang 4d1b5b9a5c Bug 1552945 - Start Service Workers in the parent process with parent-intercept. r=asuth,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D32492

--HG--
extra : moz-landing-system : lando
2019-08-20 15:21:11 +00:00
Perry Jiang cbf68e6857 Bug 1552945 - Merge ServiceWorkerRegistrationFronts and ServiceWorker WorkerTargetFronts on their IDs. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D31905

--HG--
extra : moz-landing-system : lando
2019-08-20 15:20:54 +00:00
Perry Jiang a7ce0c3b9e Bug 1552945 - Allow a WorkerPrivate's creator to set its ID. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D31903

--HG--
extra : moz-landing-system : lando
2019-08-20 15:20:40 +00:00
Sebastian Streich db893cf0d7 Bug 1561056 - Pass CSP on Link-drop r=ckerschb,Gijs,farre
***
Fix linux build

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

--HG--
extra : moz-landing-system : lando
2019-08-20 12:43:02 +00:00
Belén Albeza 5ac210ec83 Bug 1573786 - ManifestProcessor should throw error when parsing invalid JSON r=marcosc
Differential Revision: https://phabricator.services.mozilla.com/D42627

--HG--
extra : moz-landing-system : lando
2019-08-20 13:30:12 +00:00
Emilio Cobos Álvarez a03875ef63 Bug 1568536 - Simplify some style system APIs. r=heycam
Return a raw pointer instead of a strong reference to a ComputedStyle, and
handle the case of the style not being present by returning null rather than
requiring an extra function to check it and crashing if the precondition is not
met.

Also, name them so that it's clear they just return outdated styles and don't
make any extra effort.

This is just cleanup that makes the next patch easier / more obvious.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 05:59:03 +00:00
Dan Minor e6817b0e4d Bug 1573541 - Fix assertion failure in PannerNode.h; r=karlt
This removes the call to SetThreeDPointParameter which is no longer necessary
now that we're using AudioParams for position and orientation. Doing the
conversion can cause an assertion failure when the AudioParams have a scheduled
future value.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 21:17:36 +00:00
Emilio Cobos Álvarez 919bb7ded3 Bug 1571530 - Cleanup slightly SheetComplete, and use the right boolean to notify. r=heycam
This is mostly straight-forward cleanup, but there's a behavior change which
was an oversight from bug 1386840, the regular mObservers stuff didn't pass the
right thing (was passing only mWasAlternate rather than whether it was
deferred).

I think that as a result, only in XML documents (since nsXMLContentSink is the
only thing that adds itself as a global CSS loader observer that ever looks at
this boolean), we may end up breaking this assert:

https://searchfox.org/mozilla-central/rev/9ae20497229225cb3fa729a787791f424ff8087b/dom/base/nsContentSink.cpp#183

(If there are any sheets with non-matching media queries and such).

But I couldn't find a test-case that broke it (tried SVG / XHTML), and in other
documents like pure XML you cannot specify a media query...

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:16 +00:00
Emilio Cobos Álvarez 6779b66f01 Bug 1571530 - Remove various bool arguments in sheet loader APIs. r=heycam
They're bad, specially if they do vastly different thing in overloaded
functions, like aUseSystemPrincipal and aIsPreload. :)

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:05 +00:00
Emilio Cobos Álvarez 2353359865 Bug 1571530 - Make Loader APIs return a Result. r=heycam
On the fence on this one, but I do think it's nicer.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:03 +00:00
Daniel Varga 952e8654d9 Backed out changeset 983ff93a11ad (bug 1505412) for debug-test-verify-e10s failure at dom/security/test/csp/test_bug1505412.html. On a CLOSED TREE 2019-08-16 13:19:32 +03:00
Sebastian Streich 645ecf6d90 Bug 1505412 - Skip CSP-Nonce check for CSP-Ro+Redirected Channels r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D36916

--HG--
extra : moz-landing-system : lando
2019-08-15 15:51:33 +00:00
Sylvestre Ledru 37db1730c6 Bug 1573833 - Add missing & and parentheses r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D41957

--HG--
extra : moz-landing-system : lando
2019-08-16 08:11:39 +00:00
Daniel Varga 95ce40b8d4 Backed out changeset a7ac9f64f6ea (bug 1561056) for build bustage at widget/gtk/nsDragService. On a CLOSED TREE 2019-08-16 09:30:39 +03:00
Frédéric Wang 3aec893f88 Bug 1574087. Make MathML length, dir, display, displaystyle and mathvariant case insensitive. r=emilio
See https://github.com/mathml-refresh/mathml/issues/22

* mathml/relations/css-styling/attribute-mapping-001.html (length, dir)
* mathml/relations/html5-tree/display-1.html (display)
* mathml/relations/css-styling/displaystyle-1.html (displaystyle)
* mathml/relations/css-styling/displaystyle-2.html (displaystyle)
* mathml/relations/css-styling/mathvariant-case-sensitivity.html (mathvariant)

layout/reftests/bugs/355548-3.xml has been updated now that units are case
insensitive.

Note:
* mathml/relations/css-styling/attribute-mapping-002.html also checks
  case insensitiveness of mathvariant and displaystyle but for now we map
  these attributes to internal -moz-* CSS properties.
* mathcolor and mathbackground values are already case insensitive, this
  is verified by mathml/relations/css-styling/attribute-mapping-001.html

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

--HG--
extra : moz-landing-system : lando
2019-08-15 18:44:36 +00:00
Sebastian Streich c051155f99 Bug 1561056 - Pass CSP on Link-drop r=ckerschb,Gijs,farre
Differential Revision: https://phabricator.services.mozilla.com/D37563

--HG--
extra : moz-landing-system : lando
2019-08-15 18:44:00 +00:00
Marcos Cáceres 26bc3a959f Bug 1559412 - Support web app manifest ImageResource.purpose r=baku
implementation of purpose member

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

--HG--
extra : moz-landing-system : lando
2019-08-15 12:55:35 +00:00
Csoregi Natalia 3acf519302 Merge mozilla-central to autoland. CLOSED TREE
--HG--
rename : devtools/client/debugger/src/actions/tests/helpers/threadFront.js => devtools/client/debugger/src/actions/tests/helpers/mockCommandClient.js
2019-08-16 07:03:46 +03:00
Csoregi Natalia 838811e23f Merge inbound to mozilla-central. a=merge 2019-08-16 06:59:41 +03:00
Matt Woodrow 270a0d1434 Bug 1570147 - Add test for drawSnapshot. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D41828

--HG--
extra : moz-landing-system : lando
2019-08-16 03:13:21 +00:00
Matt Woodrow 7bf99e1fc3 Bug 1570147 - Modify existing drawWindow tests to take a callback for the inner draw function. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D41827

--HG--
extra : moz-landing-system : lando
2019-08-16 03:13:04 +00:00
Kagami Sascha Rosylight 25862fe2eb Bug 1572349 - Add Document::ResolveWithBaseURI. r=bzbarsky
Summary: This adds a helper method that enables simpler code in D41047 and D36714.

Reviewers: bzbarsky, marcosc

Reviewed By: bzbarsky

Bug #: 1572349

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

--HG--
extra : histedit_source : 9a8904a71bfeda594a5e3900c39e096e90dc83e1
2019-08-16 03:38:31 +03:00
Nicholas Nethercote b634df9005 Bug 1573720 - Convert dom.storage.default.quota to a static pref. r=mccr8
This one was VarCached to two different variables in two different modules.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 05:31:38 +00:00
Nicholas Nethercote 048727ff15 Bug 1573720 - Convert canvas.image.cache.limit to a static pref. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D41919

--HG--
extra : moz-landing-system : lando
2019-08-15 05:31:24 +00:00
Nicholas Nethercote e3f4932e1c Bug 1573720 - Convert dom.mapped_arraybuffer.enabled to a static pref. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D41918

--HG--
extra : moz-landing-system : lando
2019-08-15 05:31:10 +00:00
Nicholas Nethercote 735faa5294 Bug 1573720 - Convert intl.charset.fallback.tld to a static pref. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D41917

--HG--
extra : moz-landing-system : lando
2019-08-15 05:30:56 +00:00
Boris Zbarsky bb28e110f5 Bug 1573589. Be more explicit about propagating the "current runnable's global" through nested event loops in workers. r=baku
Some worker debugger runnables (the ones that want to evaluate script against a
debugger sandbox) depend on the JSContext being in a particular Realm before
they run, but don't really store which Realm that should be.  Instead of
propagating that state via the current Realm of the JSContext across nested
event loops, we want to propagate it explicitly.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 12:51:58 +00:00
Emilio Cobos Álvarez d47ef2a1b7 Bug 1572526 - Move a bunch of code that's only called by HTMLLinkElement out of Link.cpp. r=bzbarsky
Seems like a more logical place for it to live.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 14:10:08 +00:00
Emilio Cobos Álvarez 66c0a4fa9b Bug 1572246 - Make <link> always unvisited. r=bzbarsky
Intent email: https://groups.google.com/d/msg/mozilla.dev.platform/1NP6oJzK6zg/ftAz_TajAAAJ

For now do the obvious check rather than bigger refactorings, since we keep them
matching :link or not depending on whether they have an href.

I'll file an HTML spec issue about not making them traversable, and a MathML
issue about the craziness that it is that almost all MathML elements can be
links.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 14:10:07 +00:00
Edgar Chen 2f35a00ad6 Bug 1573842 - Don't report use counters for resource document; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D41976

--HG--
extra : moz-landing-system : lando
2019-08-15 13:34:57 +00:00
Markus Stange 0d99ec9a50 Bug 1573668 - Use CFTypeRefPtr for managing the IOSurfaceRef in MacIOSurface. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D41843

--HG--
extra : moz-landing-system : lando
2019-08-14 14:53:45 +00:00
Markus Stange c31b8d8a28 Bug 1573668 - Use the real IOSurfaceRef type in MacIOSurface. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D41841

--HG--
extra : moz-landing-system : lando
2019-08-14 14:50:25 +00:00
Ehsan Akhgari ad211ea815 Bug 1574019 follow-up: Actually fix the ESLint error CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com//D42215

--HG--
extra : amend_source : e6e36dd258d246b0327110300407b279edf74020
2019-08-16 01:07:36 +03:00
Kris Maglione c28dd3bf97 Bug 1574071: Handle DocAddSizeOf after unlink. r=mccr8
Under some odd circumstances, the devtools heap snapshot code tries to record
a Document after the cycle collector has unlinked it, which leads to a crash
when trying to add the size of the (now null) CSS loader.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 21:43:55 +00:00
Timothy Nikkel de5bd6d66a Bug 1438996. Don't construct a unneeded temporary range object in RangeUtils::CompareNodeToRange. r=masayuki
nsContentUtils::ComparePoints just immediately deconstructs the range boundary into container and offset and calls a version of nsContentUtils::ComparePoints that takes containers/offsets instead of range boundaries.

This also avoids a warning in the RangeBoundary constructor.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 21:13:54 +00:00
Ehsan Akhgari 7365fc4214 Bug 1574019 follow-up: Fix the ESLint error
Differential Revision: https://phabricator.services.mozilla.com/D42211

--HG--
extra : moz-landing-system : lando
2019-08-15 21:33:40 +00:00
Hiroyuki Ikezoe 5e47b0f499 Bug 1574061 - Use the target window object for waitForAnimationFrames in observeStylingInTargetWindow. r=boris
Also waitForAnimationReadyToRestyle should use owner window object instead of
global `window`.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 21:20:45 +00:00
Ehsan Akhgari 056e6a7d30 Bug 1574019 - Enable test_notification_crossorigin_iframe.html under Fission; r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D42060

--HG--
extra : moz-landing-system : lando
2019-08-15 20:53:06 +00:00
Gabriele Svelto 14db2c37b8 Bug 1571711 - Factorize crash handling out of the various process IPC classes r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D41657

--HG--
extra : moz-landing-system : lando
2019-08-15 12:06:51 +00:00
Oana Pop Rus 8f85c499fe Backed out 3 changesets (bug 1559244) for browser chrome failure in browser_background_tab_crash.js on a CLOSED TREE
Backed out changeset 1ce7d9bbe7a1 (bug 1559244)
Backed out changeset dced8cea7b23 (bug 1559244)
Backed out changeset dabda4e90259 (bug 1559244)
2019-08-15 22:21:26 +03:00
Kris Maglione be074abe5e Bug 1571502: Follow-up: Remove straggler shutdown leak annotations after rebase.
Differential Revision: https://phabricator.services.mozilla.com/D42021

--HG--
extra : moz-landing-system : lando
2019-08-15 18:06:18 +00:00
Abdoulaye O. Ly 463d67ede1 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-08-15 17:18:47 +00:00
Abdoulaye O. Ly 8aec5ed540 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-08-15 17:16:26 +00:00
Abdoulaye O. Ly e029a89c66 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-08-15 17:01:45 +00:00
Mihai Alexandru Michis 356b38ead4 Backed out changeset 1dccb45167d3 (bug 1574087) for causing reftest failures in 355548-3.xml 2019-08-15 15:29:09 +03:00
Brindusan Cristian d674f265db Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
rename : layout/reftests/mathml/dir-6-ref.html => testing/web-platform/tests/mathml/presentation-markup/direction/direction-006-ref.html
2019-08-15 12:50:36 +03:00
Brindusan Cristian 3a61fb322f Merge inbound to mozilla-central. a=merge 2019-08-15 12:45:55 +03:00
Bogdan Tara 745a1d73ea Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-08-15 01:06:23 +03:00
Jed Davis ee88930515 Bug 1479960 - Convert MemMapSnapshot to use frozen shared memory. r=kmag
Depends on D26745

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

--HG--
extra : moz-landing-system : lando
2019-08-14 22:48:40 +00:00
Jed Davis 47d68828f4 Bug 1479960 - Give SharedStringMap a magic number so that all zeroes isn't a valid instance. r=kmag
There was a strange bug when converting SharedStringMap to use shared
memory: on Android, some tests would fail because a pref wasn't set or
there was something wrong with an expected error message.  The root
cause was that mapping ashmem with MAP_PRIVATE results in all zeroes
(see bug 1525803), but that was read as a valid SharedStringMap with
length 0.

To prevent any possible future issues like that, this patch adds a
nonzero magic number to the header.  It fits into padding on 64-bit and
the cost of setting and checking it should be essentially free.

Depends on D26744

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

--HG--
extra : moz-landing-system : lando
2019-08-14 22:48:38 +00:00
Bogdan Tara f326b67e0e Backed out changeset c60ee628dd0e (bug 1571711) for RemoteSandboxBroker related bustages CLOSED TREE 2019-08-15 01:50:01 +03:00
Kristen Wright 7978cc1098 Bug 1573968 - Remove WheelTransaction::Prefs. r=njn
All of these prefs are already static prefs, so this removes the varcache pref definitions from WheelTransaction and replaces them with the existing static prefs.

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

--HG--
extra : moz-landing-system : lando
2019-08-14 22:18:59 +00:00
Ciure Andrei c8c4bf08bf Backed out 4 changesets (bug 1571650) for AddressSanitizer failures CLOSED TREE
Backed out changeset 9c93a75bc692 (bug 1571650)
Backed out changeset 9f62e449f9ca (bug 1571650)
Backed out changeset 48438a9d64f1 (bug 1571650)
Backed out changeset eaef1d403d31 (bug 1571650)
2019-08-14 18:51:36 +03:00
Frédéric Wang 673c1a7a72 Bug 1574087. Make MathML length, dir, display, displaystyle and mathvariant case insensitive. r=emilio
See https://github.com/mathml-refresh/mathml/issues/22

* mathml/relations/css-styling/attribute-mapping-001.html (length, dir)
* mathml/relations/html5-tree/display-1.html (display)
* mathml/relations/css-styling/displaystyle-1.html (displaystyle)
* mathml/relations/css-styling/displaystyle-2.html (displaystyle)
* mathml/relations/css-styling/mathvariant-case-sensitivity.html (mathvariant)

Note:
* mathml/relations/css-styling/attribute-mapping-002.html also checks
  case insensitiveness of mathvariant and displaystyle but for now we map
  these attributes to internal -moz-* CSS properties.
* mathcolor and mathbackground values are already case insensitive, this
  is verified by mathml/relations/css-styling/attribute-mapping-001.html

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

--HG--
extra : moz-landing-system : lando
2019-08-15 09:09:33 +00:00
Jon Coppeard c772fc6cda Bug 1573844 - Remove external references to js::Class r=mccr8
Depends on D41985

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

--HG--
extra : moz-landing-system : lando
2019-08-14 17:15:15 +00:00
Jon Coppeard 6d38179350 Bug 1573844 - Remove external references to js::Jsvalify and js::Valueify r=mccr8
These are now no-ops so can be removed.

Depends on D41983

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

--HG--
extra : moz-landing-system : lando
2019-08-14 17:24:59 +00:00
Jon Coppeard 66fc30ba53 Bug 1573844 - Remove js::Class definition and alias JSClass to it r=tcampbell,mccr8
JSClass contained void* members corresponding to the internal pointer members of js::Class. This stores the internal members in JSClass and removes js::Class.

This leaves js::Class aliased to JSClass while we remove references to it. I also aliased Jsvalify and Valueify into global scope temporarily to make this compile. These get removed in the following patches.

I had to remove a few functions which now don't compile with js::Class being the same type as JSClass.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 08:32:22 +00:00
Mihai Alexandru Michis ec00d5890e Backed out 4 changesets (bug 1570147) for causing failures in test_drawSnapshot.html
Backed out changeset b5d442a2f457 (bug 1570147)
Backed out changeset 7a24b9027519 (bug 1570147)
Backed out changeset 4d528be8bae4 (bug 1570147)
Backed out changeset 4b4feec0a4e2 (bug 1570147)

--HG--
extra : rebase_source : 853ca7b91ba6973f0ca02641a58773ca2b42d113
2019-08-15 11:25:58 +03:00
Jon Coppeard 81a8266309 Bug 1573419 - Fix assertion failure finalizing JSObjects during shutdown r=bzbarsky
The problem is that if there is a leak at shutdown we can end up calling ClearWrapper on a wrapper that has already been cleared by the JS engine. The patch just relaxes the assertion to allow this. I tested this on try with a bunch of retriggers and it seems to fix the problem.

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

--HG--
extra : moz-landing-system : lando
2019-08-15 08:29:26 +00:00
Tom Ritter 097aa52411 Bug 1573622 - Do not enforce eval() assertions if userchrome.css is enabled r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D41814

--HG--
extra : moz-landing-system : lando
2019-08-14 14:29:57 +00:00
Gabriele Svelto d888c0a6b5 Bug 1571711 - Factorize crash handling out of the various process IPC classes r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D41657

--HG--
extra : moz-landing-system : lando
2019-08-13 21:43:00 +00:00
Dorel Luca 73975f1d28 Backed out 22 changesets (bug 1231213) for Browser-chrome failures on /workers/remoteworkers/RemoteWorkerChild.cpp
Backed out changeset 7e09ad9ceea6 (bug 1231213)
Backed out changeset a275eb0b1a19 (bug 1231213)
Backed out changeset 906b80778539 (bug 1231213)
Backed out changeset 6a40ab6852cb (bug 1231213)
Backed out changeset 216591953f97 (bug 1231213)
Backed out changeset 1de357bc1921 (bug 1231213)
Backed out changeset 8e3fedf6502a (bug 1231213)
Backed out changeset 1b9a8b022fce (bug 1231213)
Backed out changeset 85df1959eb98 (bug 1231213)
Backed out changeset 666bf4260046 (bug 1231213)
Backed out changeset 0b03a19a6dc1 (bug 1231213)
Backed out changeset 11f010e6d6e7 (bug 1231213)
Backed out changeset 6ed55807374f (bug 1231213)
Backed out changeset 395062aef2ec (bug 1231213)
Backed out changeset bacf8499ba7b (bug 1231213)
Backed out changeset bf5d60c7a85a (bug 1231213)
Backed out changeset cd434b787ce6 (bug 1231213)
Backed out changeset ee4565104217 (bug 1231213)
Backed out changeset 581653ef33dd (bug 1231213)
Backed out changeset 2d5628a0e52d (bug 1231213)
Backed out changeset 3449c2eba4c6 (bug 1231213)
Backed out changeset ae221b628899 (bug 1231213)
2019-08-15 01:04:46 +03:00
Ehsan Akhgari a2c6ed251d Bug 1573236 - Part 2: Make the dom.storage_access.auto_grants.delayed work again with the new setup; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D41622

--HG--
extra : moz-landing-system : lando
2019-08-14 21:02:59 +00:00
Ehsan Akhgari 56e165b9ce Bug 1573236 - Part 1: Move the Storage Access API heuristics and telemetry from the front-end to Gecko; r=johannh,baku
This will allow these heuristics to be used on mobile.
This depends on GeckoView supporting a JavaScript module
at resource:///modules/BrowserUsageTelemetry.jsm with the
interface described in nsIBrowserUsage.idl.  Bug 1573238 has
been filed in order to implement this module on GeckoView.

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

--HG--
extra : moz-landing-system : lando
2019-08-14 21:00:51 +00:00
Tarek Ziadé 03685b73e1 Bug 1556637 - Replace all mozDumpDebugInfo calls r=jya,jib
Replaces mozDumpDebugInfo with mozRequestDebugInfo

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

--HG--
extra : moz-landing-system : lando
2019-08-14 20:32:31 +00:00
Kristen Wright 49185e9481 Bug 1573268 - Convert zoom.maxPercent and zoom.minPercent to static prefs. r=njn
Converts zoom.maxPercent and zoom.minPercent to static prefs, which creates a new "zoom" category on StaticPrefList.yaml.

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

--HG--
extra : moz-landing-system : lando
2019-08-14 18:29:55 +00:00
Mihai Alexandru Michis 8a760e0e02 Bug 1570147 - Fix linting error in file_drawWindow_common.js r=lint-fix CLOSED TREE
--HG--
extra : amend_source : 9ce3d37449242ba6bfb6743e02456e071f069b7e
2019-08-15 10:00:09 +03:00
Matt Woodrow 687b63a72a Bug 1570147 - Add test for drawSnapshot. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D41828

--HG--
extra : moz-landing-system : lando
2019-08-15 06:10:21 +00:00
Matt Woodrow c86064f94b Bug 1570147 - Modify existing drawWindow tests to take a callback for the inner draw function. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D41827

--HG--
extra : moz-landing-system : lando
2019-08-15 06:10:09 +00:00
Hiroyuki Ikezoe 56c1adb81e Bug 1573876 - Enable layout.viewport_contains_no_contents_area on test_viewport_metrics_on_landscape_content.html. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D42054

--HG--
extra : moz-landing-system : lando
2019-08-15 02:26:14 +00:00
kriswright 8c68307d03 Bug 1573268 - Convert two layers.offmainthreadcomposition.* prefs to static prefs. r=njn
Converts layers.offmainthreadcomposition.async-animations and layers.offmainthreadcomposition.log-animations to their respective static prefs. Since all IsAnimationLoggingEnabled() did was create a pref and return the variable sShouldLog, this function is removed and replaced with the static pref.

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

--HG--
extra : moz-landing-system : lando
2019-08-13 00:02:12 +00:00
Shane Caraveo e0b4be7187 Bug 1547140 add classification data to webRequest API r=zombie,kmag,Fallen
Differential Revision: https://phabricator.services.mozilla.com/D35911

--HG--
extra : moz-landing-system : lando
2019-08-14 16:10:51 +00:00
Bryce Seager van Dyk c1bef1695c Bug 1573902 - Fix CDM Init return value name in IPDL. r=dminor
The return value for PChromiumCDM::Init was unused when the IPDL change was
first made. However, that quickly changed, but I failed to update the IPDL to
reflect that the value is now used to propagate the value that CDM interface 10
Widevine modules give us via the OnInitialized callback.

This patch fixes the IPDL to reflect that. The changes in C++ code have already
been made, so no change needed there.

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

--HG--
extra : moz-landing-system : lando
2019-08-14 19:35:07 +00:00
Markus Stange 979634bacb Bug 1565717 - Remove all dynamic loading of IOSurface functions. r=mattwoodrow
These functions were made public in 10.6. The oldest version we support is 10.9.

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

--HG--
extra : moz-landing-system : lando
2019-08-14 11:06:22 +00:00
Markus Stange 584d4c6a82 Bug 1565717 - Remove dynamic lookup of the kIOSurface constants. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D41812

--HG--
extra : moz-landing-system : lando
2019-08-14 11:05:47 +00:00
Markus Stange 75ec9254b7 Bug 1565717 - Don't use dynamic symbol lookup for CVPixelBufferGetIOSurface. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D41811

--HG--
extra : moz-landing-system : lando
2019-08-14 11:05:24 +00:00
Mike Conley f3e9f2e80d Bug 1564359 - Add in-tree documentation on how to port from the message manager to JSWindowActor messaging to be Fission-compatible. r=jdai
Differential Revision: https://phabricator.services.mozilla.com/D40475

--HG--
extra : moz-landing-system : lando
2019-08-14 17:16:04 +00:00
Emilio Cobos Álvarez 5a7da15b28 Bug 1569648 - Remove a bogus assertion. r=dholbert
There's no guarantee at all that the filter URI is valid, it just so happens
that for regular CSS filters we bail out earlier.

A bogus base URI makes relative uris just invalid, which triggers this assert.

The assert was gracefully handled anyway, so no big deal.

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

--HG--
extra : moz-landing-system : lando
2019-08-14 16:41:20 +00:00
Perry Jiang bbd591602f Bug 1231213 - Update the update algorithm to better match the spec r=asuth
- Throw a TypeError when a registration isn't found in the "scope to registration map"
- Synchronously (before enqueuing a job) check for an existing newest worker
- Synchronously check if an installing worker is attempting to update itself

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

--HG--
extra : moz-landing-system : lando
2019-08-14 16:20:54 +00:00
Perry Jiang 22ef80ff1b Bug 1231213 - Allow the delayed ServiceWorkerRegistration.update() mechanism to handle multiple simultaneous requests without timing out. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26178

--HG--
extra : moz-landing-system : lando
2019-08-14 16:20:47 +00:00
Perry Jiang 31ebe4cc35 Bug 1231213 - Make ServiceWorkerPrivate use ServiceWorkerPrivateImpl when parent-intercept is enabled. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26177

--HG--
extra : moz-landing-system : lando
2019-08-14 16:20:40 +00:00
Perry Jiang 599888fca4 Bug 1231213 - Only spawn Service Workers in non-web-extensions processes that won't imminently shutdown. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26176

--HG--
extra : moz-landing-system : lando
2019-08-14 16:20:38 +00:00
Perry Jiang 18f1995d4d Bug 1231213 - Implement cross-process ServiceWorkerGlobalScope.skipWaiting(). r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26175

--HG--
extra : moz-landing-system : lando
2019-08-14 16:20:31 +00:00
Perry Jiang 67fdc5b2fb Bug 1231213 - Implement ServiceWorkerPrivateImpl to dispatch operations to content processes and respond to their results. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26174

--HG--
extra : moz-landing-system : lando
2019-08-14 16:20:24 +00:00
Perry Jiang 55f1da5063 Bug 1231213 - Let ServiceWorkerOpArgs be sent from the parent process to a content process. r=asuth
The args are sent from the parent process main thread to the parent process
background thread and then from the background thread to a content process
worker launcher thread.

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

--HG--
extra : moz-landing-system : lando
2019-08-14 16:20:17 +00:00
Perry Jiang d89bee1b4e Bug 1231213 - Implement ServiceWorkerOp and its subclasses. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26172

--HG--
extra : moz-landing-system : lando
2019-08-14 16:20:15 +00:00
Perry Jiang 7631234594 Bug 1231213 - Implement PFetchEventOp(Proxy) IPDL protocols and FetchEventOp(Proxy){Parent,Child}. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26171

--HG--
extra : moz-landing-system : lando
2019-08-14 16:20:08 +00:00
Perry Jiang 71485c3b89 Bug 1231213 - Refactor RemoteWorkerChild to handle Service Workers' and Shared Workers' operations and to make its state data/transitions safer. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26170

--HG--
extra : moz-landing-system : lando
2019-08-14 16:20:06 +00:00
Perry Jiang 0d044b3f9b Bug 1231213 - Refactor RemoteWorkerController to handle Service Workers' and Shared Workers' operations. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26169

--HG--
extra : moz-landing-system : lando
2019-08-14 16:19:59 +00:00
Perry Jiang aa4bed38b8 Bug 1231213 - Implement PRemoteWorkerController IPDL protocol and RemoteWorkerController{Parent,Child}. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26168

--HG--
extra : moz-landing-system : lando
2019-08-14 16:19:57 +00:00
Perry Jiang bc23acda66 Bug 1231213 - Add OptionalServiceWorkerData to RemoteWorkerData. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26167

--HG--
extra : moz-landing-system : lando
2019-08-14 16:19:53 +00:00
Perry Jiang e94a4df810 Bug 1231213 - Have ServiceWorkerManager block shutdown on "profile-change-teardown" when in the parent process with parent intercept enabled. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26166

--HG--
extra : moz-landing-system : lando
2019-08-14 16:19:51 +00:00
Perry Jiang 69fbf004ee Bug 1231213 - Implement ServiceWorkerShutdownBlocker. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26165

--HG--
extra : moz-landing-system : lando
2019-08-14 16:19:44 +00:00
Perry Jiang 7e18d0584f Bug 1231213 - Implement ServiceWorkerOp{Args,Promise,Result}, FetchEventRespondWith{Promise,Result}, and IPCFetchEventRespondWithResult. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26164

--HG--
extra : moz-landing-system : lando
2019-08-14 16:19:42 +00:00
Perry Jiang f98858dcc7 Bug 1231213 - Implement IPCInternal{Request,Response}. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26163

--HG--
extra : moz-landing-system : lando
2019-08-14 16:19:40 +00:00
Perry Jiang eb5c44999d Bug 1231213 - Avoid some assertions for ServiceWorkerManagers in child processes. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26162

--HG--
extra : moz-landing-system : lando
2019-08-14 16:19:38 +00:00
Perry Jiang dd139fd2a4 Bug 1231213 - Properly declare some dependencies so everything will compile with additional files. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26158

--HG--
extra : moz-landing-system : lando
2019-08-14 16:19:28 +00:00
Mike Conley ddc7d4d0ea Bug 1564359 - Add additional detail to in-tree Fission documentation. r=jdai
Differential Revision: https://phabricator.services.mozilla.com/D40474

--HG--
extra : moz-landing-system : lando
2019-08-14 16:15:41 +00:00
John Lin 22c051e31f Bug 1565838 - don't check timestamp of EOS samples. r=jya
Bug 1540748/D28167 checks the output sample timestamp against the
time parsed by demuxer to determine the validness. However, unlike
Android builtin MP3 decoder which sets EOS flag in the final valid
output, the Samsung MP3 decoder always emit additional EOS sample
with invalid timestamp. To address this, the timestamp check should
be ignore for EOS samples.

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

--HG--
extra : moz-landing-system : lando
2019-08-14 15:47:52 +00:00
Sebastian Streich c0a7a0ac2f Bug 1571415 - Add a Console Message for XTCO-Nosniff r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D41550

--HG--
extra : moz-landing-system : lando
2019-08-14 12:44:08 +00:00