mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
Fix a dynamic borrow failure with iframes
This commit is contained in:
parent
4646975080
commit
6ad5597edd
1 changed files with 2 additions and 4 deletions
|
@ -811,12 +811,11 @@ impl ScriptTask {
|
|||
//
|
||||
// Note: We can parse the next document in parallel with any previous documents.
|
||||
let mut document = Document::new(&window, Some(url.clone()), HTMLDocument, None);
|
||||
let next_subpage_id = page.next_subpage_id.borrow();
|
||||
let html_parsing_result = hubbub_html_parser::parse_html(page,
|
||||
&mut document,
|
||||
url.clone(),
|
||||
self.resource_task.clone(),
|
||||
next_subpage_id.get().clone());
|
||||
page.next_subpage_id.get());
|
||||
|
||||
let HtmlParserResult {
|
||||
discovery_port
|
||||
|
@ -847,8 +846,7 @@ impl ScriptTask {
|
|||
page.layout_chan.send(AddStylesheetMsg(sheet));
|
||||
}
|
||||
Some(HtmlDiscoveredIFrame((iframe_url, subpage_id, sandboxed))) => {
|
||||
let mut next_subpage_id = page.next_subpage_id.borrow_mut();
|
||||
*next_subpage_id.get() = SubpageId(*subpage_id + 1);
|
||||
page.next_subpage_id.set(SubpageId(*subpage_id + 1));
|
||||
let sandboxed = if sandboxed {
|
||||
IFrameSandboxed
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue