"secondlife:///app/chat/..." viewer URIs nerfed in local chat (for Linden viewer, not others)
tracked
Qie Niangao
Attempting to generate hypertext in local chat that, when clicked, would trigger the script to output more text to local chat. There's a viewer URI incantation that seems ideal for it: secondlife://app/chat/<channel>/<trigger_text> where the script listens on <channel> and responds when it sees <trigger_text>. Unfortunately in the Linden viewer (and Catznip), this results in "[Second Life: A SLurl was received from an untrusted browser and has been blocked for your security.]" after which it won't try again until a relog.
Log In
Jellyfish
marked this post as
tracked
Jellyfish
Thanks for reporting Qie Niangao! Issue tracked at https://github.com/secondlife/viewer/issues/5012 Please go there for future updates.
Maestro Linden
This feature is described at https://wiki.secondlife.com/wiki/Viewer_URI_Name_Space
This is one example:
secondlife://app//chat/1/testing
When the URI appears in nearby chat, clicking it with the Firestorm viewer causes the viewer sends a chat message from the agent, which can then be picked up from a listening script such as this one:
default
{
state_entry()
{
llListen(1,"",NULL_KEY,"");
}
listen(integer channel, string name, key id, string message)
{
llSay(0, "channel" + (string)channel + " got chat: "+llList2CSV([channel,name,id,message]));
}
}
When I click on the same SLURL with Second Life Release 7.2.2.18475198968 (64bit), the viewer does
not
send any channel 1 chat, and this message appears (for the first click only):[12:51] A SLurl was received from an untrusted browser and has been blocked for your security.
Qie Niangao
Maestro Linden I'm sorry, I thought maybe the actual record of this had all the fields I filled in when I first submitted it. FWIW, anybody wanting more detail can find a lot at the forums post I cited originally here: https://community.secondlife.com/forums/topic/528870-are-secondlifeappchat%E2%80%A6-viewer-uris-supposed-to-work-in-local-chat-further-befuddlement/