EXP-880 FIX Enable navigation chrome for Search floater
changes in size of target windows other than _blank or "" are not saved EXP-1018 FIX Profile button in Basic mode does not toggle correctly when profile is opened and toggles on and closes other Web Content Panel windowsmeow-7.2.2
parent
7d9fff968d
commit
fecf706f1b
|
|
@ -335,7 +335,9 @@ void LLAvatarActions::showProfile(const LLUUID& id)
|
|||
//static
|
||||
bool LLAvatarActions::profileVisible(const LLUUID& id)
|
||||
{
|
||||
LLFloaterWebContent *browser = dynamic_cast<LLFloaterWebContent*> (LLFloaterReg::findInstance("web_content", id.asString()));
|
||||
LLSD sd;
|
||||
sd["id"] = id;
|
||||
LLFloaterWebContent *browser = dynamic_cast<LLFloaterWebContent*> (LLFloaterReg::findInstance("web_content", sd));
|
||||
return browser && browser->isShown();
|
||||
}
|
||||
|
||||
|
|
@ -343,7 +345,9 @@ bool LLAvatarActions::profileVisible(const LLUUID& id)
|
|||
//static
|
||||
void LLAvatarActions::hideProfile(const LLUUID& id)
|
||||
{
|
||||
LLFloaterWebContent *browser = dynamic_cast<LLFloaterWebContent*> (LLFloaterReg::findInstance("web_content", id.asString()));
|
||||
LLSD sd;
|
||||
sd["id"] = id;
|
||||
LLFloaterWebContent *browser = dynamic_cast<LLFloaterWebContent*> (LLFloaterReg::findInstance("web_content", sd));
|
||||
if (browser)
|
||||
{
|
||||
browser->closeFloater();
|
||||
|
|
|
|||
|
|
@ -87,7 +87,15 @@ BOOL LLFloaterWebContent::postBuild()
|
|||
|
||||
bool LLFloaterWebContent::matchesKey(const LLSD& key)
|
||||
{
|
||||
return key["target"].asString() == mKey["target"].asString();
|
||||
LLUUID id = key["id"];
|
||||
if (id.notNull())
|
||||
{
|
||||
return id == mKey["id"].asUUID();
|
||||
}
|
||||
else
|
||||
{
|
||||
return key["target"].asString() == mKey["target"].asString();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -250,6 +258,10 @@ void LLFloaterWebContent::onOpen(const LLSD& key)
|
|||
return;
|
||||
}
|
||||
|
||||
if (params.target() == params.id().asString())
|
||||
{
|
||||
setRectControl("");
|
||||
}
|
||||
mUUID = params.id().asString();
|
||||
mWebBrowser->setTrustedContent(params.trusted_content);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue