5 if (window
.testRunner
) {
6 testRunner
.dumpAsText();
7 testRunner
.dumpNavigationPolicy();
8 window
.addEventListener('keydown', function(event
) {
9 var mouseEvent
= new MouseEvent('click', { ctrlKey
: true, metaKey
: true });
10 var link
= document
.getElementById('link');
11 link
.dispatchEvent(mouseEvent
);
13 eventSender
.keyDown("a");
17 <body onload=
"test()">
18 <p>Tests that adding a ctrl modifier to a click on a link from the main world triggers a foreground tab.
</p>
19 <a href=
"blank" id=
"link">link
</a>