electron/atom/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
..
api Fix some flaky tests in CI (#12153) 2018-03-07 14:40:27 +09:00
lib Merge pull request #11492 from timmyhadwen/master 2018-02-05 20:44:42 +09:00
loader
mac Use generic base::Value::SetKey 2018-02-23 10:21:23 +09:00
net Fix network delegate race condition (#12044) 2018-02-26 06:23:59 -08:00
osr REVIEW: Implements core logic for Pixel Canvas 2018-02-23 10:21:24 +09:00
resources Use version 0.0.0-dev everywhere 2018-03-05 16:24:48 +01:00
ui Merge pull request #11230 from electron/upgrade-to-chromium-62 2018-02-26 14:20:21 +09:00
atom_access_token_store.cc opt into location service on main thread 2018-01-02 16:37:09 +09:00
atom_access_token_store.h
atom_blob_reader.cc Make BlobReader create its own file TaskRunner. 2017-11-24 10:58:16 +09:00
atom_blob_reader.h
atom_browser_client.cc NativeWindow is no longer WebContentsObserver 2018-03-06 16:21:18 +09:00
atom_browser_client.h Remove unnecessary methods on WebContentsPreferences 2018-02-13 15:57:54 +09:00
atom_browser_context.cc REVIEW: let browser context manage cookie change sub list 2018-02-23 10:21:24 +09:00
atom_browser_context.h REVIEW: let browser context manage cookie change sub list 2018-02-23 10:21:24 +09:00
atom_browser_main_parts.cc Upgrade to node v9.3.0 (#11507) 2018-02-23 10:22:00 +09:00
atom_browser_main_parts.h Singleton must be created on request 2018-01-03 18:59:12 +09:00
atom_browser_main_parts_mac.mm
atom_browser_main_parts_posix.cc Fix cppcheck warnings (#11883) 2018-02-14 02:21:46 -06:00
atom_download_manager_delegate.cc derefence weak ptr only on the same sequence runner it was created in 2018-01-02 16:37:06 +09:00
atom_download_manager_delegate.h derefence weak ptr only on the same sequence runner it was created in 2018-01-02 16:37:06 +09:00
atom_javascript_dialog_manager.cc Remove NativeWindow::FromWebContents 2018-03-06 16:21:17 +09:00
atom_javascript_dialog_manager.h Make OnMessageBoxCallback a method since it is accessing members 2018-03-06 11:35:53 +09:00
atom_permission_manager.cc Appease the linter 2017-12-20 10:21:38 +09:00
atom_permission_manager.h Move IDMap to base namespace. 2018-02-23 10:21:23 +09:00
atom_quota_permission_context.cc
atom_quota_permission_context.h
atom_resource_dispatcher_host_delegate.cc Remove unnecessary methods on WebContentsPreferences 2018-02-13 15:57:54 +09:00
atom_resource_dispatcher_host_delegate.h
atom_speech_recognition_manager_delegate.cc Speech recognition: Use BindOnce / OnceCallback / OnceClosure where applicable 2017-11-24 10:58:16 +09:00
atom_speech_recognition_manager_delegate.h Speech recognition: Use BindOnce / OnceCallback / OnceClosure where applicable 2017-11-24 10:58:16 +09:00
atom_web_ui_controller_factory.cc Fix cppcheck warnings (#11883) 2018-02-14 02:21:46 -06:00
atom_web_ui_controller_factory.h
auto_updater.cc Update to use Squirrel.Mac that supports CDN releases 2018-02-15 14:00:46 +11:00
auto_updater.h Update to use Squirrel.Mac that supports CDN releases 2018-02-15 14:00:46 +11:00
auto_updater_mac.mm requestHeaders --> headers 2018-02-16 13:41:21 +11:00
bridge_task_runner.cc Introduce TaskRunner::RunsTasksInCurrentSequence() 2017-11-24 10:58:16 +09:00
bridge_task_runner.h Introduce TaskRunner::RunsTasksInCurrentSequence() 2017-11-24 10:58:16 +09:00
browser.cc Fix brightray::GetApplicationName(), ..Version() on Linux (#11980) 2018-02-20 10:16:51 -06:00
browser.h Fix brightray::GetApplicationName(), ..Version() on Linux (#11980) 2018-02-20 10:16:51 -06:00
browser_linux.cc Improve process launch handle sharing API. 2018-02-23 10:21:24 +09:00
browser_mac.mm Don't store WebContents in NativeWindow 2018-03-06 16:21:18 +09:00
browser_observer.h REVIEW: register BrowserChildProcessObserver once main message loop is ready 2018-01-02 16:37:11 +09:00
browser_win.cc Fix build and ensure no breaking change 2018-02-05 17:29:59 +09:00
child_web_contents_tracker.cc
child_web_contents_tracker.h
common_web_contents_delegate.cc Fixed crash on startup on Windows 2017-11-24 10:58:53 +09:00
common_web_contents_delegate.h
common_web_contents_delegate_mac.mm
common_web_contents_delegate_views.cc
javascript_environment.cc Upgrade to node v9.3.0 (#11507) 2018-02-23 10:22:00 +09:00
javascript_environment.h Upgrade to node v9.3.0 (#11507) 2018-02-23 10:22:00 +09:00
login_handler.cc
login_handler.h
native_browser_view.cc
native_browser_view.h
native_browser_view_mac.h
native_browser_view_mac.mm
native_browser_view_views.cc Rename set_background to SetBackground 2017-11-24 10:58:17 +09:00
native_browser_view_views.h
native_window.cc Don't store WebContents in NativeWindow 2018-03-06 16:21:18 +09:00
native_window.h Don't store WebContents in NativeWindow 2018-03-06 16:21:18 +09:00
native_window_mac.h mac: Pass the view to install 2018-03-06 16:20:37 +09:00
native_window_mac.mm Repect old logic in windowWillUseStandardFrame 2018-03-06 16:54:20 +09:00
native_window_observer.h mac: Remove access to webContents in windowWillUseStandardFrame 2018-03-06 16:20:37 +09:00
native_window_views.cc views: Explicitly set initially focused view 2018-03-06 16:21:18 +09:00
native_window_views.h views: Explicitly set initially focused view 2018-03-06 16:21:18 +09:00
native_window_views_win.cc Use SizeConstraints instead of window events 2017-11-23 21:25:25 +01:00
node_debugger.cc Upgrade to node v9.3.0 (#11507) 2018-02-23 10:22:00 +09:00
node_debugger.h Upgrade to node v9.3.0 (#11507) 2018-02-23 10:22:00 +09:00
relauncher.cc base::LaunchOptions fds_to_remap is no longer a pointer 2018-02-23 10:21:23 +09:00
relauncher.h
relauncher_linux.cc Improve process launch handle sharing API. 2018-02-23 10:21:24 +09:00
relauncher_mac.cc base::LaunchOptions fds_to_remap is no longer a pointer 2018-02-23 10:21:23 +09:00
relauncher_win.cc win: Fix assertion "IsWprintfFormatPortable(format)" 2018-01-02 16:45:43 +09:00
render_process_preferences.cc
render_process_preferences.h
session_preferences.cc Add a SessionPreferences to manage session related data 2017-12-05 15:59:15 +09:00
session_preferences.h Add a SessionPreferences to manage session related data 2017-12-05 15:59:15 +09:00
unresponsive_suppressor.cc
unresponsive_suppressor.h
web_contents_permission_helper.cc Reduce the number of helpers 2017-12-20 10:49:49 +09:00
web_contents_permission_helper.h Reduce the number of helpers 2017-12-20 10:49:49 +09:00
web_contents_preferences.cc Remove NativeWindow::FromWebContents 2018-03-06 16:21:17 +09:00
web_contents_preferences.h Code style fixes 2018-03-06 11:31:56 +09:00
web_contents_zoom_controller.cc
web_contents_zoom_controller.h
web_dialog_helper.cc No need to get BrowserContext from NativeWindow 2018-03-06 16:21:17 +09:00
web_dialog_helper.h Code style fixes 2017-11-13 16:13:54 +09:00
web_view_guest_delegate.cc Reset embedder_zoom_controller_ before assigning new one 2017-12-01 17:55:22 +01:00
web_view_guest_delegate.h Reset embedder_zoom_controller_ before assigning new one 2017-12-01 17:55:22 +01:00
web_view_manager.cc
web_view_manager.h
window_list.cc Move closing logic to api::BrowserWindow 2018-02-22 19:01:45 +09:00
window_list.h
window_list_observer.h