alert() and console.log() not working in Firefox 26

醉酒当歌 提交于 2020-01-03 08:48:19

问题


I feel like I'm going crazy but alert() and console.log() refuses to work anywhere on Firefox 26.

At first I thought it was my own website's problem, but I cannot for the life of me to get it to work via javascript: urls, Firebug, I even tried it in jsfiddle.net by just putting alert('test'); in the script panel.

Tried uninstalling and installing again, no luck.

The only extension I'm running is Firebug.

Heck, Stackoverflow didn't even prompt me about leaving when I accidentally clicked the back button while writing this.

Also yes, I made sure there was some content inside the alert() and console.log()

What I mean by not working is that Firefox treats the code as if it were non-existent, nothing happens.


Once again, here's my environment:
Browser: Firefox 26.0
OS: Windows 8.1 Pro
Issue: alert(), console.log(), and apparently prompt() doesn't work

If anyone might know why this is happening, I would highly appreciate an answer.


UPDATE

Following Pointy's comment, it appears that both alert() and console.log() work as expected on the New Tab Page, but nowhere else


回答1:


You might want to try re-installing Firebug:

  • console.log in firefox is not working?

PS: I happen to be running a similar configuration (including FF 26) ... and things work fine for me. IMHO...

PPS: You might also try setting "about:config, prompts.tab_modal.enabled = false":

  • https://bugzilla.mozilla.org/show_bug.cgi?id=613752

The default is "true", my FF 26 is set "true" and things are working for me ... but who knows. If reinstalling Firebug doesn't help, maybe it's worth a shot?




回答2:


Silly but, in firebug can you check if window.alert and window.console are defined.... and if yes then, can you check if window.alert('hi') works ?




回答3:


Thanks for all the help guys, in the end I used Revo Uninstaller to completely and absolutely wipe Firefox from my system, then installed it again. Seems to be working now, the original uninstaller most likely didn't remove whatever was causing the problem.




回答4:


I have same bug when i using Ghostery extension. Disable Ghostery and reload page. Lets check at https://getfirebug.com/tests/head/console/api/log.html




回答5:


I had a similar issue, on IE v11.0.10 and Chrome Canary v38.0.2114. Duplicate function name turnout to be the issue. Worth doing a quick check for function names in Javascript file.




回答6:


You can use the Firefox console with CTRL + SHIFT + K

Related: https://support.mozilla.org/en-US/questions/876916



来源:https://stackoverflow.com/questions/20810794/alert-and-console-log-not-working-in-firefox-26

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!