Skip to content

Instantly share code, notes, and snippets.

View deepak1556's full-sized avatar

Robo deepak1556

  • Microsoft
  • Japan
View GitHub Profile
@deepak1556
deepak1556 / convert.cc
Created December 4, 2024 14:10
Convert GNU_BUILD_ID to debug_id for minidump
#include <iostream>
#include <string>
#include <sstream>
#include <cstdint>
#include <cstring>
typedef struct {
uint32_t data1;
uint16_t data2;
uint16_t data3;
@deepak1556
deepak1556 / build.patch
Created November 1, 2024 12:27
Support Crashpad stability report in minidump_dump
diff --git a/third_party/breakpad/BUILD.gn b/third_party/breakpad/BUILD.gn
index d7d27abb8eca3..b3340dbbf8036 100644
--- a/third_party/breakpad/BUILD.gn
+++ b/third_party/breakpad/BUILD.gn
@@ -417,6 +417,10 @@ if (!is_win) {
# There are some warnings in this code.
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
+
+ deps = [
@deepak1556
deepak1556 / main.js
Created October 11, 2024 12:44
missing shortcut for super accelerator
// Modules to control application life and create native browser window
const { app, BrowserWindow, Menu } = require('electron')
const path = require('node:path')
function createWindow () {
// Create the browser window.
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
@deepak1556
deepak1556 / electron.patch
Last active September 26, 2024 01:36
Crash keys to trace shutdown crash in gin::wrappable
diff --git a/shell/browser/api/electron_api_app.cc b/shell/browser/api/electron_api_app.cc
index 6a639e2fab..7bd4be44a6 100644
--- a/shell/browser/api/electron_api_app.cc
+++ b/shell/browser/api/electron_api_app.cc
@@ -356,7 +356,7 @@ struct Converter<net::SecureDnsMode> {
namespace electron::api {
-gin::WrapperInfo App::kWrapperInfo = {gin::kEmbedderNativeGin};
+gin::WrapperInfo App::kWrapperInfo = {gin::kEmbedderNativeGin, "App"};
@deepak1556
deepak1556 / external-pointer-table-tracer.cc
Created February 19, 2024 17:52
Dump EPT contents for an isolate
// Copyright 2024 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/sandbox/external-pointer-table-tracer.h"
#include <iostream>
#include "src/common/globals.h"
#include "src/execution/isolate.h"
@deepak1556
deepak1556 / frame.html
Last active September 14, 2021 20:52
Web Worker from OOP frame
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<h1>OOP frame</h1>
</body>
<script>
const corsUrl = "https://gist.githubusercontent.com/deepak1556/36c31867ad3a11c3b03a56ca8bd3f536/raw/24a02e75403d0e4fc2fb01959d5698eecc869f3d/worker.js";
@deepak1556
deepak1556 / main.js
Created August 30, 2021 17:56
Keyboard event tester in Electron
// Modules to control application life and create native browser window
const {app, BrowserWindow} = require('electron')
const path = require('path')
function createWindow () {
// Create the browser window.
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
@deepak1556
deepak1556 / content_shell.patch
Created August 19, 2021 21:22
Minimal repro for v8::HeapProfiler crash
diff --git a/content/shell/renderer/shell_render_frame_observer.cc b/content/shell/renderer/shell_render_frame_observer.cc
index ed6134a67e3e..dc6de8323542 100644
--- a/content/shell/renderer/shell_render_frame_observer.cc
+++ b/content/shell/renderer/shell_render_frame_observer.cc
@@ -8,7 +8,9 @@
#include "content/public/renderer/render_frame.h"
#include "content/public/renderer/render_frame_observer.h"
#include "content/shell/common/shell_switches.h"
+#include "third_party/blink/public/web/blink.h"
#include "third_party/blink/public/web/web_testing_support.h"
@deepak1556
deepak1556 / index.html
Created June 21, 2021 16:42
OOP shared worker
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
<script>
@deepak1556
deepak1556 / index.html
Last active March 12, 2021 01:07 — forked from jrieken/index.html
Service worker registration crash
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,