"ASSERTION: Deprecated, use NewChannelFromURI2 providing loadInfo arguments" in all Inspector / Markup View tests

RESOLVED FIXED in Firefox 46

Status

()

Firefox
Developer Tools: Inspector
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: Sami Jaktholm, Assigned: Sami Jaktholm)

Tracking

unspecified
Firefox 46
Points:
---

Firefox Tracking Flags

(firefox46 fixed)

Details

MozReview Requests

()

Submitter Diff Changes Open Issues Last Updated
Loading...
Error loading review requests:

Attachments

(1 attachment)

(Assignee)

Description

2 years ago
The assertion is triggered by the test-actor-registry.js script [1] which calls NetUtil.asyncFetch() in a deprecated way [2] by giving the URL as string. The correct way to do it is to pass in an object that contains the URL and a loading principal [3].

Here's an example log showing the assertions: https://treeherder.mozilla.org/logviewer.html#?job_id=18818803&repo=mozilla-inbound#L3774

[1] https://dxr.mozilla.org/mozilla-central/source/devtools/client/shared/test/test-actor-registry.js
[2] https://dxr.mozilla.org/mozilla-central/rev/388bdc46ba51ee31da8b8abe977e0ca38d117434/netwerk/base/NetUtil.jsm#87
[3] https://dxr.mozilla.org/mozilla-central/rev/388bdc46ba51ee31da8b8abe977e0ca38d117434/netwerk/base/NetUtil.jsm#200
(Assignee)

Comment 1

2 years ago
Created attachment 8700575 [details]
MozReview Request: Bug 1234179 - Use DTU.fetch() to load test-actor source in Markup View and Inspector tests. r?ochameau

Review commit: https://reviewboard.mozilla.org/r/28763/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/28763/
Attachment #8700575 - Flags: review?(poirot.alex)
(Assignee)

Comment 2

2 years ago
Try run for the patch: https://treeherder.mozilla.org/#/jobs?repo=try&revision=361a327ce97b

dt1 seems to be a perma-orange in mozilla-inboud too so I don't think it's my fault.
Comment on attachment 8700575 [details]
MozReview Request: Bug 1234179 - Use DTU.fetch() to load test-actor source in Markup View and Inspector tests. r?ochameau

https://reviewboard.mozilla.org/r/28763/#review25535

I'm confused as fetch also uses NetUtil.asyncFetch?
But reusing code is a good idea...
Attachment #8700575 - Flags: review?(poirot.alex) → review+
(Assignee)

Comment 4

2 years ago
https://reviewboard.mozilla.org/r/28763/#review25535

The difference between DTU.fetch() and request() is that fetch() calls asyncFetch() with a Channel that has been correctly setup to use the system principal but request() calls it with an URL string (which is deprecated and now asserts in debug builds).
(Assignee)

Updated

2 years ago
Assignee: nobody → sjakthol
Status: NEW → ASSIGNED
Keywords: checkin-needed

Comment 6

2 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/1ca987300351
Status: ASSIGNED → RESOLVED
Last Resolved: 2 years ago
status-firefox46: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 46

Comment 7

2 years ago
[bugday-20160323]

Status: RESOLVED,FIXED -> UNVERIFIED

Comments:
STR: Not clear.
Developer specific testing

Component: 
Name			Firefox
Version			46.0b9
Build ID		20160322075646
Update Channel	beta
User Agent		Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0
OS				Windows 7 SP1 x86_64

Expected Results: 
Developer specific testing

Actual Results: 
As expected
You need to log in before you can comment on or make changes to this bug.