diff options
author | Monroe Linden <monroe@lindenlab.com> | 2010-09-17 16:39:22 -0700 |
---|---|---|
committer | Monroe Linden <monroe@lindenlab.com> | 2010-09-17 16:39:22 -0700 |
commit | 1c3b38cace6d3a673c83230f6f3f20b430738042 (patch) | |
tree | 3a72c1c469974c7860eef664577d4a31483cf066 /indra | |
parent | 57c1845e2d7274b5cb28dc31a41a00088c2ecdda (diff) |
Fix for EXP-78 (javascript window.open function with no size parameters opens a tiny window when all popups setting is enabled).
Diffstat (limited to 'indra')
-rw-r--r-- | indra/media_plugins/webkit/media_plugin_webkit.cpp | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/indra/media_plugins/webkit/media_plugin_webkit.cpp b/indra/media_plugins/webkit/media_plugin_webkit.cpp index 67f49556c5..bd1a44a930 100644 --- a/indra/media_plugins/webkit/media_plugin_webkit.cpp +++ b/indra/media_plugins/webkit/media_plugin_webkit.cpp @@ -549,21 +549,25 @@ private: int x, y, width, height; event.getRectValue(x, y, width, height); - LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER, "geometry_change"); - message.setValue("uuid", event.getStringValue()); - message.setValueS32("x", x); - message.setValueS32("y", y); - message.setValueS32("width", width); - message.setValueS32("height", height); - sendMessage(message); + // This sometimes gets called with a zero-size request. Don't pass these along. + if(width > 0 && height > 0) + { + LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER, "geometry_change"); + message.setValue("uuid", event.getStringValue()); + message.setValueS32("x", x); + message.setValueS32("y", y); + message.setValueS32("width", width); + message.setValueS32("height", height); + sendMessage(message); + } } - ////////////////////////////////////////////////////////////////////////////////
- // virtual
- std::string onRequestFilePicker( const EventType& eventIn )
- {
- return blockingPickFile();
- }
+ //////////////////////////////////////////////////////////////////////////////// + // virtual + std::string onRequestFilePicker( const EventType& eventIn ) + { + return blockingPickFile(); + } LLQtWebKit::EKeyboardModifier decodeModifiers(std::string &modifiers) { |