5 use RT::Test tests => 11;
11 ok(RT->Config->Get('Framebusting'), "Framebusting enabled by default");
13 ($url, $m) = RT::Test->started_ok;
15 $m->content_contains('if (window.top !== window.self) {', "Found the framekiller javascript");
16 is $m->response->header('X-Frame-Options'), 'DENY', "X-Frame-Options is set to DENY";
18 RT::Test->stop_server;
23 RT->Config->Set('Framebusting', 0);
25 ($url, $m) = RT::Test->started_ok;
27 $m->content_lacks('if (window.top !== window.self) {', "Didn't find the framekiller javascript");
28 is $m->response->header('X-Frame-Options'), undef, "X-Frame-Options is not present";