mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #12376 - sappharx:master, r=ConnorGBrewster
add Runnable::name() implementation for PlannedNavigation #12333 <!-- Please describe your changes on the following line: --> implements Runnable::name() for PlannedNavigation --- <!-- 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 #12333 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because the issue stated no tests were needed <!-- 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/12376) <!-- Reviewable:end -->
This commit is contained in:
commit
2239e827bd
1 changed files with 2 additions and 0 deletions
|
@ -936,6 +936,8 @@ struct PlannedNavigation {
|
|||
}
|
||||
|
||||
impl Runnable for PlannedNavigation {
|
||||
fn name(&self) -> &'static str { "PlannedNavigation" }
|
||||
|
||||
fn handler(self: Box<PlannedNavigation>) {
|
||||
if self.generation_id == self.form.root().generation_id.get() {
|
||||
let script_chan = self.script_chan.clone();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue