if(aCommand) { PL_strncpy(mCommand, aCommand, 31); }
NS_IMETHODIMP nsMyObserver::Init( nsIWebShellServices* aWebShellSvc){    if(nsnull != aWebShellSvc)    {        NS_IF_ADDREF(aWebShellSvc);        mWebShellSvc = aWebShellSvc;        return NS_OK;    }    return NS_ERROR_ILLEGAL_VALUE;}