mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 680528 - Make use of the cached UserAgent string in PluginModuleChild. r=bent
This commit is contained in:
parent
8693754aaa
commit
764b581511
@ -129,6 +129,7 @@ PluginModuleChild::PluginModuleChild()
|
||||
memset(&mFunctions, 0, sizeof(mFunctions));
|
||||
memset(&mSavedData, 0, sizeof(mSavedData));
|
||||
gInstance = this;
|
||||
mUserAgent.SetIsVoid(PR_TRUE);
|
||||
#ifdef XP_MACOSX
|
||||
mac_plugin_interposing::child::SetUpCocoaInterposing();
|
||||
#endif
|
||||
@ -729,7 +730,7 @@ PluginModuleChild::CleanUp()
|
||||
const char*
|
||||
PluginModuleChild::GetUserAgent()
|
||||
{
|
||||
if (!CallNPN_UserAgent(&mUserAgent))
|
||||
if (mUserAgent.IsVoid() && !CallNPN_UserAgent(&mUserAgent))
|
||||
return NULL;
|
||||
|
||||
return NullableStringGet(mUserAgent);
|
||||
|
Loading…
Reference in New Issue
Block a user