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

18309 Коммитов

Автор SHA1 Сообщение Дата
Narcis Beleuzu a36c38a36a Backed out changeset 5d1f3e0160fa (bug 1592718) for BC failures on debugger.js . CLOSED TREE 2019-11-05 21:23:22 +02:00
Julian Descottes ef1bf374d0 Bug 1594023 - Log actorIDs instead of js objects in DevTools target-list r=ochameau
Depends on D51630

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

--HG--
extra : moz-landing-system : lando
2019-11-05 18:26:49 +00:00
Brendan Dahl eafc9e3293 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-05 17:56:28 +00:00
Junior Hsu 167a3b63a4 Bug 1544231 - add image/webp to default navigation value of the Accept header, r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D51199

--HG--
extra : moz-landing-system : lando
2019-11-01 15:54:57 +00:00
Jason Laster decdfa79d9 Bug 1592718 - Enable WatchPoints in Nightly and DevEdition. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D51742

--HG--
extra : moz-landing-system : lando
2019-11-05 16:38:01 +00:00
Brian Hackett 5efbcaefb0 Bug 1594042 - Improve logpoint performance, r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D51846

--HG--
extra : moz-landing-system : lando
2019-11-05 16:17:13 +00:00
Belén Albeza 6e5c96847e Bug 1590756: Fix unregister service workers r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D51257

--HG--
extra : moz-landing-system : lando
2019-11-05 15:53:54 +00:00
David Walsh ee044d40a7 Bug 1586667 - Update case for blocked icon tooltip r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D48985

--HG--
extra : moz-landing-system : lando
2019-11-04 08:41:52 +00:00
wartmanm 2363fb2b3f Bug 1590824 - Don't pass sourceId in jumpToDefinitionButton event listener. r=nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D50867

--HG--
extra : moz-landing-system : lando
2019-11-05 13:13:16 +00:00
Brian Hackett 85e9afa634 Bug 1583546 - Add test that the OBT debugger can pause even when it hasn't been opened, r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D50225

--HG--
extra : moz-landing-system : lando
2019-11-05 12:32:11 +00:00
Brian Hackett 62f824d866 Bug 1593533 - Catch all exceptions thrown when testing if a window is top level, r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D51533

--HG--
extra : moz-landing-system : lando
2019-11-05 12:24:42 +00:00
Brian Hackett c2512e1c97 Bug 1593566 - Improve efficiency when finding execution points where the frame depth changes, r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D51542

--HG--
extra : moz-landing-system : lando
2019-11-04 04:49:24 +00:00
Alexandre Poirot 61f6d79ef6 Bug 1593695 - Prevent warning about duplicated targets in the case of the Browser Toolbox. r=jdescottes
In the Browser Toolbox, we fetch all types of targets, including frames and processes.
But the main process target, which is the top level target for the Browser Toolbox,
is also returned by listProcesses and so is reported as duplicated.

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

--HG--
extra : moz-landing-system : lando
2019-11-05 11:15:01 +00:00
Alexandre Poirot fca986f4b8 Bug 1593928 - Prevent enabling additional targets in the Browser Content Toolbox. r=jdescottes
The existing checks were also enabling additional target tracking of the TargetList
for the Browser Content Toolbox.

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

--HG--
extra : moz-landing-system : lando
2019-11-05 11:15:57 +00:00
Richard O. Gregory 8640fa2942 Bug 1589333 - Enable ESLint for all of devtools/client/shared/ (manual changes). r=Standard8,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D50637

--HG--
extra : moz-landing-system : lando
2019-11-04 18:05:14 +00:00
Richard O. Gregory e6f8e04a02 Bug 1589333 - Enable ESLint for all of devtools/client/shared/ (automatic changes). r=Standard8,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D50636

--HG--
extra : moz-landing-system : lando
2019-11-04 18:03:21 +00:00
Julian Descottes 76606dfbc7 Bug 1593794 - Add a try catch around grid-inspector updateGridPanel (follow up to Bug 1591952) r=gl
Depends on D51663

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

--HG--
extra : moz-landing-system : lando
2019-11-05 07:31:01 +00:00
Mihai Alexandru Michis b819bd25aa Backed out 2 changesets (bug 1470510) for causing bustages in widget/cocoa/nsChildView.mm CLOSED TREE
Backed out changeset a343f30c34a3 (bug 1470510)
Backed out changeset 4da64790094d (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
2019-11-05 09:24:26 +02:00
Brendan Dahl 0c0da7791e 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 23:37:31 +00:00
Nicolas Chevobbe b965151cf7 Bug 1593654 - Fix issue when expanding CSS warnings. r=rcaliman.
The issue was in commands.js evaluateJSAsync function where
we were trying to use an undefined parameter.
The regression wasn't spotted earlier because we only have
mocha test for CSS warning, and they don't assert this
codepath.
A mochitest is added on this patch to ensure CSS Warnings
can be expanded, that they display the impacted elements
as expected, and that clicking on the icon selects the
expected element in the inspector.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 15:29:22 +00:00
Brian Hackett cff7d7fb16 Bug 1592854 - Workaround rendering problems with conditional panel during test, r=loganfsmyth.
Differential Revision: https://phabricator.services.mozilla.com/D51438

--HG--
extra : moz-landing-system : lando
2019-11-05 01:28:08 +00:00
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
Julian Descottes 3ff4d952e6 Bug 1591952 - Add a global try catch around grid-inspector onReflow to swallow exceptions after destroy r=gl
This method is very asynchronous, called on reflows and throttled. Which means it has a high chance of intermittently failing after destroy.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 19:44:32 +00:00
Itiel f985df675a Bug 1593542 - General RTL improvements to the network monitor r=jdescottes
Also improve CSS code style/quality

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

--HG--
extra : moz-landing-system : lando
2019-11-04 17:46:46 +00:00
Jason Laster 90ac689cde Bug 1583806 - Add a binary path override for the browser toolbox. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D51138

--HG--
extra : moz-landing-system : lando
2019-11-04 17:26:12 +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
Razvan Caliman 9ce94dcb9e Bug 1592604 - Ensure flexbox highlighter events don't influence grid badges in markup view. r=gl
When creating grid and display badges in the markup view, ensure they listen only to their corresponding highlighter events.

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

--HG--
extra : moz-landing-system : lando
2019-11-01 15:20:18 +00:00
Julian Descottes cf665518e8 Bug 1591140 - Allow chrome privileged documents to preventDefault contextmenu events regardless of dom.event.contextmenu.enabled r=gl,nika,mconley
@gl can you take a look at the DevTools test added here?
@nika @mconley I used this.browsingContext.docShell.isContent here to rule out chrome-privileged documents. Do you know if there is better way to check if the current document is chrome-privileged or not?

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

--HG--
extra : moz-landing-system : lando
2019-11-04 08:20:02 +00:00
Neil Deakin d12fb42226 Bug 1592157, convert LinkHandlerChild.jsm to JSWindowActor to support fission, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D51026

--HG--
extra : moz-landing-system : lando
2019-11-04 14:48:04 +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
Alexandre Poirot 02b06ea7a2 Bug 1471754 - Make the Toolbox use the TargetList. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D48858

--HG--
extra : moz-landing-system : lando
2019-11-04 11:04:05 +00:00
Alexandre Poirot 19707475af Bug 1471754 - Implement the TargetList component. r=jdescottes
This component will help build and maintain the list of all the Targets.
Making it easier to:
* listen for all the targets: TargetList.watchTargets/unwatchTargets,
* iterate over all the existing ones: TargetList.getAllTargets,
* get all the TargetScoped fronts of all the targets: TargetList.getAllFronts.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 11:03:58 +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
Itiel a02bd2636c Bug 1593531 - RTL fixes for the truncation message in the websockets panel r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D51532

--HG--
extra : moz-landing-system : lando
2019-11-04 10:04:46 +00:00
Itiel 235c8782ec Bug 1593527 - Cleanup CustomRequestPanel.css to fix RTL r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D51531

--HG--
extra : moz-landing-system : lando
2019-11-04 09:58:40 +00:00
Nicolas Chevobbe 9c0b3f6b24 Bug 1570524 - Fix browser_webconsole_cached_messages intermittent. r=Honza.
Wait for the messages to be displayed, and requestLongerTimeout,
as test failures logs seem to indicate that slower machine take
more than 30s to run the test.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 09:53:31 +00:00
Nicolas Chevobbe a558e51a4d Bug 1590974 - Pass the toolbox document to MenuButton in the a11y panel. r=yzen.
This makes it possible for the menus to not be constrained
to the panel boundaries if they are taller than the panel
itself (which could be the case for the simulate menu as
it has lots of items).
We need to style the button with a link role in the toolbox
CSS so they don't look like real buttons.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 06:38:37 +00:00
jaril 9f18dcfb2a Bug 1593302 - Fix frame timeline scrubbing so it doesn't highlight other elements r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D51424

--HG--
extra : moz-landing-system : lando
2019-11-04 04:52: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
Micah Tigley 7b518bfeac Bug 1578865 - Show the device settings modal over the RDM UI . r=gl
Since closing D50559, we're not using CSS Grid for the browser's container layout (see D48778 for context). This means positioning the device settings modal using CSS grid areas won't work.

An alternative to this is to contain the RDM toolbar inside the browser stack now that it uses CSS Grid. We can then use absolute positioning to have the RDM toolbar always positioning on top of the browser element and adjust its size when the device settings is opened.

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

--HG--
extra : moz-landing-system : lando
2019-11-01 19:23:55 +00:00
Florens Verschelde d57b479711 Bug 1525939 - Use shared Accordion component in Inspector; r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D43640

--HG--
extra : moz-landing-system : lando
2019-11-01 16:11:13 +00:00
Nicolas Chevobbe df353efb8c Bug 1592618 - Fix test memory leak in browser_jsterm_file_load_save_keyboard_shortcut.js .r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D51271

--HG--
extra : moz-landing-system : lando
2019-11-01 14:35:54 +00:00
Nicolas Chevobbe 07a531158b Bug 1592550 - Allow saveAs util function to be passed an array of filters. r=Honza.
A new parameter is added, and it expect an array
of filter objects (which contain a pattern and
a label properties), which are going to be used
by the save file dialog.

Depends on D51070

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

--HG--
extra : moz-landing-system : lando
2019-11-01 09:26:18 +00:00
chujun 9d1969b69b Bug 1592904-Extenstion typo fix r=davidwalsh
Change occurrence of extenstion to extension in debugger

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

--HG--
extra : moz-landing-system : lando
2019-10-31 17:03:59 +00:00