Commit Graph

269 Commits

Author SHA1 Message Date
Mellina Y.
3d366d4c4a Bug 1582658 - Enable ESLint for all of devtools/client/storage/test/. r=miker
Differential Revision: https://phabricator.services.mozilla.com/D47679

--HG--
extra : moz-landing-system : lando
2019-10-16 13:50:08 +00:00
Tim Nguyen
822add064c Bug 1513325 - Remove textbox binding. r=emilio,dao
Differential Revision: https://phabricator.services.mozilla.com/D38955

--HG--
extra : moz-landing-system : lando
2019-10-09 09:27:28 +00:00
Luca Greco
bf6f8c67db Bug 1578447 - Fix storage panel ui not refreshing on changes to items with string keys parsable as JSON. r=miker
In /devtools/client/storage/ui.js, handleChangedItems and handleDeletedItems should only JSON.parse string keys related to the indexedDB and Cache actors.

The string keys used by all the other storage actors are expected to be a simple string keys, and their valid values include strings that can be successfully parsed as JSON (e.g. "123" or "null" are both valid keys for the storage items related to the localStorage, extensionStorage etc.).

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

--HG--
extra : moz-landing-system : lando
2019-09-26 12:28:06 +00:00
Brian Grinstead
3055031260 Bug 1582786 - Append the devtools theme stylesheet sheet after global.css in document.head if it exists instead of using an XML ProcessingInstruction r=nchevobbe
Otherwise, what happens in documents like the webconsole is the theme file gets loaded before
global.css, which isn't the intended behavior and makes overriding the styles from global.css
more difficult. As an example, some buttons in the webconsole became stretched after Bug 1581914
changed some default styling in global.css. This patch restores the correct behavior by loading
the theme afer global.css.

global.css is currently loaded in devtools in docs that explicitly use XUL elements (such as storage inspector
and style editor), and in docs that need to be supported as top level windows (webconsole, toolbox, and
browser toolbox). Unless if we change how things like panels and context menus are styled, the latter
group will continue to need to load global.css even as XUL/XBL usage goes away (since they are styled
with global.css).

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

--HG--
extra : moz-landing-system : lando
2019-09-25 18:16:28 +00:00
Cosmin Sabou
c310c938df Bug 1542144 - Annotate test on fission cause on debug failures. r=pbone
Differential Revision: https://phabricator.services.mozilla.com//D44584
2019-09-04 03:10:04 +03:00
Nicolas Chevobbe
925311bc77 Bug 1568779 - Remove editors settings comments in devtools files. r=pbro.
Differential Revision: https://phabricator.services.mozilla.com/D42300

--HG--
extra : moz-landing-system : lando
2019-08-19 12:48:16 +00:00
Alexandre Poirot
7ffa8985ff Bug 1569676 - Make storage panel's destroy synchronous. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D39713

--HG--
extra : moz-landing-system : lando
2019-08-12 13:47:27 +00:00
Kris Maglione
c01ad83372 Bug 1571502: Don't leak TabGroups which have never had windows joined to them. r=nika
Currently, TabGroups know to break their reference cycles only when the last
window leaves them. For TabGroups which have never had a window join (which
happens under Fission), this means they also never see a window leave, and
therefore never break their reference cycles, and leak.

This patch adds a check to break reference cycles if no windows have joined by
the time a BrowserChild they belong to is destroyed.

MANUAL PUSH: Lando fails to rebase.

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

--HG--
extra : source : 03acb28ab60fb77fa06064385a62cc46cf4ad1bd
extra : amend_source : 0a71625d99951bebe45ee6f62570de491a714e97
2019-08-02 18:19:53 -07:00
Bogdan Tara
80a144be91 Backed out 8 changesets (bug 1569676) for failures on browser_toolbox_tool_ready.js CLOSED TREE
Backed out changeset 997ad11003a3 (bug 1569676)
Backed out changeset 2dab5e2243d0 (bug 1569676)
Backed out changeset 59660e3e2e53 (bug 1569676)
Backed out changeset c0b0e0410a66 (bug 1569676)
Backed out changeset 1bc927ef181a (bug 1569676)
Backed out changeset 5227c89295f4 (bug 1569676)
Backed out changeset 8365fc01396b (bug 1569676)
Backed out changeset 996c40dbc9e2 (bug 1569676)
2019-08-05 22:00:23 +03:00
Alexandre Poirot
fa5f22284f Bug 1569676 - Make storage panel's destroy synchronous. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D39713

--HG--
extra : moz-landing-system : lando
2019-08-05 10:47:06 +00:00
Kris Maglione
ef02b3cbd8 Bug 1568035: Part 1 - Skip tests which cause shutdown leaks under Fission. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D39459

--HG--
extra : rebase_source : 594e7c17a8aa81f9b212ff1fa492a8ab8f40d5ee
2019-07-19 15:31:16 -07:00
Andreea Pavel
e4263c00eb Merge mozilla-inbound to mozilla-central. a=merge 2019-07-25 08:59:39 +03:00
Julian Descottes
8fb98366d6 Bug 1550476 - Replace jsol library by json5 to avoid eval-like usage r=miker
Depends on D38620

json5 is a much bigger library than JSOL but it doesn't rely on any eval-like code.
It should provide similar features, and testing locally it seems to work as expected.

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

--HG--
extra : moz-landing-system : lando
2019-07-24 09:35:49 +00:00
Kris Maglione
e40b418215 Bug 1566952: Part 2 - Update Fission failure annotations after skipping crashes. r=mccr8
When a test crashes, the harness skips all of the remaining tests in the
directory. That means that with crashes skipped, we now try to run a whole lot
more tests than we did before, and a lot of them fail under Fission.

This patch adds annotations to the new failures that show up after part 1.

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

--HG--
extra : rebase_source : 292157039c88fc615f5de41679e96e72766ac4db
2019-07-19 12:30:10 -07:00
Kris Maglione
0962c2b731 Bug 1566182: Annotate mochitests that fail with Fission enabled. r=mccr8
My preference was to annotate most of the failing tests with `fail-if` so that
if they start passing, the `fail-if` needs to be removed and they need to keep
passing. That doesn't work for tests that timeout, or which trigger failures
from their cleanup functions, however, so those tests need skip-if. And tests
with fail in their cleanup functions likely leave the browser in an
inconsistent state for subsequent tests, anyway, so really should be skipped
regardless.

There are some remaining tests which still fail because of crashes. I chose
not to skip them here, but to fix the crashes in separate bugs instead.

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

--HG--
extra : rebase_source : 39ba8fec2e882cfe577c5f2b58ab7e4b461f1178
2019-07-15 16:19:32 -07:00
Jonathan Kingston
31441f82ea Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D35504

--HG--
extra : moz-landing-system : lando
2019-07-08 16:37:45 +00:00
Victor Porof
f6db0ee557 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : 60e4496cf9699dc59f2f4738cb60f87cbdb01e67
2019-07-05 11:24:38 +02:00
Tim Nguyen
d5dcb284d5 Bug 1557674 - Replace XUL textbox usages with HTML inputs in storage inspector. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D34190

--HG--
extra : moz-landing-system : lando
2019-06-07 21:42:59 +00:00
Dorel Luca
c735f1864c Backed out changeset 7bf9069eba43 (bug 1557674) for DevTools failures in devtools/client/storage/test/browser_storage_cookies_tab_navigation.js. CLOSED TREE 2019-06-08 00:10:09 +03:00
Tim Nguyen
4bc7c29815 Bug 1557674 - Replace XUL textbox usages with HTML inputs in storage inspector. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D34190

--HG--
extra : moz-landing-system : lando
2019-06-07 19:36:00 +00:00
Michael Ratcliffe
09cf65be17 Bug 1554841 - l10n corrections in storage inspector cookie table headers r=pbro
### Changes

#### Set 1 - Match cookie creation strings, remove "on" and capitalize.

- Expires on {icon long-arrow-right} Expires
- Last accessed on {icon long-arrow-right} Last accessed
- Created on {icon long-arrow-right} Created
- sameSite {icon long-arrow-right} SameSite

#### Set 2 - Re-add missing strings

- table.headers.cookies.isHttpOnly=HttpOnly
- table.headers.cookies.isSecure=Secure
- table.headers.cookies.hostOnly=HostOnly

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

--HG--
extra : moz-landing-system : lando
2019-06-05 13:11:00 +00:00
Andrea Marchesini
176b3f8e39 Bug 1556419 - cookie path should not contain the last '/', r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D33500

--HG--
extra : moz-landing-system : lando
2019-06-04 02:42:57 +00:00
Tim Nguyen
fef5483c4f Bug 1223368 - Refactor searchbox style to be consistent across tools. r=fvsch,gl,Honza,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28334

--HG--
extra : moz-landing-system : lando
2019-05-11 17:54:16 +00:00
arthur.iakab
59ea6f2ddc Backed out changeset c8a2cbf18f3c (bug 1223368) for devtools failures on browser_inspector_search-01.js CLOSED TREE 2019-05-11 20:44:42 +03:00
Tim Nguyen
d2328a28a9 Bug 1223368 - Refactor searchbox style to be consistent across tools. r=fvsch,gl,Honza,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28334

--HG--
extra : moz-landing-system : lando
2019-05-11 16:08:13 +00:00
Brian Grinstead
aab8a44fd1 Bug 1547326 - Convert storage inspector buttons to html:button in order to drop support for <xul:button class="devtools-button"> r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D29035

--HG--
extra : moz-landing-system : lando
2019-04-26 20:19:55 +00:00
Brian Grinstead
08992fb8e8 Bug 1546501 - Remove unnecessary type attributes (i.e. [type="application/javascript"]) on non-test script tags r=mossop
This is an autogenerated commit, generated with https://bug1546501.bmoattachments.org/attachment.cgi?id=9060222

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

--HG--
extra : moz-landing-system : lando
2019-04-24 19:43:57 +00:00
Florens Verschelde
2f9ce43c98 Bug 1544438 - Prevent backspace from deleting Storage entry when editing; r=miker
Differential Revision: https://phabricator.services.mozilla.com/D27880

--HG--
extra : moz-landing-system : lando
2019-04-17 14:23:15 +00:00
Ehsan Akhgari
b63138b85d Bug 1541248 - Make sure browser_storage_values.js does not depend on the value of the privacy.documentCookies.maxage pref; r=baku on a CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D25878

--HG--
extra : source : cc704998fa1500bc170cba068d1731aab64057c7
extra : histedit_source : 033596cba01318aad1a61454d9ad1d4b7b64f87b
2019-04-03 05:17:52 +00:00
Andreea Pavel
fc8cdc560c Backed out changeset cc704998fa15 (bug 1541248) for browser_storage_listings.js on a CLOSED TREE 2019-04-03 23:35:26 +03:00
Ehsan Akhgari
d68918fbd2 Bug 1541248 - Make sure browser_storage_values.js does not depend on the value of the privacy.documentCookies.maxage pref; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D25878

--HG--
extra : moz-landing-system : lando
2019-04-03 05:17:52 +00:00
fanny
d84598c487 Bug 1115363 - Implement copy text option on sidebar of storage. r=miker
Before this change, there was no option to copy text of an attribute in
sidebar of storage.You can now copy an attribute and it's text.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 13:26:42 +00:00
Brian Grinstead
a797a66d25 Bug 1531119 - Remove editMenuCommands.inc.xul and make editMenuOverlay.js in charge of constructing the relevant commandset DOM r=bdahl,NeilDeakin
This allows us to drop preprocessing and makes it simpler to add edit menu functionality to any type of document.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 14:18:48 +00:00
avi.mathur
8fd0e4523d Bug 1291427 - Remove table headers when selecting an empty storage type r=miker
Before this change clicking on Storage Type use to show table headers from previous selection. Now clicking on Storage Type will reset table headers also in case empty table headers will get cleared.

### Try

https://treeherder.mozilla.org/#/jobs?repo=try&revision=10f387eeb0dcb68f43e7e441a3045c23e40295a5

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

--HG--
extra : moz-landing-system : lando
2019-03-18 15:26:58 +00:00
David Walsh
729dc583d4 Bug 1522893 - Allow deletion of storage items via keyboard r=davidwalsh
### Try

https://treeherder.mozilla.org/#/jobs?repo=try&revision=c46d57e649963f756959b48cad0c211603ccc061

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

--HG--
extra : moz-landing-system : lando
2019-03-19 21:52:28 +00:00
Coroiu Cristina
bac7a4e580 Backed out changeset b9c222097ae1 (bug 1522893) for devtools failures at devtools/client/storage/test/browser_storage_delete.js on a CLOSED TREE 2019-03-19 19:06:34 +02:00
David Walsh
e1ab9dbe90 Bug 1522893 - Allow deletion of storage items via keyboard r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D23896

--HG--
extra : moz-landing-system : lando
2019-03-19 15:36:42 +00:00
Oana Pop Rus
514a737482 Backed out changeset c8a4f2586fc0 (bug 1291427) for devtools on browser_storage_cookies_edit.js on a CLOSED TREE 2019-03-08 17:48:49 +02:00
avi.mathur
b41eb2119e Bug 1291427 - Table headers are not removed when selecting an empty storage r=miker
Before this change clicking on Storage Type use to show table headers from previous selection. Now clicking on Storage Type will reset table headers also in case empty table headers will get cleared.

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

--HG--
extra : moz-landing-system : lando
2019-03-08 14:17:27 +00:00
Rainier G
c4fe6600b5 Bug 1477296 - Updated itemoffset to 0 when local storage is cleared r=miker
Differential Revision: https://phabricator.services.mozilla.com/D20385

--HG--
extra : moz-landing-system : lando
2019-02-20 12:56:43 +00:00
Rainier G
9d86ec2fc9 Bug 1504634 - Added tooltip to refresh button of storage inspector section. r=miker
Differential Revision: https://phabricator.services.mozilla.com/D20353

--HG--
extra : moz-landing-system : lando
2019-02-19 16:21:31 +00:00
Michael Ratcliffe
fb3659bc27 Bug 1356943 - Only show a tree in the storage sidebar when it is useful r=pbro
pbro did r+ this patch some time back but it kept breaking try. The only differences between then and now are:

1. `devtools/client/storage/ui.js:859` was reverted to using "" instead of undefined to fix test issues.
2. A bad check for mathematical values was replaced with a `MATH_REGEX` check `devtools/client/storage/ui.js:64,941-943`

A new try run is here:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=0212fe328f13991ece396bccb44668d821cb4218&group_state=expanded

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

--HG--
extra : moz-landing-system : lando
2019-02-07 09:33:42 +00:00
Tim Nguyen
3288f151d4 Bug 1518159 - Remove usages of and support for XUL textbox[type='search'] in DevTools. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D15842

--HG--
extra : moz-landing-system : lando
2019-01-09 13:29:31 +00:00
yulia
edb57234af Bug 1508660 - make storage front and changes front async; r=ochameau
Depends on D13110

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

--HG--
extra : moz-landing-system : lando
2018-12-18 08:33:11 +00:00
Ciure Andrei
2540abfecb Backed out 14 changesets (bug 1508660, bug 1508656, bug 1504185) for browser_target_cached-front.js perma failures CLOSED TREE
Backed out changeset 08e5ae4312b3 (bug 1508660)
Backed out changeset 01b687bb0b75 (bug 1504185)
Backed out changeset 140374b098aa (bug 1504185)
Backed out changeset caafdc0ea4c7 (bug 1508656)
Backed out changeset 8b98b777aec2 (bug 1508656)
Backed out changeset f1905a2f9b6c (bug 1508656)
Backed out changeset 8b01632f9e3d (bug 1508656)
Backed out changeset eb4c893d451e (bug 1508656)
Backed out changeset 70db61618160 (bug 1508656)
Backed out changeset dff79b73c7fe (bug 1508660)
Backed out changeset b3518d5285be (bug 1508660)
Backed out changeset 94a957b9ba90 (bug 1508660)
Backed out changeset 773938f18269 (bug 1508660)
Backed out changeset 4eca8fce0a47 (bug 1508660)
2018-12-17 17:15:23 +02:00
yulia
ff201583ca Bug 1508660 - make storage front and changes front async; r=ochameau
Depends on D13110

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

--HG--
extra : moz-landing-system : lando
2018-12-17 12:29:52 +00:00
vinoth
e14aa2974e Bug 1504605 - Add Prefs to xpcshell test files for allowing usage of eval. r=ckerschb
Reviewers: ckerschb

Reviewed By: ckerschb

Subscribers: ckerschb

Bug #: 1504605

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

--HG--
extra : rebase_source : 9abb395224bdfa7795516295babfd847ea2553f4
2018-11-05 16:41:45 +02:00
vinoth
896a7bbbd2 Bug 1504207 - Add Prefs for allowing usage of eval with system principal in test files r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D10696

--HG--
extra : moz-landing-system : lando
2018-11-05 13:39:31 +00:00
Mark Banner
1ffb981b68 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (manual fixes). r=mossop
Depends on D8389

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

--HG--
extra : moz-landing-system : lando
2018-10-19 08:33:17 +00:00
Mark Banner
ceaeb93550 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389

--HG--
extra : moz-landing-system : lando
2018-10-19 12:55:39 +00:00