mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
"javascript:" urls: evaluate in iframe src attribute
- generalize the eval_js_url function so it can be called from multiple places. - call it in htmliframeelement. - if the js eval results in a non-string result, then it won't navigate to a new page, so don't block on the new page loading.
This commit is contained in:
parent
5d28dd64d9
commit
6ae6031468
3 changed files with 41 additions and 28 deletions
|
@ -1056,7 +1056,7 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
|
|||
self.handle_load_url_msg(source_top_ctx_id, source_pipeline_id, load_data, replace);
|
||||
}
|
||||
FromScriptMsg::AbortLoadUrl => {
|
||||
debug!("constellation got URL load message from script");
|
||||
debug!("constellation got abort URL load message from script");
|
||||
self.handle_abort_load_url_msg(source_pipeline_id);
|
||||
}
|
||||
// A page loaded has completed all parsing, script, and reflow messages have been sent.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue