Commit Graph

4225 Commits

Author SHA1 Message Date
Honza Bambas
c35df87597 Bug 1545421 - New nsresult error codes for 407, 502 and 504 http response codes returned by proxies + test, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D32817

--HG--
extra : moz-landing-system : lando
2019-05-31 17:29:53 +00:00
Gijs Kruitbosch
fd337bafb4 Bug 1196094 - disable _exit in child processes when generating profile information, r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D33269

--HG--
extra : moz-landing-system : lando
2019-05-31 14:17:47 +00:00
Ehsan Akhgari
7a3585c49f Bug 1415270 - Part 3: Prevent the editing APIs from being called on non-HTML documents; r=masayuki
This is similar to this Chromium change:
https://codereview.chromium.org/1155353002

The editing spec doesn't mention editing non-HTML documents, and historically
this is only a feature that WebKit has supported.  Supporting this feature
increases the attack surface of the browser without a clear benefit, so it
seems like a good idea to converge on this behaviour.

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

--HG--
rename : testing/web-platform/tests/html/editing/editing-0/making-entire-documents-editable-the-designmode-idl-attribute/user-interaction-editing-designMode.html => testing/web-platform/tests/html/editing/editing-0/making-entire-documents-editable-the-designmode-idl-attribute/user-interaction-editing-designMode-xml.xml
extra : moz-landing-system : lando
2019-05-30 17:14:05 +00:00
Masatoshi Kimura
6d9fff0168 Bug 1554380 - Fix some issues in mozilla::ReadAhead. r=aklotz
* CreateFileW will return INVALID_HANDLE_VALUE (-1) on failure, not NULL (0).
* MapViewOfFile will map the entire section if the size is 0. No explicit size
  is required.
* If SEC_IMAGE is specified, the mapped image size may be different from the
  file size on the storage.

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

--HG--
extra : moz-landing-system : lando
2019-05-29 10:13:28 +00:00
Edgar Chen
4b1ff2f791 Bug 1543439 - Part 1: Move special handling for MouseDown/Up event out of AutoHandlingUserInputStatePusher; r=masayuki
PresShell::EventHandler::HandleEventWithCurrentEventInfo is the only possible
place will do such handling; other places pass either a nullptr or a
non-MouseDown/Up event.

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

--HG--
extra : moz-landing-system : lando
2019-05-29 07:48:16 +00:00
Dave Townsend
be6ee84568 Bug 1555179: Use 0 in place of out of range numbers in version comparisons. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D32926

--HG--
extra : rebase_source : 302b8bceef62e522925870f2cc4bc6a7d94f76f5
2019-05-28 16:37:45 -07:00
Aaron Klotz
0ef2cb2e18 Bug 1553296: Decommit pages in the Windows system heap upon memory-pressure event; r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D32371

--HG--
extra : moz-landing-system : lando
2019-05-26 07:45:56 +00:00
Sylvestre Ledru
d57d4905f1 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-05-25 17:46:15 +00:00
Gabriele Svelto
00782757b5 Bug 1047408 - Remove nsTWeakRef.h r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D32319

--HG--
extra : moz-landing-system : lando
2019-05-23 20:16:23 +00:00
arthur.iakab
af8e458c5f Backed out changeset a296439a25ff (bug 1519636) for frequent Windows cppunit failures CLOSED TREE 2019-05-24 14:26:01 +03:00
Sylvestre Ledru
c82ea97226 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-05-24 09:59:17 +00:00
Kartikaya Gupta
833138cca0 Bug 1551648 - Record peak resident memory usage in telemetry. r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D32184

--HG--
extra : moz-landing-system : lando
2019-05-23 20:06:33 +00:00
Sylvestre Ledru
993c03acb1 Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D31769

--HG--
extra : moz-landing-system : lando
2019-05-22 22:37:14 +00:00
Edgar Chen
e336502f67 Bug 1549351 - Promise rejection event should not be sent for cross-origin scripts; r=smaug,till
Differential Revision: https://phabricator.services.mozilla.com/D31565

--HG--
extra : moz-landing-system : lando
2019-05-19 01:18:04 +00:00
Sean Feng
760251d1c3 Bug 1533861 - Add a telemetry to detect disk type r=chutten,froydnj,bdekoz
Differential Revision: https://phabricator.services.mozilla.com/D29383

--HG--
extra : moz-landing-system : lando
2019-05-08 15:30:07 +00:00
Haik Aftandilian
268a1d9df4 Bug 1546544 - Reduce navigator.hardwareConcurrency to account for TCSM r=luke
Differential Revision: https://phabricator.services.mozilla.com/D29437

--HG--
extra : moz-landing-system : lando
2019-05-07 22:16:28 +00:00
Haik Aftandilian
45bb7b8823 Bug 1546544 - Enable TCSM r=asuth,spohl,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D29046

--HG--
extra : moz-landing-system : lando
2019-05-07 22:16:14 +00:00
Edgar Chen
68f697ae81 Bug 1362272 - Part 2: Implement notifying of rejected promises; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D17238

--HG--
extra : moz-landing-system : lando
2019-05-07 11:39:58 +00:00
arthur.iakab
62df572c1c Backed out 2 changesets (bug 1546544) for causing mochitest-chrome test failures on automation.py CLOSED TREE
Backed out changeset d4b67960c0f9 (bug 1546544)
Backed out changeset fda45db5f8e9 (bug 1546544)
2019-05-07 05:38:37 +03:00
Haik Aftandilian
a2d7f3a328 Bug 1546544 - Reduce navigator.hardwareConcurrency to account for TCSM r=luke
Differential Revision: https://phabricator.services.mozilla.com/D29437

--HG--
extra : moz-landing-system : lando
2019-05-06 06:09:11 +00:00
Haik Aftandilian
cd1c25bb79 Bug 1546544 - Enable TCSM r=asuth,spohl,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D29046

--HG--
extra : moz-landing-system : lando
2019-05-06 06:09:10 +00:00
Boris Zbarsky
ff72e84ac1 Bug 1547923 part 4. Add nsIGlobalObject::HasJSGlobal(). r=mccr8
Consumers that just care about this boolean state should use this instead of
getting the JSObject* directly.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 21:32:17 +00:00
Masayuki Nakano
006066d2ee Bug 1546888 - Make editor public methods which may be canceled by clipboard event listener return NS_SUCCESS_DOM_NO_OPERATION when it's canceled r=m_kato
This patch makes editors return new error code internally when clipboard event
is dispatched and canceled by script.  This is for making each caller stop
handling the edit action.  However, it's not actual failure.  Therefore, making
public methods return `NS_SUCCESS_DOM_NO_OPERATION` instead via
`EditorBase::ToGenericNSResult()`.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 08:39:53 +00:00
Bogdan Tara
f7ff4f47cc Backed out changeset c2f648fbcbf1 (bug 1533861) for test_TelemetryEnvironment.js failures 2019-05-03 06:22:25 +03:00
Sean Feng
f7c6cfd3d0 Bug 1533861 - Add a telemetry to detect disk type r=chutten,froydnj,bdekoz
Differential Revision: https://phabricator.services.mozilla.com/D29383

--HG--
extra : moz-landing-system : lando
2019-05-02 20:43:36 +00:00
Randell Jesup
c9e7626db4 Bug 1548243: add MOZ_UNLIKELY() to MOZ_LOG_TEST() r=froydnj
Affects MOZ_LOG() since it uses MOZ_LOG_TEST()

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

--HG--
extra : moz-landing-system : lando
2019-05-02 12:56:48 +00:00
Mike Conley
bff8e0ac63 Bug 1533955 - Show some UI to indicate that a subframe has crashed. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D29238

--HG--
extra : moz-landing-system : lando
2019-05-01 20:05:24 +00:00
Andreea Pavel
69afeaabd9 Merge mozilla-central to autoland. on a CLOSED TREE
--HG--
extra : amend_source : fe25c64f152924b2a06dc54b745943b760b3552c
2019-04-19 06:56:17 +03:00
Haik Aftandilian
00b5eeea1e Bug 1543809 - Can't run with XPCOM_MEM_BLOAT_LOG=1 on OS X r=Alex_Gaynor
Don't assume XPCOM_MEM_BLOAT_LOG is a filename. XPCOM_MEM_BLOAT_LOG and XPCOM_MEM_LEAK_LOG can be set to a filename or "1" or "2" for logging to stdout and stderr respectively.

Set the debug write directory for XPCOM_MEM_LEAK_LOG in the same way we already to for XPCOM_MEM_BLOAT_LOG.

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

--HG--
extra : moz-landing-system : lando
2019-04-18 15:17:08 +00:00
Razvan Maries
98807b06a6 Backed out changeset 081a659775d3 (bug 1529879) for xpcshell perma failures. CLOSED TREE 2019-04-18 20:59:54 +03:00
Dave Townsend
40eb94ced2 Bug 1529879: Block changing the profile list when another process has changed it. r=froydnj,Gijs,flod
On startup we record the size and modified time of the profile lists. If
changed we refuse to flush any new changes to disk. Also adds a getter to check
if they've changed so the UI can do something sensible.

All attempts to flush are now checked for success. In some cases in early
startup the failure mode isn't great, we just quit startup. The assumption
though is that it's extremely unlikely that the files will have changed on disk
in the time between when they are read and when profile selection occurs, likely
less than a second later.

The profile reset flow is changed to only delete the old profile and flush once
all the migration has completed, so if something fails the user gets back to
their old profile.

In testing I ended up having to fix bug 1522584 so background file deletions on
a background thread are safer.

I haven't implemented any UI tests right now since making modifications to the
profiles means modifying the actual user's profiles which I'm not keen to do.
See bug 1539868.

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

--HG--
extra : moz-landing-system : lando
2019-04-18 04:34:29 +00:00
Gurzau Raul
5525d8c102 Backed out changeset 77dbf6f2d6d4 (bug 1529879) for Windows build bustages at Unified_cpp_toolkit_profile0.obj on a CLOSED TREE. 2019-04-18 03:21:42 +03:00
Dave Townsend
a2a1b4d1f5 Bug 1529879: Block changing the profile list when another process has changed it. r=froydnj,Gijs,flod
On startup we record the size and modified time of the profile lists. If
changed we refuse to flush any new changes to disk. Also adds a getter to check
if they've changed so the UI can do something sensible.

All attempts to flush are now checked for success. In some cases in early
startup the failure mode isn't great, we just quit startup. The assumption
though is that it's extremely unlikely that the files will have changed on disk
in the time between when they are read and when profile selection occurs, likely
less than a second later.

The profile reset flow is changed to only delete the old profile and flush once
all the migration has completed, so if something fails the user gets back to
their old profile.

In testing I ended up having to fix bug 1522584 so background file deletions on
a background thread are safer.

I haven't implemented any UI tests right now since making modifications to the
profiles means modifying the actual user's profiles which I'm not keen to do.
See bug 1539868.

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

--HG--
extra : moz-landing-system : lando
2019-04-17 20:06:20 +00:00
Michael Froman
0b07404bf5 Bug 1539029 - pt 1 - give RDD its own process selector. r=froydnj
Originally, RDD reused the GPU process selector since they were
using all the same services, and it reduced the number of places
that had to be touched.  Now that RDD needs pref handling, it
needs its own process selector to avoid GPU inheriting pref
handling.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 21:13:16 +00:00
Andrew McCreight
327d0da02c Bug 1463569 - Add a way to log the sizes of GC things to GC logs. r=sfink
If the environment variable MOZ_GC_LOG_SIZE is set, then GC logs will
include some extra data that indicates how much memory the GC thing
uses, including extra data hanging off of it. This can be used
calculate finer grained information about the memory usage of scripts.

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

--HG--
extra : moz-landing-system : lando
2019-04-07 13:35:44 +00:00
Jeff Walden
5327fe7f3e Bug 1542120 - Add js/public/Warnings.h for warning-related JSAPI. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26273

--HG--
rename : js/src/jsapi.h => js/public/Warnings.h
extra : moz-landing-system : lando
2019-04-05 22:52:04 +00:00
Sylvestre Ledru
03c8e8c2dd Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-05 21:41:42 +00:00
Csoregi Natalia
ba58e936bd Backed out changeset 4ad80127f89f (bug 1519636) for bustage on MarkupMap.h and nsAccessibilityService.cpp. CLOSED TREE 2019-04-05 09:48:19 +03:00
Sylvestre Ledru
d1c1878603 Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-04 21:36:16 +00:00
Narcis Beleuzu
24dbe577a5 Backed out changeset 389b6bbd76db (bug 1519636) for bustages on MarkupMap.h . CLOSED TREE 2019-04-05 00:27:56 +03:00
Sylvestre Ledru
399dbd28fe Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-04 20:12:23 +00:00
Ciure Andrei
58c8915ecd Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-04 00:57:38 +03:00
Dave Townsend
4ab7a3401f Bug 1533077: Remove nsIAppStartup.eRestartNotSameProfile r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D22345

--HG--
extra : moz-landing-system : lando
2019-04-03 15:24:59 +00:00
Dave Townsend
3dc26d41d2 Bug 1540854: Add MOZ_DBG support for nsIURI and nsIFile. r=froydnj
I am 90% sure that this is wrong but this is the only way I can get it to
compile and work. Unlike other examples of supporting MOZ_DBG it only declares
an operator for `nsIURI* not` `const nsIURI`. I had to drop the const because
then I couldn't call GetSpec as it isn't marked const. I had to switch to a
pointer since otherwise it would complain about virtual methods.

Still in practice this works, I think it is rare that we hold an nsIURI in
anything other than a pointer and same for the constness.

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

--HG--
extra : rebase_source : 9760674375563ec312568caf4a5ad46facfb6f68
2019-04-01 15:05:37 -07:00
Nathan Froyd
cb076fc90d Bug 1520929 - part 1 - add an isWowARM64 property to nsSystemInfo; r=aklotz
In addition to knowing whether we're running x86-on-x86-64, we'd also
like to know about the x86-on-arm64 case.  The current code doesn't
provide enough information to determine that, so we need to query a
little bit harder.
2019-04-03 04:44:49 -05:00
Brindusan Cristian
f0bb72977e Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-04-02 18:50:37 +03:00
Daosheng Mu
0965abeaa7 Bug 1520339 - Part 2: handling memory reporting for VR process. r=kip,erahm
Differential Revision: https://phabricator.services.mozilla.com/D25321

--HG--
extra : moz-landing-system : lando
2019-04-02 05:13:17 +00:00
Andrew Osmond
dbfad894d9 Bug 1501794 - Implement img decode API. r=bzbarsky,tnikkel
The img decode API allows a web author to request that an image be
decoded at its intrinsic size and be notified when it has been
completed. This is useful to ensure an image is ready to display before
adding it to the DOM tree -- this will help reduce flickering.

Differential Revision: https://phabricator.services.mozilla.com/D11362
2019-04-02 08:56:54 -04:00
Nathan Froyd
1916bd6570 Bug 1525303 - make LazyLogModule::operator LogModule* inline; r=erahm
Testing has determined that doing this has no detrimental size benefit,
and a small positive performance impact.

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

--HG--
extra : moz-landing-system : lando
2019-04-02 20:35:38 +00:00
Andrew McCreight
89bd4fe4e5 Bug 1540794 - Remove nsIID.h. r=froydnj
This file only includes nsID.h, and is unused.

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

--HG--
extra : moz-landing-system : lando
2019-04-01 18:49:28 +00:00