Archived:Change in creation of BrowserControl instance for S60 3rd Edition (initial release) and FP1 (Known Issue)
When constructing a Browser Control instance, there is a change in the parameters passed to CreateBrowserControlL() between S60 3rd Edition and S60 3rd Edition, Feature Pack 1 devices.
The second parameter passed to CreateBrowserControlL(), aRect is interpreted differently in these two platform releases:
- In S60 3rd Edition devices aRect is related to view.
- In S60 3rd Edition, Feature Pack 1 devices aRect is related to the container owning the browser control.
The value of aRect should be set as follows:
TRect brCtlRect(Position(), Size()); // in 3rd Ed devices
TRect brCtlRect(TPoint(0, 0), Size()); // in 3rd Ed, FP1 devices
CBrCtlInterface* iBrCtlInterface = CreateBrowserControlL( this, brCtlRect, aBrCtlCapabilities );