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

4126 Коммитов

Автор SHA1 Сообщение Дата
Alexandre Poirot 329c56536c Bug 1439509 - [devtools] Clear network events when their related WindowGlobal is destroyed. r=bomsy,devtools-backward-compat-reviewers,jdescottes
The main challenge here is to still support persist-logs feature of the netmonitor.
When this feature is enabled we have to keep around all the Network Events as before this patch.

Fission refactoring and the migration to server side NETWORK_EVENT watchers made
this fix significantly easier as we can now more easily reach out the parent process
code which is keeping things allocated.

Differential Revision: https://phabricator.services.mozilla.com/D124318
2021-09-07 17:51:52 +00:00
Alexandre Poirot 5cae64e6d5 Bug 1539518 - [devtools] Log allocations sites of object being created during the test and not being freed. r=jdescottes
This new method allows to do some kind of diff between two allocation sites records.
It will ignore/substract the allocation sites from the first record when processing the second.

As this can sometime return only allocations without stacks,
the old view, showing all the allocations is still helpful.

Also both views can't work at the same time.
So, DEVTOOLS_DEBUG_ALLOCATIONS env variable is used to enable one of the two views.
DEVTOOLS_DEBUG_ALLOCATIONS=allocations will display all the allocation log (which may display allocations which have been freed)
DEVTOOLS_DEBUG_ALLOCATIONS=leaks will display only the allocation which are still allocated at the end of the test. So it should only display leaks.

Differential Revision: https://phabricator.services.mozilla.com/D123833
2021-09-07 14:19:48 +00:00
Mark Banner 30f1b8637e Bug 1602940 - Manual fixes to fix issues in files. r=Gijs,necko-reviewers,rpl,kershaw
Depends on D124392

Differential Revision: https://phabricator.services.mozilla.com/D124393
2021-09-06 09:53:52 +00:00
Mark Banner 11bfa90d06 Bug 1602940 - Automated replacements to use Services.uuid. r=Gijs,necko-reviewers,preferences-reviewers,kershaw
Depends on D124391

Differential Revision: https://phabricator.services.mozilla.com/D124392
2021-09-06 09:53:52 +00:00
Emilio Cobos Álvarez 70f53c85d4 Bug 856337 - Implement image-rendering: smooth and image-rendering: pixelated. r=jrmuizel,dholbert,longsonr
Also, more directly go from StyleImageRendering to wr::ImageRendering.

 * image-rendering: smooth the non-deprecated version of
   OptimizeQuality, which maps to SamplingFilter::LINEAR /
   wr::ImageRendering::Auto (which uses gl::LINEAR).

 * image-rendering: pixelated maps to wr::ImageRendering::Pixelated /
   SamplingFilter::POINT which is the same crisp-edges does.

Note that this uncovers that we were mapping image-rendering:
crisp-edges to wr::ImageRendering::Pixelated.

I'm going to preserve behavior on this patch but we should consider
switching that to map to wr::ImageRendering::CrispEdges on a
follow-up (filed bug 1728831 for this).

Differential Revision: https://phabricator.services.mozilla.com/D124378
2021-09-03 08:56:43 +00:00
Julian Descottes a39a68a2c1 Bug 1728092 - [devtools] Use shared browserReload helper in most tests using browser.reload r=bomsy
Depends on D124188

A few tests outside of the netmonitor also used tab.linkedBrowser.reload, let's migrate them at the same time.

Differential Revision: https://phabricator.services.mozilla.com/D124190
2021-09-02 11:38:55 +00:00
Alexandre Poirot 4dac6b24e5 Bug 1727571 - [devtools] Disable devtools testing flag in allocation tests. r=jdescottes
This is important to disable flags.testing for many reasons:
* it helps using the production code that is being used by end users. So we are closer to a real usage of our tools.
* it prevents enabling debug code which are leaking or are explicitely doing stuff that hit performance and might allocate more objects.

We especially want to disable redux's store history feature which record all the actions,
and leads to leak tons of objects.

Differential Revision: https://phabricator.services.mozilla.com/D123832
2021-09-02 11:36:04 +00:00
Alexandre Poirot dff37ff723 Bug 1727571 - [devtools] Prevent the allocation tracker to record its own modules. r=jdescottes
It was tracking the special sandbox we spawn for builtin-modules.js
as well as its internal sandbox used to fetch platform globals.

Differential Revision: https://phabricator.services.mozilla.com/D124174
2021-09-02 11:36:03 +00:00
Alexandre Poirot 2d17c03dea Bug 1727571 - [devtools] Record allocations for toolbox opening+closing and page reloads. r=jdescottes
Tweaked the recorded data a bit in order to record many values:
* objects being leaked with a known allocation site/original stack frame
* objects being leaked without any known allocation site
* memory being used in parent/content processes

Also build a framework to ease writing more allocation tests.
And document everything around this.

Differential Revision: https://phabricator.services.mozilla.com/D123658
2021-09-02 11:36:03 +00:00
Julian Descottes df5701fd64 Bug 1688067 - [devtools] Repurpose refreshTab as reloadBrowser and use in browser_toolbox_error_count_reset_on_navigation.js r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D124168
2021-09-01 19:24:24 +00:00
Iulian Moraru b5964cfdbf Backed out 3 changesets (bug 1727571) for causing devtools failures on browser_allocation_tracker.js. CLOSED TREE
Backed out changeset 2064d5f7e669 (bug 1727571)
Backed out changeset c9b8b52fa85b (bug 1727571)
Backed out changeset b1098bda4a50 (bug 1727571)
2021-09-01 20:19:11 +03:00
Alexandre Poirot 68542c22a0 Bug 1727571 - [devtools] Disable devtools testing flag in allocation tests. r=jdescottes
This is important to disable flags.testing for many reasons:
* it helps using the production code that is being used by end users. So we are closer to a real usage of our tools.
* it prevents enabling debug code which are leaking or are explicitely doing stuff that hit performance and might allocate more objects.

We especially want to disable redux's store history feature which record all the actions,
and leads to leak tons of objects.

Differential Revision: https://phabricator.services.mozilla.com/D123832
2021-09-01 16:18:29 +00:00
Alexandre Poirot c644e2c255 Bug 1727571 - [devtools] Prevent the allocation tracker to record its own modules. r=jdescottes
It was tracking the special sandbox we spawn for builtin-modules.js
as well as its internal sandbox used to fetch platform globals.

Differential Revision: https://phabricator.services.mozilla.com/D124174
2021-09-01 16:18:28 +00:00
Alexandre Poirot 8127145d8f Bug 1727571 - [devtools] Record allocations for toolbox opening+closing and page reloads. r=jdescottes
Tweaked the recorded data a bit in order to record many values:
* objects being leaked with a known allocation site/original stack frame
* objects being leaked without any known allocation site
* memory being used in parent/content processes

Also build a framework to ease writing more allocation tests.
And document everything around this.

Differential Revision: https://phabricator.services.mozilla.com/D123658
2021-09-01 16:18:28 +00:00
Alexandre Poirot e7b1b6f486 Bug 1726238 - [devtools] Fix browser_toolbox_backward_forward_navigation.js intermittent failure. r=bomsy
Inspector fronts initialization is still pending while we navigate away to another top target.
Leading to various possible exception in protocol.js.
I'm adding a set of new explicit exception in order to help debugging all these cases.

Differential Revision: https://phabricator.services.mozilla.com/D123441
2021-09-01 08:30:23 +00:00
Alexandre Poirot 3a3fca83a3 Bug 1727177 - [devtools] Fix devtools.netmonitor.saveRequestAndResponseBodies preference with new fission codepath. r=bomsy,devtools-backward-compat-reviewers
We weren't applying the preference to the parent process NetworkEventWatcher
because we were only trying to update this via the WebConsole actor.

In addition, this was introducing intermittent failures in browser_toolbox_frames_list.js
because of the pending request made to the console actor.
Doing only one unique request to NetworkEventParent helps reducing the number of requests and intermittents.

Differential Revision: https://phabricator.services.mozilla.com/D123379
2021-09-01 08:30:22 +00:00
Hubert Boma Manilla a1ca9092e3 Bug 1726237 - [devtools] Fix intermittent failures with error type getGrids failed r=jdescottes
This also removes `ignoreGetGridsPromiseRejections` which was used to ignore
the rejections from the promise failure.

Differential Revision: https://phabricator.services.mozilla.com/D123054
2021-08-26 18:32:12 +00:00
Alexandre Poirot 3b693fede5 Bug 1727323 - [devtools] Enable bfcache in parent in tests that have been fixed thanks to server targets. r=bomsy
All these tests most likely have been fixed with the enabling of server targets.
Because bfcache in parent was introducing more cross process navigations,
being initiated from the server, having the support of server targets was uterly
important to support bfcacheInParent.

Differential Revision: https://phabricator.services.mozilla.com/D123448
2021-08-25 17:16:27 +00:00
Andi-Bogdan Postelnicu 2fc4f70e9b Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium
Automatically generated path that adds flag `REQUIRES_UNIFIED_BUILD = True` to `moz.build`
when the module governed by the build config file is not buildable outside on the unified environment.

This needs to be done in order to have a hybrid build system that adds the possibility of combing
unified build components with ones that are built outside of the unified eco system.

Differential Revision: https://phabricator.services.mozilla.com/D122345
2021-08-25 10:46:17 +00:00
Tom Ritter f492e82a10 Bug 1723204: Update tests to prevent crashes r=ckerschb,jdescottes,robwu
This is most commonly as a result of CU.evalInSandbox which
allows an arbitrary filename but when omitted will default
to the filename of the test, which is a filesystem path
and thus is disallowed.

Differential Revision: https://phabricator.services.mozilla.com/D122246
2021-08-24 14:57:44 +00:00
Brindusan Cristian dfcfe1d342 Backed out 4 changesets (bug 1724220, bug 1723204) for causing cpp non-unified bustages in TestSmartCrashTrimmer.cpp.
CLOSED TREE

Backed out changeset 0dab9553a2a8 (bug 1724220)
Backed out changeset df236c937895 (bug 1723204)
Backed out changeset 4a20d1832cf4 (bug 1723204)
Backed out changeset d7e4042af76c (bug 1723204)
2021-08-24 15:33:32 +03:00
Tom Ritter 2dd9a03c60 Bug 1723204: Update tests to prevent crashes r=ckerschb,jdescottes,robwu
This is most commonly as a result of CU.evalInSandbox which
allows an arbitrary filename but when omitted will default
to the filename of the test, which is a filesystem path
and thus is disallowed.

Differential Revision: https://phabricator.services.mozilla.com/D122246
2021-08-24 11:20:44 +00:00
Julian Descottes ac9a92042c Bug 1726004 - [devtools] Remove backward compatibility code for descriptor reload r=bomsy,devtools-backward-compat-reviewers
Depends on D122761

Differential Revision: https://phabricator.services.mozilla.com/D122762
2021-08-23 07:59:09 +00:00
Julian Descottes 8095799bcf Bug 1726002 - [devtools] Remove backward compatibility code about hasNativeConsoleAPI in dom-complete DOCUMENT_EVENT r=bomsy
Depends on D122760

Differential Revision: https://phabricator.services.mozilla.com/D122761
2021-08-23 07:59:08 +00:00
Julian Descottes 4e8867aa9c Bug 1726001 - [devtools] Remove backward compatibility code supportsDocumentEventWillNavigate r=bomsy
Depends on D122759

Differential Revision: https://phabricator.services.mozilla.com/D122760
2021-08-23 07:59:08 +00:00
Julian Descottes 6d33922813 Bug 1725999 - [devtools] Remove backward compatibility code for ThreadConfigurationOptions r=bomsy
Depends on D122751

Differential Revision: https://phabricator.services.mozilla.com/D122758
2021-08-23 07:59:07 +00:00
Julian Descottes 4bd565b3e0 Bug 1725994 - [devtools] Remove backward compatibility code about javascriptEnabledHandledInParent r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D122751
2021-08-23 07:59:07 +00:00
André Bargull d2bbf86876 Bug 1726123 - Part 5: Add missing "js/" includes outside of SM. r=arai
In preparation for the next part, add missing includes to "js/" public headers.

Differential Revision: https://phabricator.services.mozilla.com/D122843
2021-08-17 15:45:39 +00:00
Daisuke Akatsuka e4d3af97b6 Bug 1725927: Update MDN compat data. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D122694
2021-08-16 09:50:43 +00:00
Butkovits Atila 5b89c3ba51 Bug 1715878 - disable browser_resources_document_events on Linux_64_QR for frequent failures. r=intermittent-reviewers,bhearsum DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D122604
2021-08-13 15:00:33 +00:00
Nicolas Chevobbe 6c34e22893 Bug 1724909 - [devtools] Only destroy existing target for same browsing context on server side target switch. r=jdescottes.
We used to destroy any existing target when creating a new one, but this was
causing remote frames to be destroyed on document where there was multiple remote
iframe sharing the same origin.
This patch changes the function that we use to retrieve an existing target given
a watcher actor id and a browserId, by allowing to pass a specific browsing context id.
A couple tests are added that are failing without the fix in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D122230
2021-08-13 14:14:21 +00:00
Nicolas Chevobbe fd5c7b5193 Bug 1673870 - [devtools] Fix browser_resources_getAllResources.js intermittent. r=ladybenko.
The test was failing because we were getting cached messages
from a worker that were emitted late.
To fix this, we create a dedicated document with workers
only when we need them and remove workers from fission_document.html.
This allows us to cleanup a few tests that were already working
around the worker logs issue.

Differential Revision: https://phabricator.services.mozilla.com/D122326
2021-08-12 14:57:03 +00:00
Michelle Goossens e4f0a37c76 Bug 1723573 - Migrate mochitest-devtools-chrome from AWS to Azure r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D122110
2021-08-10 14:49:46 +00:00
Mats Palmgren 14c9063444 Bug 1706080 - [css-fonts] Implement 'font-synthesis: small-caps'. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D114313
2021-08-09 21:41:34 +00:00
Emilio Cobos Álvarez 1840840bc8 Bug 1723921 - Make devtools use two colons for pseudo-elements consistently. r=jdescottes
With the patch above, some devtools tests failed because we were trying
to call getComputedStyle(node, ":marker") (read: one colon rather than
two).

Using two colons for pseudo-elements is the right thing to do and fixes
it / removes some weird special-cases.

Differential Revision: https://phabricator.services.mozilla.com/D121858
2021-08-07 09:47:15 +00:00
Dorel Luca 00fc23a49d Backed out 2 changesets (bug 1723921) for Mochitest failures in layout/inspector/tests/test_getCSSPseudoElementNames.html. CLOSED TREE
Backed out changeset 5e9348094ee1 (bug 1723921)
Backed out changeset e55c2177bbd2 (bug 1723921)
2021-08-05 18:44:42 +03:00
Emilio Cobos Álvarez 8f8176d86b Bug 1723921 - Make devtools use two colons for pseudo-elements consistently. r=jdescottes
With the patch above, some devtools tests failed because we were trying
to call getComputedStyle(node, ":marker") (read: one colon rather than
two).

Using two colons for pseudo-elements is the right thing to do and fixes
it / removes some weird special-cases.

Differential Revision: https://phabricator.services.mozilla.com/D121858
2021-08-05 15:06:16 +00:00
Emilio Cobos Álvarez a4e7c9e510 Bug 1722945 - Support break-inside: avoid-{page,column}. r=TYLin
break-before/after: page|column seem harder because you need to deal
with nested breaks, I think, but this should be straight-forward.

Differential Revision: https://phabricator.services.mozilla.com/D121206
2021-08-03 17:56:58 +00:00
Noemi Erli 89a565ea85 Backed out changeset 67c33ba5566e (bug 1722945) for causing bustage in nsContainerFrame.cpp 2021-08-03 20:35:10 +03:00
Emilio Cobos Álvarez 3d1b4f252f Bug 1722945 - Support break-inside: avoid-{page,column}. r=TYLin
break-before/after: page|column seem harder because you need to deal
with nested breaks, I think, but this should be straight-forward.

Differential Revision: https://phabricator.services.mozilla.com/D121206
2021-08-03 13:59:47 +00:00
Nicolas Chevobbe 1641a872af Bug 1722543 - [devtools] Don't actually destroy service worker targets on target switching. r=jdescottes.
This makes browser_dbg-windowless-service-workers.js pass
with server side target switching.

Differential Revision: https://phabricator.services.mozilla.com/D121339
2021-08-02 15:44:06 +00:00
Daisuke Akatsuka b591b8d0b0 Bug 1723067: Update MDN compat data. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D121338
2021-08-02 10:07:32 +00:00
Zibi Braniecki 15e7d48273 Bug 1660392 - [l10nregistry] part7: Move L10nRegistry callees to use WebIDL one. r=preferences-reviewers,Gijs,platform-i18n-reviewers,gregtatum
Depends on D105416

Differential Revision: https://phabricator.services.mozilla.com/D105584
2021-07-30 16:47:49 +00:00
Nicolas Chevobbe 7159137f70 Bug 1723133 - [devtools] Rename browser_target_list_* tests into browser_target_command_* . r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D121378
2021-07-30 14:41:27 +00:00
Nicolas Chevobbe e689aa7727 Bug 1721991 - [devtools] Wait until page is loaded before going back in browser_target_list_tab_workers_bfcache_navigation.js. r=jdescottes.
it could happen that the page wasn't loaded yet, which would
make the call to gBrowser.goBack() a no-op and messing up
the rest of the test.

Differential Revision: https://phabricator.services.mozilla.com/D121347
2021-07-30 11:44:59 +00:00
Alexandre Poirot 14bc195364 Bug 1722749 - [devtools] Fix browser_ext_devtools_inspectedWindow_targetSwitch.js with server targets. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D121107
2021-07-29 07:41:49 +00:00
Alexandre Poirot 364136604c Bug 1721991 - [devtools] Disable failing assertion of browser_target_list_tab_workers_bfcache_navigation.js. r=nchevobbe
These assertion fails quite frequently with fission and even more with server side targets.
We should investigate that in bug 1722709 before re-enabling this.

Differential Revision: https://phabricator.services.mozilla.com/D121089
2021-07-28 14:14:48 +00:00
Alexandre Poirot 7b8be8dd09 Bug 1722553 - [devtools] Avoid enabling server targets for WebExtension commands. r=jdescottes
WebExtension reload command is still broken with target switching.
Enabling server targets would break this on all reloads.
So prevent enabling server targets until this is fixed.

Differential Revision: https://phabricator.services.mozilla.com/D120982
2021-07-28 12:04:32 +00:00
Alexandre Poirot 0a1553cb94 Bug 1722501 - [devtools] Remove now unused DOCUMENT_EVENT's dom-loading's shouldBeIgnoredAsRedundantWithTargetAvailable attribute. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D120962
2021-07-28 11:48:48 +00:00
Alexandre Poirot 8d15b01738 Bug 1722493 - [devtools] Fix browser_resources_document_events.js with server targets. r=nchevobbe DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D120956
2021-07-28 11:25:45 +00:00