Console messages: deprecated functions et al
Hi! I'm running TFF (the pre-compiled, civilian-use download for G5) on my G5 (dual 2GHz, 10.5.8). My computer just experienced a kernel panic, and just before that TFF had been misbehaving (taking forever for the Print dialog box to respond to mouse clicks, something it does way too much - but that's probably for another discussion).
After rebooting, I logged on as admin and opened up system.log in Console. There are two messages that repeat themselves over and over and over:
Apr 10 11:18:54 alter
[0x0-0x40040].com.floodgap.tenfourfox[399]: warning: The global
onMessage
function in content scripts is deprecated in
favor of the self.on()
function. Replace
onMessage = function (data){}
definitions with calls
to self.on('message', function (data){})
. For more
info on self.on
, see
https://addons.mozilla.org/en-US/developers/docs/sdk/latest/dev-guide/addon-development/web-content.html.
Apr 10 11:18:56 alter
[0x0-0x40040].com.floodgap.tenfourfox[399]: warning: The global
postMessage()
function in content scripts is
deprecated in favor of the self.postMessage()
function, which works the same. Replace calls to
postMessage()
with calls to
self.postMessage()
.For more info on
self.on
, see
https://addons.mozilla.org/en-US/developers/docs/sdk/latest/dev-guide/addon-development/web-content.html.
Is this a TFF code-related issue, or is there something on my end I need to fix?
Thanks!
P.S.: When I launched TFF just now, it produced two other Console messages in system.log:
Apr 10 11:33:55 alter firefox[246]: *** Assertion failure in -[BaseWindow _changeJustMain], /SourceCache/AppKit/AppKit-949.54/AppKit.subproj/NSWindow.m:8598
Apr 10 11:33:55 alter firefox[246]: Mozilla has caught an Obj-C exception [NSInternalInconsistencyException: Invalid parameter not satisfying: [self canBecomeMainWindow]]
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Cameron Kaiser on 11 Apr, 2013 03:29 AM
You have two separate issues. The "deprecated warning" message is generally due to an out-of-date extension (the specific functions you mention are part of Jetpack). For example, an old version of the QuickTime Enabler could cause this.
The second one is a new one on me, but suggests a system issue. I've certainly never seen that issue on startup. A crash like that is deep within the application runtime.