Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 646
Kevin Pei Avatar asked Dec 28 '13 03:12

Kevin Pei


2 Answers

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?

like image 194
FoggyDay Avatar answered Oct 16 '22 20:10

FoggyDay


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 ?

like image 29
Bhaskar Melkani Avatar answered Oct 16 '22 21:10

Bhaskar Melkani