Bug #9008
streamJavaScriptPreamble followed by doJavaScript may cause JS issues
Start date:
08/24/2021
Due date:
% Done:
100%
Estimated time:
Description
We encountered some issues when some of Wt's minified JavaScript was loaded (with WApplication::streamJavaScriptPreamble
) and an IIFE (immediately invoked function expression) was executed with doJavaScript
.
We should make WApplication::streamJavaScriptPreamble
append a semicolon at the end so that the generated JavaScript can not be misinterpreted.