Revert "Bug 1977690 - Remove unused AppRequestInterceptor in androidTests r=aaronmt" for causing fenix-debug failures.
This reverts commit bc9dc5f4296482e17560627acaacd2797e462211.
<!DOCTYPE HTML><html><!--https://bugzilla.mozilla.org/show_bug.cgi?id=466586--><head><title>Test for Bug 466586</title><scriptsrc="/tests/SimpleTest/SimpleTest.js"></script><linkrel="stylesheet"type="text/css"href="/tests/SimpleTest/test.css"/></head><bodyonload="loadSmall();"><atarget="_blank"href="https://bugzilla.mozilla.org/show_bug.cgi?id=89419">Mozilla Bug 466586</a><pid="display"></p><divid="content"style="display: none"><imgid="big"src="big.png"/></div><preid="test"><scripttype="application/javascript">SimpleTest.waitForExplicitFinish();varjsBig=newImage();// We have loaded the large png with id "big". We want to test if it will be// kicked out of the cache and thus have to be reloaded, but to ensure that, we// need to get the cache to look at what is there. So we load another image,// this one small.functionloadSmall(){// Trivial check, for reference.is(document.getElementById("big").width,3000,"HTML 'big' image width after page onload()");varsmall=newImage();small.onload=smallLoaded;small.src="red.png";}functionsmallLoaded(){jsBig.src=document.getElementById("big").src;// Check that it is not needed to wait for onload().is(jsBig.width,3000,"JS 'big' image width before its onload()");// Check again after onload(), for reference.jsBig.onload=jsBigLoaded;}functionjsBigLoaded(){is(jsBig.width,3000,"JS 'big' image width after its onload()");SimpleTest.finish();}</script></pre></body></html>