mirror of
https://github.com/servo/servo.git
synced 2025-09-10 06:58:21 +01:00
Let the embedder decide if servo should follow a link or not
This commit is contained in:
parent
d0856fd4cd
commit
79a5bf0cbf
6 changed files with 27 additions and 0 deletions
|
@ -477,6 +477,10 @@ impl WindowMethods for Window {
|
|||
}
|
||||
}
|
||||
|
||||
fn allow_navigation(&self, _: ServoUrl) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn supports_clipboard(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
|
|
@ -1100,6 +1100,10 @@ impl WindowMethods for Window {
|
|||
}
|
||||
}
|
||||
|
||||
fn allow_navigation(&self, _: ServoUrl) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn supports_clipboard(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue