Commit Graph
2381 Commits
Author SHA1 Message Date
Nicolas Chevobbe 5cc7e74867 Bug 1566850 - Remove target.activeConsole usage in WebConsole. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56691
2019-12-13 14:04:46 +00:00
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
Csoregi Natalia ffb037e6bc Backed out changeset d09d8fa3332f (bug 1438979) for failures on browser_webconsole_network_messages_expand_before_updates.js. CLOSED TREE 2019-12-16 15:43:57 +02:00
Nicolas Chevobbe 438370bfc2 Bug 1438979 - Re-enable browser_webconsole_network_messages_expand.js. r=Honza.
The test is split in two to make it easier to read.

Differential Revision: https://phabricator.services.mozilla.com/D56884
2019-12-16 10:13:39 +00:00
Csoregi Natalia d27b6fb864 Backed out changeset e1ef71575321 (bug 1438979) for failures on browser_webconsole_stubs_network_event.js. CLOSED TREE 2019-12-16 11:51:18 +02:00
Nicolas Chevobbe 4784d2541e Bug 1438979 - Re-enable browser_webconsole_network_messages_expand.js. r=Honza.
The test is split in two to make it easier to read.

Differential Revision: https://phabricator.services.mozilla.com/D56884
2019-12-16 07:57:40 +00:00
Kris Maglione ac36cf0bd5 Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53748
2019-12-13 20:36:48 +00:00
Kris Maglione 99c0b418ed 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
2019-12-13 20:36:36 +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
Boris Zbarsky 8f97398a08 Bug 1602483 part 2. Add a window id argument to CheckLoadURIWithPrincipal. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D56428
2019-12-12 16:41:19 +00:00
Boris Zbarsky fcb04b87e4 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
2019-12-13 06:24:12 +00:00
Julian Descottes 4125c38d2c Bug 1603366 - Rename Omniscient browser toolbox to Multiprocess Browser Toolbox and support localization r=pbro,flod
Differential Revision: https://phabricator.services.mozilla.com/D56877
2019-12-12 15:00:20 +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
Julian Descottes fbd078a8ea Bug 1602371 - Rename LocalTabTargetFront tab getter to localTab r=ochameau
Depends on D56330

Renaming the "tab" getter to "localTab" will make it easier to refactor later.

Differential Revision: https://phabricator.services.mozilla.com/D56331
2019-12-13 10:38:07 +00:00
Nicolas Chevobbe b36ddb37d4 Bug 1566850 - Remove target.activeConsole usage in WebConsole. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56691
2019-12-13 09:13:58 +00: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
Nicolas Chevobbe 2b874af433 Bug 1602974 - Catch errors while setting console history to prevent test failures. r=Honza.
Some tests are failing on Linux ccov when adding
item to the webconsole history. I suspect it could
be because some expression have emojis, but I'm
not sure.
Catching the rejection will at least not make the
test fail.

Differential Revision: https://phabricator.services.mozilla.com/D56744
2019-12-13 07:54:08 +00:00
Nicolas Chevobbe 2c997fc172 Bug 1594442 - Fix browser_webconsole_filter_navigation_marker intermittent. r=Honza. 2019-12-13 10:00:46 +02:00
Narcis Beleuzu 6b6d9aaf01 Backed out changeset a7e7d8531816 (bug 1598205) for having the wrong bug number 2019-12-13 09:59:55 +02:00
Brian Hackett 46d73b286c Bug 1602489 - Basic eager evaluation support, r=nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D56393
2019-12-12 21:48:03 +00:00
Ciure Andrei 2e0157c747 Backed out 4 changesets (bug 1602483, bug 1602090) for causing perma leackchecks CLOSED TREE
Backed out changeset 6b057ba06b4a (bug 1602483)
Backed out changeset 9be3269d781d (bug 1602483)
Backed out changeset e3e2c1d7478e (bug 1602090)
Backed out changeset fdc4a588912e (bug 1602090)
2019-12-12 18:37:01 +02:00
Julian Descottes 46e48b3f7d Bug 1603389 - Read content-process messages setting from prefs for BrowserToolbox Console r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D56888
2019-12-12 13:10:44 +00:00
Boris Zbarsky f99de7f9a0 Bug 1602483 part 2. Add a window id argument to CheckLoadURIWithPrincipal. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D56428
2019-12-12 13:05:12 +00:00
Boris Zbarsky d9b66ffabd 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
2019-12-12 13:03:42 +00:00
Alexandre Poirot 41736b9bd8 Bug 1602734 - Pass one option object instead of arguments to watchTargets callbacks. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D56713
2019-12-12 10:41:27 +00:00
Ciure Andrei 1267293248 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 e304c65061 Bug 1291192 - Exclude-mode filtering for Console r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D56512
2019-12-12 10:06:39 +00:00
Ciure Andrei c89c2268b5 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
Harald Kirschner bbb5b11bc6 Bug 1291192 - Exclude-mode filtering for Console r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D56512
2019-12-11 16:17:28 +00:00
Julian Descottes 2325cd7c78 Bug 1603102 - Use BrowserTestUtils.openNewBrowserWindow instead of custom helper in webconsole tests r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D56731
2019-12-11 16:28:42 +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 c87948a206 Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53748
2019-12-10 23:07:41 +00:00
Kris Maglione af77c00e7a 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
2019-12-10 23:07:22 +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
Nicolas Chevobbe 952b7c4c1f 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
2019-12-10 14:23:55 +00:00
Nicolas Chevobbe 2411704bd1 Bug 1598205 - Fix browser_webconsole_filter_navigation_marker intermittent. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D56539
2019-12-10 14:22:52 +00:00
Razvan Maries 792f5ab841 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
2019-12-09 07:56:39 +00:00
Boris Zbarsky 7e0869c7dd 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
2019-12-08 16:38:55 +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 038e9efbd4 Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53748
2019-12-07 18:44:35 +00:00
Kris Maglione b442dbf855 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
2019-12-07 18:44:34 +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 d446581341 Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53748
2019-12-06 22:14:43 +00:00
Kris Maglione 3850c6a060 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
2019-12-06 22:15:25 +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