Commit Graph

434 Commits

Author SHA1 Message Date
Kershaw Chang
c37bc70c35 Bug 1644834 - Fix about:memory tests for socket process, r=njn
Differential Revision: https://phabricator.services.mozilla.com/D80634
2020-06-25 10:40:02 +00:00
Kris Maglione
0720b18caa Bug 1638153: Part 2 - Fix uses of .rootTreeItem to get top browser window. r=geckoview-reviewers,nika,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75429
2020-06-17 17:17:16 +00:00
Thinker Li
c6222ce9f7 Bug 1568923 - String deduplication during tenuring.
This patch bases on the work of krystalyang2 with minor bug fixes.
The patch includes several major parts,

 1. mark nursery strings pointed by tenured strings as
    non-deduplicatable,

 2. deduplicate strings when they are moved to tenured from nursery, and

 3. adjust dependent strings to correct their pointers to the base
    string and external buffer after tenuring.

 4. reorder store buffer processing to trace the string whole cell buffer
    first, since strings traced through the whole cell buffer need to be marked
    non-deduplicatable.

(Part 4 was originally phabricator D77715 but is now merged in here.)

Differential Revision: https://phabricator.services.mozilla.com/D74366
2020-06-11 23:16:53 +00:00
Dorel Luca
eb807908c4 Backed out changeset 09ce524559da (bug 1597562) for failures in awsy/test_base_memory_usage.py. CLOSED TREE 2020-06-11 14:21:51 +03:00
David Teller
d8f825091a Bug 1597562 - about:memory now displays process types;r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D77541
2020-06-10 17:01:08 +00:00
Razvan Maries
ef6b72636b Backed out 3 changesets (bug 1638153) for perma failures on cross-origin-objects.html. CLOSED TREE
Backed out changeset f7aedc92d396 (bug 1638153)
Backed out changeset 07ec713926c6 (bug 1638153)
Backed out changeset 5a656842e241 (bug 1638153)
2020-06-01 23:51:35 +03:00
Kris Maglione
5801b582fd Bug 1638153: Part 2 - Fix uses of .rootTreeItem to get top browser window. r=geckoview-reviewers,nika,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75429
2020-06-01 17:59:01 +00:00
Nicholas Nethercote
f364153181 Bug 1634987 - Fix broken about:memory tests. r=dragana
Three of the about:memory tests have failures when they are run locally. In all
three cases it is due to the tests expecting a socket process that isn't
present. On automation the tests succeed with or without the socket process
code.

Bug 1515390 introduced the socket process code. These tests now run as "1proc"
tests, which might explain why this socket process code is no longer necessary.

This commit removes the socket process code, which means the tests now succeed
when run locally. No change is seen on automation, where the tests still pass.

Differential Revision: https://phabricator.services.mozilla.com/D73582
2020-05-04 15:03:24 +00:00
Nicholas Nethercote
e873df717b Bug 1628033 - Add pid to the main process in about:memory. r=erahm
In the tests we now explicitly use "Main Process" (or similar) for the process
name in various places to avoid having to filter out a PID.

Also in `test_aboutmemory[34].xhtml`, the main process entries now appear
first, as they should, because the sorting code now looks for a "Main Process"
prefix, rather than an exact match.

Depends on D72995

Differential Revision: https://phabricator.services.mozilla.com/D73164
2020-04-30 21:20:23 +00:00
Nicholas Nethercote
b4c95c57c1 Bug 1628033 - Add pid to the socket process in about:memory. r=valentin,necko-reviewers
This is modelled on the corresponding code in
`RDDParent::RecvRequestMemoryReport()`.

Also rename it `Socket` to match other content processes like `GPU` and `RDD`.

Differential Revision: https://phabricator.services.mozilla.com/D72995
2020-04-30 00:46:14 +00:00
Nicholas Nethercote
810667bbe5 Bug 1626804 - Clarify about:memory's explicit description. r=erahm
This commit clarifies that only some OS-level allocations are covered; the old
wording made it sound like they all were.

It also moves the allocator-level allocations first in the list, because
they're more common.

Depends on D43842

Differential Revision: https://phabricator.services.mozilla.com/D69287
2020-04-02 00:58:45 +00:00
Bogdan Tara
74c516fe1a Backed out changeset 1fa5a2877746 (bug 1609825) for aboutmemory related failures CLOSED TREE 2020-03-10 15:54:27 +02:00
eghitta
dd9ca6c839 Bug 1609825 - Make about:memory and HTML file.r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D66183
2020-03-10 12:42:26 +00:00
Mark Banner
d375cfec54 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D65703
2020-03-07 10:09:44 +00:00
Julian Descottes
af82c55189 Bug 1600333 - Remove all tags = clipboard from the codebase r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D55305
2019-12-05 11:07:10 +00:00
Emma Malysz
f24e587305 Bug 1592141, rename .xul test files in toolkit/ to .xhtml r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D50884
2019-11-11 19:14:34 +00:00
Noemi Erli
c5ab2e5205 Backed out changeset 9fccb38453a4 (bug 1586236) for causing mass devtools failures 2019-11-03 05:17:02 +02:00
Gabriele Svelto
12882d1a65 Bug 1586236 - Use memory resource notifications to detect low memory scenarios on Windows; r=dmajor
This patch uses the low memory resource notification facility to detect
scenarios where physical memory is running low without polling. This is a
significant change compared to the previous behavior which measured both
available virtual memory (only on 32-bit builds) and available commit space.

Since we're not trying to avoid OOMs anymore we don't save memory reports
anymore when hitting a low-memory condition.

Differential Revision: https://phabricator.services.mozilla.com/D50471
2019-11-01 23:08:59 +00:00
Christoph Kerschbaumer
6dec8a1a75 Bug 1499354: Add object-src 'none' to the CSP of all about: pages. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D46950
2019-09-26 16:22:41 +00:00
Kris Maglione
5da6cf2217 Bug 1553804: Part 6 - Fix chrome mochitests which open chrome windows with content openers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D45828

MANUAL PUSH: Cannot update reopened Phabricator revisions.
2019-09-20 10:18:15 -07:00
monikamaheshwari
edb30ffaec Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D45629
2019-09-14 09:39:26 +00:00
Matthew Noorenberghe
401b5409eb Bug 1568371 - Make h1 headings sticky on about:memory. r=njn
The arrows to jump to the next file aren't sticky but they wouldn't have been visible before this patch so I still think it's an incremental improvement.

Differential Revision: https://phabricator.services.mozilla.com/D39121
2019-07-24 01:50:09 +00:00
Jonathan Kew
f54d5e1699 Bug 1563722 - Prefer DejaVu or Liberation fonts over Fira for treelines in about:memory, to minimize overlap issues. r=njn
Differential Revision: https://phabricator.services.mozilla.com/D37725
2019-07-11 21:42:31 +00:00
Victor Porof
67876411b7 Bug 1561435 - Fix linting errors for toolkit/, r=standard8
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35955
2019-06-25 23:43:58 +02:00
Victor Porof
5d695e0b7f Bug 1561435 - Format toolkit/components/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36052
2019-07-05 11:14:05 +02:00
Nicholas Nethercote
9e53a3841a Bug 1561153 - Fix problems with box-drawing chars in about:memory. r=jfkthame
In Japanese (and Chinese?) locales the box-drawing chars may be twice the width
of ASCII chars, which messes up about:memory's layout. By explicitly specifying
the language and font-family, we increase the chance that single-width
box-drawing chars are used.

Differential Revision: https://phabricator.services.mozilla.com/D36287
2019-07-01 01:07:52 +00:00
Nicholas Nethercote
db5cf8b516 Bug 1556268 - Remove aboutCompartments.xhtml. r=mccr8
about:compartments hasn't resolved for a long time.

Differential Revision: https://phabricator.services.mozilla.com/D33431
2019-06-02 23:05:01 +00:00
Christoph Kerschbaumer
81ffd7a52c Bug 1496386: Apply Meta CSP to System Privileged about:memory.
Differential Revision: https://phabricator.services.mozilla.com/D33594
2019-06-04 04:57:57 +00:00
Joel Maher
41ecc30f4a Bug 1546459 - remove subsuite=clipboard from manifests. r=ahal
remove subsuite=clipboard from manifests

Differential Revision: https://phabricator.services.mozilla.com/D28521
2019-05-01 08:16:44 +00:00
Brian Grinstead
3dd68e7775 Bug 1546501 - Remove unnecessary type attributes (i.e. [type="application/javascript"]) on non-test script tags r=mossop
This is an autogenerated commit, generated with https://bug1546501.bmoattachments.org/attachment.cgi?id=9060222

Differential Revision: https://phabricator.services.mozilla.com/D28559
2019-04-24 19:43:57 +00:00
Ian Moody
414220d39d Bug 1544284 - toolkit/ automated ESLint no-throw-literal fixes. r=Standard8
Result of running:
$ mach eslint -funix toolkit/ | sed -Ee 's/:.+//' - | xargs sed -E \
    -e 's/throw ((["`])[^"]+\2);/throw new Error(\1);/g' \
    -e 's/throw ((["`])[^"]+\2 \+ [^ ";]+);/throw new Error(\1);/g' \
    -e 's/throw \(/throw new Error(/g' -i

...and then reverting a couple of places where comments were touched,
as well as changes to toolkit/components/ctypes/tests/unit/test_jsctypes.js
that required expectation changes to
toolkit/components/ctypes/tests/chrome/test_ctypes.xul

Differential Revision: https://phabricator.services.mozilla.com/D27448
2019-04-16 19:30:27 +00:00
Brian Grinstead
ccff1395b7 Bug 1544322 - Part 3 - Remove the [type] attribute for multiline <script> tags loading files in chrome://mochikit/content/ r=bzbarsky
This is an autogenerated commit to handle scripts loading mochitest harness files, in
the case where the script src is on the line below the script tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 3` argument.

Differential Revision: https://phabricator.services.mozilla.com/D27458
2019-04-16 03:59:25 +00:00
Brian Grinstead
36c26fa2b9 Bug 1544322 - Part 1 - Remove the [type] attribute for one-liner <script> tags loading files in chrome://mochikit/content/ r=bzbarsky
This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 1` argument.

Differential Revision: https://phabricator.services.mozilla.com/D26812
2019-04-15 20:56:58 +00:00
Mark Banner
d5029e0dae Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23850
2019-03-28 09:38:14 +00:00
Arpit
3a589110e7 Bug 1051846 - Add a <title> to about:checkerboard and about:memory, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D23751
2019-03-18 10:49:13 +00:00
Jonathan Kingston
8397774fdf Bug 1525319 - Removing context from OnDataAvailable r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20881
2019-02-27 23:42:27 +00:00
Dorel Luca
2dfae9a24a Backed out 4 changesets (bug 1525319) for Android failures in dom/base/test/test_progress_events_for_gzip_data.html
Backed out changeset b73f033efb41 (bug 1525319)
Backed out changeset 1d318d5c6b98 (bug 1525319)
Backed out changeset 6d73418988d4 (bug 1525319)
Backed out changeset 84ca79bd2dc3 (bug 1525319)
2019-02-25 04:06:11 +02:00
Jonathan Kingston
b6e28d0b8e Bug 1525319 - Removing context from OnDataAvailable r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20881
2019-02-24 20:27:55 +00:00
Jonathan Kingston
58708e007c Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin
Replacing js and text occurences of asyncOpen2
Replacing open2 with open

Differential Revision: https://phabricator.services.mozilla.com/D16885
2019-02-12 16:08:25 +00:00
Myk Melez
5ecc2c1225 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526
2019-01-30 17:26:25 +00:00
Kris Maglione
856fa07b17 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750
2019-01-17 10:18:31 -08:00
Dragana Damjanovic
f1da104e98 Bug 1515390 - Make memory reporter tests work with the socket process. r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D15022
2019-01-16 22:24:57 +00:00
Jeff Walden
22742c3b30 Bug 1518263 - Use Intl.NumberFormat objects to format numbers in about:memory rather than hand-rolling formatting code or using toLocaleString that will create a fresh formatter object every time it's called. r=heycam 2019-01-07 12:05:55 -08:00
Cameron McCormack
48a7636531 Bug 1517175 - Part 2: Add about:memory filter r=njn
Depends on D15628

Differential Revision: https://phabricator.services.mozilla.com/D15629
2019-01-07 03:04:46 +00:00
Cameron McCormack
681b598a1c Bug 1517175 - Part 1: Omit "Other Measurements" section when empty r=njn
Differential Revision: https://phabricator.services.mozilla.com/D15628
2019-01-07 03:04:44 +00:00
Cameron McCormack
e88c95cc92 Bug 1516831 - Add a process index to about:memory r=njn
Differential Revision: https://phabricator.services.mozilla.com/D15495
2019-01-07 03:06:27 +00:00
Cameron McCormack
259af9822c Bug 1517354 - Improve about:memory performance by not using toLocaleString r=njn
Differential Revision: https://phabricator.services.mozilla.com/D15627
2019-01-07 02:50:05 +00:00
Eric Rahm
8c519675f4 Bug 1476371 - Normalize thread names in about:memory diffs. r=njn
This normalizes thread IDs (tid) to use the form 'tid=NNN'. It also
normalizes threadpool numbers, for example 'Foo #1 (tid=1234)' is
mapped to 'Foo #N (tid=NNN)'.
2018-10-30 17:17:15 -07:00
Narcis Beleuzu
dabf0b4d58 Backed out changeset 2590832f3440 (bug 1476371) for Linting opt failrue on aboutMemory.js. CLOSED TREE 2018-10-31 21:08:22 +02:00
Eric Rahm
d54dc713b6 Bug 1476371 - Normalize thread names in about:memory diffs. r=njn
This normalizes thread IDs (tid) to use the form 'tid=NNN'. It also
normalizes threadpool numbers, for example 'Foo #1 (tid=1234)' is
mapped to 'Foo #N (tid=NNN)'.
2018-10-30 17:17:15 -07:00