hi, everybody
I've create a browser based on CBrctlInterface, now, I need to implement the switcher of blocking the popup window in some webpage. I've inherited the MBrCtlWindowObserver, there's one function in this observer, CBrCtlInterface* OpenWindowL( TDesC& aUrl,TDesC* aTargetName,TBool aUserInitiated,TAny* aReserved ); Once there is popup window in webpage, this function would be called, it seems that we could get the url of popup window through the first param, but, actually, every time the first param is NULL( The length is zero ).
In webkit the code as following:
CBrCtl* CBrCtl::getWindowL(TDesC& windowName, bool userGesture)
{
CBrCtlInterface* newBrctl = NULL;
TPtrC emptyUrl = KNullDesC();
if (m_brCtlWindowObserver) {
newBrctl = m_brCtlWindowObserver->FindWindowL(windowName);
if (!newBrctl)
newBrctl = m_brCtlWindowObserver->OpenWindowL(emptyUrl, &windowName, userGesture, 0);
}
return static_cast<CBrCtl*>(newBrctl);
}
every time it send a NULL descriptor to the client, it's very vapor.
The CBrctlInterface only provides few interface for us to call.
I really need know url of popup, because I want to show popup in another browser instance in another view. is there any way could get it?
Please lend me a kind hand, thanks.




