A scriptable plug-in can request for a page to load through NPN_GetURL . It can also execute javascript using same API by sending javascript: in the url followed by script. This API doesnt seems to be responding for simple javascript alert. - Use case: http://waplabdc.nokia-boston.com/browser/users/MaheshKK/geturl.html - Steps to reproduce: 1) Open the link: http://waplabdc.nokia-boston.com/browser/users/MaheshKK/geturl.html 2) Select flash 2) Click on "Enter" button - Actual outcome: Nothing happens after clicking on Enter. - Expected outcome: It should display a alert message "Hello"
Created attachment 14935 [details] Resolve URL bug _REASON: When "javascript:" is come in requested URL, browser tries to resolve that URL with base URL. This process encodes special characters (in this case double quotes). Then URL is sent to javascript execution. Javascript engine fails to understand the content as URL has encoded script. _SOLUTION: When "javascript:" is present in the URL, do not resolve URL. Even if javascript makes a requests for a URL then that will be taken care by script engine. _MODULE_EFFECTED: webKit/plugin plugin_loader _TSW ERR_ID: MKUI-73GEH4
Comment on attachment 14935 [details] Resolve URL bug Please attach changelog
Created attachment 15020 [details] Attached ChangeLog Attached changeLog. With the fix of not resolving URL
Comment on attachment 15020 [details] Attached ChangeLog r=me. In future please attach changelog to the beginning of the file
landed in ccb in r23548 and in 3.1m in r23549
Bulk closing of all s60 platform bugs. Sorry for the noise!