shouldLog error in Console.jsm prevents form submission

RESOLVED INCOMPLETE

Status

()

--
critical
RESOLVED INCOMPLETE
2 years ago
2 years ago

People

(Reporter: peterbe, Unassigned)

Tracking

49 Branch
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

2 years ago
Created attachment 8772159 [details]
Screen Shot 2016-07-18 at 4.39.50 PM.png

On various pages that contain a form with a sbumit button, nothing happens when I press the button. I get this error in the browser console:

TypeError: shouldLog is not a function[Learn More]

This started to happen today. Using 49.0a2 (2016-07-18).

At the moment, I can fill in this form because I've signed in with Chrome.
Does this happen on a clean profile? e10s on or off make a difference?
Component: General → Form Manager
Flags: needinfo?(peterbe)
Product: Firefox → Toolkit
(also, can you link to a concrete testcase so it's easier for others to try to reproduce the problem?)
e.g. http://jsbin.com/qoducavamu/edit?html,output does not reproduce this problem for me on today's devedition build.
If you open resource://gre/modules/Console.jsm and search for 'shouldLog', do you see a function shouldLog() entry? Because I do (on OS X devedition from the 19th). So the errors don't really make sense unless your copy of devedition got corrupted or some add-on is messing with things.
(Reporter)

Comment 5

2 years ago
Created attachment 8772382 [details]
Screen Shot 2016-07-19 at 8.44.58 AM.png

Problem no longer reproducible after todays DevEdition update. 

The problem could still happen I guess. Clearly, wherever the shouldLog function is defined, there's some race condition where it relies on this to be in the scope but it's not.
Flags: needinfo?(peterbe)
(Reporter)

Comment 6

2 years ago
Wow! The shouldLog function is defined in the very same file. 
https://dxr.mozilla.org/mozilla-central/source/toolkit/modules/Console.jsm#508
(In reply to Peter Bengtsson [:peterbe] from comment #6)
> Wow! The shouldLog function is defined in the very same file. 
> https://dxr.mozilla.org/mozilla-central/source/toolkit/modules/Console.
> jsm#508

Well, yes, so "not in scope" doesn't make any sense. It should always be in scope. I don't understand why it would ever not be available. If you download yesterday's devedition separately, does the problem reoccur? :-\
Flags: needinfo?(peterbe)
(Reporter)

Comment 8

2 years ago
How do I download yesterdays devedition?
Flags: needinfo?(peterbe)
(Reporter)

Comment 10

2 years ago
That did not work. Downloading yesterdays build and running it did work, but the problem is no longer reproducible :(
Going to resolve INCO because without being able to reproduce it seems impossible to track down what's causing this. If it happens again we can investigate further.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → INCOMPLETE

Updated

2 years ago
See Also: → bug 1287824
You need to log in before you can comment on or make changes to this bug.