Commit Graph

310 Commits

Author SHA1 Message Date
J. Ryan Stinnett
7e2158acc2 Bug 1178851 - Move testing flag to DevToolsUtils. r=ochameau 2015-07-02 04:56:57 -05:00
Brian Grinstead
52906e4159 Bug 1143224 - Add new requests to the netmonitor view asynchronously;r=jsantell 2015-06-12 08:35:38 -07:00
Sami Jaktholm
c371a69c06 Bug 949355 - Wait for iframes to be loaded before looking at their style sheets. r=bgrins
Previously the getStyleSheets method was only waiting for the topmost frame to
load before listing the style sheets. If a frame wasn't loaded in time, it
caused some sheets to be missing causing the test to timeout.

These changes make the actor to wait for a frame to be loaded in _addStyleSheets
before doing the actual adding. This allows the code of _addAllStyleSheets to be
moved directly to getStyleSheets as it no longer needs to wait for the load to
happen.
2015-05-31 15:08:57 +03:00
Patrick Brosset
b0fc02b334 Bug 1166189 - ESLint configuration files for devtools; r=tromey
Adds a global .eslintrc file for all source files in /browser/devtools.
This file defines a set of global variables that are commonly used in
/browser/devtools code.
The files that import modules with Cu.import will need to define their
own globals as /* globals ... */ comments.
This file also defines the configuration for all the rules we want to
use.

This also adds a set of .eslintrc files, one per test directory in
/browser/devtools. Each of these files extend from one of 2 parent config
files: .eslintrc.xpcshell or .eslintrc.mochitest.
The parent config define the set of globals these types of tests have
access to (test runner functions, assertion functions, etc.).

Finally, this also adds .eslintrc files in /toolkit/devtools for code and
tests, which just extend from their counterparts in /browser/devtools.
2015-05-28 09:30:03 +02:00
Phil Ringnalda
0eefe0c506 Merge f-t to m-c, a=merge 2015-05-23 14:28:07 -07:00
Patrick Brosset
923cdc222d Bug 1167617 - Remove SpiderMonkey specific JS syntax from inspector; r=jryans 2015-05-22 20:50:01 +02:00
Panos Astithas
4a8380421f Bug 1163024 - Part 2: Ignore network requests from chrome code in a content toolbox. r=ochameau 2015-05-22 09:09:44 +03:00
Tom Tromey
b3cad09d48 Bug 1154809 - rewrite prettifyCSS to use CSSLexer; r=pbrosset 2015-05-19 08:56:01 -07:00
Alexandre Poirot
5cbef5bde7 Bug 1161072 - Reset docshell state (disabled js/cache, service workers) from actor instead of client. r=jryans 2015-05-18 20:15:35 +02:00
Ryan VanderMeulen
2aa50456a9 Backed out 7 changesets (bug 1154809) for xpcshell failures.
Backed out changeset 056f69eee8db (bug 1154809)
Backed out changeset 13f93d585e42 (bug 1154809)
Backed out changeset 1e967727087e (bug 1154809)
Backed out changeset 1f3809022d39 (bug 1154809)
Backed out changeset 7e730e9cb6b3 (bug 1154809)
Backed out changeset 139959618516 (bug 1154809)
Backed out changeset ea59187953f6 (bug 1154809)
2015-05-17 19:54:49 -04:00
Tom Tromey
d50719d7ab Bug 1154809 - Rewrite prettifyCSS to use CSSLexer. r=pbrosset 2015-05-14 05:35:00 -04:00
Ryan VanderMeulen
e6f85b1f9e Merge m-c to inbound. a=merge
CLOSED TREE
2015-05-22 14:18:25 -04:00
Christoph Kerschbaumer
3c253c09de Bug 1167053 - Convert NetUtil.newChannel2 callsites to use new API - update asyncFetch2 (r=sicking,paolo) 2015-05-21 19:51:40 -07:00
Tooru Fujisawa
22a3f8a30f Bug 1102219 - Part 5: Replace more String.prototype.contains with String.prototype.includes in chrome code. r=till 2015-04-30 00:32:05 +09:00
Sami Jaktholm
493766f074 Bug 1148086 - Style Editor: Don't jump to the first line unconditionally when an editor is shown. r=bgrins
This overrides the jump-to-line other tools might have requested if the editor
was not already active. The idea was to restore the scroll position after the
editor was hidden and then shown again but the functionality regressed when bug
816967 was fixed.

Now that Style Editor uses CodeMirror the scroll position can be restored by
calling refresh on the CodeMirror instance. If a specific line to focus was
specified, refreshing the editor is a no-op as it was done when the line was
selected. However, if the editor was not refreshed after the editor became
visible again (i.e. a line to jump to was not specified), refreshing it will
restore the previous scroll position.
2015-04-25 06:54:25 +03:00
James Long
d823f04140 Bug 764958 - Show cached network requests in the net monitor. r=jsantell 2015-04-24 14:57:00 -04:00
Joe Walker
cb03960f98 Bug 1128988 - runAt support for commands/converters; r=bgrins 2015-04-23 10:24:49 +01:00
Patrick Brosset
7b74675f78 Bug 1156767 - Report error message and continue loading other stylesheets even when a stylesheet fails; r=bgrins 2015-04-22 18:04:48 +02:00
Sami Jaktholm
f8afcf90a4 Bug 1148893 - Remove old initialization methods from head.js. r=bgrins 2015-03-29 13:24:27 +03:00
Sami Jaktholm
0639cb7017 Bug 1148893 - Make browser_styleeditor_opentab.js use the new initialization method. r=bgrins 2015-04-18 10:24:56 +03:00
Brian Grinstead
711cda8bf3 Bug 999299 - Remove '[]' from the autoCloseBrackets config for Style Editor sourceeditor;r=mratcliffe 2015-04-21 08:17:45 -07:00
Sami Jaktholm
d1a3061317 Bug 1148893 - Part 20 - Clean up browser_styleeditor_sv_resize.js and make it test something useful. r=bgrinstead 2015-04-18 08:26:14 +03:00
Sami Jaktholm
e9ed2ae238 Bug 1148893 - Part 19 - Clean up browser_styleeditor_autocomplete.js and split disabled autocomplete test into separate file. r=bgrinstead 2015-04-04 11:42:21 +03:00
Sami Jaktholm
ce05f2693f Bug 1148893 - Part 18 - Clean up browser_styleeditor_bug_740541_iframes.js. r=bgrinstead 2015-04-04 11:13:09 +03:00
Sami Jaktholm
7f86263444 Bug 1148893 - Clean up browser_styleeditor_bug_851132_middle_click.js. r=bgrinstead 2015-04-04 11:44:28 +03:00
Sami Jaktholm
7eda0c901e Bug 1148893 - Part 16 - Clean up browser_styleeditor_enabled.js. r=bgrinstead 2015-04-04 11:46:19 +03:00
Sami Jaktholm
c6bda28783 Bug 1148893 - Part 15 - Clean up browser_styleeditor_filesave.js. r=bgrinstead 2015-04-04 10:13:24 +03:00
Sami Jaktholm
13548da117 Bug 1148893 - Part 14 - Clean up browser_styleeditor_import.js. r=bgrinstead 2015-04-04 10:06:49 +03:00
Sami Jaktholm
a2317fa684 Bug 1148893 - Part 13 - Clean up browser_styleeditor_import_rule.js. r=bgrinstead 2015-04-04 10:02:55 +03:00
Sami Jaktholm
8e48c6c52e Bug 1148893 - Part 12 - Clean up browser_styleeditor_inline_friendly_names.js. r=bgrinstead 2015-04-04 09:53:26 +03:00
Willian Gustavo Veiga
4a846791ee Bug 992947 - Add "Open Link In New Tab" item to stylesheet list. r=bgrins 2015-04-13 16:16:16 -07:00
Sami Jaktholm
d736fbb64c Bug 1150005 - Don't wait for "editor-selected" event in browser_styleeditor_fetch-from-cache.js as it may have already been emitted. r=bgrins 2015-04-11 10:34:31 +03:00
Sami Jaktholm
edb4e10c8f Bug 1148770 - Don't load CodeMirror editor if StyleSheetEditor is destroyed before load is called. r=bgrins 2015-04-08 20:41:00 +03:00
Sami Jaktholm
28804881ea Bug 1148893 - Clean up browser_styleeditor_loading.js. r=bgrins 2015-04-02 21:14:07 +03:00
Sami Jaktholm
e4fe66c7b0 Bug 1148893 - Miscellaneous fixes to multiple style editor tests. r=bgrins 2015-03-28 14:02:48 +02:00
Sami Jaktholm
1eb623bc4d Bug 1148893 - Clean up browser_styleeditor_new.js. r=bgrins 2015-04-02 20:57:39 +03:00
Sami Jaktholm
369cbe49e2 Bug 1148893 - Clean up browser_styleeditor_nostyle.js. r=bgrins 2015-04-02 22:30:27 +03:00
Sami Jaktholm
ced2e6b219 Bug 1148893 - Clean up browser_styleeditor_pretty.js. r=ejpbruel 2015-04-07 18:46:50 +03:00
Sami Jaktholm
102b471b19 Bug 1148893 - Clean up browser_styleeditor_selectstylesheet.js. r=ejpbruel 2015-04-02 14:09:52 +03:00
Sami Jaktholm
b4f06024e2 Bug 1148893 - Clean up browser_styleeditor_sv_keynav.js. r=ejpbruel 2015-04-02 13:52:37 +03:00
Sami Jaktholm
4d94026ccb Bug 1148893 - Split navigation test out of browser_styleeditor_reload.js and clean it up. r=ejpbruel 2015-03-28 10:30:12 +02:00
Sami Jaktholm
8c0266d5fa Bug 1148770 - Wait for asynchronous operations to complete before resolving in StyleSheetEditor.fetchSource. r=ejpbruel 2015-04-01 06:41:28 +03:00
Panos Astithas
a936ed870b Add a devtools tag to all devtools tests (bug 1149907). r=pbrosset 2015-04-01 14:09:33 +03:00
Sami Jaktholm
63d7c914e6 Bug 1148893 - Add shared frame script utils to Style Editor head.js. r=ejpbruel 2015-03-28 10:19:03 +02:00
Sami Jaktholm
c9c99eb6cb Bug 1148893 - Replace .then handlers with yields to catch 'Unknown sheet source' rejections in Style Editor onShow task. r=ejpbruel 2015-03-28 10:15:29 +02:00
Sami Jaktholm
eeff11a39a Bug 1148893 - Return the style sheet selection promise to the caller. r=ejpbruel 2015-03-28 07:22:50 +02:00
Sami Jaktholm
58edb73b67 Bug 1148770 - Rewrite browser_styleeditor_bug_870339.js to fix intermittent leaks. r=ejpbruel 2015-03-29 08:59:28 +03:00
Sami Jaktholm
35e8deafe1 Bug 1147765 - Fix test failures caused by async initialization fixes. r=ejpbruel 2015-03-21 14:12:58 +02:00
Sami Jaktholm
bee8b6740f Bug 1147765 - Fix asynchronous initialization of Style Editor. r=ejpbruel 2015-03-26 13:30:35 +02:00
Gijs Kruitbosch
154ad71a4f Bug 1049199 - Style editor should show XBL stylesheets. r=pbrosset 2015-02-23 21:55:30 +00:00