webengine/osswebengine/WebKit/s60/plugins/NpnImplementation.cpp
changeset 36 0ed94ceaa377
parent 17 c8a366e56285
child 37 cb62a4f66ebe
equal deleted inserted replaced
32:9a9a761f03f1 36:0ed94ceaa377
    19 #include "../../bidi.h"
    19 #include "../../bidi.h"
    20 #include "HttpDefs.h"
    20 #include "HttpDefs.h"
    21 #include "NpnImplementation.h"
    21 #include "NpnImplementation.h"
    22 #include "PluginWin.h"
    22 #include "PluginWin.h"
    23 #include "PluginSkin.h"
    23 #include "PluginSkin.h"
    24 #include <CUserAgent.h>
    24 #include <cuseragent.h>
    25 #include <Element.h>
    25 #include <Element.h>
    26 #include <HTMLPlugInElement.h>
    26 #include <HTMLPlugInElement.h>
    27 #include <HTMLNames.h>
    27 #include <HTMLNames.h>
    28 
    28 
    29 using namespace WebCore::HTMLNames;
    29 using namespace WebCore::HTMLNames;
   479             }
   479             }
   480         case NPPVPluginDeactivate:
   480         case NPPVPluginDeactivate:
   481             {
   481             {
   482             PluginWin* pluginWin = (PluginWin*)aInstance->ndata;
   482             PluginWin* pluginWin = (PluginWin*)aInstance->ndata;
   483             if (pluginWin) {
   483             if (pluginWin) {
   484                 TPoint* cursorPos = static_cast<TPoint*>(aSetValue);
   484             TPoint* cursorPos; 
       
   485             
       
   486             //EPMR-7XPHXV aSetValue is set as "(void*) 1" from
       
   487             //"CBrowserPluginControl::GoNormalScreenL" from the flash plugin
       
   488             //to avoid the Invalid pointer access, we are checking for 
       
   489             //aSetValue and setting point as (0,0) and also for NULL Value 
       
   490             if((aSetValue == (void*)1) || (!aSetValue)) {
       
   491                 TPoint position(0,0);
       
   492                 cursorPos = static_cast<TPoint*>(&position);
       
   493                 }
       
   494                 else {
       
   495                 cursorPos = static_cast<TPoint*>(aSetValue);
       
   496                 }
   485                 pluginWin->pluginDeactivate(*cursorPos);
   497                 pluginWin->pluginDeactivate(*cursorPos);
   486             }
   498             }
   487         }
   499         }
   488         break;
   500         break;
   489         case NPPVpluginFullScreenBool:
   501         case NPPVpluginFullScreenBool: