Merge branch 'pr-2638'

[visualforce] add new safe resource for VfUnescapeEl #2638
This commit is contained in:
Andreas Dangel
2020-07-17 15:29:25 +02:00
3 changed files with 17 additions and 0 deletions

View File

@ -296,6 +296,7 @@ public class VfUnescapeElRule extends AbstractVfRule {
case "$objecttype":
case "$component":
case "$remoteaction":
case "$messagechannel":
return true;
default:

View File

@ -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>