When I implemented tabs support in MiniBroser I forgot about web view close. We connect to the signal (only for the active tab) and close the window. That worked when we didn't have tabs, but now we should close the tab o the window if it's the last tab.
Created attachment 303922 [details] Patch
Comment on attachment 303922 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=303922&action=review > Tools/MiniBrowser/gtk/BrowserWindow.c:268 > + for (int i = 0; i < tabsCount; ++i) { It fails with GCC 4.9: ../../Tools/MiniBrowser/gtk/BrowserWindow.c: In function 'webViewClose': ../../Tools/MiniBrowser/gtk/BrowserWindow.c:268:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode ../../Tools/MiniBrowser/gtk/BrowserWindow.c:268:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code Maybe we should specify --std=c11 for compiling MiniBrowser, since that's clearly what we are all using.
Committed r213789: <http://trac.webkit.org/changeset/213789>