Skip to content

Instantly share code, notes, and snippets.

@kirr
kirr / gist:e21972c88ad290f82e16023f40c6cae6
Created April 28, 2017 15:50
WebSocketTimeoutException
[413/485] core.stacktrace_unittest.TabStackTraceTest.testValidDump failed unexpectedly 7.6990s:
Found crashpad_database_util
Problem when trying to gather stack trace:
*************** BROWSER STANDARD OUTPUT ***************
*********** END OF BROWSER STANDARD OUTPUT ************
********************* BROWSER LOG *********************
No log file
***************** END OF BROWSER LOG ******************
Traceback (most recent call last):
@kirr
kirr / after
Last active June 22, 2016 12:45
native_widget_mac_nswindow.mm(132)] orderWindow:20698 : 1 : 0
native_widget_mac_nswindow.mm(132)] orderWindow:20699 : 1 : 20698
native_widget_mac_nswindow.mm(132)] orderWindow:20699 : 1 : 20698
native_widget_mac_unittest.mm(399)] Minimize
native_widget_mac_nswindow.mm(132)] orderWindow:20699 : 0 : 0
native_widget_mac_unittest.mm(424)] Restore
native_widget_mac_nswindow.mm(132)] orderWindow:20698 : 1 : 0
native_widget_mac_unittest.mm(412)] Notification found with name:_NSWindowWillBecomeVisible
native_widget_mac_nswindow.mm(132)] orderWindow:20698 : 1 : 0
native_widget_mac_unittest.mm(412)] Notification found with name:NSWindowDidOrderOnScreenAndFinishAnimatingNotification
+void PrintSourceRenderPassList(const RenderPassList& passes,
+ SurfaceManager* manager,
+ int nesting,
+ std::stringstream* result) {
+ const std::string offset = std::string(2 * nesting, ' ');
+ const std::string noffset = std::string("\n") + offset;
+ for (const auto& pass : passes) {
+ *result << noffset << "Pass"
+ << noffset << " id:" << pass->id.AsTracingId()
+ << noffset << " damage:" << pass->damage_rect.ToString()
#include <algorithm>
#include <chrono>
#include <iostream>
#include <map>
#include <vector>
namespace {
const size_t container_size = 10;
const size_t iteration_count = 1000000;
}
2 libcontent.dylib 0x1bde7a52 -[CompositingIOSurfaceLayer setNeedsDisplay] + 66
3 QuartzCore 0x983e33c1 CAOpenGLLayerDidChangeDisplay(CAOpenGLLayer*, unsigned int) + 161
4 QuartzCore 0x983e3257 -[CAOpenGLLayer layerDidBecomeVisible:] + 66
5 QuartzCore 0x98388ce0 CA::Layer::mark_visible(CA::Transaction*, bool) + 136
6 QuartzCore 0x98388d09 CA::Layer::mark_visible(CA::Transaction*, bool) + 177
7 QuartzCore 0x98388d09 CA::Layer::mark_visible(CA::Transaction*, bool) + 177
8 QuartzCore 0x98388d09 CA::Layer::mark_visible(CA::Transaction*, bool) + 177
9 QuartzCore 0x98388d09 CA::Layer::mark_visible(CA::Transaction*, bool) + 177
10 QuartzCore 0x98388d09 CA::Layer::mark_visible(CA::Transaction*, bool) + 177
11 QuartzCore 0x98388d09 CA::Layer::mark_visible(CA::T
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index add65db..c7b116b 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1228,6 +1228,16 @@ void WebContentsImpl::WasHidden() {
should_normally_be_visible_ = false;
}
+void WebContentsImpl::NativeViewVisibilityChanged(bool visible) {
+ if (visible) {