Skip to content

Instantly share code, notes, and snippets.

View jdm's full-sized avatar

Josh Matthews jdm

View GitHub Profile
error: failed to run custom build command for `osmesa-src v17.3.1-devel (https://github.com/servo/osmesa-src#6d23daed)`
process didn't exit successfully: `/home/travis/build/servo/servo/target/debug/build/osmesa-src-02b54fad7b7ae406/build-script-build` (exit code: 101)
--- stdout
running: "touch" "configure.ac" "aclocal.m4" "configure" "Makefile.am" "Makefile.in" "src/compiler/glsl/glcpp/glcpp-lex.c" "src/mesa/program/lex.yy.c" "src/compiler/glsl/glcpp/glcpp-parse.c" "src/compiler/glsl/glsl_parser.cpp" "src/mesa/program/program_parse.tab.c" "src/compiler/glsl/glsl_lexer.cpp"
running: "/home/travis/build/servo/servo/.cargo/git/checkouts/osmesa-src-bf84ce2b80210dd7/6d23dae/mesa-src/configure" "--disable-dri" "--disable-driglx-direct" "--disable-dri3" "--disable-egl" "--disable-gbm" "--disable-gles1" "--disable-gles2" "--disable-glx" "--with-platforms=" "--enable-gallium-osmesa" "--with-gallium-drivers=swrast"
10:53 <jdm> mayhemer: when an HTTP redirect occurs, which channels see the OnStartRequest notification?
10:54 <mayhemer> jdm: channels?
10:54 <jdm> mayhemer: so there is the channel that gets redirected, and the new channel that is the result of the redirect
10:55 <jdm> mayhemer: does the original channel have OnStartRequest called?
10:55 <mayhemer> jdm: depends
10:55 <mayhemer> jdm: if go to network for the response, we definitely get called with the 30X response
10:56 <mayhemer> so, the first channel gets onStart
10:56 <jdm> ok, that's helpful
10:56 <mayhemer> when we go from the cache and some other conditions are met, we skip and redirect immediately (the first channel doesn't open any pump)
10:56 <jdm> mayhemer: is there some API to determine if a redirection has occurred so we can ignore that?
diff --git a/ports/glutin/window.rs b/ports/glutin/window.rs
index 102c014..4c5b01d 100644
--- a/ports/glutin/window.rs
+++ b/ports/glutin/window.rs
@@ -192,6 +192,10 @@ pub struct Window {
/// the equivalent ReceivedCharacter data as was received for the press event.
pressed_key_map: RefCell<Vec<(ScanCode, char)>>,
+ /// The last KeyboardInput event that was received. Used to reorder the KeyboardInput
+ /// and ReceivedCharacter events on Windows.
feature count
PageVisits 10
V8SloppyMode 9
SecureContextCheckFailed 8
V8StrictMode 7
SecureContextCheckPassed 7
ContentSecurityPolicy 6
WorkerSubjectToCSP 5
SameOriginOtherScript 5
PrefixedDevicePixelRatioMediaFeature 4
Compiling osmesa-src v12.0.1 (https://github.com/servo/osmesa-src#42509fbd)
error: failed to run custom build command for `osmesa-src v12.0.1 (https://github.com/servo/osmesa-src#42509fbd)`
process didn't exit successfully: `/home/sagartoms/servo/target/debug/build/osmesa-src-3fd955e5ccdf858b/build-script-build` (exit code: 101)
--- stdout
running: "touch" "configure.ac" "aclocal.m4" "configure" "Makefile.am" "Makefile.in" "src/compiler/glsl/glcpp/glcpp-lex.c" "src/mesa/program/lex.yy.c" "src/compiler/glsl/glcpp/glcpp-parse.c" "src/compiler/glsl/glsl_parser.cpp" "src/mesa/program/program_parse.tab.c" "src/compiler/glsl/glsl_lexer.cpp"
running: "/home/sagartoms/servo/.cargo/git/checkouts/osmesa-src-bf84ce2b80210dd7/42509fb/mesa-12.0.1/configure" "--disable-gles1" "--disable-gles2" "--disable-dri" "--disable-dri3" "--disable-glx" "--disable-egl" "--disable-driglx-direct" "--enable-gallium-osmesa" "--with-gallium-drivers=swrast" "--disable-llvm-shared-libs"
checking build system type... x86_64-unknown-linux-gnu
# Roots.
0x10fa13080 W exact-Object
0x10fa03060 W exact-Object
0x10fa10040 W wrapper
0x10fa10070 W wrapper
0x10fa100a0 W wrapper
0x10fa100d0 W wrapper
0x10fa10100 W wrapper
0x10fa10130 W wrapper
0x10fa10160 W wrapper
@jdm
jdm / test.rs
Created January 18, 2017 22:49
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#[macro_use]
extern crate js;
extern crate libc;
use js::jsapi::{jsfriendapi_h_unnamed_12, DumpHeap};
use js::glue::CallValueTracer;
@jdm
jdm / dmd.diff
Last active January 17, 2017 07:20
diff --git a/Cargo.lock b/Cargo.lock
index b0818bf..28e1cd1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -23,6 +23,15 @@ dependencies = [
]
[[package]]
+name = "alloc-jemalloc-dmd"
+version = "0.0.0"
commit 2b82584c108cf3a8f6f071f8459bc3b216972c68
Author: Josh Matthews <[email protected]>
Date: Fri Jan 13 19:17:40 2017 -0500
Set the proper filename and line number for inline compiled event handlers.
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs
index de1ac8f..8384aaf 100644
--- a/components/script/dom/bindings/utils.rs
+++ b/components/script/dom/bindings/utils.rs
@jdm
jdm / script.sh
Created December 16, 2016 18:17
TWiS new contributor detection
#!/bin/sh
INITIAL_COMMIT=ce30d45
START_COMMIT=`git log --before="last week" --pretty=format:%H|head -n1`
ALL_NAMES=`git log $INITIAL_COMMIT.. --pretty=format:%an|sort|uniq`
OLD_NAMES=`git log $INITIAL_COMMIT..$START_COMMIT --pretty=format:%an|sort|uniq`
echo "$OLD_NAMES">names_old.txt
echo "$ALL_NAMES">names_all.txt
diff names_old.txt names_all.txt
#rm names_old.txt names_all.txt