freebsd-ports/www/chromium/files/patch-ui__views__window__dialog_delegate.cc
Rene Ladan f93a363e54 www/chromium: update to 43.0.2357.65
There are some rough edges, e.g. gmail.com crashes with the EFF Privacy Badger
plugin installed.

Submitted by:	LeFroid
Obtained from:	https://github.com/Lefrid/chromium
MFH:		2015Q2
Security:	http://vuxml.freebsd.org/freebsd/a9d456b4-fe4c-11e4-ad15-00262d5ed8ee.html
2015-05-25 09:35:20 +00:00

11 lines
517 B
C++

--- ui/views/window/dialog_delegate.cc.orig 2015-04-14 18:19:00.000000000 -0400
+++ ui/views/window/dialog_delegate.cc 2015-04-28 07:49:18.261990000 -0400
@@ -48,7 +48,7 @@
params.bounds = bounds;
DialogDelegate* dialog = delegate->AsDialogDelegate();
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
// The new style doesn't support unparented dialogs on Linux desktop.
if (dialog)
dialog->supports_new_style_ &= parent != NULL;