adding interface for custom responses#10961
Conversation
|
Heads up! This PR modifies the following files:
|
components/net_traits/lib.rs
Outdated
| /// The policy and referring URL for the originator of this request | ||
| pub referrer_policy: Option<ReferrerPolicy>, | ||
| pub referrer_url: Option<Url>, | ||
| #[ignore_heap_size_of = "Defined in hyper"] |
There was a problem hiding this comment.
Hyper has HeapSizeOf support, and that RequestSource enum isn't defined in Hyper.
There was a problem hiding this comment.
Yeah, this was an issue i had, when i put derive HeapSizeOf attribute on RequestSource, due to the IpcSender wrapped in it. Do i have to make an impl HeapSizeOf for IpcSender ?
|
r? @nox |
81d47c2 to
579085d
Compare
579085d to
b42b3f5
Compare
|
New code was committed to pull request. |
b42b3f5 to
a05e864
Compare
|
r? @jdm |
a05e864 to
145e8fd
Compare
|
New code was committed to pull request. |
|
We should modify -S-awaiting-review +S-needs-code-changes
|
145e8fd to
775605d
Compare
|
New code was committed to pull request. |
|
Will be adding that trait object argument, in subsequent commit.
|
|
tests/unit/net/http_loader.rs, line 1698 [r2] (raw file):
|
|
tests/unit/net/http_loader.rs, line 1705 [r2] (raw file):
|
components/net/lib.rs
Outdated
| #![plugin(plugins)] | ||
|
|
||
| #![deny(unsafe_code)] | ||
| //#![deny(unsafe_code)] |
There was a problem hiding this comment.
Not sure, whether we use unsafe for StreamedResponse, which is required only for unit test.
There was a problem hiding this comment.
This is not acceptable, and AFAICT not even necessary.
|
💔 Test failed - mac-rel-wpt |
|
|
@bors-servo retry #11276 |
|
💔 Test failed - mac-rel-wpt |
|
|
@bors-servo retry #11276 |
|
💔 Test failed - mac-rel-wpt |
|
|
@jdm Coincidence, or not an intermittent on this PR? |
|
☔ The latest upstream changes (presumably #11270) made this pull request unmergeable. Please resolve the merge conflicts. |
|
I'm assuming a string of coincidences. |
|
☔ The latest upstream changes (presumably #11189) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@bors-servo retry |
|
@bors-servo try |
|
⌛ Trying commit 3766cd1 with merge f5ee376... |
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
|
@jdm can we get this merged now ? |
|
@bors-servo: r+ |
|
📌 Commit 3766cd1 has been approved by |
|
💔 Test failed - mac-rel-wpt |
|
|
@bors-servo retry #11100 |
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
Fixes #10960
This change is