Skip to content

panic: What finished? (thread Script#1, at components/script/dom/html/htmllinkelement.rs:901) #42477

@fred-wang

Description

@fred-wang

This is slightly different from #42259 ; cc @mrobinson cc @TimvdLippe

Minimal testcase:

<!DOCTYPE html>
<link id="link" href="A"></link>
<script>
  link.rel = "stylesheet";
  link.href = "B";
</script>

System: Linux
Version: Version: Servo 0.0.5-7488c127d
Command: ./servo/servo

What finished? (thread Script#1, at components/script/dom/html/htmllinkelement.rs:901)
   0: servoshell::backtrace::print
   1: servoshell::panic_hook::panic_hook
   2: std::panicking::panic_with_hook
   3: std::panicking::panic_handler::{{closure}}
   4: std::sys::backtrace::__rust_end_short_backtrace
   5: __rustc::rust_begin_unwind
   6: core::panicking::panic_fmt
   7: <script::dom::html::htmllinkelement::HTMLLinkElement as script::stylesheet_loader::StylesheetOwner>::load_finished
   8: script::stylesheet_loader::StylesheetContext::do_post_parse_tasks
   9: <T as script::task::TaskBox>::run_box
  10: script::script_thread::ScriptThread::handle_msg_from_script
  11: script::script_thread::ScriptThread::handle_msgs::{{closure}}
  12: script::script_thread::ScriptThread::handle_msgs
  13: std::sys::backtrace::__rust_begin_short_backtrace
  14: core::ops::function::FnOnce::call_once{{vtable.shim}}
  15: std::sys::thread::unix::Thread::new::thread_start
  16: start_thread
             at ./nptl/pthread_create.c:447:8
  17: clone3
             at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78:0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions