Skip to content

Instantly share code, notes, and snippets.

View LayoutTests:http:tests:security:video-cross-origin-allow.php
<?php
header("Access-Control-Allow-Origin: *");
if ($_SERVER['REQUEST_METHOD'] == "OPTIONS") {
header("Access-Control-Allow-Methods: GET");
header("Access-Control-Allow-Headers: origin, accept-encoding, referer, range");
exit;
}
View gist:2877799
$ nc videos-cdn.mozilla.net 80
OPTIONS /serv/mozhacks/demos/resources/immersivevideo/dubai.r.webm HTTP/1.1
Host: videos-cdn.mozilla.net
Connection: keep-alive
Access-Control-Request-Method: GET
Origin: http://fiddle.jshell.net
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1164.0 Safari/537.1
Access-Control-Request-Headers: range
Accept: */*
Referer: http://fiddle.jshell.net/QWChG/2/show/
View gist:2877666
diff --git a/Source/WebKit/chromium/src/AssociatedURLLoader.cpp b/Source/WebKit/chromium/src/AssociatedURLLoader.cpp
index f1c2aab..e466f4d 100644
--- a/Source/WebKit/chromium/src/AssociatedURLLoader.cpp
+++ b/Source/WebKit/chromium/src/AssociatedURLLoader.cpp
@@ -32,6 +32,7 @@
#include "AssociatedURLLoader.h"
#include "CrossOriginAccessControl.h"
+#include "Document.h"
#include "DocumentThreadableLoader.h"
View gist:2876571
OPTIONS /serv/mozhacks/demos/resources/immersivevideo/dubai.r.webm HTTP/1.1
Host: videos-cdn.mozilla.net
Connection: keep-alive
Access-Control-Request-Method: GET
Origin: http://fiddle.jshell.net
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1164.0 Safari/537.1
Access-Control-Request-Headers: origin, accept-encoding, referer, range
Accept: */*
Referer: http://fiddle.jshell.net/QWChG/2/show/
Accept-Encoding: gzip,deflate,sdch
View gist:2869967
HTMLMediaElement::HTMLMediaElement
HTMLMediaElement::scheduleLoad
HTMLMediaElement::prepareForLoad
HTMLMediaElement::cancelPendingEventsAndCallbacks
HTMLMediaElement::setPlaybackRate(1.000000)
HTMLMediaElement::setShouldDelayLoadEvent(true)
HTMLMediaElement::insertedInto
HTMLMediaElement::insertedInto
HTMLMediaElement::stop
HTMLMediaElement::userCancelledLoad
@fischman
fischman / gist:2713600
Created May 16, 2012
trying to #include Source/Platform from Source/WebCore/platform using #include <>
View gist:2713600
ninja: Entering directory `ninja/Debug'
[927/0/1] CXX obj/third_party/WebKit/Source/WebCore/bindings/v8/custom/webcore_remaining.V8GeolocationCustom.o
FAILED: clang++ -B/home/fischman/src/chromium/src/third_party/gold/ -MMD -MF obj/third_party/WebKit/Source/WebCore/bindings/v8/custom/webcore_remaining.V8GeolocationCustom.o.d -D_FILE_OFFSET_BITS=64 -DDISABLE_NACL -DCHROMIUM_BUILD -DCOMPONENT_BUILD -DUSE_NSS=1 -DGTK_DISABLE_SINGLE_INCLUDES=1 -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_P2P_APIS=1 -DUSE_PROPRIETARY_CODECS -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS -DENABLE_GPU=1 -DENABLE_EGLIMAGE=1 -DUSE_SKIA=1 -DENABLE_TASK_MANAGER=1 -DENABLE_WEB_INTENTS=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PROTECTOR_SERVICE=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_BACKGROUND=1 -DENABLE_PROMO_RESOURCE_SERVICE=1 -DENABLE_AUTOMATION=1 -DGL_GLEXT_PROTOTYPES '-DWEBCORE_NAVIGATOR_VENDOR="Google Inc."' '-DWEBCORE_NAVIGATOR_PLATFORM="Linux i686"' -DENABLE_3D_P
@fischman
fischman / goma-ninja
Created Apr 10, 2012
goma/ninja/clang setup
View goma-ninja
#!/bin/bash
export PATH="/home/fischman/src/goma:$PATH"
# AMI: per http://go/g-d/msg/goma-users/iqAEq3IBLk8/K0gOhNxLxVoJ
if [ -n "$GOMA_IMPLICIT_INPUT_FILES" ]; then
GOMA_IMPLICIT_INPUT_FILES="$GOMA_IMPLICIT_INPUT_FILES,"
fi
export GOMA_IMPLICIT_INPUT_FILES="${GOMA_IMPLICIT_INPUT_FILES}$(dirname $(realpath $0))/src/build/common.gypi"
exec $(dirname $0)/ninja -j5000 "$@"
View gist:2050962
$ ../ninja -v chrome
ninja: Entering directory `ninja/Debug'
[7/1/0] cd ../../chrome/common/extensions/api; python ../../../../tools/json_schema_compiler/compiler.py "--root=../../../.." "--destdir=../../../../ninja/Debug/gen" "--namespace=extensions::api" --bundle experimental.dns.idl
[3/1/1] clang++ -B/usr/local/gold/bin -MMD -MF obj/chrome/browser/extensions/browser_extensions.extension_function_registry.o.d -D_FILE_OFFSET_BITS=64 -DDISABLE_NACL -DCHROMIUM_BUILD -DCOMPONENT_BUILD -DUSE_NSS=1 -DTOOLKIT_USES_GTK=1 -DGTK_DISABLE_SINGLE_INCLUDES=1 -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_P2P_APIS=1 -DUSE_PROPRIETARY_CODECS -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS -DENABLE_GPU=1 -DENABLE_EGLIMAGE=1 -DUSE_SKIA=1 -DENABLE_REGISTER_PROTOCOL_HANDLER=1 -DENABLE_WEB_INTENTS=1 -DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_THEMES=1 -DENABLE_AUTOMATION=1 -DGL_GLEXT_PROTOTYPES -DGOOGLE_PROTOBUF_NO_RTTI -DGURL_DLL -DSK_BUILD_NO_IMAGE_ENCODE '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.
View gist:2023705
#include <iostream>
template<class T, class U>
std::ostream& operator<<(std::ostream& out, const std::pair<T,U>& p) {
return out << p.first << "," << p.second;
}
int main() {
std::pair<int, int> p(42, -1);
std::cerr << p << std::endl;
View gist:2019268
Source/WebCore/dom/MessagePortChannel.h
Source/WebCore/fileapi/LocalFileSystem.h
Source/WebCore/loader/appcache/ApplicationCacheHost.h
Source/WebCore/Modules/webdatabase/chromium/DatabaseObserver.h
Source/WebCore/platform/AsyncFileSystem.h
Source/WebCore/platform/audio/AudioDestination.h
Source/WebCore/platform/chromium/PlatformSupport.h
Source/WebCore/platform/graphics/blackberry/skia/PlatformSupport.h
Source/WebCore/platform/graphics/chromium/cc/CCInputHandler.h
Source/WebCore/platform/graphics/chromium/cc/CCProxy.h