|
This CL is basically the same as https://codereview.chromium.org/11016023/ + https://codereview.chromium.org/17151010 except that the fast tab closure functionality is implemented behind a flag.
The way the 2 UnloadControllers co-exist is oriented towards being able to quickly and easily rip out the old UnloadController when we have all bugs fixed with the new one.
Original change description:
Changes to closing contents with beforeunload/unload handlers: - Closing a single tab, run beforeunload (if needed), then detached the tab from tab strip and close it asynchronously (no ui). - Closing a window, run all beforeunload handlers (same as before), then detach all tabs with unload handlers. Close any remaining tabs and hide the browser window while waiting for the unload handlers to complete.
The feature is currently implemented behind a flag - --enable-fast-unload
BUG= 142458, 156896
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209674
Total comments: 5
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+977 lines, -17 lines) |
Patch |
 |
M |
chrome/app/generated_resources.grd
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/about_flags.cc
|
View
|
1
2
3
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/browser.h
|
View
|
|
4 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/browser.cc
|
View
|
1
2
3
|
9 chunks |
+40 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/browser_window_controller.mm
|
View
|
1
2
3
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/fast_unload_controller.h
|
View
|
2
|
1 chunk |
+180 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/fast_unload_controller.cc
|
View
|
2
|
1 chunk |
+380 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/gtk/browser_window_gtk.cc
|
View
|
1
2
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/tab_contents/core_tab_helper.h
|
View
|
1
2
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/tab_contents/core_tab_helper.cc
|
View
|
2
|
3 chunks |
+36 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/frame/browser_view.cc
|
View
|
1
2
3
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/unload_browsertest.cc
|
View
|
2
|
1 chunk |
+209 lines, -0 lines |
1 comment
|
Download
|
 |
M |
chrome/chrome_browser_ui.gypi
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_switches.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_switches.cc
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
chrome/test/data/fast_tab_close/no_listeners.html
|
View
|
1
2
3
|
1 chunk |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/fast_tab_close/unload_sets_cookie.html
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/fast_tab_close/unload_sleep_before_cookie.html
|
View
|
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
Total messages: 14 (0 generated)
|