/*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
\r
try\r
{\r
- popupWindow.moveTo( left, top );\r
- popupWindow.resizeTo( width, height );\r
+ // Chrome 18 is problematic, but it's not really needed here (#8855).\r
+ var ua = navigator.userAgent.toLowerCase();\r
+ if ( ua.indexOf( ' chrome/18' ) == -1 )\r
+ {\r
+ popupWindow.moveTo( left, top );\r
+ popupWindow.resizeTo( width, height );\r
+ }\r
popupWindow.focus();\r
popupWindow.location.href = url;\r
}\r
- catch (e)\r
+ catch ( e )\r
{\r
popupWindow = window.open( url, null, options, true );\r
}\r