I have an extension that uses code like this in the background script:
kango.addMessageListener('event', function (event) {
kango.console.log(event.source.getId());
});
When run in Safari I get the following error: TypeError: 'undefined' is not a function (evaluating 'event.source.getId()'). In Chrome and Firefox the code runs fine and outputs the source tab id.
Additional information
Using the debugging console I can confirm that event.source and its prototype indeed don't have a method getId. In Chrome event.source is the following object:
I have an extension that uses code like this in the background script:
When run in Safari I get the following error:
TypeError: 'undefined' is not a function (evaluating 'event.source.getId()')
. In Chrome and Firefox the code runs fine and outputs the source tab id.Additional information
Using the debugging console I can confirm that
event.source
and its prototype indeed don't have a method getId. In Chromeevent.source
is the following object:Whereas in Safari,
event.source
is printed as: