mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #12502 - avadacatavra:devtools, r=jdm
Added devtools support to fetch for XHR <!-- Please describe your changes on the following line: --> Added devtools support for fetch for XHR, but devtools can't show the request in the XHR tab. I've attached a picture of an XHR request in devtools. <img width="694" alt="screenshot 2016-07-19 11 07 55" src="https://cloud.githubusercontent.com/assets/11877868/16944480/210b0e8a-4da1-11e6-8288-48005ede33f6.png"> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #11774 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because I don't know how to automate devtools testing for this <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12502) <!-- Reviewable:end -->
This commit is contained in:
commit
b5fe7db8b4
9 changed files with 213 additions and 74 deletions
|
@ -594,6 +594,7 @@ impl XMLHttpRequestMethods for XMLHttpRequest {
|
|||
origin: self.global().r().get_url(),
|
||||
referer_url: self.referrer_url.clone(),
|
||||
referrer_policy: self.referrer_policy.clone(),
|
||||
pipeline_id: self.pipeline_id(),
|
||||
};
|
||||
|
||||
if bypass_cross_origin_check {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue