alert() and console.log() not working in F

2020-04-05 06:52发布

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

6条回答
Emotional °昔
2楼-- · 2020-04-05 07:07

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.

查看更多
乱世女痞
3楼-- · 2020-04-05 07:09

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 ?

查看更多
何必那么认真
4楼-- · 2020-04-05 07:09

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

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

查看更多
够拽才男人
5楼-- · 2020-04-05 07:11

You might want to try re-installing Firebug:

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":

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?

查看更多
Viruses.
6楼-- · 2020-04-05 07:13

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.

查看更多
做自己的国王
7楼-- · 2020-04-05 07:21

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

查看更多
登录 后发表回答