Commit Graph

16751 Commits

Author SHA1 Message Date
Brendan Dahl
efab80cbeb Bug 1550801 - Replace expected XULDocument with HTMLDocument in devtools tests. r=nchevobbe
test_bug819670_getter_throws.html:
Previously, the document context inspected in the console was the test
harness XULDocument, but now it will be an HTMLDocument. Update the
checks to make sure the inspected object has the same own properties as
the test documents own properties.

other tests:
Simply replace the expected document type.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 06:34:05 +00: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
Julian Descottes
2600f5c910 Bug 1550471 - Migrate to JSZip v3.2.1 to avoid usage of eval-like code r=Honza
Depends on D38619

The new version of JSZip doesn't rely on any eval like code.

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

--HG--
extra : moz-landing-system : lando
2019-07-19 06:45:21 +00:00
Julian Descottes
72e1e60982 Bug 1550463 - Remove new Function usage in lodash r=jlast
Depends on D38618

The template() helper seems not used in devtools so I removed it here.
If we could generate a bundle of lodash without this method from the start that would be great.

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

--HG--
extra : moz-landing-system : lando
2019-07-24 15:36:02 +00:00
Julian Descottes
8095fbadfe Bug 1550489 - Remove usage of new Function in react-redux.js r=nchevobbe
Depends on D38617

We should no longer use eval-like code in privileged modules

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

--HG--
extra : moz-landing-system : lando
2019-07-19 07:48:52 +00:00
Julian Descottes
3977257d5e Bug 1550485 - Remove usage of new Function in redux.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D38514

--HG--
extra : moz-landing-system : lando
2019-07-19 08:34:19 +00:00
Micah Tigley
1dba48a76d Bug 1567335 - Make sure the animation class for the foreground element is removed. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D38805

--HG--
extra : moz-landing-system : lando
2019-07-23 23:02:39 +00:00
Jonathan Kingston
9cd90ac210 Bug 1301529 - Remove X-Frame-Options allow-from. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D38672

--HG--
extra : moz-landing-system : lando
2019-07-24 12:23:32 +00:00
Ola Gasidlo
078e09a48b Bug 1558756 - Adding jest tests for components, r=ladybenko,jdescottes
added more jest test for components including snapshots + fixtures

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

--HG--
extra : moz-landing-system : lando
2019-07-24 09:27:08 +00:00
Nicolas Chevobbe
802ec8cc65 Bug 1568472 - Add Gitbook hint plugin. r=jdescottes.
The template is used in one of the page, but the
plugin wasn't installed, so Gitbook would fail
generating the doc.

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

--HG--
extra : moz-landing-system : lando
2019-07-24 10:38:20 +00:00
Julian Descottes
f15a7e16e5 Bug 1568250 - Fix HTML tooltip auto height calculation r=miker,Maliha
The current auto height and auto width tests were not asserting the proper element.

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

--HG--
extra : moz-landing-system : lando
2019-07-24 11:49:32 +00:00
Nicolas Chevobbe
6abf1502fb Bug 1568439 - Move webconsole-l10n to utils/l10n. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D39159

--HG--
rename : devtools/client/webconsole/webconsole-l10n.js => devtools/client/webconsole/utils/l10n.js
extra : moz-landing-system : lando
2019-07-24 11:11:34 +00:00
Alexandre Poirot
b05d25d7d6 Bug 1568203 - Removed unused requestEvaluation's frame argument. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D39052

--HG--
extra : moz-landing-system : lando
2019-07-24 08:35:48 +00:00
Alexandre Poirot
0d64e50e68 Bug 1568185 - Remove unused bindObjectActor argument from console actor. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D39051

--HG--
extra : moz-landing-system : lando
2019-07-24 08:35:41 +00:00
Bogdan Tara
b478ba698c Backed out 2 changesets (bug 1568203, bug 1568185) for ES lint failure on eval-with-debugger.js CLOSED TREE
Backed out changeset adc394f833f9 (bug 1568203)
Backed out changeset 46c3a1fdc706 (bug 1568185)
2019-07-24 11:24:51 +03:00
Alexandre Poirot
ee92f37d96 Bug 1568203 - Removed unused requestEvaluation's frame argument. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D39052

--HG--
extra : moz-landing-system : lando
2019-07-24 07:48:01 +00:00
Alexandre Poirot
802d183dff Bug 1568185 - Remove unused bindObjectActor argument from console actor. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D39051

--HG--
extra : moz-landing-system : lando
2019-07-24 07:47:55 +00:00
Nicolas Chevobbe
9eb479e06a Bug 1568193 - Remove devtools/client/shared/webpack/shims/jsterm-stub.js. r=ochameau.
The file isn't used anywhere, so we can probably
remove it safely.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 19:26:53 +00:00
Boris Zbarsky
a818800ec5 Bug 1568278. Remove various unnecessary QIs to nsIDOMWindow. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D39065

--HG--
extra : moz-landing-system : lando
2019-07-24 01:26:07 +00:00
Narcis Beleuzu
b24422d05d Backed out changeset 637f32b7e43c (bug 1567335) for dt failures on markup.css . CLOSED TREE 2019-07-23 23:24:34 +03:00
Armando Ferreira
a22a750ddc Bug 1558198 - Add history navigation buttons in Editor toolbar. r=nchevobbe
Adding History navigation to Editor toolbar

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

--HG--
extra : moz-landing-system : lando
2019-07-23 18:36:01 +00:00
Armando Ferreira
237ff71915 Bug 1540722 - Copy link location should work for learn-more links. r=nchevobbe
Support for coping link location from within the Console panel (through the context menu) can be extended and cover learn more links too.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 18:34:08 +00:00
Belén Albeza
4dbbe95828 Bug 1565571 - Switch components to PureComponent r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D39003

--HG--
extra : moz-landing-system : lando
2019-07-23 13:46:57 +00:00
Alexandre Poirot
75662cc393 Bug 1567760 - Fix OOM failures in browser_webconsole_inspect_cross_domain_object.js. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D38985

--HG--
extra : moz-landing-system : lando
2019-07-23 17:01:28 +00:00
Cosmin Sabou
a4efa7bded Backed out 2 changesets (bug 1407945) for devtools failures on browser_tooltip.js.
Backed out changeset 1160c6868061 (bug 1407945)
Backed out changeset 359eec53f12e (bug 1407945)
2019-07-23 19:39:41 +03:00
Micah Tigley
7cd712008e Bug 1567335 - Add an explicit CSS transition duration for the markup view's flash-out class. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D38805

--HG--
extra : moz-landing-system : lando
2019-07-23 01:50:11 +00:00
Daisuke Akatsuka
43bb97631f Bug 1407945: Add a test for the tooltip in RDM. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D38827

--HG--
extra : moz-landing-system : lando
2019-07-23 13:54:32 +00:00
Mihai Alexandru Michis
bae6d95085 Backed out changeset 266931d06efb (bug 1558756) for causing devtools failures CLOSED TREE 2019-07-23 17:49:45 +03:00
Ola Gasidlo
b7588f8d35 Bug 1558756 - Adding jest tests for components, r=ladybenko,jdescottes
added more jest test for components including snapshots + fixtures

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

--HG--
extra : moz-landing-system : lando
2019-07-23 14:35:42 +00:00
Oana Pop Rus
763ca8a2dd Bug 1556687 - disable browser_perf-recording-notices-04.js for frequent failures. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D38990

--HG--
extra : moz-landing-system : lando
2019-07-23 12:13:52 +00:00
Tom Schuster
4e4dbeff23 Bug 1523706 - Extend devtools test. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D37912

--HG--
extra : moz-landing-system : lando
2019-07-23 09:47:03 +00:00
yulia
1c9daf26fe Bug 1528730 - Remove ChromeDebugger and rename chromeDebugger field to threadActor; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D38838

--HG--
extra : moz-landing-system : lando
2019-07-23 03:27:04 +00:00
Razvan Maries
54fa5ec03f Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-07-23 00:51:11 +03:00
Razvan Maries
86980b4bb2 Merge mozilla-inbound to mozilla-central a=merge 2019-07-23 00:37:54 +03:00
Mihai Alexandru Michis
a4db5efa81 Backed out changeset 4dd499946b35 (bug 1557694) for causing failures in browser_parsable_css.js CLOSED TREE 2019-07-22 17:51:14 +03:00
David Walsh
93bd4b973a Bug 1567250 - Move async storage and helper to shared location r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D38534

--HG--
rename : devtools/client/debugger/src/utils/asyncStoreHelper.js => devtools/client/shared/async-store-helper.js
extra : moz-landing-system : lando
2019-07-22 14:59:55 +00:00
Gabriel Luong
19aca80c51 Bug 1567276 - Refactor inspector to inspectorFront. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D38554
2019-07-18 15:33:55 -04:00
Coroiu Cristina
6d42386a82 Merge mozilla-central to inbound a=merge on a CLOSED TREE
--HG--
extra : amend_source : fe224af87d863a8482fa90b6108ef3c5c93391f9
2019-07-22 19:08:45 +03:00
Brian Hackett
aebf72ab33 Bug 1405402 - Re-expand scope entries after resuming and re-pausing in a frame, r=jlast.
--HG--
extra : rebase_source : 16b3ef2e06b1310f01fa635ac99e7f970b2856b6
2019-07-21 14:50:09 -10:00
Brian Hackett
a5fa15c505 Bug 1556858 - Track memory/timing statistics in control logic, r=loganfsmyth.
--HG--
extra : rebase_source : a1e5f25258da738ba9dcf3d1814e51c9b2097fd0
2019-07-21 14:49:38 -10:00
Brian Hackett
affccc3856 Bug 1556847 - Fix various record/replay bugs, r=loganfsmyth.
--HG--
extra : rebase_source : c4746f6baefb9cbdcbb89397807aba0060a2b369
2019-07-21 14:48:53 -10:00
Belén Albeza
7b23051c6e Bug 1557694 - Use <button> instead of <a> for Start/Debug workers r=Ola
**NOTE: This depends on D35513, so if it has not landed yet, please `arc patch D35513` before patching this one on top.**

- `.devtools-button` styles in `common.css` are kinda broken , so I decided to roll out our own button component (`UIButton`) after consulting with Victoria colors, sizes, etc. The other downside to selectors in `common.css` is that they can have a high specificity :(
- Victoria said to use the "micro" style from Photon as the default style for buttons in the panels. So I created an even smaller "micro" styles (very similar to `.devtools-togglebutton`) for when we need smaller buttons.
- I created some light/dark variables in our stylesheets instead of on `variables.css` because `--theme-button-background` was already taken (only used in a single panel, but still…). Maybe after the buttons are fixed globally in the common folder, we could use the variables there. In the meantime, to avoid losing more time, I rolled out our own vars here.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 15:40:12 +00:00
Vikas Mahato
097ac365a2 Bug 1561869 - Font Editor: "normal" value for line-height and letter-spacing is automatically converted on keyboard navigation. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D37967

--HG--
extra : moz-landing-system : lando
2019-07-22 10:48:17 +00:00
Razvan Caliman
6bd3a34df5 Bug 1567164 - Ensure StyleRuleActor.getRuleText() returns text content of minified CSS. r=gl
The patch for Bug 724505 changed the return of `prettifyCSS()` from a string to an object and the reference in the StyleRuleActor.getRuleText() was not updated. This patch fixes this and introduces a test.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 07:58:05 +00:00
Julian Descottes
28d6b32674 Bug 1539321 - Remove unused aboutdebugging debugAddon helper r=remote-debugging-reviewers,daisuke
This helper was only used by the old aboutdebugging and can be removed

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

--HG--
extra : moz-landing-system : lando
2019-07-22 08:46:51 +00:00
Nicholas Nethercote
7a3878cec2 Bug 1567329 - Change some mentions of StaticPrefList.h to StaticPrefList.yaml. r=erahm
This is fall-out from bug 1564724.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 02:09:36 +00:00
Belén Albeza
6e6b55ce8f Bug 1564861 - WorkerList should have unique keys r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D38053

--HG--
extra : moz-landing-system : lando
2019-07-16 10:18:17 +00:00
Sebastian Streich
d19c155e9e Bug 1100630 - Print Related JS-Line on CSP Violation (if any) r=ckerschb,dveditz
Differential Revision: https://phabricator.services.mozilla.com/D31420

--HG--
extra : moz-landing-system : lando
2019-07-22 09:31:57 +00:00
Belén Albeza
9a0fade87d Bug 1557694 - Use <button> instead of <a> for Start/Debug workers r=Ola
**NOTE: This depends on D35513, so if it has not landed yet, please `arc patch D35513` before patching this one on top.**

- `.devtools-button` styles in `common.css` are kinda broken , so I decided to roll out our own button component (`UIButton`) after consulting with Victoria colors, sizes, etc. The other downside to selectors in `common.css` is that they can have a high specificity :(
- Victoria said to use the "micro" style from Photon as the default style for buttons in the panels. So I created an even smaller "micro" styles (very similar to `.devtools-togglebutton`) for when we need smaller buttons.
- I created some light/dark variables in our stylesheets instead of on `variables.css` because `--theme-button-background` was already taken (only used in a single panel, but still…). Maybe after the buttons are fixed globally in the common folder, we could use the variables there. In the meantime, to avoid losing more time, I rolled out our own vars here.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 12:25:09 +00:00
Krishnal Ciccolella
357ef6d576 Bug 1552142 Text inside the contrast badges should be unselectable r=yzen
I added `-moz-user-select: none;` to the `.badge` class  in devtools/client/accessibility/accessibility.css .

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

--HG--
extra : moz-landing-system : lando
2019-07-20 15:14:27 +00:00