electron/brightray/browser
Cheng Zhao cc6bcb6c81 Fix some flaky tests in CI (#12153)
* Guard whole InitPrefs with ScopedAllowIO

Saw a crash:
0 0x7f8d2f7d918d base::debug::StackTrace::StackTrace()
1 0x7f8d2f7d755c base::debug::StackTrace::StackTrace()
2 0x7f8d2f867caa logging::LogMessage::~LogMessage()
3 0x7f8d2fa157c7 base::ThreadRestrictions::AssertIOAllowed()
4 0x7f8d2f83453a base::OpenFile()
5 0x7f8d2f82a967 base::ReadFileToStringWithMaxSize()
6 0x7f8d2f82ad44 base::ReadFileToString()
7 0x7f8d2f846f73 JSONFileValueDeserializer::ReadFileToString()
8 0x7f8d2f84738c JSONFileValueDeserializer::Deserialize()
9 0x7f8d35a5d1f6 <unknown>
10 0x7f8d35a5c217 JsonPrefStore::ReadPrefs()
11 0x7f8d35a87d3e PrefService::InitFromStorage()
12 0x7f8d35a87c60 PrefService::PrefService()
13 0x7f8d35a91a10 PrefServiceFactory::Create()
14 0x000000e86e1b brightray::BrowserContext::InitPrefs()
15 0x000000c2bd64 atom::AtomBrowserContext::AtomBrowserContext()
16 0x000000c320db atom::AtomBrowserContext::From()
17 0x000000b4b8b5 atom::api::Session::FromPartition()

* Fix done being called twice in setInterval test

The callback passed to browser process is called asyncly, so it is
possible that multiple callbacks has already been scheduled before we
can clearInternval.

* Fix failing test when dir name has special chars

The pdfSource is not escaped while parsedURL.search is.

* Call done with Error instead of string

* Fix crash caused by not removing input observer

Solve crash:
0 libcontent.dylib content::RenderWidgetHostImpl::DispatchInputEventWithLatencyInfo(blink::WebInputEvent const&, ui::LatencyInfo*) + 214
1 libcontent.dylib content::RenderWidgetHostImpl::ForwardMouseEventWithLatencyInfo(blink::WebMouseEvent const&, ui::LatencyInfo const&) + 1350
2 libcontent.dylib content::RenderWidgetHostViewMac::ProcessMouseEvent(blink::WebMouseEvent const&, ui::LatencyInfo const&) + 44
3 libcontent.dylib content::RenderWidgetHostInputEventRouter::RouteMouseEvent(content::RenderWidgetHostViewBase*, blink::WebMouseEvent*, ui::LatencyInfo const&) + 1817

* Print detailed error

* Run tests after server is ready
2018-03-07 14:40:27 +09:00
..
linux Cache libnotify server caps (#11965) 2018-02-20 07:53:10 -06:00
mac Merge pull request #11654 from sethlu/set-notification-close-button-text 2018-02-15 16:01:30 +09:00
media Force MediaCaptureDevicesDispatcher to be created on UI thread 2017-12-07 09:47:32 +05:30
net REVIEW: let browser context manage cookie change sub list 2018-02-23 10:21:24 +09:00
views Remove extra newlines 2017-05-19 08:46:15 -07:00
win Enable official build (#11847) 2018-02-08 13:26:23 -06:00
brightray_paths.h add ability to access logs in getPath() 2017-09-28 13:35:22 -04:00
browser_client.cc FIX: add chrome-devtools:// to list of WebUI schemes 2018-02-23 10:21:24 +09:00
browser_client.h FIX: add chrome-devtools:// to list of WebUI schemes 2018-02-23 10:21:24 +09:00
browser_context.cc Fix some flaky tests in CI (#12153) 2018-03-07 14:40:27 +09:00
browser_context.h REVIEW: create AtomNetworkDelegate on the IO thread 2018-01-02 16:37:08 +09:00
browser_main_parts.cc Fix assertion when get X11 error in new thread 2018-02-23 10:22:00 +09:00
browser_main_parts.h add app.setLocale() (#11469) 2018-02-08 08:26:37 -06:00
browser_main_parts_mac.mm consolidate code and rename for clarity 2017-09-29 09:32:30 -04:00
devtools_contents_resizing_strategy.cc Remove extra newlines 2017-05-19 08:46:15 -07:00
devtools_contents_resizing_strategy.h Remove unused includes 2017-05-19 08:46:15 -07:00
devtools_embedder_message_dispatcher.cc REVIEW: Inject devtools extensions API via browser 2017-11-24 10:58:53 +09:00
devtools_embedder_message_dispatcher.h REVIEW: Inject devtools extensions API via browser 2017-11-24 10:58:53 +09:00
devtools_file_system_indexer.cc Add brightray prefix to include paths from within brightray 2017-05-19 08:46:15 -07:00
devtools_file_system_indexer.h Fix build/header_guard linter violations in brightray 2017-05-19 08:46:15 -07:00
devtools_manager_delegate.cc Removing some function parameters 2018-02-23 10:21:23 +09:00
devtools_manager_delegate.h Fix build/include_alpha linter violations in brightray 2017-05-19 08:46:15 -07:00
devtools_ui.cc Add brightray prefix to include paths from within brightray 2017-05-19 08:46:15 -07:00
devtools_ui.h Fix build/header_guard linter violations in brightray 2017-05-19 08:46:15 -07:00
inspectable_web_contents.cc Add brightray prefix to include paths from within brightray 2017-05-19 08:46:15 -07:00
inspectable_web_contents.h Enable using external WebContents as devtools 2017-12-01 10:35:23 +09:00
inspectable_web_contents_delegate.h Fix build/header_guard linter violations in brightray 2017-05-19 08:46:15 -07:00
inspectable_web_contents_impl.cc Use generic base::Value::SetKey 2018-02-23 10:21:23 +09:00
inspectable_web_contents_impl.h Enable using external WebContents as devtools 2017-12-01 10:35:23 +09:00
inspectable_web_contents_view.h Fix build/header_guard linter violations in brightray 2017-05-19 08:46:15 -07:00
inspectable_web_contents_view_delegate.cc Add brightray prefix to include paths from within brightray 2017-05-19 08:46:15 -07:00
inspectable_web_contents_view_delegate.h Fix build/include_what_you_use linter violations in brightray 2017-05-19 08:46:15 -07:00
inspectable_web_contents_view_mac.h Add brightray prefix to include paths from within brightray 2017-05-19 08:46:15 -07:00
inspectable_web_contents_view_mac.mm Add brightray prefix to include paths from within brightray 2017-05-19 08:46:15 -07:00
io_thread.cc REVIEW: setup request context for NSS OCSP only once 2018-01-02 16:37:11 +09:00
io_thread.h REVIEW: setup request context for NSS OCSP only once 2018-01-02 16:37:11 +09:00
net_log.cc Fix crash when destroying NetLog 2017-11-24 10:58:53 +09:00
net_log.h Stop file observer of NetLog to finish writing to disk 2017-11-24 10:58:53 +09:00
network_delegate.cc Reporting: Wire ReportingDelegate into ChromeNetworkDelegate 2017-11-24 10:58:16 +09:00
network_delegate.h Reporting: Wire ReportingDelegate into ChromeNetworkDelegate 2017-11-24 10:58:16 +09:00
notification.cc Coding style fixes 2017-05-31 16:17:29 +09:00
notification.h Organize code 2018-02-10 03:19:47 -08:00
notification_delegate.h Fix cpp lint errors 2017-11-24 10:58:53 +09:00
notification_presenter.cc Add brightray prefix to include paths from within brightray 2017-05-19 08:46:15 -07:00
notification_presenter.h Fix build/header_guard linter violations in brightray 2017-05-19 08:46:15 -07:00
permission_manager.cc Add brightray prefix to include paths from within brightray 2017-05-19 08:46:15 -07:00
permission_manager.h Fix build/include_what_you_use linter violations in brightray 2017-05-19 08:46:15 -07:00
platform_notification_service.cc Made NotificationDelegateImpl final 2017-11-24 10:58:53 +09:00
platform_notification_service.h FIXME: DesktopNotificationDelegate has been removed 2017-11-24 10:58:16 +09:00
special_storage_policy.cc Add brightray prefix to include paths from within brightray 2017-05-19 08:46:15 -07:00
special_storage_policy.h Fix API changes of Chrome 58 2017-04-17 16:16:02 +09:00
url_request_context_getter.cc REVIEW: let browser context manage cookie change sub list 2018-02-23 10:21:24 +09:00
url_request_context_getter.h Fix network delegate race condition (#12044) 2018-02-26 06:23:59 -08:00
web_ui_controller_factory.cc Add brightray prefix to include paths from within brightray 2017-05-19 08:46:15 -07:00
web_ui_controller_factory.h Fix build/header_guard linter violations in brightray 2017-05-19 08:46:15 -07:00
zoom_level_delegate.cc Use generic base::Value::SetKey 2018-02-23 10:21:23 +09:00
zoom_level_delegate.h Fix build/include_what_you_use linter violations in brightray 2017-05-19 08:46:15 -07:00