Skip to content

Instantly share code, notes, and snippets.

View schien's full-sized avatar

Shih-Chiang Chien schien

View GitHub Profile
@schien
schien / udp-p1.patch
Last active December 6, 2017 10:42
udpsocket prototyping for socket process isolation. use |./mach mochitest dom/network/tests/test_udpsocket.html| for testing.
# HG changeset patch
# User Shih-Chiang Chien <schien@mozilla.com>
# Date 1511864772 -28800
# Tue Nov 28 18:26:12 2017 +0800
# Node ID c9b7f33678e35ca3ca095dc60b761918e7db9d9b
# Parent dd08f8b19cc32da161811abb2f7093e0f5392e69
UDPSocket prototyping
diff --git a/dom/network/PUDPSocket.ipdl b/dom/network/PUDPSocket.ipdl
--- a/dom/network/PUDPSocket.ipdl
@schien
schien / bug1357689.patch
Created November 16, 2017 16:23
temp patch on hellfire-mbpr
# HG changeset patch
# User Shih-Chiang Chien <schien@mozilla.com>
# Date 1495510008 -28800
# Tue May 23 11:26:48 2017 +0800
# Node ID a7c284005f0ecc01e319fa43d30fdca49f79577c
# Parent ffe6cc09ccf38cca6f0e727837bbc6cb722d1e71
Bug 1357689 - implement nsIThreadRetargetableStreamListener in HttpChannelParent/ParentListener r?mayhemer
MozReview-Commit-ID: LUacrnnE5J1
async protocol PNecko
{
parent:
async BindUDPSocket(UDPAddressInfo localAddress, bool addressReuse, bool loopback,
uint32_t recvBufferSize, uint32_t sendBufferSize)
return (nsresult rv, Endpoint<PUDPSockChild> endpoint);
async ConnectUDPSocket(UDPAddressInfo destAddress)
return (nsresult rv, Endpoint<PUDPSockChild> endpoint);
};
@schien
schien / save-cc-gc-log-on-awsy-test.patch
Created September 5, 2017 07:09
save and upload CC/GC log while running awsy test on try server
# HG changeset patch
# User Shih-Chiang Chien <schien@mozilla.com>
# Date 1504507271 -28800
# Mon Sep 04 14:41:11 2017 +0800
# Node ID e34feabb6377d67640144fa20b1eea630977f0bf
# Parent 8e05298328da75f3056a9f1f9609938870d756a0
[test] get cc/gc profile in AWSY
MozReview-Commit-ID: B0Rex3VJaNY
diff --git a/dom/base/nsDocument.cpp b/dom/base/nsDocument.cpp
--- a/dom/base/nsDocument.cpp
+++ b/dom/base/nsDocument.cpp
@@ -8840,16 +8840,17 @@ nsDocument::AsyncBlockOnload()
void
nsDocument::BlockOnload()
{
if (mDisplayDocument) {
mDisplayDocument->BlockOnload();
return;
@schien
schien / get-gecko-profile-on-talos
Created August 24, 2017 04:13
Get Gecko profile while running TALOS test, add PBackground and STS thread in gecko profiler
# HG changeset patch
# User Shih-Chiang Chien <schien@mozilla.com>
# Date 1502699176 -28800
# Mon Aug 14 16:26:16 2017 +0800
# Node ID 07ef4b9e30712bdf35e611e851227e06da0526ac
# Parent 7c50f0c999c5bf8ee915261997597a5a9b8fb2ae
[test] get profiler result from talos test
MozReview-Commit-ID: 7cT4GOOavNv
@schien
schien / tc-xpcshell-test-upload-moz-log.patch
Created August 24, 2017 04:09
upload MOZ_LOG to moz.log while running xpcshell-test on taskcluster
# HG changeset patch
# User Shih-Chiang Chien <schien@mozilla.com>
# Date 1500014931 -28800
# Fri Jul 14 14:48:51 2017 +0800
# Node ID e88f4e2824bfb3c7e4a1e13fef4cfeb12f414d7d
# Parent 6f05a2f9a82bf4ed7f969069fd8c2144281e2f25
[test] upload MOZ_LOG to moz.log
MozReview-Commit-ID: D79uO14B5rX
@schien
schien / 1-ua-disconnect-on-terminate.patch
Created October 21, 2016 09:33
call device->Disconnect() only on session termination.
diff --git a/dom/presentation/PresentationSessionInfo.cpp b/dom/presentation/PresentationSessionInfo.cpp
--- a/dom/presentation/PresentationSessionInfo.cpp
+++ b/dom/presentation/PresentationSessionInfo.cpp
@@ -1225,20 +1225,16 @@ void
PresentationPresentingInfo::Shutdown(nsresult aReason)
{
PresentationSessionInfo::Shutdown(aReason);
if (mTimer) {
mTimer->Cancel();
@schien
schien / reduce-httpd-js.diff
Created January 15, 2016 02:05
reduce httpd.js
# HG changeset patch
# User Shih-Chiang Chien <schien@mozilla.com>
# Parent 0f1076381ed64caa88507129f5813a536fa5385d
create a minimal http server for remote control
diff --git a/b2g/components/RemoteControlHttpd.jsm b/b2g/components/RemoteControlHttpd.jsm
--- a/b2g/components/RemoteControlHttpd.jsm
+++ b/b2g/components/RemoteControlHttpd.jsm
@@ -39,16 +39,17 @@ this.EXPORTED_SYMBOLS = [
"HTTP_503",
@schien
schien / enable-plugin-p1.patch
Created January 8, 2016 07:56
rebase patch on bug 814287
# HG changeset patch
# User Shelly Lin <slin@mozilla.com>
# Date 1348563557 -28800
# Node ID 4f9c644307e540f283a05f8f2683d3906c12bd00
# Parent af621875263ee8fe2c002d7ca4ea9a6d6f9d147f
Enable b2g to run plugin process.
diff --git a/b2g/app/b2g.js b/b2g/app/b2g.js
--- a/b2g/app/b2g.js
+++ b/b2g/app/b2g.js