Commit Graph
18845 Commits
Author SHA1 Message Date
Matt Woodrow 41be064ae7 Bug 1574372 - Add API to test stream converters to find out their output type. r=bzbarsky
We don't want to run stream conversion in the parent (since a lot of them require access to the document), so this instead adds a way to find out what their output type will be.

Differential Revision: https://phabricator.services.mozilla.com/D56134
2019-12-17 03:02:02 +00:00
Logan Smyth d52bd98684 Bug 1592644 - Ensure that we are always passing a global to listen for events. r=jlast
We are being inconsistent here and sometimes calling `.connect` with a
Debugger.Object that points at a global instead of the global itself.
Passing the Debugger.Object fails since it isn't a global.

Differential Revision: https://phabricator.services.mozilla.com/D57270
2019-12-16 15:41:31 +00:00
Emma Malysz 572c93ffbf Bug 1601113, replace URIs ending in vnd.mozilla.xul+xml with xhtml+xml r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D57148
2019-12-17 00:33:16 +00:00
Oana Pop Rus 55429b1216 Backed out 9 changesets (bug 1574372) for bustage and wpt failures. on a CLOSED TREE
Backed out changeset b0183a606fec (bug 1574372)
Backed out changeset b7c96254826e (bug 1574372)
Backed out changeset 196d61adc272 (bug 1574372)
Backed out changeset 419b94b1210e (bug 1574372)
Backed out changeset c192e499eb47 (bug 1574372)
Backed out changeset 4e57038c3518 (bug 1574372)
Backed out changeset 6ec2aa542b59 (bug 1574372)
Backed out changeset d71b4c0aac1a (bug 1574372)
Backed out changeset a05c3b113ac1 (bug 1574372)
2019-12-17 03:26:38 +02:00
Matt Woodrow 76534ea469 Bug 1574372 - Add API to test stream converters to find out their output type. r=bzbarsky
We don't want to run stream conversion in the parent (since a lot of them require access to the document), so this instead adds a way to find out what their output type will be.

Differential Revision: https://phabricator.services.mozilla.com/D56134
2019-12-16 21:40:06 +00:00
Alexandre Poirot 726f829875 Bug 1602791 - Make the storage panel use the TargetList and support target switching. r=miker
Differential Revision: https://phabricator.services.mozilla.com/D56552
2019-12-16 16:22:15 +00:00
Alexandre Poirot 88632f6113 Bug 1602791 - Move storage front retrieval from Panel to UI. r=miker
Differential Revision: https://phabricator.services.mozilla.com/D56551
2019-12-16 17:40:33 +00:00
Nicolas Chevobbe d9dfc00ab4 Bug 1603351 - Add a tsconfig.json file in devtools root folder. r=gregtatum.
This will help VSCode users (jump to definition will work with absolute paths)
and opens the door to implementing typescript JS docs.
I tested it with absolute and regular paths, with `require` and `from`.

Differential Revision: https://phabricator.services.mozilla.com/D56863
2019-12-16 15:21:03 +00:00
Nicolas Chevobbe 486b8d6cd0 Bug 1566850 - Remove this.activeConsole in TargetMixin. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56693
2019-12-13 14:21:20 +00:00
Nicolas Chevobbe 17649b0c34 Bug 1566850 - Remove target.activeConsole usage in Toolbox. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56692
2019-12-13 14:21:20 +00:00
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 6af1c0c3e6 Bug 1566850 - Remove target.activeConsole usage in Debugger. r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D56690
2019-12-13 14:02:55 +00:00
Nicolas Chevobbe f811d433eb Bug 1566850 - Remove target.activeConsole usage in Netmonitor. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D56689
2019-12-13 14:01:18 +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
Nicolas Chevobbe b423f4f0e2 Bug 1566850 - Remove target.activeConsole usage in DOM panel. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56686
2019-12-13 13:55:46 +00:00
Nicolas Chevobbe b43eb423f9 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
2019-12-13 13:55:23 +00:00
Boris Zbarsky 89980d90cb Bug 1603806. Add a blocking reason when loads with the SEC_REQUIRE_SAME_ORIGIN_* security flags are blocked due to not being same-origin. r=ckerschb,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D57147
2019-12-16 09:36:45 +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
Thiago Arrais a6e59550ac Bug 765651 - Fix console protocol for ws connections. r=Honza,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D56965
2019-12-16 11:42:01 +00:00
Daisuke Akatsuka e94f089381 Bug 1578753: Add a test for top-level target switing. r=jdescottes,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D56705
2019-12-16 10:18:07 +00:00
Daisuke Akatsuka e15fb8abe1 Bug 1578753: Reflect the switching of the top-level target. r=jdescottes,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D56704
2019-12-16 10:16:05 +00:00
Daisuke Akatsuka 8f3a9755ad Bug 1578753: Use the current target of TargetList. r=jdescottes,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D56703
2019-12-16 10:15:58 +00: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
Oriol Brufau 977941411c Bug 1603962 - Add comment explaining why addJsonViewTab races two load promises. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D57204
2019-12-16 09:03:36 +00: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
Julian Descottes 01914eddb6 Bug 1602727 - Fix DevTools destroyer patterns r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D56527
2019-12-15 21:07:59 +00:00
Julian Descottes 9a994d5c09 Bug 1599962 - OBT should list remote <browser> elements when debugging non browser windows r=ochameau
Code change suggested by :Gijs to support non browser windows

Differential Revision: https://phabricator.services.mozilla.com/D56349
2019-12-12 16:23:21 +00:00
Brad Werth 9f1f58e1a6 Bug 1595092 Part 2: Update an existing RDM content size test to test against the new RDM UI. r=mtigley
Depends on D56979

Differential Revision: https://phabricator.services.mozilla.com/D57144
2019-12-13 19:25:43 +00:00
Brad Werth 585a7193e3 Bug 1595092 Part 1: Make new RDM UI size the content pane with content-box. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D56979
2019-12-13 19:22:02 +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 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 4302579aad Bug 1596918: Part 4d - Fix callers which try to return non-clonable values. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53745
2019-12-13 20:36:37 +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 7e9dd199cf Bug 1596918: Part 4a - Re-add eslint-disable comments removed by rewrite. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53742
2019-12-13 20:36:25 +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
Brad Werth ac05a784c2 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
2019-12-13 19:13:00 +00:00
Brad Werth 4b2febb93d 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
2019-12-13 19:12:55 +00:00
Brad Werth f445484649 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
2019-12-13 19:11:15 +00:00
Boris Zbarsky 4f463b2eab 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
2019-12-13 18:10:26 +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
Jason Laster bb4b102f39 Bug 1603698 - Omniscient Browser Toolbox error "this._stopThreadFrontListeners is not a function". r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D57135
2019-12-13 16:55:19 +00:00
Nicolas Chevobbe c45cffa7d6 Bug 1602769 - Remove unused DebuggerClient.connect onConnected param. r=ladybenko.
Differential Revision: https://phabricator.services.mozilla.com/D56564
2019-12-13 13:26:29 +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
Ksenia Berezina 8ca141a222 Bug 1554915 - Remove eslint-disable-next-line complexity from DOMEvent and GenericObject r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D56647
2019-12-13 13:27:02 +00:00
Julian Descottes e20c260629 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
2019-12-13 12:02:31 +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