Commit Graph

18813 Commits

Author SHA1 Message Date
Boris Zbarsky
4425adb1cc Bug 1602483 part 2. Add a window id argument to CheckLoadURIWithPrincipal. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D56428

--HG--
rename : devtools/client/webconsole/test/browser/browser_webconsole_same_origin_errors.js => devtools/client/webconsole/test/browser/browser_webconsole_checkloaduri_errors.js
rename : devtools/client/webconsole/test/browser/test-same-origin-required-load.html => devtools/client/webconsole/test/browser/test-checkloaduri-failure.html
extra : moz-landing-system : lando
2019-12-12 13:05:12 +00:00
Boris Zbarsky
e0acf6e9fc Bug 1602090 part 2. Create separate CheckMayLoad and CheckMayLoadWithReporting APIs. r=ckerschb
CheckMayLoadAndReport takes a window ID.  This allows us to report
errors from it to the web console as needed.  Most consumers know statically
whether they want reporting or not, so there's no reason to force the ones that
don't to provide window ids.

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

--HG--
extra : moz-landing-system : lando
2019-12-12 13:03:42 +00:00
Alexandre Poirot
682491827d Bug 1594739 - Test workers listening via the TargetList API. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D55189

--HG--
extra : moz-landing-system : lando
2019-12-12 12:33:45 +00:00
Julian Descottes
1d6c24996c Bug 1581093 - Fix blank DevTools window in private browsing, set private flag on host window r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D56636

--HG--
extra : moz-landing-system : lando
2019-12-12 13:17:10 +00:00
Alexandre Poirot
ad57d93bd5 Bug 1602734 - Expose a boolean flag to know if a target being created or destroyed relates to a target being switched during navigation between processes. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D56750

--HG--
extra : moz-landing-system : lando
2019-12-12 10:56:54 +00:00
Alexandre Poirot
94edeb6844 Bug 1602734 - Pass one option object instead of arguments to watchTargets callbacks. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D56713

--HG--
extra : moz-landing-system : lando
2019-12-12 10:41:27 +00:00
Ciure Andrei
b1d260a42b Backed out changeset b4eea71fe5b1 (bug 1291192) for causing browser_webconsole_filter_by_regex_input.js to permafail CLOSED TREE 2019-12-12 13:30:41 +02:00
Harald Kirschner
f5688d1d77 Bug 1291192 - Exclude-mode filtering for Console r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D56512

--HG--
extra : moz-landing-system : lando
2019-12-12 10:06:39 +00:00
Ciure Andrei
692bfb7fba Backed out changeset c6f80ffff41b (bug 1291192) for causing browser_webconsole_filter_by_regex_input.js to permafail CLOSED TREE 2019-12-12 12:02:51 +02:00
Ruturaj Vartak
e5d659bb53 Bug 1601911 - WebConsole throws when trying to access Timing panel in network message detail. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D56530

--HG--
extra : moz-landing-system : lando
2019-12-12 07:32:33 +00:00
Logan Smyth
d0fabc6e3a Bug 1592430 - Basic support for async live stacks in the debugger server. r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D56661

--HG--
extra : moz-landing-system : lando
2019-12-12 06:19:03 +00:00
Sai Hemanth Beeraka
7d8a5fe2e2 Bug 1566521 - Indicate that WS connection is closed. r=Honza,Harald
***
Revision changes: Rename div.p to dom.p

***
Localize connection closed message and add test

***
Display code and reason with connection closed message

***
Remove unnecessary brackets

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

--HG--
extra : moz-landing-system : lando
2019-12-12 08:03:06 +00:00
chujun
0c8c5e7362 Bug 1580547 - Provide mochitest for request blocking from David r=Honza
Tweak David's mochitest

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

--HG--
extra : moz-landing-system : lando
2019-12-12 07:59:11 +00:00
Harald Kirschner
a48cc21faf Bug 1291192 - Exclude-mode filtering for Console r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D56512

--HG--
extra : moz-landing-system : lando
2019-12-11 16:17:28 +00:00
Yura Zenevich
c2f2fbf8d2 Bug 1592858 - scroll selected row in the tree view into view when inspecting an accessible object. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D56765

--HG--
extra : moz-landing-system : lando
2019-12-11 22:34:57 +00:00
Brian Hackett
3e68277f59 Bug 1598180 - Optimize searching for matching scripts in a source, r=loganfsmyth.
Differential Revision: https://phabricator.services.mozilla.com/D55592

--HG--
extra : moz-landing-system : lando
2019-12-11 22:54:13 +00:00
Julian Descottes
a0e5d31c31 Bug 1565200 - Add frame connector relying on JsWindowActor instead of message manager r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D51130

--HG--
extra : moz-landing-system : lando
2019-12-11 20:09:24 +00:00
Micah Tigley
3c2e553b75 Bug 1596166 - Remove "height: 30px" on RDM toolbar r=bgrins
The UA input field gets caught off when the browser viewport is too small. This is because the RDM toolbar has an explicit height of 30px set on it, so it can't accomodate the second row created for the UA input.

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

--HG--
extra : moz-landing-system : lando
2019-12-11 19:50:34 +00:00
Jason Laster
9604a4d701 Bug 1583550 - Highlight toolbox paused state. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D55848

--HG--
extra : moz-landing-system : lando
2019-12-11 16:13:00 +00:00
Julian Descottes
5fb20254ae Bug 1525966 - Support string errors when detach fails in target fronts r=nchevobbe
Depends on D55829

In case other rejects are still using strings instead of error objects.

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

--HG--
extra : moz-landing-system : lando
2019-12-11 17:31:52 +00:00
Julian Descottes
5bc4238d39 Bug 1525966 - Reject Error object instead of string in DevTools Front:onPacket r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D55829

--HG--
extra : moz-landing-system : lando
2019-12-11 17:31:39 +00:00
Julian Descottes
6672253814 Bug 1603102 - Use BrowserTestUtils.openNewBrowserWindow in all tests relying on window.OpenNewBrowserWindow r=ochameau
Depends on D56731

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

--HG--
extra : moz-landing-system : lando
2019-12-11 16:29:03 +00:00
Julian Descottes
0d780e34a1 Bug 1603102 - Use BrowserTestUtils.openNewBrowserWindow instead of custom helper in webconsole tests r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D56731

--HG--
extra : moz-landing-system : lando
2019-12-11 16:28:42 +00:00
chujun
475cde4af4 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

--HG--
extra : moz-landing-system : lando
2019-12-11 16:13:18 +00:00
Brian Hackett
ee87de9d1b Bug 1582266 - Use actual source text when mismatches are found with contents fetched over the network, r=loganfsmyth.
Differential Revision: https://phabricator.services.mozilla.com/D55402

--HG--
extra : moz-landing-system : lando
2019-12-11 14:22:12 +00:00
Neil Deakin
75efe08ebc Bug 1595154, replace the frame script FormAutofillFrameScript.js with an actor and fix up setTimeout calls in places that were relying on Timer.jsm being loaded in that frame script, r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D52721

--HG--
rename : browser/extensions/formautofill/content/FormAutofillFrameScript.js => browser/extensions/formautofill/FormAutofillChild.jsm
extra : moz-landing-system : lando
2019-12-11 13:37:51 +00:00
Daisuke Akatsuka
369ca073d4 Bug 1588963: Add a jest test for CompatibilityApp component. r=ladybenko
Depends on D55431

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

--HG--
extra : moz-landing-system : lando
2019-12-11 12:23:55 +00:00
Daisuke Akatsuka
48472e295d Bug 1588963: Show a message for no issues. r=rcaliman,ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D55431

--HG--
extra : moz-landing-system : lando
2019-12-10 16:07:41 +00:00
Mark Banner
2103c3b16a Bug 1601681 - Switch recently added files with Windows line endings to Unix. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D55990

--HG--
extra : moz-landing-system : lando
2019-12-11 08:12:49 +00:00
Jeff Walden
62a130ba0a Bug 1602882 - Move array operations to a new js/Array.h header. r=sfink,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D56595

--HG--
extra : moz-landing-system : lando
2019-12-11 06:17:44 +00:00
shindli
91924fedc7 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
Yura Zenevich
9db9426776 Bug 1569868 - ensure that accessibility properties list is focused when using browser or inspector context menus to inspect accessibility properties. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D56574

--HG--
extra : moz-landing-system : lando
2019-12-10 22:28:52 +00:00
Kris Maglione
cee320b5fb Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53748

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:41 +00:00
Kris Maglione
d7164b11c3 Bug 1596918: Part 4e - Fix callers which rely on frame message manager globals. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53746

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:28 +00:00
Kris Maglione
37c15883a5 Bug 1596918: Part 4d - Fix callers which try to return non-clonable values. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53745

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:34 +00:00
Kris Maglione
356e59c6bc Bug 1596918: Part 4c - Fix callers which depend on document lifecycle changes. r=mccr8
ContentTask tasks have a different lifetime than SpecialPowers tasks, with the
former being tied to the lifetime of a message manager and the latter tied to
the lifetime of a window global. That means that existing ContentTask callers
which expect to be able to register load listeners before the creation of a
window global, or which expect to persist after a page has navigated, won't
work as SpecialPowers tasks.

Since those sorts of tasks are not really resilient in the face of Fission,
they should really be written to work differently, but this patch mostly just
reverts them to using ContentTask for the time being.

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

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:22 +00:00
Kris Maglione
b372c01608 Bug 1596918: Part 4a - Re-add eslint-disable comments removed by rewrite. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53742

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:17 +00:00
Kris Maglione
3ca78ce8e3 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

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:21 +00:00
Kris Maglione
16a9b29848 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

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:13 +00:00
Micah Tigley
0bb891728a Bug 1584346 - Make RDM UI's getViewportBrowser return the browser tab if fission-enabled r=mconley,bradwerth
This revision modifies RDM UI’s `getViewportBrowser` to return the tab’s <browser> instead of the <mozbrowser> this.toolWindow’s [getViewportBrowser method](https://searchfox.org/mozilla-central/source/devtools/client/responsive/index.js#176) returns. If the pref `devtools.responsive.browserUI.enabled` is set to true, this will cause this.toolWindow to be null because this object is set during the [swap step when RDM is initialized](https://searchfox.org/mozilla-central/source/devtools/client/responsive/ui.js#150). Since we're not doing away with swap/tunnel until work on RDM fission is complete, we should still preserve the toolWindow property on RDM UI.

For context, this.toolWindow is a reference to the RDM UI’s window, which also happens to be populated with other properties such as `getViewportBrowser` (the function causing the issue), `getViewportSize`, `addInitialViewport`, etc… It’s responsible for holding the RDM UI  chrome:// document which is also where the <mozbrowser> iframe is contained. Please see: https://searchfox.org/mozilla-central/source/devtools/client/responsive/index.js for reference on where these properties are added.

Also, now that the RDM fission work requires the removal of <mozbrowser>, this.toolWindow won't be needed to get access to the toolbar UI. The RDM toolbar will be embedded into the browser UI and can be referenced with `this.rdmFrame`.

So this means toolWindow along with any parts of the code using it should be removed when fission work is complete. I believe [Bug 1585096](https://bugzilla.mozilla.org/show_bug.cgi?id=1585096) would be the correct place to do this.

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

--HG--
extra : moz-landing-system : lando
2019-12-10 22:05:03 +00:00
Miriam
9333e080c1 Bug 1601311 - Ensure removing watchpoint does not change value of corresponding property. r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D56604

--HG--
extra : moz-landing-system : lando
2019-12-10 21:07:05 +00:00
Nicolas Chevobbe
2535ad552d Bug 1601559 - Put Window default properties accessor under <default properties> node. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D55927

--HG--
extra : moz-landing-system : lando
2019-12-10 18:07:02 +00:00
Nicolas Chevobbe
774b0637e2 Bug 1370826 - Render parameter names in function rep. r=Honza.
For some reason the parameterNames was expected as
a prop, but it's available on the function grip
itself.
The rep is fixed, and tests are modified to reflect
this change.

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

--HG--
extra : moz-landing-system : lando
2019-12-10 18:04:40 +00:00
jaril
158f5e6e60 Bug 1582298 - Fix set/get watchpoint markers in RTL orientation r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D56463

--HG--
extra : moz-landing-system : lando
2019-12-09 21:34:45 +00:00
jaril
dde4d3ecad Bug 1582193 - Skipping breakpoints should also skip watchpoints r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D56477

--HG--
extra : moz-landing-system : lando
2019-12-10 16:16:46 +00:00
Dorel Luca
752d82db80 Backed out 2 changesets (bug 1370826, bug 1601559) for Devtools failures in devtools/client/debugger/test/mochitest/browser_dbg-sourcemapped-scopes.js. CLOSED TREE
Backed out changeset 37142aec03d7 (bug 1601559)
Backed out changeset 5fe8330c1912 (bug 1370826)
2019-12-10 18:17:29 +02:00
Belén Albeza
80ac91c2c5 Bug 1598629 - Part 2: Re-enable disable start button mochitest r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D54964

--HG--
extra : moz-landing-system : lando
2019-12-10 15:52:48 +00:00
Belén Albeza
0162bd6454 Bug 1598629 - Part 1: Debug workers within the new threads panel in the debugger r=bhackett,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D54746

--HG--
rename : devtools/client/application/src/modules/services.js => devtools/client/application/src/modules/application-services.js
extra : moz-landing-system : lando
2019-12-10 15:29:27 +00:00
Nicolas Chevobbe
e123043002 Bug 1601559 - Put Window default properties accessor under <default properties> node. r=Honza.
Depends on D55926

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

--HG--
extra : moz-landing-system : lando
2019-12-10 14:42:07 +00:00
Nicolas Chevobbe
b2a0a8339a Bug 1370826 - Render parameter names in function rep. r=Honza.
For some reason the parameterNames was expected as
a prop, but it's available on the function grip
itself.
The rep is fixed, and tests are modified to reflect
this change.

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

--HG--
extra : moz-landing-system : lando
2019-12-09 12:46:23 +00:00
Yura Zenevich
d1859c28dc Bug 1602516 - ensure that the key for a DOM node property in the sidebar is always DOMNode. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D56420

--HG--
extra : moz-landing-system : lando
2019-12-09 19:56:14 +00:00
Nicolas Chevobbe
6feb0cfa1a Bug 1601022 - Fix browser_webconsole_reverse_search.js intermittent. r=Honza.
The failure indicates that there's a pending call
to the server for highlighting while the connection
is being closed.
I guess that's because the test was logging some
nodes, and the mouse position could trigger a
highlight.
Since we don't really need to log those nodes,
this patch only changes one of the expression.

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

--HG--
extra : moz-landing-system : lando
2019-12-10 14:23:55 +00:00
Nicolas Chevobbe
00bf611d39 Bug 1598205 - Fix browser_webconsole_filter_navigation_marker intermittent. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D56539

--HG--
extra : moz-landing-system : lando
2019-12-10 14:22:52 +00:00
Nicolas Chevobbe
d07235e82b Bug 1602700 - Add a comment in webconsole front destroy function to make it clearer how it behaves. r=jdescottes.
This only highlights the fact that the front will only
do the heavy work once, since we set the _client property
to null, and the function is guarded against the _client
truthiness.

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

--HG--
extra : moz-landing-system : lando
2019-12-10 13:32:15 +00:00
Andreea Pavel
708835de9b Backed out changeset c59242299608 (bug 1582193) for failing xpcshell at test_watchpoint-01.js on a CLOSED TREE 2019-12-10 04:39:52 +02:00
jaril
f8f51c09bf Bug 1582193 - Skipping breakpoints should also skip watchpoints r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D56477

--HG--
extra : moz-landing-system : lando
2019-12-10 00:31:56 +00:00
Miriam
a891e9eb08 Bug 1601476 - Update value with watchpoint when stepping or hitting breakpoint. r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D56476

--HG--
extra : moz-landing-system : lando
2019-12-10 00:32:24 +00:00
Razvan Maries
f68051bd85 Bug 1598205 - Disabled browser_webconsole_eval_in_debugger_stackframe2.js on Windows, Linux and Mac. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D56281

--HG--
extra : moz-landing-system : lando
2019-12-09 07:56:39 +00:00
Boris Zbarsky
de81734f14 Bug 1602093. Make CORS error messages be errors, not warnings. r=ckerschb
These typically indicate a fatal problem for whatever the page is trying to do;
we should give them the appropriate visibility.

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

--HG--
extra : moz-landing-system : lando
2019-12-08 16:38:55 +00:00
Mihai Alexandru Michis
4ccc5c732e Backed out 2 changesets (bug 1525966) for causing devtools failures.
Backed out changeset 06ca873edb4c (bug 1525966)
Backed out changeset 8ff967efc6d6 (bug 1525966)

CLOSED TREE

--HG--
extra : rebase_source : 8fb6432626ea832ed4bf081068d0c1144de066bd
2019-12-09 16:22:08 +02:00
Julian Descottes
b8072aae01 Bug 1525966 - Support string errors when detach fails in target fronts r=nchevobbe
Depends on D55829

In case other rejects are still using strings instead of error objects.

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

--HG--
extra : moz-landing-system : lando
2019-12-09 13:25:12 +00:00
Julian Descottes
ed63cd4ab4 Bug 1525966 - Reject Error object instead of string in DevTools Front:onPacket r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D55829

--HG--
extra : moz-landing-system : lando
2019-12-09 13:05:31 +00:00
Nicolas Chevobbe
e5cb1f73e7 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

--HG--
extra : moz-landing-system : lando
2019-12-09 12:35:04 +00:00
Daniel Varga
6e13799734 Backed out changeset e65c1bcb013f (bug 1601475) for causing build bustage. On a CLOSED TREE 2019-12-09 12:51:07 +02:00
Tyler
103588ae45 Bug 1601475 - Remove ImageContentLoaded event and ImageDocumentLoaded message handling code across the tree r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D56051

--HG--
extra : moz-landing-system : lando
2019-12-09 10:18:25 +00:00
Sorin Davidoi
021c1c02fc Bug 1601444 - fix(devtools/network-monitor): Always show server timings r=Honza
Report server timings if they are sent when the transaction is closed.

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

--HG--
extra : moz-landing-system : lando
2019-12-09 09:58:42 +00:00
Logan Smyth
c89ea4ef95 Bug 1600204 - Part 2: Remove Debugger.Frame.prototype.generator since it is already on script. r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D55232

--HG--
extra : moz-landing-system : lando
2019-12-06 02:57:20 +00:00
Brian Hackett
44cd7a73e5 Bug 1596939 Part 3 - Pause new service workers for the target's origin, r=jlast.
Depends on D54293

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

--HG--
extra : moz-landing-system : lando
2019-12-07 21:05:14 +00:00
Brian Hackett
ad3914884b Bug 1596939 Part 2 - Support pausing new service workers for a specific origin, r=jdescottes.
Depends on D54292

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

--HG--
extra : moz-landing-system : lando
2019-12-07 18:18:03 +00:00
Brian Hackett
2a9b3b1bb9 Bug 1595964 Part 2 - Expose evaluating worker in service worker registration front, r=jdescottes.
Depends on D54286

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

--HG--
extra : moz-landing-system : lando
2019-12-07 18:18:09 +00:00
Noemi Erli
82d41a33b2 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
84fa9ffb2a Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53748

--HG--
extra : moz-landing-system : lando
2019-12-07 18:44:35 +00:00
Kris Maglione
63b8ddb1c0 Bug 1596918: Part 4e - Fix callers which rely on frame message manager globals. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53746

--HG--
extra : moz-landing-system : lando
2019-12-07 18:44:35 +00:00
Kris Maglione
8c28f5ff8d Bug 1596918: Part 4d - Fix callers which try to return non-clonable values. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53745

--HG--
extra : moz-landing-system : lando
2019-12-07 18:44:35 +00:00
Kris Maglione
bd497b1a21 Bug 1596918: Part 4c - Fix callers which depend on document lifecycle changes. r=mccr8
ContentTask tasks have a different lifetime than SpecialPowers tasks, with the
former being tied to the lifetime of a message manager and the latter tied to
the lifetime of a window global. That means that existing ContentTask callers
which expect to be able to register load listeners before the creation of a
window global, or which expect to persist after a page has navigated, won't
work as SpecialPowers tasks.

Since those sorts of tasks are not really resilient in the face of Fission,
they should really be written to work differently, but this patch mostly just
reverts them to using ContentTask for the time being.

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

--HG--
extra : moz-landing-system : lando
2019-12-07 18:44:34 +00:00
Kris Maglione
5e3b16b90e Bug 1596918: Part 4a - Re-add eslint-disable comments removed by rewrite. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53742

--HG--
extra : moz-landing-system : lando
2019-12-07 18:44:34 +00:00
Kris Maglione
fa3556c3fc 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

--HG--
extra : moz-landing-system : lando
2019-12-07 18:44:34 +00:00
Kris Maglione
910eab35d2 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

--HG--
extra : moz-landing-system : lando
2019-12-07 19:11:58 +00:00
Noemi Erli
7c520af3a9 Backed out 6 changesets (bug 1595964, bug 1596939) for causing failures in browser_application_panel_list-domain-workers.js
Backed out changeset 65c870147654 (bug 1595964)
Backed out changeset 74a982a9144a (bug 1596939)
Backed out changeset c21c15689e77 (bug 1596939)
Backed out changeset a6848f4d219d (bug 1596939)
Backed out changeset 4f538e6c6dcc (bug 1595964)
Backed out changeset d1c93f700b8c (bug 1595964)
2019-12-07 20:13:22 +02:00
Brian Hackett
c0fb50de83 Bug 1596939 Part 3 - Pause new service workers for the target's origin, r=jlast.
Depends on D54293

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

--HG--
extra : moz-landing-system : lando
2019-12-07 16:27:41 +00:00
Brian Hackett
e099666dd0 Bug 1596939 Part 2 - Support pausing new service workers for a specific origin, r=jdescottes.
Depends on D54292

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

--HG--
extra : moz-landing-system : lando
2019-12-07 16:16:39 +00:00
Brian Hackett
8f4a55899e Bug 1595964 Part 2 - Expose evaluating worker in service worker registration front, r=jdescottes.
Depends on D54286

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

--HG--
extra : moz-landing-system : lando
2019-12-07 16:13:07 +00:00
Daniel Varga
84a601a6d4 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
cd579034cc Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53748

--HG--
extra : moz-landing-system : lando
2019-12-06 22:14:43 +00:00
Kris Maglione
41c61c2bb9 Bug 1596918: Part 4e - Fix callers which rely on frame message manager globals. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53746

--HG--
extra : moz-landing-system : lando
2019-12-06 22:15:29 +00:00
Kris Maglione
6d5729ccb5 Bug 1596918: Part 4d - Fix callers which try to return non-clonable values. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53745

--HG--
extra : moz-landing-system : lando
2019-12-06 22:15:27 +00:00
Kris Maglione
73e3d8bcf6 Bug 1596918: Part 4c - Fix callers which depend on document lifecycle changes. r=mccr8
ContentTask tasks have a different lifetime than SpecialPowers tasks, with the
former being tied to the lifetime of a message manager and the latter tied to
the lifetime of a window global. That means that existing ContentTask callers
which expect to be able to register load listeners before the creation of a
window global, or which expect to persist after a page has navigated, won't
work as SpecialPowers tasks.

Since those sorts of tasks are not really resilient in the face of Fission,
they should really be written to work differently, but this patch mostly just
reverts them to using ContentTask for the time being.

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

--HG--
extra : moz-landing-system : lando
2019-12-06 22:15:25 +00:00
Kris Maglione
7a14e7344a Bug 1596918: Part 4a - Re-add eslint-disable comments removed by rewrite. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53742

--HG--
extra : moz-landing-system : lando
2019-12-06 22:14:24 +00:00
Kris Maglione
b5238224ba 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

--HG--
extra : moz-landing-system : lando
2019-12-06 22:14:22 +00:00
Kris Maglione
20da940e14 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

--HG--
extra : moz-landing-system : lando
2019-12-06 22:14:14 +00:00
Mellina Y.
fb02c26915 Bug 1581119 - Flex highlighter doesn't adjust color of pattern r=gl
Differential Revision: https://phabricator.services.mozilla.com/D47534

--HG--
extra : moz-landing-system : lando
2019-12-06 18:27:04 +00:00
Daniel Varga
8da304490f Backed out changeset 4a143f845921 (bug 1598893) for causing mochitest-chrome failures at devtools/server/tests/mochitest/test_inspector-inactive-property-helper.html. On a CLOSED TREE 2019-12-06 20:38:07 +02:00
Brian Hackett
65fe862c43 Bug 1596933 - Show both waiting and active workers in threads pane, r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D54213

--HG--
extra : moz-landing-system : lando
2019-12-06 18:08:18 +00:00
Brian Hackett
bc2410dd5a Bug 1596929 - Show inactive service workers in threads pane, r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D53281

--HG--
rename : devtools/client/debugger/test/mochitest/examples/service-worker.js => devtools/client/debugger/test/mochitest/examples/service-worker.sjs
extra : moz-landing-system : lando
2019-12-06 18:08:18 +00:00
Nicolas Chevobbe
be0074e600 Bug 1601642 - Add a emitForTests methods to event-emitter.js. r=rcaliman.
This methods is then used in Netmonitor and Animation
panel, where we already had similar functions.

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

--HG--
extra : moz-landing-system : lando
2019-12-06 16:55:50 +00:00
Micah Tigley
50f8e95cc3 Bug 1598893 - Add check for elements absolutely positioned within a grid container. r=pbro,miker
This revision removes false positives for absolutely-positioned elements using grid item properties. It doesn’t solve identifying an absolutely positioned element in a grid container since this issue would require more consideration when finding the element’s containing block to make it work.  For now, inactive CSS will invalidate a grid item property if the element is not a grid item and is not absolutely positioned.

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

--HG--
extra : moz-landing-system : lando
2019-12-06 10:16:20 +00:00
Daisuke Akatsuka
109da965cb Bug 1600183: Disable non test mouse event. r=jdescottes,pbro
Differential Revision: https://phabricator.services.mozilla.com/D56176

--HG--
extra : moz-landing-system : lando
2019-12-06 13:34:15 +00:00
Sebastian Hengst
0b50d220ec 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

--HG--
extra : moz-landing-system : lando
2019-12-06 12:02:27 +00:00
Razvan Caliman
d7c19f5289 Bug 1598109 - Ensure default center values are used for ellipse basic shape; r=pbro
Accidentally missed to use the fallback value "closest-side closest-side" when needed. Fixed now.

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

--HG--
extra : moz-landing-system : lando
2019-12-06 08:07:51 +00:00
Gabriele Svelto
69790bc62e Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

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

--HG--
extra : moz-landing-system : lando
2019-12-06 09:16:44 +00:00