зеркало из https://github.com/mozilla/gecko-dev.git
Revert accidental change included in aafeff43ea25, a=mistake
This commit is contained in:
Родитель
0b826f8b02
Коммит
594d6754f7
|
@ -57,6 +57,7 @@ function testOpenWebConsole()
|
|||
hudId = HUDService.displaysIndex()[0];
|
||||
hud = HUDService.getHeadsUpDisplay(hudId);
|
||||
|
||||
HUDService.logWarningAboutReplacedAPI(hudId);
|
||||
testWarning();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html dir="ltr" xml:lang="en-US" lang="en-US"><head>
|
||||
<title>Console test replaced API</title>
|
||||
<script type="text/javascript">
|
||||
function replaceAPI() {
|
||||
var console = {log: function (msg){}, info: function (msg){}, warn: function (msg){}, error: function (msg){}};
|
||||
window.console = console;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="header">Web Console Replace API Test</h1>
|
||||
<script type="text/javascript">
|
||||
window.console = {log: function (msg){}, info: function (msg){}, warn: function (msg){}, error: function (msg){}};
|
||||
</script>
|
||||
<button onclick="replaceAPI();">ReplaceAPI</button>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Загрузка…
Ссылка в новой задаче