Closed
Bug 781331
Opened 13 years ago
Closed 12 years ago
Hook up systemXHR to permissions manager
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: gwagner, Assigned: gwagner)
References
Details
Attachments
(1 file, 2 obsolete files)
4.77 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•13 years ago
|
blocking-basecamp: --- → ?
Assignee | ||
Comment 1•13 years ago
|
||
Assignee: nobody → anygregor
Assignee | ||
Comment 2•13 years ago
|
||
Attachment #650320 -
Attachment is obsolete: true
Assignee | ||
Updated•13 years ago
|
Attachment #650324 -
Flags: review?(philipp)
Assignee | ||
Comment 3•13 years ago
|
||
Comment on attachment 650324 [details] [diff] [review]
patch
Uh I also have to change some tests.
Attachment #650324 -
Flags: review?(philipp)
Comment 4•13 years ago
|
||
(In reply to Gregor Wagner [:gwagner] from comment #3)
> Uh I also have to change some tests.
Yes you do. Also I'm pretty sure I'm not qualified to review this.
Assignee | ||
Comment 5•13 years ago
|
||
Attachment #650324 -
Attachment is obsolete: true
Assignee | ||
Updated•13 years ago
|
Attachment #650396 -
Flags: review?(jonas)
Updated•13 years ago
|
blocking-basecamp: ? → +
Comment on attachment 650396 [details] [diff] [review]
patch
Review of attachment 650396 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/base/src/nsXMLHttpRequest.cpp
@@ +581,5 @@
> + return;
> +
> + PRUint32 permission;
> + nsresult rv =
> + permMgr->TestPermissionFromPrincipal(principal, "systemXHR", &permission);
I think we should use the same permission as for raw TCP sockets here. I'm not sure if we decided a name for that, but something like "networktcp" or some such would work for me.
@@ +586,5 @@
> + if (NS_FAILED(rv)) {
> + return;
> + }
> +
> + if (permission != nsIPermissionManager::ALLOW_ACTION) {
Just merge these two if-statements.
Attachment #650396 -
Flags: review?(jonas) → review+
Assignee | ||
Comment 7•13 years ago
|
||
Assignee | ||
Comment 8•13 years ago
|
||
(In reply to Jonas Sicking (:sicking) from comment #6)
> Comment on attachment 650396 [details] [diff] [review]
> patch
>
> Review of attachment 650396 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: content/base/src/nsXMLHttpRequest.cpp
> @@ +581,5 @@
> > + return;
> > +
> > + PRUint32 permission;
> > + nsresult rv =
> > + permMgr->TestPermissionFromPrincipal(principal, "systemXHR", &permission);
>
> I think we should use the same permission as for raw TCP sockets here. I'm
> not sure if we decided a name for that, but something like "networktcp" or
> some such would work for me.
Followup bug 783716 because that needs gaia changes.
Comment 9•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Comment 10•12 years ago
|
||
With this patch, what's the recommended way to enable systemXHR for testing purposes (on localhost)?
You need to log in
before you can comment on or make changes to this bug.
Description
•