Merge branch 'pr-2638'
[visualforce] add new safe resource for VfUnescapeEl #2638
This commit is contained in:
@ -296,6 +296,7 @@ public class VfUnescapeElRule extends AbstractVfRule {
|
||||
case "$objecttype":
|
||||
case "$component":
|
||||
case "$remoteaction":
|
||||
case "$messagechannel":
|
||||
return true;
|
||||
|
||||
default:
|
||||
|
@ -537,4 +537,17 @@
|
||||
<a onclick="openTab({!HTMLENCODE('/apex/Download?redirectUrl=' + downloadURL)}', 'test');">
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description>Support new message channel feature #2620</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
<script type="text/javascript">
|
||||
// Binding message channel to variable accessible to static resource.
|
||||
window.util = {
|
||||
messageChannel: '{!$MessageChannel.Record_Selected__c}'
|
||||
};
|
||||
</script>
|
||||
]]></code>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
Reference in New Issue
Block a user