Commit Graph

18813 Commits

Author SHA1 Message Date
Kris Maglione
295e55e227 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-13 20:36:37 +00:00
Kris Maglione
0b1a146519 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-13 20:36:36 +00:00
Kris Maglione
90bbf045db 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-13 20:36:25 +00:00
Kris Maglione
9853440599 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-13 20:36:24 +00:00
Kris Maglione
94e3b0bd8d 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-13 20:36:16 +00:00
Boris Zbarsky
ee1cc488f2 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 16:41:19 +00:00
Boris Zbarsky
cbc90e1aca 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-13 06:24:12 +00:00
Brad Werth
a226876281 Bug 1579178 Part 4: Update test functions and an existing zoom test to work with new RDM UI. r=mtigley
This patch does several related things:
1) Updates the test helper functions in ui.js to make them sensible
for both the old and new RDM UI.
2) Updates the test helper function addRDMTask to return the correct
"browser" values for both RDM UIs. Old RDM UI tests that want to
spawn a content task should now use ui.getViewportBrowser() for that,
and only use the browser value for getting/setting of zoom and any
other methods that take browsers as arguments.
3) Updates the test helper function promiseRDM to make it wait on
the correct event.
4) Updates a non-zoom test that uses addRDMTask to use the new
browser value correctly.
5) Updates a zoom test to use the addRDMTask function, and therefore
run the test using the new RDM UI. This test exercises the issue
that is the focus of this bug.

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

--HG--
extra : moz-landing-system : lando
2019-12-13 19:13:00 +00:00
Brad Werth
21a5598360 Bug 1579178 Part 3: Remove the old RDM UI method for save-and-restore of resolution for full zoom changes. r=mtigley
The firing of the "ZoomComplete" event is no longer necessary, now
that ZoomParent fires a "PostFullZoomChange" event, which serves a
similar purpose. The next part of the patch listens for that event.

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

--HG--
extra : moz-landing-system : lando
2019-12-13 19:12:55 +00:00
Brad Werth
d4e3fa3cf8 Bug 1579178 Part 1: Make RDM new browser ui change viewport size in response to zoom. r=mtigley
Because the new RDM UI does not retain the width and height of the
device, this patch extracts those values from the prefs which are
updated in the viewports reducer. There probably should be a more
resilient way to maintain those values.

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

--HG--
extra : moz-landing-system : lando
2019-12-13 19:11:15 +00:00
Boris Zbarsky
c1aa50748f Bug 1603666. Network monitor should not lose track of whether the request was blocked. r=ochameau,jryans
Not everything that blocks requests sets a reason other than BLOCKING_REASON_NONE.

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

--HG--
extra : moz-landing-system : lando
2019-12-13 18:10:26 +00:00
Micah Tigley
2d2c2562ac 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

--HG--
extra : moz-landing-system : lando
2019-12-13 17:47:02 +00:00
Jason Laster
7079ed7803 Bug 1603698 - Omniscient Browser Toolbox error "this._stopThreadFrontListeners is not a function". r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D57135

--HG--
extra : moz-landing-system : lando
2019-12-13 16:55:19 +00:00
Nicolas Chevobbe
b36a58512f Bug 1602769 - Remove unused DebuggerClient.connect onConnected param. r=ladybenko.
Differential Revision: https://phabricator.services.mozilla.com/D56564

--HG--
extra : moz-landing-system : lando
2019-12-13 13:26:29 +00:00
Nicolas Chevobbe
155891ddb2 Bug 1602709 - Remove unused DebuggerClient.close onClosed parameter. r=ladybenko.
Differential Revision: https://phabricator.services.mozilla.com/D56562

--HG--
extra : moz-landing-system : lando
2019-12-13 13:11:45 +00:00
Ksenia Berezina
c10eb5d8d6 Bug 1554915 - Remove eslint-disable-next-line complexity from DOMEvent and GenericObject r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D56647

--HG--
extra : moz-landing-system : lando
2019-12-13 13:27:02 +00:00
Julian Descottes
1676f649b6 Bug 1603366 - Rename the Main process target in about:debugging when Multiprocess toolbox is enabled r=ladybenko,fluent-reviewers,flod
Depends on D56877

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

--HG--
extra : moz-landing-system : lando
2019-12-13 12:02:31 +00:00
Julian Descottes
55cb60a6e3 Bug 1603366 - Rename Omniscient browser toolbox to Multiprocess Browser Toolbox and support localization r=pbro,flod
Differential Revision: https://phabricator.services.mozilla.com/D56877

--HG--
extra : moz-landing-system : lando
2019-12-12 15:00:20 +00:00
Belén Albeza
cbb88fbdce Bug 1603087 - Disable test when parent_intercept is false r=jdescottes
Since `parent_intercept` requires to be set from the beginning, either we disable the test when it's not the case, or we force the pref to be flipped for this test… I chose the former, but happy to do the latter if it's preferable.

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

--HG--
extra : moz-landing-system : lando
2019-12-12 12:56:01 +00:00
shindli
1cfffc2672 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
625d25aee8 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

--HG--
extra : moz-landing-system : lando
2019-12-13 10:38:07 +00:00
Julian Descottes
eebe135d8e Bug 1602371 - Remove csp and contentPrincipal getters in LocalTabTargetFront r=ochameau
Depends on D56327. Not reason to make target-mixin more complex for this workaround which already has access to the tab object.

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

--HG--
extra : moz-landing-system : lando
2019-12-13 10:00:25 +00:00
Julian Descottes
e60aee2456 Bug 1602371 - Stop listening to tab unload in LocalTabTargetFront r=ochameau
It is not clear why tab unload should be listened to on the client, and only destroy the target front.
Tentatively removing to simplify the local tab target.

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

--HG--
extra : moz-landing-system : lando
2019-12-13 09:59:00 +00:00
Nicolas Chevobbe
060e285ff9 Bug 1566850 - Remove this.activeConsole in TargetMixin. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56693

--HG--
extra : moz-landing-system : lando
2019-12-13 09:16:32 +00:00
Nicolas Chevobbe
74eeee21f6 Bug 1566850 - Remove target.activeConsole usage in Toolbox. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56692

--HG--
extra : moz-landing-system : lando
2019-12-13 09:15:17 +00:00
Nicolas Chevobbe
2fa7a9ac6b Bug 1566850 - Remove target.activeConsole usage in WebConsole. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56691

--HG--
extra : moz-landing-system : lando
2019-12-13 09:13:58 +00:00
Nicolas Chevobbe
6865c4f4be Bug 1566850 - Remove target.activeConsole usage in Debugger. r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D56690

--HG--
extra : moz-landing-system : lando
2019-12-13 09:13:02 +00:00
Nicolas Chevobbe
684b113226 Bug 1566850 - Remove target.activeConsole usage in Netmonitor. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D56689

--HG--
extra : moz-landing-system : lando
2019-12-13 09:11:44 +00:00
Nicolas Chevobbe
018643b9e6 Bug 1566850 - Remove target.activeConsole usage in tests. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56688

--HG--
extra : moz-landing-system : lando
2019-12-13 09:10:33 +00:00
Nicolas Chevobbe
1df3816fb1 Bug 1566850 - Remove target.activeConsole usage in DOM panel. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56686

--HG--
extra : moz-landing-system : lando
2019-12-13 09:09:01 +00:00
Nicolas Chevobbe
dc772fcaf3 Bug 1603035 - Return a function from EventEmitter.on that removes the event listener when called. r=rcaliman.
This will be helpful when consumers don't want to
keep the target around.
A test is added to ensure this work as expected (and
was failing if the returned function does not call
EventEmitter.off).

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

--HG--
extra : moz-landing-system : lando
2019-12-13 09:08:11 +00:00
Nicolas Chevobbe
7ae0527947 Bug 1603126 - Fix Promise rejections in async-storage. r=jdescottes.
All the rejections were called with 2 arguments, when reject only
cares about the first one.
This patch makes all the reject called with the actual DOMException,
and adds console.error before all those rejections.

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

--HG--
extra : moz-landing-system : lando
2019-12-13 07:55:22 +00:00
Nicolas Chevobbe
948806d70b 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

--HG--
extra : moz-landing-system : lando
2019-12-13 07:54:08 +00:00
Nicolas Chevobbe
06ba0efd69 Bug 1594442 - Fix browser_webconsole_filter_navigation_marker intermittent. r=Honza.
--HG--
extra : rebase_source : 395b3c8bfdb373c6213375ff20280e2db2902528
2019-12-13 10:00:46 +02:00
Narcis Beleuzu
481c75a2f2 Backed out changeset a7e7d8531816 (bug 1598205) for having the wrong bug number
--HG--
extra : rebase_source : b1063ae497bd8586a412f846f137e29c31e25115
2019-12-13 09:59:55 +02:00
Jan Odvarko
01b714d69c Bug 1592720 - Enable WatchPoints in all channels r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D56882

--HG--
extra : moz-landing-system : lando
2019-12-12 17:13:45 +00:00
Daisuke Akatsuka
9daf9ebab6 Bug 1594643: Update MDN compatibility data. r=rcaliman
Depends on D56849

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

--HG--
extra : moz-landing-system : lando
2019-12-12 16:03:05 +00:00
Daisuke Akatsuka
07e38f1236 Bug 1594643: Remove edge_mobile from the target browsers. r=rcaliman
Remove edge_mobile data from the target browsers because the data was removed
from MDN compat.
115d07f845 (diff-b559db93c279b7e4886705cb45f7ca9c)

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

--HG--
extra : moz-landing-system : lando
2019-12-13 00:18:52 +00:00
Brian Hackett
662a021b39 Bug 1602489 - Basic eager evaluation support, r=nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D56393

--HG--
extra : moz-landing-system : lando
2019-12-12 21:48:03 +00:00
Jason Laster
33f67d36f5 Bug 1602910 - Memoize getBreakpointSources. r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D56614

--HG--
extra : moz-landing-system : lando
2019-12-12 21:25:09 +00:00
Arthur Iakab
42e99f7007 Backed out changeset e53756abfbfb (bug 1602910) for causing debugger test failures. 2019-12-12 23:04:35 +02:00
Harald Kirschner
e9bcf0a2ca Bug 1603276 - Use cached instance of DateTimeFormat for WS frames r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D56816

--HG--
extra : moz-landing-system : lando
2019-12-12 20:38:15 +00:00
Jason Laster
26e7a48e95 Bug 1602910 - Memoize getBreakpointSources. r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D56614

--HG--
extra : moz-landing-system : lando
2019-12-12 20:37:42 +00:00
Jason Laster
2bac333f88 Bug 1603283 - cache isOriginal source field. r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D56815

--HG--
extra : moz-landing-system : lando
2019-12-12 18:35:57 +00:00
Greg Tatum
9c4185b720 Bug 1601939 - Only include about:profiling files on Nightly; r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D56754

--HG--
extra : moz-landing-system : lando
2019-12-12 11:36:51 +00:00
Ciure Andrei
6c95adafed 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
e7a4ae1a1a Bug 1603389 - Read content-process messages setting from prefs for BrowserToolbox Console r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D56888

--HG--
extra : moz-landing-system : lando
2019-12-12 13:10:44 +00:00
Razvan Caliman
57fd8dd59d Bug 1599728 - Create ChangesFront/Actor pair for each target in inspector. r=jdescottes
Request a ChangesFront for each target as soon as is becomes available.

The on-demand approach in D54725 is abandoned because it introduces a client-server round trip on _every_ CSS mutation operation due to the need to ensure the ChangesActor is instantiated. By awaiting `changesFront.setup()` on every mutation, needless slowdown is introduced after the actor becomes available. Furthermore, the approach in D54725 spreads the knowledge about the ChangesFront in too many places in the codebase, something that will only get worse over time as the ChangesActor gains capabilities to track CSS changes from other sources or supports tracking DOM changes.

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

--HG--
extra : moz-landing-system : lando
2019-12-12 15:50:44 +00:00
Nazım Can Altınova
0870dac6cd Bug 1602800 - Backout some of the preferences handling to make sure we have defaults for older firefox versions r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D56721

--HG--
extra : moz-landing-system : lando
2019-12-12 13:54:40 +00:00
Nazım Can Altınova
5a7c30d79f Bug 1602800 - Move the function that gets BrowsingContext ID to a new file inside shared folder r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D56720

--HG--
extra : moz-landing-system : lando
2019-12-12 13:53:31 +00:00