Closed
Bug 1343302
Opened 8 years ago
Closed 8 years ago
Explicitly pass the nsHttpChannel to mCacheOpenRunnable instead of using a closure
Categories
(Core :: Networking: HTTP, defect)
Core
Networking: HTTP
Tracking
()
RESOLVED
FIXED
mozilla54
| Tracking | Status | |
|---|---|---|
| firefox-esr45 | --- | unaffected |
| firefox51 | --- | unaffected |
| firefox52 | --- | unaffected |
| firefox-esr52 | --- | unaffected |
| firefox53 | --- | unaffected |
| firefox54 | --- | fixed |
People
(Reporter: nika, Assigned: nika)
References
Details
Attachments
(1 file, 1 obsolete file)
This breaks the analysis which I'm trying to land on central in bug 1336510.
| Assignee | ||
Comment 1•8 years ago
|
||
MozReview-Commit-ID: 2jPiUdI1DWN
Attachment #8842094 -
Flags: review?(valentin.gosu)
Comment 2•8 years ago
|
||
Comment on attachment 8842094 [details] [diff] [review]
Explicitly pass the nsHttpChannel to mCacheOpenRunnable instead of using a closure
Review of attachment 8842094 [details] [diff] [review]:
-----------------------------------------------------------------
::: netwerk/protocol/http/nsHttpChannel.cpp
@@ +8685,3 @@
> mCacheOpenDelay = 0;
> + mCacheOpenFunc(this);
> + mCacheOpenFunc = nullptr;
Try this instead so we avoid any potential reentracy issues:
std::function<void(nsHttpChannel*)> localFunction = nullptr;
std::swap(localFunction, mCacheOpenFunc);
localFunction(this); // This will call AsyncOpenURI triggering the cache fetch
Attachment #8842094 -
Flags: review?(valentin.gosu) → review+
| Assignee | ||
Comment 3•8 years ago
|
||
MozReview-Commit-ID: 2jPiUdI1DWN
| Assignee | ||
Updated•8 years ago
|
Attachment #8842094 -
Attachment is obsolete: true
| Assignee | ||
Comment 4•8 years ago
|
||
Updated•8 years ago
|
Blocks: 1325081
status-firefox51:
--- → unaffected
status-firefox52:
--- → unaffected
status-firefox53:
--- → unaffected
status-firefox54:
--- → affected
status-firefox-esr45:
--- → unaffected
status-firefox-esr52:
--- → unaffected
Comment 5•8 years ago
|
||
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Updated•8 years ago
|
Group: core-security → core-security-release
Updated•8 years ago
|
Group: core-security-release
You need to log in
before you can comment on or make changes to this bug.
Description
•