4 use RT::Test tests => 11;
10 ok(RT->Config->Get('Framebusting'), "Framebusting enabled by default");
12 ($url, $m) = RT::Test->started_ok;
14 $m->content_contains('if (window.top !== window.self) {', "Found the framekiller javascript");
15 is $m->response->header('X-Frame-Options'), 'DENY', "X-Frame-Options is set to DENY";
17 RT::Test->stop_server;
22 RT->Config->Set('Framebusting', 0);
24 ($url, $m) = RT::Test->started_ok;
26 $m->content_lacks('if (window.top !== window.self) {', "Didn't find the framekiller javascript");
27 is $m->response->header('X-Frame-Options'), undef, "X-Frame-Options is not present";