Skip to content

Instantly share code, notes, and snippets.

View ehsan's full-sized avatar

Ehsan Akhgari ehsan

View GitHub Profile
diff --git a/dom/base/ContentBlockingLog.cpp b/dom/base/ContentBlockingLog.cpp
index 5ac0a24e489c..cbb177991408 100644
--- a/dom/base/ContentBlockingLog.cpp
+++ b/dom/base/ContentBlockingLog.cpp
@@ -28,10 +28,10 @@ NS_NAMED_LITERAL_CSTRING(ContentBlockingLog::kDummyOriginHash, "PAGELOAD");
// randomly choose 1% users included in the content blocking measurement
// based on their client id.
-static constexpr double kRatioReportUser = 0.01;
+static constexpr double kRatioReportUser = 1; // 0.01;
diff --git a/image/ImageCacheKey.cpp b/image/ImageCacheKey.cpp
index 52bffcd409e3..091f83c795d4 100644
--- a/image/ImageCacheKey.cpp
+++ b/image/ImageCacheKey.cpp
@@ -123,7 +123,9 @@ void ImageCacheKey::EnsureHash() const {
// Since we frequently call Hash() several times in a row on the same
// ImageCacheKey, as an optimization we compute our hash once and store it.
- nsPrintfCString ptr("%p", mControlledDocument);
+ static uint32_t counter = 0;
diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp
index 15737107bb8fc..2a874efb664c0 100644
--- a/docshell/base/nsDocShell.cpp
+++ b/docshell/base/nsDocShell.cpp
@@ -8702,16 +8702,20 @@ nsresult nsDocShell::PerformRetargeting(nsDocShellLoadState* aLoadState,
nsCOMPtr<nsPIDOMWindowOuter> win = GetWindow();
NS_ENSURE_TRUE(win, NS_ERROR_NOT_AVAILABLE);
nsCOMPtr<nsPIDOMWindowOuter> newWin;
#export CC=/usr/local/bin/clang
#export CXX=/usr/local/bin/clang++
#export CC=clang-7
#export CXX=clang++-7
#export LLVM_OBJDUMP=llvm-objdump-7
#export LD=ld.lld
export CCACHE_COMPRESS=""
export CCACHE_CPP2="yes"
export CFLAGS=-fcolor-diagnostics
export CXXFLAGS=-fcolor-diagnostics
commit fd5841d087d327299c807ad40ae1af2a6a58485b
Author: Ehsan Akhgari <ehsan@mozilla.com>
Date: Wed Mar 27 22:52:00 2019 +0000
Bug 1535877 - Fail explicitly when creating a second instance of the effective TLD service; r=nika
diff --git a/netwerk/dns/nsEffectiveTLDService.cpp b/netwerk/dns/nsEffectiveTLDService.cpp
index 27a2d4a90960..da9382c1b1e1 100644
--- a/netwerk/dns/nsEffectiveTLDService.cpp
+++ b/netwerk/dns/nsEffectiveTLDService.cpp
diff --git a/gfx/layers/ipc/CompositorVsyncScheduler.cpp b/gfx/layers/ipc/CompositorVsyncScheduler.cpp
index 658c90d1148a1..35cbbf3abc52c 100644
--- a/gfx/layers/ipc/CompositorVsyncScheduler.cpp
+++ b/gfx/layers/ipc/CompositorVsyncScheduler.cpp
@@ -117,16 +117,19 @@ void CompositorVsyncScheduler::PostCompositeTask(
mCurrentCompositeTask = task;
ScheduleTask(task.forget());
}
}
Test to run: cubes-aframe
Running on device: Oculus Go (serial: 1KWPH800K59047)
* HTTP Tests server listening on 10.242.26.39:3000
- WebSocket results server listening on *:8888
Browsers to run on device Oculus Go: Firefox Reality, Oculus Browser
{ numTimes: '10',
overrideParams: undefined,
extraParams: undefined }
{ showKeys: false,
showMouse: false,
Test to run: cubes-aframe
Running on device: Oculus Go (serial: 1KWPH800K59047)
* HTTP Tests server listening on 10.242.26.39:3000
- WebSocket results server listening on *:8888
Browsers to run on device Oculus Go: Firefox Reality, Oculus Browser
{ numTimes: '10',
overrideParams: 'fake-webgl',
extraParams: undefined }
{ showKeys: false,
showMouse: false,
0:07.07 7 warnings generated.
0:07.13 1 warning generated.
0:07.88 19 warnings generated.
0:23.78 #0 0x00000000014b9f84 (/home/ehsan/.mozbuild/android-ndk-r17b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x14b9f84)
0:23.78 #1 0x00000000014ba1b6 (/home/ehsan/.mozbuild/android-ndk-r17b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0x14ba1b6)
0:23.78 #2 0x00007f73c3e0fdd0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x12dd0)
0:23.78 #3 0x0000000000f74a10 (/home/ehsan/.mozbuild/android-ndk-r17b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0xf74a10)
0:23.78 #4 0x0000000000f72304 (/home/ehsan/.mozbuild/android-ndk-r17b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0xf72304)
0:23.78 #5 0x0000000000e6389a llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/home/ehsan/.mozbuild/android-ndk-r17b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+++0xe6389a)
0:23.78 #6 0x00000000010fea7b llvm::FPPassManager::runOnFunction(llvm::Function&) (/home/ehsan/.mozbuild/android-ndk-r17b/t