Commit Graph
477 Commits
Author SHA1 Message Date
Wes Kocher ef723393cf Merge m-c to inbound, a=merge
MozReview-Commit-ID: ACHMOIFOQt2
2017-05-17 15:06:00 -07:00
Sebastian Hengst b0ca1e9b39 Backed out changeset 9b16857ca48d (bug 1302702) 2017-05-17 20:01:30 +02:00
Sebastian Hengst 213e3196bd Backed out changeset b5e20d92d062 (bug 1302702) 2017-05-17 20:01:17 +02:00
Luca Greco 4fc754dd2c Bug 1302702 - Shorter extension urls in addon debugger window title and frames list selector. r=ochameau
MozReview-Commit-ID: zMdiVPyBUR
2017-04-24 13:47:56 +02:00
Jason Laster ec7f313a08 Bug 1365059 - Update Debugger frontend (5/15/2017). r=jdescottes
MozReview-Commit-ID: 34vyUjfmd1Z
2017-05-17 20:50:22 +02:00
Luca Greco 1ca317e6e2 Bug 1302702 - Make WebExtension Addon Debugging oop-compatible. r=ochameau
This patch applies all the changes needed to the devtools actors
and the toolbox-process-window, to be able to debug a webextension
running in an extension child process (as well as a webextension
running in the main process).

The devtools actor used to debug a webextension is splitted into
3 actors:

- the WebExtensionActor is the actor that is created when the
  "root.listTabs" RDP request is received, it provides the addon
  metadata (name, icon and addon id) and two RDP methods:

  - reload: used to reload the addon (e.g. from the "about:debugging#addons" page)
  - connectAddonDebuggingActor: which provides the actorID of the actor
    that is connected to the process where the extension is running
    (used by toolbox-process-window.js to connect the toolbox to the needed
    devtools actors, e.g. console, inspector etc.)

- the WebExtensionParentActor is the actor that connects to the
  process where the extension is running and ensures that a
  WebExtensionChildActor instance is created and connected
  (this actor is only the entrypoint to reach the WebExtensionChildActor,
  and so it does not provide any RDP request on its own, it only connect
  itself to its child counterpart and then it returns the RDP "form" of
  the child actor, and the client is then connected directly to the
  child actor)

- the WebExtensionChildActor is the actor that is running in the same
  process of the target extension, and it provides the same requestTypes
  of a tab actor.

By splitting the WebExtensionActor from the WebExtensionParentActor, we are
able to prevent the RemoteDebuggingServer to connect (and create
instances of the WebExtensionChildActor) for every addon listed by
a root.listAddons() request.

MozReview-Commit-ID: L1vxhA6xQkD
2017-03-21 15:55:35 +01:00
Tom Tromey 5f9ecb5f24 Bug 1360357 - add test for inline source maps; r=jdescottes
MozReview-Commit-ID: K0xvb00728a
2017-05-16 13:16:17 -06:00
Tom Tromey 3fb5bb779c Bug 1365371 - change source map test not to require old debugger; r=jryans
MozReview-Commit-ID: 8SckurtKlHZ
2017-05-16 13:27:04 -06:00
Tom Tromey 1fae2b4bb3 Bug 1349354 - remove now-unused source-map-service; r=jryans
MozReview-Commit-ID: umdc4XrpGf
2017-05-15 03:17:19 -06:00
Carsten "Tomcat" Book e7bc984487 Merge mozilla-central to autoland on a CLOSED TREE 2017-05-16 15:11:18 +02:00
Phil Ringnalda 5a96b302e2 Bug 1358559 - Sync the disabling of browser_all_files_referenced.js on linux32 to the redundant and duplicative run of the same test in the devtools suite
MozReview-Commit-ID: FvZFpMytppg
2017-05-15 18:56:42 -07:00
Mike de Boer 915cbb36c5 Bug 1354128 - Add Web Developer button to the photon app menu. r=Gijs
MozReview-Commit-ID: 9hq6qX7JpSp
2017-05-12 12:38:23 -04:00
Christoph Kerschbaumer 5452a95b49 Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +02:00
Honza Bambas f3b5a77a73 backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-13 13:55:11 +02:00
Wes Kocher 7b49a483cc Backed out changeset 95ff98f1c2e5 (bug 1319111) for talos failures a=backout
MozReview-Commit-ID: Gs09moFm5rQ
2017-05-12 18:24:42 -07:00
Honza Bambas b05b600614 backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-12 22:13:49 +02:00
Sebastian Hengst 60c6c1785b Bug 1361975 Fixing tests in order to support window.location not nullable: fix eslint complaint. r=eslint-fix 2017-05-08 16:24:32 +02:00
Andrea Marchesini 65f693ccac Bug 1361975 Fixing tests in order to support window.location not nullable, r=me 2017-05-08 15:53:03 +02:00
Carsten "Tomcat" Book 4e415a660d Merge mozilla-central to autoland 2017-05-05 15:27:55 +02:00
Carsten "Tomcat" Book 31f9a8236d merge mozilla-inbound to mozilla-central a=merge 2017-05-05 15:17:26 +02:00
Ricky Chien 0e3b06b4e3 Bug 1344160 - Fix mochitest failures r=Honza
MozReview-Commit-ID: JkF1WCdLmt8
2017-04-29 23:20:49 +08:00
Julian Descottes 9ef343e89a Bug 1356415 - get CSS selector in content for contextmenu to fix devtools CPOW;r=mixedpuppy
MozReview-Commit-ID: 3TYaYcS1W0h
2017-04-26 19:41:19 +02:00
Honza Bambas e8227e774f Bug 1319111 - Expose URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz 2017-01-27 19:10:01 +01:00
Julian Descottes 01957479c0 Bug 1360894 - add type checkbox to devtools all-tools menu items;r=pbro
MozReview-Commit-ID: JtSUWaZm1vv
2017-05-03 17:31:08 +02:00
Julian Descottes d18d132561 Bug 1183962 - stop installing webide button in menu or navbar automatically;r=jryans
MozReview-Commit-ID: CACgml3Xijf
2017-05-02 22:56:40 +02:00
Tom Tromey c4042ba67b Bug 1359144 - use client-side source map service in console; r=jryans
MozReview-Commit-ID: Jn9fr1EoPg9
2017-04-28 10:12:57 -06:00
Tom Tromey c9635177ce Bug 1360554 - devtools-source-map v0.4.0: Update bundle from GitHub; r=jryans
MozReview-Commit-ID: 7eYjx2QXM8P
2017-04-28 10:43:41 -06:00
J. Ryan Stinnett f23f138672 Bug 1346902 - Update browser toolbox integration test for new debugger. r=jlast
MozReview-Commit-ID: 8k8bIqSBKGf
2017-04-25 22:12:30 +02:00
J. Ryan Stinnett aec76bd1dd Bug 1346902 - Re-enable new debugger UI for Browser Toolbox. r=jryans
It appears the new debugger UI is working for the Browser Toolbox case, so let's
turn it on to match our approach with web content.

MozReview-Commit-ID: HT6qoIrwAHX
2017-04-25 22:11:45 +02:00
Julian Descottes fdebbd7b8f Bug 1359090 - load devtools-browser.css dynamically when starting devtools;r=ochameau
This changeset modifies devtools-browser.css to import:
- commandline-browser.css (needed for GCLI)
- responsivedesign.css (needed for the old RDM)

These files are no longer included in the main browser.css files.

devtools-browser.css is also no longer loaded by browser.xul.
Instead it is dynamically loaded when devtools need the browser stylesheet:
- when creating a side or bottom host (need the splitter)
- when opening gcli
- when opening the old responsive design

devtools-browser.js keeps track of the browser stylesheets loaded in the
various tracked windows and will remove the stylesheet when the window is unloaded.

MozReview-Commit-ID: AL3CxS7mvdO
2017-04-27 16:05:31 +02:00
Alexandre Poirot 284f675774 Bug 1360237 - Fix eslint issues for devtools/client/framework/devtools-browser.js. r=pbro
MozReview-Commit-ID: 3P2VOksEmQd
2017-04-27 17:21:07 +02:00
Alexandre Poirot 6e363b6d3b Bug 1360237 - Make gDevToolsBrowser.inspectNode more readable by using async/await. r=pbro
MozReview-Commit-ID: 37zPhpCTnDa
2017-04-27 17:20:38 +02:00
Alexandre Poirot a6c25c7071 Bug 1360237 - Fix eslint issues for devtools/client/framework/devtools.js. r=pbro
MozReview-Commit-ID: 8mWiLTsH4Sb
2017-04-27 17:19:17 +02:00
Alexandre Poirot daddab3bbd Bug 1331122 - Increase test timeout for browser_toolbox_races. r=jdescottes
This test toggles the toolbox multiple times (3),
it can be take significant amount of time on slow test machines.

MozReview-Commit-ID: 3wJ95Pd8lYN
2017-04-25 19:31:51 +02:00
Mike Conley 1e8abdbd0c Bug 1357169 - Back out changeset 9f7debc99bf8 (bug 418833). r=mats
MozReview-Commit-ID: EThljjMniOt
2017-03-31 09:41:02 -04:00
Michael Ratcliffe ac15073603 Bug 1356223 - Support scalar telemetry probe types in Telemetry.js r=pbro
MozReview-Commit-ID: A2SMdvjy4jp
2017-04-19 12:44:54 +01:00
Ryan VanderMeulen a565280a99 Bug 1355984 - Skip browser static analysis check tests on ASAN when running in the devtools suite as well. r=Gijs 2017-04-18 12:57:15 -04:00
Florian Queze 451928e614 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
J. Ryan Stinnett 1fe6338d4c Bug 1346854 - Delay network listening until toolbox open. r=ochameau
Once upon a time (bug 862341), we decided to enable network listening by
default in DevTools.

In a general sense, that's fine.  When you open a toolbox, we listen to that
tab and stop listening when the toolbox closes.

GCLI / Developer Toolbar is quite different, though.  It connects to the whole
browser.  This meant that enabling GCLI would start listening to network
activity in *every* tab (even though it doesn't have any way to even use that
data).  This of course will slow down performance with all the extra tracking
and eat up memory with the tracked request data.

In this change, we move the step to enable network listening into the toolbox,
which seems more like what we intended anyway.

MozReview-Commit-ID: 2UYoQtWCAE1
2017-03-23 14:34:37 -05:00
J. Ryan Stinnett 0ec08eee8e Bug 1352157 - Avoid listTabs for global actors. r=ochameau
Adds a new `getRoot` request to the root actor which lists the global actors
only (leaving out the tabs).  This is a much better fit for callers who want to
access some global actor only, since it avoids visiting every tab, which could
be a very expensive operation.

MozReview-Commit-ID: 1lIAuaV7zoF
2017-04-06 23:00:22 -05:00
J. Ryan Stinnett 2c3648012a Bug 1353897 - Only destroy preference front if used. r=ochameau
The toolbox can get a preference front for toggling various prefs on the server.
The toolbox destruction code path was written in such a way that it would
request a preference front during toolbox destroy, only to immediately destroy
the front right after.  This is extra painful, since we send a `listTabs`
request and other fun things as part of this.

With this change, we cache the preference front when it is first used, and we
only attempt to destroy it if it was previously used.

MozReview-Commit-ID: 9repQSXjdRj
2017-04-05 16:17:47 -05:00
Iris Hsiao 691ed0f36a Backed out changeset 33be5bce0905 (bug 1346902) for devtool test failing in browser_browser_toolbox_debugger.js 2017-04-06 10:41:47 +08:00
J. Ryan Stinnett e9de05207d Bug 1346902 - Re-enable new debugger UI for Browser Toolbox. r=Gijs,rpl
It appears the new debugger UI is working for the Browser Toolbox case, so let's
turn it on to match our approach with web content.

MozReview-Commit-ID: 1HhSKwZMH2f
2017-03-13 14:31:53 -05:00
Ricky Chien 82e8981d8d Bug 1350215 - Move top level source files to src folder r=gasolin,Honza
MozReview-Commit-ID: 6iJr5BNlnbd
2017-03-26 20:35:38 +08:00
Wes Kocher 2baab983e8 Backed out 7 changesets (bug 1350215) for OSX failures in browser_all_files_referenced.js a=backout
Backed out changeset 435557f30204 (bug 1350215)
Backed out changeset b8358b21928c (bug 1350215)
Backed out changeset 59d2a3f98f6d (bug 1350215)
Backed out changeset e219f3f6e8e7 (bug 1350215)
Backed out changeset f812f7a98a9c (bug 1350215)
Backed out changeset e676e004d08e (bug 1350215)
Backed out changeset e6d27888cb6f (bug 1350215)
2017-03-28 23:25:01 -07:00
Ricky Chien e89142cfa8 Bug 1350215 - Move top level source files to src folder r=gasolin,Honza
MozReview-Commit-ID: 6iJr5BNlnbd
2017-03-26 20:35:38 +08:00
Luca Greco 774a574973 Bug 1350782 - Fix undefined Cu error on unregistering tool using its definition object. r=ochameau
MozReview-Commit-ID: FWBwTcQKf0T
2017-03-27 03:37:06 +02:00
Stanford Lockhart a158431154 Bug 1345119 - Part 1: Move functions out of grid-inspector into inspector for sharing with boxmodel. r=pbro
MozReview-Commit-ID: KlHinf9jgFX
2017-03-17 22:58:11 -03:00
Iris Hsiao 206cfb29fd Backed out 5 changesets (bug 1345119) dor mochitest failure in test_inspector_getOffsetParent.html
Backed out changeset c9be65ad95f6 (bug 1345119)
Backed out changeset 4e4817e5b6d4 (bug 1345119)
Backed out changeset 6a01debcc43c (bug 1345119)
Backed out changeset 2c6f67f420d0 (bug 1345119)
Backed out changeset ba020c15393d (bug 1345119)
2017-03-24 15:01:47 +08:00