mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
script: Obtain referrer policy from header
This commit is contained in:
parent
920a43df95
commit
1a242d8a50
8 changed files with 52 additions and 11 deletions
|
@ -69,6 +69,7 @@ impl DOMParserMethods for DOMParser {
|
|||
None,
|
||||
DocumentSource::FromParser,
|
||||
loader,
|
||||
None,
|
||||
None);
|
||||
parse_html(document.r(), s, url, ParseContext::Owner(None));
|
||||
document.set_ready_state(DocumentReadyState::Complete);
|
||||
|
@ -84,6 +85,7 @@ impl DOMParserMethods for DOMParser {
|
|||
None,
|
||||
DocumentSource::NotFromParser,
|
||||
loader,
|
||||
None,
|
||||
None);
|
||||
parse_xml(document.r(), s, url, xml::ParseContext::Owner(None));
|
||||
Ok(document)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue