Skip to content

Instantly share code, notes, and snippets.

View jdm's full-sized avatar

Josh Matthews jdm

View GitHub Profile
▶ TIMEOUT [expected OK] /workers/semantics/navigation/002.html
│ thread 'LayoutWorker worker 1/6' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore/option.rs:325
│ stack backtrace:
│ 1: 0x105c87a18 - std::sys::backtrace::tracing::imp::write::h9fb600083204ae7f
│ 2: 0x105c8dd15 - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hca543c34f11229ac
│ 3: 0x105c8d92e - std::panicking::default_hook::hc2c969e7453d080c
│ 4: 0x1055db3c2 - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h0bad41b0b38a855d
│ 5: 0x105c752c8 - std::sys_common::unwind::begin_unwind_inner::h30e12d15ce2b2e25
│ 6: 0x105c76bfe - std::sys_common::unwind::begin_unwind_fmt::hb2de8a9968d38523
godot2:dev-servo jdm$ ./mach run -d /tmp/url.html
ERROR:compositing::constellation: Panic: DOMRefCell<T> already mutably borrowed
ERROR:compositing::constellation: Backtrace:
frame #0 - 0x000000010a8b2a48 - backtrace::backtrace::trace::h8cb7b0465fa42e9f
frame #1 - 0x000000010a8b28fa - backtrace::capture::Backtrace::new::ha2e43e88f310ebee
frame #2 - 0x0000000109627c2f - util::thread::spawn_named_with_send_on_panic::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::ha8be4fe166f91830
frame #3 - 0x000000010962a42d - extern $u22$rust.call$u22$$u20$fn$LP$$u5b$closure$SP$DefId$u20$$u7b$$u20$krate.$u20$49$C$$u20$node.$u20$DefIndex$LP$2753$RP$$u20$$u7d$$u20$0.ipc_channel..ipc..IpcSender$LT$$LP$core..option..Option$LT$msg..constellation_msg..PipelineId$GT$$C$$u20$std..string..String$C$$u20$std..string..String$RP$$GT$$C$$u20$1.core..option..Option$LT$msg..constellation_msg..PipelineId$GT$$u5d$$C$$u20$$LP$$RF$$u27$static$u20$core..any..Any$u20$$u2b$$u20$$u27$static$C$$RP$$RP$::once_shim.155823::h4ff60516de6
diff --git a/components/script/dom/bindings/reflector.rs b/components/script/dom/bindings/reflector.rs
index 04466ea..a2ba6bd 100644
--- a/components/script/dom/bindings/reflector.rs
+++ b/components/script/dom/bindings/reflector.rs
@@ -6,17 +6,22 @@
use dom::bindings::global::{GlobalRef, GlobalRoot, global_root_from_reflector};
use dom::bindings::js::Root;
-use js::jsapi::{HandleObject, JSContext, JSObject};
+use heapsize::HeapSizeOf;
#!/usr/bin/python
"""
Save this file as server.py
>>> python server.py 0.0.0.0 8001
serving on 0.0.0.0:8001
or simply
>>> python server.py
@jdm
jdm / gist:551a92fb9a5d68b2e5cf
Created March 2, 2016 04:27
css font failures
▶ TIMEOUT [expected OK] /XMLHttpRequest/send-entity-body-document.htm
▶ TIMEOUT [expected OK] /html/browsers/the-window-object/window-named-properties.html
▶ TIMEOUT [expected OK] /html/browsers/windows/nested-browsing-contexts/frameElement.sub.html
▶ TIMEOUT [expected OK] /html/dom/documents/dom-tree-accessors/nameditem-02.html
▶ CRASH [expected OK] /html/rendering/replaced-elements/svg-embedded-sizing/svg-in-iframe-auto.html
unsafe extern fn setTimeout(cx: *mut JSContext, _obj: HandleObject, this: *const Window, args: *const JSJitMethodCallArgs) -> bool {
let this = &*this;
let args = &*args;
let argc = args._base.argc_;
let argcount = cmp::min(argc, 3);
match argcount {
1 => {
if args.get(0).get().is_object() && !is_platform_object(args.get(0).get().to_object()) {
let arg0: Rc<FunctionBinding::Function> = if args.get(0).get().is_object() {
@jdm
jdm / noclone.diff
Created November 10, 2015 21:10
Avoid Clone for timer callbacks.
diff --git a/components/script/timers.rs b/components/script/timers.rs
index a7395de..1d01c91 100644
--- a/components/script/timers.rs
+++ b/components/script/timers.rs
@@ -102,7 +102,7 @@ pub enum TimerCallback {
FunctionTimerCallback(Rc<Function>),
}
-#[derive(JSTraceable, Clone)]
+#[derive(JSTraceable)]
@jdm
jdm / interdiff.diff
Created September 11, 2015 19:19
interdiff
diff --git a/dom/fetch/FetchDriver.cpp b/dom/fetch/FetchDriver.cpp
--- a/dom/fetch/FetchDriver.cpp
+++ b/dom/fetch/FetchDriver.cpp
@@ -46,16 +46,17 @@ NS_IMPL_ISUPPORTS(FetchDriver,
FetchDriver::FetchDriver(InternalRequest* aRequest, nsIPrincipal* aPrincipal,
nsILoadGroup* aLoadGroup)
: mPrincipal(aPrincipal)
, mLoadGroup(aLoadGroup)
, mRequest(aRequest)
0:02.74 SUITE_START: MainThread 1
0:02.74 LOG: MainThread INFO Running testharness tests
0:02.74 LOG: Thread-TestrunnerManager-1 INFO Starting runner
0:02.75 LOG: Thread-TestrunnerManager-2 INFO Starting runner
0:02.75 LOG: Thread-TestrunnerManager-3 INFO Starting runner
0:02.75 LOG: Thread-TestrunnerManager-4 INFO No more tests
0:02.75 LOG: Thread-TestrunnerManager-5 INFO No more tests
0:02.75 LOG: Thread-TestrunnerManager-6 INFO No more tests
0:02.75 TEST_START: Thread-TestrunnerManager-1 /old-tests/submission/Opera/script_scheduling/087.html
0:02.75 LOG: Thread-TestrunnerManager-7 INFO No more tests
2060428048[1003292d0]: Acquiring lock on thread 1003292d0
2060428048[1003292d0]: Acquired lock on thread 1003292d0
2060428048[1003292d0]: Released lock on thread 1003292d0
373870592[1003298c0]: STS thread init
2060428048[1003292d0]: STS dispatch [118175840]
373870592[1003298c0]: STS poll iter [1]
2060428048[1003292d0]: Acquiring lock on thread 1003292d0
373870592[1003298c0]: calling PR_Poll [active=0 idle=0]
2060428048[1003292d0]: Acquired lock on thread 1003292d0
373870592[1003298c0]: timeout = -1 milliseconds