Commit Graph
496 Commits
Author SHA1 Message Date
Julian Descottes 1497714c48 Bug 1366823 - add Scratchpad manager APIs to DevToolsShim;r=ochameau
MozReview-Commit-ID: 5JsSu9Spkgn
2017-05-29 14:50:07 +02:00
Paolo Amadini b83c1b93e8 Bug 1242505 - Part 5 - Remove obsolete whitelisting of unhandled rejections. r=Mossop
The whitelisting function thisTestLeaksUncaughtRejectionsAndShouldBeFixed was replaced by expectUncaughtRejection, and existing calls did not take effect anymore.

MozReview-Commit-ID: 3uOxkgWYWEz
2017-05-25 15:00:49 +01:00
Paolo Amadini e2ac328f74 Bug 1242505 - Part 3 - Detect unhandled rejections of native Promises in browser-chrome tests. r=Mossop
The browser-chrome test suite now detects and reports unhandled rejections of native Promises, in addition to those created by Promise.jsm. The whitelisting mechanism is updated to use primarily the PromiseTestUtils.expectUncaughtRejection function. Tests will fail if a rejection that is not whitelisted occurs, or if a whitelisted rejection does not occur anymore.

MozReview-Commit-ID: 1beGB5GG8Ty
2017-05-28 11:46:45 +01:00
Sebastian Hengst d3e7375d07 Backed out changeset 8d53be05afc5 (bug 1242505) 2017-05-28 11:31:12 +02:00
Sebastian Hengst 512a2a8b07 Backed out changeset 6f0394b523a6 (bug 1242505) 2017-05-28 11:31:01 +02:00
Paolo Amadini 09c88b0eac Bug 1242505 - Part 5 - Remove obsolete whitelisting of unhandled rejections. r=Mossop
The whitelisting function thisTestLeaksUncaughtRejectionsAndShouldBeFixed was replaced by expectUncaughtRejection, and existing calls did not take effect anymore.

MozReview-Commit-ID: 3uOxkgWYWEz
2017-05-25 15:00:49 +01:00
Paolo Amadini 0c75b3612c Bug 1242505 - Part 3 - Detect unhandled rejections of native Promises in browser-chrome tests. r=Mossop
The browser-chrome test suite now detects and reports unhandled rejections of native Promises, in addition to those created by Promise.jsm. The whitelisting mechanism is updated to use primarily the PromiseTestUtils.expectUncaughtRejection function. Tests will fail if a rejection that is not whitelisted occurs, or if a whitelisted rejection does not occur anymore.

MozReview-Commit-ID: 1beGB5GG8Ty
2017-05-25 15:00:35 +01:00
Ryan VanderMeulen f581b4e399 Merge inbound to m-c. a=merge 2017-05-25 16:34:16 -04:00
Honza Bambas 00cefdc449 Backout of 7f28c1084c47 (bug 1319111) for security checks breakage, r=me 2017-05-25 18:16:02 +02:00
Bob Silverberg 5e5cec2d2c Bug 1349896 - Part 1: Expose devtools theme via gDevTools, r=ochameau
Added gDevTools.getTheme() to provide the theme name, and a gDevTools "theme-changed"
event to provide a notification when the theme is changed.

MozReview-Commit-ID: EeUAmtyPpUy
2017-05-09 13:03:19 -04:00
Tom Tromey 80d99baac9 Bug 1366442 - request new debugger front end in source map tests; r=bgrins
MozReview-Commit-ID: LSuTghqoldz
2017-05-24 11:04:59 -06:00
Honza Bambas 0487f42c85 Bug 1319111 - Expose 'result principal URI' on LoadInfo as a source for NS_GetFinalChannelURI (removes some use of LOAD_REPLACE flag). r=bz 2017-05-23 08:09:00 -04:00
Julian Descottes 3f0b782801 Bug 1356244 - add integration test for DevToolsShim;r=ochameau
MozReview-Commit-ID: 8GKOLQtaSRl
2017-05-18 09:15:47 +02:00
Julian Descottes caac4302b1 Bug 1356244 - call DevTools shim on devtools startup;r=ochameau
MozReview-Commit-ID: 7p4gviVsGu8
2017-05-13 00:46:45 +02:00
Julian Descottes 65c211f6af Bug 1356244 - devtools-addon: create low-level DevTools shim for mozilla-central;r=ochameau
MozReview-Commit-ID: KdfomLHgdLY
2017-05-18 09:12:22 +02:00
Tom Tromey 9048adaa46 Bug 1366062 - clear SourceMapURLService cache on navigation; r=jryans
MozReview-Commit-ID: Elr6d2c7ZJR
2017-05-18 12:39:36 -06:00
Tom Tromey 97e45c1b8b Bug 1317962 - use source maps in stack traces in the console; r=jryans
MozReview-Commit-ID: 9SPZDi50XZv
2017-05-02 12:51:51 -06:00
Iris Hsiao 4f4f3dc4a3 merge mozilla-inbound to mozilla-central a=merge 2017-05-18 12:05:45 +08: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 7d53dd3164 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
Luca Greco c83cf0fb0e 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
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
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