Closed
Bug 1234757
Opened 9 years ago
Closed 9 years ago
Use channel.asyncOpen2 within netwerk/test/unit/test_protocolproxyservice.js
Categories
(Core :: DOM: Security, defect)
Core
DOM: Security
Tracking
()
RESOLVED
FIXED
mozilla46
Tracking | Status | |
---|---|---|
firefox46 | --- | fixed |
People
(Reporter: ckerschb, Assigned: mcmanus)
References
Details
Attachments
(2 files, 1 obsolete file)
26.00 KB,
patch
|
ckerschb
:
review+
|
Details | Diff | Splinter Review |
2.02 KB,
patch
|
ckerschb
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Reporter | ||
Updated•9 years ago
|
Reporter | ||
Comment 1•9 years ago
|
||
That patch was already r+ within 1234596 by Patrick but got backed out because the test timed out. Let's investigate within this bug what's going on and why this test was failing.
Attachment #8701340 -
Flags: review+
Reporter | ||
Comment 2•9 years ago
|
||
Hey Patrick, this patch got backed out and finally I got a chance to investigate. It's only one specific subtest where the second arg of .AsyncOpen() was used for the context.
In the enclosed patch, if you grep for 'AsyncOpen2' you'll see what I mean. I am not sure how to fix. Question is, do we need to keep that subtest? If so, should we basically create some kind of mediator pattern to forward the context through the directFilterListener? We have done that for 2 or 3 callistes within C++ so far, not sure if it makes sense to do that for the test though. Please let me know what you think - thanks!
Attachment #8701340 -
Attachment is obsolete: true
Flags: needinfo?(mcmanus)
Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8708432 -
Flags: review?(mozilla)
Assignee | ||
Updated•9 years ago
|
Assignee: mozilla → mcmanus
Assignee | ||
Comment 4•9 years ago
|
||
that subtest doesn't really need the second argument.. the patch should fix that up and then you can rebase and apply your patch to make it use asyncopen2().
thanks!
Flags: needinfo?(mcmanus)
Reporter | ||
Comment 5•9 years ago
|
||
Comment on attachment 8708432 [details] [diff] [review]
test_protocolproxyservice does not need 2nd arg to asyncopen
Review of attachment 8708432 [details] [diff] [review]:
-----------------------------------------------------------------
::: netwerk/test/unit/test_protocolproxyservice.js
@@ +992,5 @@
> Services.scriptSecurityManager.getSystemPrincipal(),
> null, // aTriggeringPrincipal
> Ci.nsILoadInfo.SEC_NORMAL,
> Ci.nsIContentPolicy.TYPE_OTHER);
> + chan.asyncOpen(directFilterListener, null);
This should be asyncOpen2, or do you wanna keep that test around?
Attachment #8708432 -
Flags: review?(mozilla)
Assignee | ||
Comment 6•9 years ago
|
||
Comment on attachment 8708432 [details] [diff] [review]
test_protocolproxyservice does not need 2nd arg to asyncopen
Review of attachment 8708432 [details] [diff] [review]:
-----------------------------------------------------------------
::: netwerk/test/unit/test_protocolproxyservice.js
@@ +992,5 @@
> Services.scriptSecurityManager.getSystemPrincipal(),
> null, // aTriggeringPrincipal
> Ci.nsILoadInfo.SEC_NORMAL,
> Ci.nsIContentPolicy.TYPE_OTHER);
> + chan.asyncOpen(directFilterListener, null);
I just meant this as a precursor to your asyncopen2() patch..
Reporter | ||
Comment 7•9 years ago
|
||
Comment on attachment 8708432 [details] [diff] [review]
test_protocolproxyservice does not need 2nd arg to asyncopen
Review of attachment 8708432 [details] [diff] [review]:
-----------------------------------------------------------------
(In reply to Patrick McManus [:mcmanus] from comment #4)
> that subtest doesn't really need the second argument.. the patch should fix
> that up and then you can rebase and apply your patch to make it use
> asyncopen2().
>
> thanks!
Oh sorry, I haven't seen your text! Makes sense!
Attachment #8708432 -
Flags: review+
Reporter | ||
Comment 8•9 years ago
|
||
Comment on attachment 8708135 [details] [diff] [review]
bug_1234757_asyncopen2_test_protocolproxyservice.patch
Carrying over r+ from Patrick!
Attachment #8708135 -
Flags: review+
Comment 10•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/fdef354718b1
https://hg.mozilla.org/mozilla-central/rev/5ee1ef34168e
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in
before you can comment on or make changes to this bug.
Description
•