Summary: | MiniBrowser: a tab closed from javascript always closes the window | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Carlos Garcia Campos <cgarcia> | ||||
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | bugs-noreply, lforschler | ||||
Priority: | P2 | Keywords: | Gtk | ||||
Version: | WebKit Local Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Carlos Garcia Campos
2017-03-09 08:41:55 PST
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> |