Closed
Bug 1172701
Opened 9 years ago
Closed 9 years ago
GetSubresourceURI should properly compute the resource path
Categories
(Core :: Networking, defect)
Tracking
()
RESOLVED
FIXED
mozilla43
People
(Reporter: valentin, Assigned: valentin)
References
Details
Attachments
(1 file)
6.06 KB,
patch
|
mcmanus
:
review+
|
Details | Diff | Splinter Review |
Currently, the resource path is simply appended to the package path. We should make sure the path is normalized, and that it can't escape the package's namespace.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8646110 -
Flags: review?(mcmanus)
Comment 2•9 years ago
|
||
Comment on attachment 8646110 [details] [diff] [review] Make GetSubresourceURI normalize the path for packaged resources Review of attachment 8646110 [details] [diff] [review]: ----------------------------------------------------------------- ::: netwerk/protocol/http/PackagedAppService.cpp @@ +337,5 @@ > + { > + // We use this temp URI to generate a path that is relative > + // to the package URI and not to the root of the domain. > + nsCOMPtr<nsIURI> tempURI; > + NS_NewURI(getter_AddRefs(tempURI), "http://temp-domain/"); temp-domain.local - jic
Attachment #8646110 -
Flags: review?(mcmanus) → review+
Comment 4•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/846e76b0e711
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•