X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fpopup%2Fplugin.js;h=70fb75e155f2945be2d7a62109ba5f6d5dbf81cb;hb=6e682412d5cc0dfaedb376482e585bf2989c6863;hp=fb7f2c4d2822f66f390bf81a6efc0a951874b27b;hpb=c9fdde67e6384bd5a66adc2b3bba5c4ce9db56c7;p=ckeditor.git diff --git a/_source/plugins/popup/plugin.js b/_source/plugins/popup/plugin.js index fb7f2c4..70fb75e 100644 --- a/_source/plugins/popup/plugin.js +++ b/_source/plugins/popup/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -49,12 +49,17 @@ CKEDITOR.tools.extend( CKEDITOR.editor.prototype, try { - popupWindow.moveTo( left, top ); - popupWindow.resizeTo( width, height ); + // Chrome is problematic with moveTo/resizeTo, but it's not really needed here (#8855). + var ua = navigator.userAgent.toLowerCase(); + if ( ua.indexOf( ' chrome/' ) == -1 ) + { + popupWindow.moveTo( left, top ); + popupWindow.resizeTo( width, height ); + } popupWindow.focus(); popupWindow.location.href = url; } - catch (e) + catch ( e ) { popupWindow = window.open( url, null, options, true ); }