Commit Graph
1082 Commits
Author SHA1 Message Date
Nicolas Chevobbe 2f8b59dc62 Bug 1566850 - Remove target.activeConsole usage in tests. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56688
2019-12-13 13:58:54 +00:00
Kris Maglione cb86a77af6 Bug 1596918: Part 4e - Fix callers which rely on frame message manager globals. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53746
2019-12-13 20:36:40 +00:00
Kris Maglione 7b2657b231 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-13 20:36:24 +00:00
Kris Maglione 8c0d38f33d Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-13 20:36:16 +00:00
Micah Tigley 91ec5fd85d Bug 1598893 - Add check for elements absolutely positioned within a grid container. r=pbro,miker,Oriol
This revision introduces a check for whether or not grid-item properties have an affect on an “absolutely-positioned” grid element. It’s important to note this grid element is not necessarily a grid item, it just needs to be contained within a grid container that generates its containing block. The general algorithm for this is to first check whether or not the element is either `position: fixed` or `position: absolute` then find an ancestor grid element that generates its containing block.

To help DevTools identify such an element,  InspectorUtils provides an API called `containingBlockOf` that returns the absolutely-positioned element’s containing block. If the element’s containing block is the viewport, then this method returns null. For now, `containingBlockOf` is designed for absolute/fixed positioned elements. So it’s important to be aware that trying to use it for other purposes might return unexpected results.

This revision also adds/updates tests that check whether or not grid-item properties are active on a grid element.

Differential Revision: https://phabricator.services.mozilla.com/D55400
2019-12-13 17:47:02 +00:00
Nicolas Chevobbe 3b5f03a0f6 Bug 1602709 - Remove unused DebuggerClient.close onClosed parameter. r=ladybenko.
Differential Revision: https://phabricator.services.mozilla.com/D56562
2019-12-13 13:11:45 +00:00
shindli 9969261559 Backed out 8 changesets (bug 1566850, bug 1603035) for causing perma bc failures in browser/components/extensions/test/browser/browser_ext_devtools_inspectedWindow.js CLOSED TREE
Backed out changeset da1672f831d1 (bug 1566850)
Backed out changeset b3aea303d3ed (bug 1566850)
Backed out changeset 3c8ef35fde92 (bug 1566850)
Backed out changeset 4deadf97378f (bug 1566850)
Backed out changeset 55ac64d74725 (bug 1566850)
Backed out changeset 33c4706a4255 (bug 1566850)
Backed out changeset 1796a39b020b (bug 1566850)
Backed out changeset ae02ae71f846 (bug 1603035)
2019-12-13 12:50:45 +02:00
Nicolas Chevobbe b25e763547 Bug 1566850 - Remove target.activeConsole usage in tests. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56688
2019-12-13 09:10:33 +00:00
Julian Descottes cdf779c751 Bug 1525966 - Reject Error object instead of string in DevTools Front:onPacket r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D55829
2019-12-11 17:31:39 +00:00
chujun ae5b304e3b Bug 1596114 - Refactor server unit tests part1 r=bhackett,jlast
I refactored some of the unit tests to see if I'm on the right direction. If so, I'll continue with other unit tests.

Differential Revision: https://phabricator.services.mozilla.com/D55923
2019-12-11 16:13:18 +00:00
shindli 0aa47af90e Backed out 9 changesets (bug 1596918) for causing mochitest permafailures in toolkit/content/tests/chrome/test_findbar_events.xhtml CLOSED TREE
Backed out changeset 45a1c42118f2 (bug 1596918)
Backed out changeset db09910ffa56 (bug 1596918)
Backed out changeset 5c9d9f141c10 (bug 1596918)
Backed out changeset 6a135670d603 (bug 1596918)
Backed out changeset 3a0184e0df72 (bug 1596918)
Backed out changeset 2f0036486823 (bug 1596918)
Backed out changeset a770c6d08d52 (bug 1596918)
Backed out changeset ef062eb7a6ee (bug 1596918)
Backed out changeset a6ea596e98db (bug 1596918)
2019-12-11 03:09:26 +02:00
Kris Maglione 2bcb58b665 Bug 1596918: Part 4e - Fix callers which rely on frame message manager globals. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53746
2019-12-10 23:07:28 +00:00
Kris Maglione eb68f8b548 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-10 23:07:21 +00:00
Kris Maglione ad3537fc50 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-10 23:07:13 +00:00
Miriam edf50bad54 Bug 1601311 - Ensure removing watchpoint does not change value of corresponding property. r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D56604
2019-12-10 21:07:05 +00:00
Miriam bd06b27cb5 Bug 1601476 - Update value with watchpoint when stepping or hitting breakpoint. r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D56476
2019-12-10 00:32:24 +00:00
Nicolas Chevobbe d738d3d170 Bug 1316265 - Surface isAsync and isGenerator properties in function grips. r=Honza.
This will allow Reps to consume those and
display more accurate functions informations.

Differential Revision: https://phabricator.services.mozilla.com/D55928
2019-12-09 12:35:04 +00:00
Noemi Erli 21eec8658f Backed out 9 changesets (bug 1596918) for causing multiple browser-chrome failures
Backed out changeset 415007efd8c9 (bug 1596918)
Backed out changeset 011eb5ce927b (bug 1596918)
Backed out changeset e5fd3ee22ea1 (bug 1596918)
Backed out changeset 0bca4de31d40 (bug 1596918)
Backed out changeset 11ec4393f23d (bug 1596918)
Backed out changeset c5404a7c286d (bug 1596918)
Backed out changeset 7e9304405a46 (bug 1596918)
Backed out changeset fa0f0aeabf99 (bug 1596918)
Backed out changeset de196b077000 (bug 1596918)
2019-12-07 22:26:43 +02:00
Kris Maglione 86c47b65c7 Bug 1596918: Part 4e - Fix callers which rely on frame message manager globals. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53746
2019-12-07 18:44:35 +00:00
Kris Maglione 6fb2c35351 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-07 18:44:34 +00:00
Kris Maglione 88fbf261f8 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-07 19:11:58 +00:00
Daniel Varga 85f263a4c2 Backed out 17 changesets (bug 1596918) for multiple browser-chrome and dev-tools failures. On a CLOSED TREE
Backed out changeset ab87d2c1afae (bug 1596918)
Backed out changeset 775f3b06a687 (bug 1596918)
Backed out changeset 67cc63ef5d7f (bug 1596918)
Backed out changeset 7d290bcd2067 (bug 1596918)
Backed out changeset 048db9f4db7c (bug 1596918)
Backed out changeset 96a79d2ba614 (bug 1596918)
Backed out changeset be770d112dd8 (bug 1596918)
Backed out changeset 302c8ab8391c (bug 1596918)
Backed out changeset 44ef8f20732e (bug 1596918)
Backed out changeset 38c11ebfb8ff (bug 1596918)
Backed out changeset b586fc081374 (bug 1596918)
Backed out changeset 12283166716f (bug 1596918)
Backed out changeset 99b0421015d8 (bug 1596918)
Backed out changeset 97ec49dbbbf3 (bug 1596918)
Backed out changeset ec79478f58f1 (bug 1596918)
Backed out changeset c6d356833bb8 (bug 1596918)
Backed out changeset 5ef6026806c8 (bug 1596918)
2019-12-07 03:12:07 +02:00
Kris Maglione fec2318cde Bug 1596918: Part 4e - Fix callers which rely on frame message manager globals. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53746
2019-12-06 22:15:29 +00:00
Kris Maglione 487c4fe9c7 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-06 22:14:22 +00:00
Kris Maglione e59706f08a Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-06 22:14:14 +00:00
Sebastian Hengst ad401e7fb3 Bug 1543156 - Enable devtools/server/tests/unit/test_addon_events.js on Windows 32-bit. a=try DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D56181
2019-12-06 12:02:27 +00:00
Jason Laster 77bbaf225e Bug 1599177 - Watchpoints - After click Refresh option JS execution cannot pause anymore. r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D56041
2019-12-05 23:30:51 +00:00
Yura Zenevich 92000b2381 Bug 1582409 - ensure that we handle SVGs with role=img correctly when running text-label checks. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D55976
2019-12-05 16:21:23 +00:00
Nicolas Chevobbe 435fe28690 Bug 1579090 - Fix server and shared tests that were failing because of the webConsoleFront changes. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D54507
2019-12-04 09:02:47 +00:00
Nicolas Chevobbe 059bde8b04 Bug 1579090 - Change how ObjectFront is exported. r=rcaliman.
We export it as a named property to match other fronts, and
also because we plan to add a helper function in the file
that will need to be exported as well.

Differential Revision: https://phabricator.services.mozilla.com/D54136
2019-12-04 09:01:57 +00:00
Nazım Can Altınova c1d18aa452 Bug 1590706 - Part 2: Update devtools and popup panels to include BrowsingContext IDs. r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D54145
2019-11-27 14:27:48 +00:00
Mihai Alexandru Michis 63b8f28471 Backed out 2 changesets (bug 1590706) for causing bustages in gtest/GeckoProfiler.cpp CLOSED TREE
Backed out changeset c98daf6c7687 (bug 1590706)
Backed out changeset 4c2af658ce76 (bug 1590706)
2019-11-27 15:42:55 +02:00
Nazım Can Altınova efcfa166e8 Bug 1590706 - Part 2: Update devtools and popup panels to include BrowsingContext IDs. r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D54145
2019-11-27 12:56:00 +00:00
Michael Ratcliffe a8beeccfd9 Bug 1594810 - Remove DevTools support for IndexedDB persistent storage r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D52564
2019-11-23 23:30:36 +00:00
Yura Zenevich c7dc6fd14c Bug 1598404 - remove accessible-destroy event and make the way accessible walker actor manages accessible actors more consistent with the inspector walker and node actors. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D54333
2019-11-25 15:47:38 +00:00
Bianca Danforth f825d9f6e8 Bug 1573201 - Add limited write support for extension storage.local data in addon debugger r=miker,rpl
* Update the extensionStorage actor to enable some writing to extension storage.local through the Storage panel client.
* All values in the client are displayed as strings, so the actor must stringify them before sending them to the client and parse them when receiving changes from the client. For this reason, there is currently limited write support.
  * Item values that are JSONifiable (numbers, strings, booleans, object literals, arrays and null) can be edited from the Storage panel.
    * Object literals and arrays are only editable if their values are JSONifiable, with a maximum nested depth of 2 (e.g. an object with a nested object is editable, provided the nested object contains only primitive values). Object literals' keys must also be strings to be editable.
  * Non-JSONifiable values cannot be edited, and will be represented by "{}" in most cases in the panel, though some non-JSONifiable values (undefined, Date, and BigInt) will be displayed as more readable strings.
  * Some modifications are a little more complex, requiring an IndexedDB transaction. This will be handled in a separate patch.
    * Item names cannot be edited from the Storage panel.
    * New items cannot be added from the Storage panel.
  * Any item can be removed.
  * All items can be removed at once.
* In-line comments referencing Bugs 1542038 and 1542039 indicate places where the implementation may differ for local storage versus the other storage areas in the actor.
* The parseItemValue method used in the client was moved to a shared directory, so that the actor could parse string values from the client in its editItem method.

Differential Revision: https://phabricator.services.mozilla.com/D34416
2019-11-22 20:09:59 +00:00
Geoff Lankow 334fd2e424 Bug 1597906 - Fix test_extension_storage_actor.js to work with e10s disabled. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D54056
2019-11-21 21:39:16 +00:00
Alexandre Poirot 6f07ebeae6 Bug 1590401 - Refactor Front.onFront+onFrontDestroyed into Front.watchFronts. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D53881
2019-11-20 17:13:01 +00:00
Jason Laster 60e53aaebd Bug 1594941 - Remove unused Frame.environment field. r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D53851
2019-11-19 19:53:14 +00:00
Yura Zenevich fe805c357c Bug 1596728 - fix an error when opening a color picker for an element with a pseudo child. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D53673
2019-11-19 11:36:47 +00:00
Andreea Pavel e978a84b45 Backed out changeset 352bd579f519 (bug 1594941) for failing xpcshell at test_breakpoint-16.js on a CLOSED TREE 2019-11-19 20:56:26 +02:00
Jason Laster 8da3c0ae3a Bug 1594941 - Remove unused Frame.environment field. r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D52282
2019-11-19 15:44:58 +00:00
Emilio Cobos Álvarez ff179a858e Bug 1596800 - Remove document.getBindingParent usage from devtools. r=jdescottes
This removes the concept of shadowAnonymous, which doesn't make a lot of sense,
and re-enables the shadow dom tests which were disabled when we removed the old
style system (as stylo didn't supported shadow DOM yet by then).

This is a change in behavior as you can now remove nodes from shadow DOM (no
reason you weren't able to, before).

Differential Revision: https://phabricator.services.mozilla.com/D53340
2019-11-18 20:54:10 +00:00
Brian Hackett b1a16d35a6 Bug 1512152 - Use threadFrontTest instead of initTestDebuggerServer when possible, r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D52205
2019-11-15 19:16:10 +00:00
Noemi Erli 2cdf38f1d5 Backed out changeset 31a1b40b2008 (bug 1594810) for causing devtools failures CLOSED TREE 2019-11-15 19:48:46 +02:00
Michael Ratcliffe 6186479a6a Bug 1594810 - Remove DevTools support for IndexedDB persistent storage r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D52564
2019-11-15 15:49:17 +00:00
Yura Zenevich 8061ae7b87 Bug 1591409 - improve keyboard a11y checks by avoiding false positive for interactive elements when they are focusable. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D52201
2019-11-14 06:00:27 +00:00
Kirk Steuber e6995f48d6 Bug 1588142 - Fix test failure of browser_canvasframe_helper_02.js r=bgrins
Depends on D52289

Differential Revision: https://phabricator.services.mozilla.com/D52937
2019-11-14 00:35:53 +00:00
Brian Grinstead 0b00888092 Bug 1595636 - Rename xul->xhtml for tests in DevTools r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D52710
2019-11-13 23:44:09 +00:00
Julian Descottes 3d048058cd Bug 1543156 - Wait for the addon manager to start in DevTools addons xpcshell tests r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D52535
2019-11-13 12:29:08 +00:00