Bug 1361302 - Fix clicks.html to not trigger a double navigation for history navigation. r=automatedtester, a=test-only
authorHenrik Skupin <mail@hskupin.info>
Tue, 02 May 2017 16:33:25 +0200
changeset 396336 b4026977aaae2f3c5605fc489abefcb39041f094
parent 396335 0eea0b75aeb5e2257b94ac4d444934198d6a833f
child 396337 d880b3f5539a4f1c925f3bd26642752a1fd58f51
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersautomatedtester, test-only
bugs1361302
milestone54.0
Bug 1361302 - Fix clicks.html to not trigger a double navigation for history navigation. r=automatedtester, a=test-only Our click + page load implementation doesn't handle complex navigation scenarios yet. As such those should not be triggered inside our unit tests. MozReview-Commit-ID: Cog5vohttes
testing/marionette/harness/marionette_harness/www/clicks.html
--- a/testing/marionette/harness/marionette_harness/www/clicks.html
+++ b/testing/marionette/harness/marionette_harness/www/clicks.html
@@ -12,18 +12,18 @@
 
 </iframe>
 
 <iframe id="target" name="target">
 
 </iframe>
 
 <a href="xhtmlTest.html" id="normal">I'm a normal link</a>
-<a href="#" onclick="history.back();" id="history-back">Back in browser history</a>
-<a href="#" onclick="history.forward();" id="history-forward">Forward in browser history</a>
+<a onclick="history.back();" id="history-back">Back in browser history</a>
+<a onclick="history.forward();" id="history-forward">Forward in browser history</a>
 <a href="#" id="anchor">I go to an anchor</a>
 <a href="addons/restartless_addon_signed.xpi" id="install-addon">Install Add-on</a>
 <a href="javascript:window.open('xhtmlTest.html', '_blank')" id="new-window">I open a window with javascript</a>
 <a href="xhtmlTest.html" id="twoClientRects"><span></span><span>Click me</span></a>
 <a href="xhtmlTest.html" id="link-with-enclosed-image"><img id="enclosed-image" src="./icon.gif"/></a>
 <a href="xhtmlTest.html" id="link-with-enclosed-span"><span id="enclosed-span" style="color: rgb(0, 255, 0)">I'm a green link</span></a>
 <p style="background: none repeat scroll 0% 0% rgb(0, 255, 0); width: 5em;"><a id="overflowLink" href="xhtmlTest.html">looooooooooong short looooooooooong</a>
                 </p>