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

3292 Коммитов

Автор SHA1 Сообщение Дата
Jason Laster 16fab4466c Bug 1586904 - Refreshing while paused fails. r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D51484

--HG--
extra : moz-landing-system : lando
2019-11-04 23:45:13 +00:00
Jason Laster d6de8cab3a Bug 1593348 - Handle empty target in paused-debugger. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D51455

--HG--
extra : moz-landing-system : lando
2019-11-01 21:00:58 +00:00
Dorel Luca 0207ce5451 Backed out 2 changesets (bug 1470510) for build bustage on /build/src/widget/cocoa/nsChildView.mm. CLOSED TREE
Backed out changeset 5967bf633574 (bug 1470510)
Backed out changeset 067a556bb614 (bug 1470510)

--HG--
rename : xpfe/appshell/nsIAppWindow.idl => xpfe/appshell/nsIXULWindow.idl
rename : xpfe/appshell/AppWindow.cpp => xpfe/appshell/nsXULWindow.cpp
rename : xpfe/appshell/AppWindow.h => xpfe/appshell/nsXULWindow.h
extra : amend_source : 752d828c6a0726c3f2df57a25741e38b36b75d6b
2019-11-04 19:18:56 +02:00
Brendan Dahl 247b257cfa Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
nsXULWindow is no longer XUL specific and is somewhat confusing name.

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

--HG--
rename : xpfe/appshell/nsXULWindow.cpp => xpfe/appshell/AppWindow.cpp
rename : xpfe/appshell/nsXULWindow.h => xpfe/appshell/AppWindow.h
rename : xpfe/appshell/nsIXULWindow.idl => xpfe/appshell/nsIAppWindow.idl
extra : moz-landing-system : lando
2019-11-04 16:52:35 +00:00
Nicolas Chevobbe 0794fcd2a2 Bug 1593053 - Remove XBL categories in console-services.js isCategoryAllowed. r=bgrins.
We shouldn't need those anymore now.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 14:30:15 +00:00
Brian Hackett d293e937fe Bug 1592560 - Avoid using Reflect in workers, r=nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D51282

--HG--
extra : moz-landing-system : lando
2019-11-04 09:08:05 +00:00
Gijs Kruitbosch ea58459bc1 Bug 1545123 - move reading pluginreg and scanning for plugins to a background thread, r=handyman,mconley
Finally, let's move the actual IO away from the main thread.

This means there are now 3 ways of looking for plugins:
1. looking for changes from ReloadPlugins. This runs the PluginFinder runnable
   on the main thread.
2. loading plugins from LoadPlugins. This will:
   a) first check prefs and report the flash plugin based on that information,
      if the prefs indicate it exists (using the callback provided by
      nsPluginHost).
   b) then hopefully dispatch to a background thread, where it will read
      pluginreg.dat, scan the appropriate folders on disk, and see if
      anything changed. Once done, it sets mFinishedFinding to true and
      re-dispatches itself to the main thread.
   c) then on the main thread, it reports any changes to nsPluginHost.
3. if dispatching in 2(b) fails, we will run steps (b) and (c) on the main
   thread.

Note: if ReloadPlugins is called, we intiially do (1), but if we find
changes, we clear out the set of known plugins and then run LoadPlugins
again (meaning we go through 2 (or 3 if 2(b) fails)). This is how
reloading plugins worked prior to my changes and I've attempted not to
change it.

In order for this to work, there are some other changes in this commit:

- the sandbox prefs are being read "early" and cached for flash vs
  "everything else". We can't access prefs on non-main threads without
  using StaticPrefs, which doesn't seem worth it here.
- some of the plugin tag classes are moved to threadsafe refcounting.
  This is a bit unfortunate, but because they're instantiated on a non-
  mainthread, and then later used on the main thread, despite the
  fact that the architecture means nothing tries to touch them from
  more than one thread at once, without threadsafe refcounting we hit
  asserts in debug mode if we add references to them back on the main thread.
- we add shutdown blocking for pluginfinding. We don't really want to
  be halfway through finding plugins and then trying to shut them down,
  or re-instantiating plugins after they've been unloaded.
- we keep a reference to the "pending" pluginfinder instance while
  doing lookups away from the main thread (ie (2)), to avoid re-entrancy or
  trying to write to pluginreg while we're reading it somewhere else,
  etc. If there's an attempt to do more plugin finding while this is
  ongoing, we flip mDoReloadOnceFindingFinished and do a reload once
  our initial lookups are complete.

Depends on D48331

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

--HG--
extra : moz-landing-system : lando
2019-11-02 22:35:04 +00:00
Ciure Andrei fdfd0105e6 Backed out 5 changesets (bug 1545123) for causing nsPluginTags.cpp build bustages CLOSED TREE
Backed out changeset 91313cceae8c (bug 1545123)
Backed out changeset d91549e68229 (bug 1545123)
Backed out changeset 269d89e09fbb (bug 1545123)
Backed out changeset a139ee115519 (bug 1545123)
Backed out changeset eb454f238f45 (bug 1545123)
2019-11-02 14:00:38 +02:00
Gijs Kruitbosch dc78268f2e Bug 1545123 - move reading pluginreg and scanning for plugins to a background thread, r=handyman,mconley
Finally, let's move the actual IO away from the main thread.

This means there are now 3 ways of looking for plugins:
1. looking for changes from ReloadPlugins. This runs the PluginFinder runnable
   on the main thread.
2. loading plugins from LoadPlugins. This will:
   a) first check prefs and report the flash plugin based on that information,
      if the prefs indicate it exists (using the callback provided by
      nsPluginHost).
   b) then hopefully dispatch to a background thread, where it will read
      pluginreg.dat, scan the appropriate folders on disk, and see if
      anything changed. Once done, it sets mFinishedFinding to true and
      re-dispatches itself to the main thread.
   c) then on the main thread, it reports any changes to nsPluginHost.
3. if dispatching in 2(b) fails, we will run steps (b) and (c) on the main
   thread.

Note: if ReloadPlugins is called, we intiially do (1), but if we find
changes, we clear out the set of known plugins and then run LoadPlugins
again (meaning we go through 2 (or 3 if 2(b) fails)). This is how
reloading plugins worked prior to my changes and I've attempted not to
change it.

In order for this to work, there are some other changes in this commit:

- the sandbox prefs are being read "early" and cached for flash vs
  "everything else". We can't access prefs on non-main threads without
  using StaticPrefs, which doesn't seem worth it here.
- some of the plugin tag classes are moved to threadsafe refcounting.
  This is a bit unfortunate, but because they're instantiated on a non-
  mainthread, and then later used on the main thread, despite the
  fact that the architecture means nothing tries to touch them from
  more than one thread at once, without threadsafe refcounting we hit
  asserts in debug mode if we add references to them back on the main thread.
- we add shutdown blocking for pluginfinding. We don't really want to
  be halfway through finding plugins and then trying to shut them down,
  or re-instantiating plugins after they've been unloaded.
- we keep a reference to the "pending" pluginfinder instance while
  doing lookups away from the main thread (ie (2)), to avoid re-entrancy or
  trying to write to pluginreg while we're reading it somewhere else,
  etc. If there's an attempt to do more plugin finding while this is
  ongoing, we flip mDoReloadOnceFindingFinished and do a reload once
  our initial lookups are complete.

Depends on D48331

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

--HG--
extra : moz-landing-system : lando
2019-10-30 15:53:15 +00:00
Micah Tigley a34e986f2f Bug 1588438 - Refactor deprecated touch event APIs. r=ochameau
This revision refactors RDM's touch simulator to use modern touch web APIs where possible.

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

--HG--
extra : moz-landing-system : lando
2019-11-01 23:05:37 +00:00
Brian Hackett 130ae0969a Bug 1593140 - Keep track of replaying process progress to detect hangs, r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D51323

--HG--
extra : moz-landing-system : lando
2019-11-01 22:50:37 +00:00
Jason Laster cd8222f74c Bug 1581249 - Revert - The timeline should show breakpoint hits. r=bhackett
This reverts commit 34ddff68bdfc54cc61252cd76e708697d1629e86.

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

--HG--
extra : moz-landing-system : lando
2019-11-01 00:05:58 +00:00
Brad Werth b5785ce2c6 Bug 1579269 Part 1: Make the document inRDMPane property set via a new emulation actor method. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D51020

--HG--
extra : moz-landing-system : lando
2019-10-31 21:16:58 +00:00
Alexander J. Vincent ca5176f7cc Bug 1094939 - Preferences actor should throw with the name for an unknown preference. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D50728

--HG--
extra : moz-landing-system : lando
2019-10-31 14:05:46 +00:00
Julian Descottes 3f0e2f4c4f Bug 1592517 - Migrate devtools DOMHelpers.jsm from JSM to plain JS module r=ochameau
Depends on D51054

Summary of the changes here:
- move DOMHelpers.jsm to dom-helpers.js
- remove all unused methods
- converted to a static helper to avoid instanciating DOMHelpers objects for no reason
- updated call sites accordingly

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

--HG--
rename : devtools/shared/DOMHelpers.jsm => devtools/shared/dom-helpers.js
extra : moz-landing-system : lando
2019-10-30 11:25:01 +00:00
Daisuke Akatsuka e3665fd758 Bug 1592871: Avoid passing not CSSStyleRule object into InspectorUtils.getSelectorCount(). r=gl
Differential Revision: https://phabricator.services.mozilla.com/D51219

--HG--
extra : moz-landing-system : lando
2019-10-31 05:18:11 +00:00
Kashav Madan faf9a2e212 Bug 1582531 - Update fission annotations for tests that fail cleanly, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D50508

--HG--
extra : moz-landing-system : lando
2019-10-30 21:51:35 +00:00
Julian Descottes c87fb76740 Bug 1591013 - Support lazyImporter in reject-some-requires r=Standard8,nchevobbe
Depends on D50466

reject-some-requires only supports require/lazyRequireGetter at the moment
We still have a few call sites for lazyImporter, even though they probably should be
migrated to lazyRequireGetter IMO.

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

--HG--
extra : moz-landing-system : lando
2019-10-30 08:31:16 +00:00
Julian Descottes e266463281 Bug 1592513 - Move DOMHelpers.jsm from devtools/client/shared/ to devtools/shared/ r=rcaliman
Since I started using this helper in devtools/server/ (Node actor), the file needs to move outside of devtools/client

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

--HG--
rename : devtools/client/shared/DOMHelpers.jsm => devtools/shared/DOMHelpers.jsm
extra : moz-landing-system : lando
2019-10-30 11:05:04 +00:00
Nicolas Chevobbe 90b00ddcf7 Bug 1351635 - Return isClassConstructor in class grip. r=loganfsmyth.
A test is added to ensure isClassConstructor has the expected
value for ES6 class grips.

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

--HG--
extra : moz-landing-system : lando
2019-10-30 10:03:01 +00:00
Gurzau Raul 29cef09b45 Backed out 2 changesets (bug 1591013) for eslint failure at inspector/node.js on a CLOSED TREE.
Backed out changeset 5d53ab2f3152 (bug 1591013)
Backed out changeset d888aded0e70 (bug 1591013)
2019-10-30 00:56:04 +02:00
Julian Descottes a2bad4c3c2 Bug 1591013 - Support lazyImporter in reject-some-requires r=Standard8,nchevobbe
Depends on D50466

reject-some-requires only supports require/lazyRequireGetter at the moment
We still have a few call sites for lazyImporter, even though they probably should be
migrated to lazyRequireGetter IMO.

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

--HG--
extra : moz-landing-system : lando
2019-10-29 22:10:00 +00:00
Jan Odvarko 69a35cc0f0 Bug 1582589 - Client cert checking fails when CAs differ on server and client certs r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D50913

--HG--
extra : moz-landing-system : lando
2019-10-29 14:00:28 +00:00
Emilio Cobos Álvarez 4825f0f201 Bug 1591297 - Remove -moz-binding, nsStyleDisplay::mBinding and similar. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D50556

--HG--
extra : moz-landing-system : lando
2019-10-26 11:37:33 +00:00
Julian Descottes c2d789f1e7 Bug 1591410 - Remove unused root actor traits r=ochameau
Depends on D50605
All the traits removed here are not checked anywhere in the codebase.
There is more cleanup to do around old traits that are no longer relevant for backward compatibility, but that might still be used for feature detection.

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

--HG--
extra : moz-landing-system : lando
2019-10-29 08:39:19 +00:00
Julian Descottes ed35f0fb14 Bug 1591410 - Remove devtools/shared/client/deprecated-thread-client.js r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D50605

--HG--
extra : moz-landing-system : lando
2019-10-29 08:36:03 +00:00
jaril ba28db66a0 Bug 1581245 - Add a frame timeline to web replay
Differential Revision: https://phabricator.services.mozilla.com/D49698

--HG--
extra : moz-landing-system : lando
2019-10-28 14:17:18 +00:00
Nicolas Chevobbe d6786a8b07 Bug 1591330 - Remove LongStringClient. r=jdescottes.
The LongStringClient is removed and we replace its
usage with LongStringFront instead.
This require a few variable/function renaming, as
well as updating the mocks we use in node tests.

Switch usage to LongStringFront instead.

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

--HG--
rename : devtools/client/debugger/packages/devtools-reps/src/object-inspector/tests/__mocks__/long-string-client.js => devtools/client/debugger/packages/devtools-reps/src/object-inspector/tests/__mocks__/string-front.js
rename : devtools/client/debugger/packages/devtools-reps/src/object-inspector/tests/component/create-long-string-client.js => devtools/client/debugger/packages/devtools-reps/src/object-inspector/tests/component/create-long-string-front.js
extra : moz-landing-system : lando
2019-10-28 16:22:06 +00:00
Nicolas Chevobbe 8920070ecb Bug 1450977 - Remove old LongStringActor. r=ochameau.
We take this as an opportunity to revisit the cache mechanism
for longStrings in object/utils.js (searching through pool
children instead of maintaining a cache object).
This means we had to implement poolChildren in the ActorPool.

A test is removed as it tested this specific actor,
and we have tests for the new LongStringActor.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 16:33:33 +00:00
Ehsan Akhgari d0732b6e03 Bug 1591813 - Make nsICookieManager.getCookiesFromHost() return an Array<nsICookie>; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D50750

--HG--
extra : moz-landing-system : lando
2019-10-28 12:08:09 +00:00
Julian Descottes 6261a77787 Bug 1590050 - Preserve markup view selection in iframes after reload r=rcaliman,gl
Depends on D49940

To support this feature we perform two main changes
- the node actor exposes a getAllSelectors method, and the inspector now stores all selectors rather than just one
- the node actor exposes a waitForFrameLoad method, and the walkerFront findNodeFront helper uses it to make sure frames are loaded before querying a selector

Also added a test

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

--HG--
extra : moz-landing-system : lando
2019-10-28 07:55:14 +00:00
Julian Descottes 86ba4e8375 Bug 1590050 - Extract DevTools walker fronts & specs to dedicated files r=gl
Cleanup before adding more content to the walker front

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

--HG--
rename : devtools/shared/fronts/inspector.js => devtools/shared/fronts/walker.js
rename : devtools/shared/specs/inspector.js => devtools/shared/specs/walker.js
extra : moz-landing-system : lando
2019-10-25 10:08:31 +00:00
Nicolas Chevobbe d76b60f122 Bug 1519103 - Remove Scratchpad panel. r=bgrins.
Differential Revision: https://phabricator.services.mozilla.com/D50583

--HG--
extra : moz-landing-system : lando
2019-10-27 09:05:58 +00:00
Gabriel Luong 48625f2f06 Bug 1550804 - Add color scheme simulation to the inspector. r=pbro
This adds a color scheme simulation toggle button in the rules view,
which will toggle between 4 different states: default, dark, light,
and no-preference.

This feature is currently hidden away under a preference:
devtools.inspector.color-scheme-simulation.enabled

The final UI/UX still needs to be figured out, however, this initial step is
to land the ability to prototype this feature.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 19:28:02 +00:00
Julian Descottes d31b5a8dcc Bug 1590932 - Do not show the Paused highlighter when debugging Firefox mobile r=jlast
Depends on D50453

Initially planned to simply add dummy English only string, eg "Paused" but considering that the buttons are also broken, I think the best move for now is to skip the higihlighter when we detect that we don't have the client files. Maybe in the long run we want an easy way to know that we are debugging a mobile device to show a different UI in this highlighter.

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

--HG--
extra : moz-landing-system : lando
2019-10-24 21:20:41 +00:00
Julian Descottes b12c3658fc Bug 1590932 - Fix wrong path to debugger.properties file r=jlast
"devtools/client/shared/locales" does not exist and only worked because l10n.js tries to fallback on devtools/client/locales/

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

--HG--
extra : moz-landing-system : lando
2019-10-24 21:16:49 +00:00
Gurzau Raul a11233a256 Backed out changeset 5eb5f44dcf96 (bug 1550804) for failures at browser_parsable_css.js on a CLOSED TREE. 2019-10-25 02:03:36 +03:00
Gabriel Luong 7bd0dc6499 Bug 1587789 - Remove isXBLAnonymous functions defined and used in the inspector. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D50517

--HG--
extra : moz-landing-system : lando
2019-10-24 21:05:44 +00:00
Gabriel Luong f950443d4d Bug 1550804 - Add color scheme simulation to the inspector. r=pbro
This adds a color scheme simulation toggle button in the rules view,
which will toggle between 4 different states: default, dark, light,
and no-preference.

This feature is currently hidden away under a preference:
devtools.inspector.color-scheme-simulation.enabled

The final UI/UX still needs to be figured out, however, this initial step is
to land the ability to prototype this feature.

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

--HG--
extra : moz-landing-system : lando
2019-10-24 20:39:00 +00:00
Gurzau Raul 4e686f7962 Backed out changeset f3fee3ded743 (bug 1550804) for many devtools failures e.g. browser_markup_accessibility_focus_blur.js on a CLOSED TREE. 2019-10-24 21:39:31 +03:00
Gabriel Luong 627912f5f2 Bug 1550804 - Add color scheme simulation to the inspector. r=pbro
This adds a color scheme simulation toggle button in the rules view,
which will toggle between 4 different states: default, dark, light,
and no-preference.

This feature is currently hidden away under a preference:
devtools.inspector.color-scheme-simulation.enabled

The final UI/UX still needs to be figured out, however, this initial step is
to land the ability to prototype this feature.

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

--HG--
extra : moz-landing-system : lando
2019-10-24 17:23:18 +00:00
Alexandre Poirot 2ea88f4ba9 Bug 1589315 - Expose an API to watch for front destruction. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D49568

--HG--
extra : moz-landing-system : lando
2019-10-23 09:12:40 +00:00
Alexandre Poirot e848bfe0e9 Bug 1471754 - Allow to unregister Front.onFront listeners. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D49567

--HG--
extra : moz-landing-system : lando
2019-10-23 09:11:58 +00:00
Daisuke Akatsuka 223f75aa07 Bug 1589858: Guard from passing media rules to InspectorUtils.getSelectorCount(). r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D50155

--HG--
extra : moz-landing-system : lando
2019-10-23 09:45:41 +00:00
Micah Tigley 6e39794906 Bug 1543234 - Only call stopPrintMediaSimulation in destroy() if print simulation is enabled r=gl
Differential Revision: https://phabricator.services.mozilla.com/D50122

--HG--
extra : moz-landing-system : lando
2019-10-22 19:40:24 +00:00
Nicolas Chevobbe 02cfc079ff Bug 1588999 - Rename ObjectClient to ObjectFront. r=ochameau.
The object-client.js file is now a proper protocol.js front,
but is still named after a client.
This is confusing, so we rename and move the file next to other
fronts, and update all consumers to the new terminology.

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

--HG--
rename : devtools/client/debugger/packages/devtools-reps/src/object-inspector/tests/__mocks__/object-client.js => devtools/client/debugger/packages/devtools-reps/src/object-inspector/tests/__mocks__/object-front.js
rename : devtools/shared/client/object-client.js => devtools/shared/fronts/object.js
extra : moz-landing-system : lando
2019-10-21 12:07:10 +00:00
Jean-Yves Avenard e6d0e7dfda Bug 1588899 - P1. Move classification flags related method to nsIClassifiedChannel. r=Ehsan,baku
This is where it should have been in the first place. Those attributes belong there.

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

--HG--
extra : moz-landing-system : lando
2019-10-19 04:30:24 +00:00
Jason Laster 2afc34bfe4 Bug 1581249 - The timeline should show breakpoint hits. r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D49804

--HG--
extra : moz-landing-system : lando
2019-10-18 22:20:09 +00:00
Gabriel Luong a92d6c2648 Bug 1568860 - Part 2: Make getAllFonts fission compatible. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D49637

--HG--
extra : moz-landing-system : lando
2019-10-18 19:30:03 +00:00
Julian Descottes 4912a6f634 Bug 1496025 - Remove unused methods on ObjectClient related to promises r=ochameau
Depends on D49636

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

--HG--
extra : moz-landing-system : lando
2019-10-18 15:31:49 +00:00