File tree Expand file tree Collapse file tree 2 files changed +8
-16
lines changed
core/src/main/resources/lib/form
test/src/test/java/jenkins/security Expand file tree Collapse file tree 2 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,12 @@ THE SOFTWARE.
29
29
a spacer if none is available.
30
30
31
31
The help link is rendered as a table cell with an (?) icon.
32
- If the user clicks it, the content of the HTML fragment at the given URL
32
+ If the user clicks it, the content of the HTML fragment at the given URL
33
33
is rendered in the area designated as <f:helpArea> by the caller,
34
34
usually in a row beneath the item with help.
35
-
35
+
36
36
The alternative spacer is just an empty table cell.
37
-
37
+
38
38
This tag was introduced to ensure that the space reserved for help items
39
39
is consistent over the UI whether or not help exists.
40
40
@@ -49,14 +49,14 @@ THE SOFTWARE.
49
49
]]>
50
50
</st : attribute >
51
51
<st : attribute name =" featureName" >
52
- Name of the feature described by the help text, used for constructing the
52
+ Name of the feature described by the help text, used for constructing the
53
53
icon's alt attribute. Optional.
54
54
</st : attribute >
55
55
</st : documentation >
56
56
<j : choose >
57
57
<j : when test =" ${attrs.url!=null}" >
58
58
<j : set var =" altText" value =" ${attrs.featureName != null ? '%Help for feature:' + ' ' + attrs.featureName : '%Help'}" />
59
- <a href =" #" class =" jenkins-help-button" tooltip =" ${altText}" helpURL =" ${rootURL}${attrs.url}" >
59
+ <a href =" #" class =" jenkins-help-button" aria-label =" ${altText}" helpURL =" ${rootURL}${attrs.url}" >
60
60
<!-- .jenkins-help-button span element is required as it's restyled in CSS -->
61
61
<span >?</span >
62
62
</a >
Original file line number Diff line number Diff line change @@ -28,19 +28,11 @@ void setUp(JenkinsRule rule) {
28
28
j = rule ;
29
29
}
30
30
31
- @ Test
32
- void noXssInHelpLinkPanel () throws Exception {
33
- noCrossSiteScriptingInHelp ("#link-panel a" );
34
- }
35
-
36
31
@ Test
37
32
void noXssInHelpIconPanel () throws Exception {
38
- noCrossSiteScriptingInHelp ("#icon-panel svg" );
39
- }
40
-
41
- private void noCrossSiteScriptingInHelp (String selector ) throws Exception {
42
- final AtomicInteger alerts = new AtomicInteger ();
43
- final JenkinsRule .WebClient webClient = j .createWebClient ();
33
+ var selector = "#icon-panel svg" ;
34
+ var alerts = new AtomicInteger ();
35
+ var webClient = j .createWebClient ();
44
36
webClient .setAlertHandler ((AlertHandler ) (p , s ) -> alerts .addAndGet (1 ));
45
37
final HtmlPage page = webClient .goTo (URL_NAME );
46
38
page .executeJavaScript ("document.querySelector('" + selector + "')._tippy.show()" );
You can’t perform that action at this time.
0 commit comments