Hi Shlomo,
I have an error running the extension in Safari 8.0.3/Yosemite 10.10.2 :
[Error] ReferenceError: Can't find variable: safari
global code (util.js, line 1)
insertBefore ([native code], line 0)
ou (Shared_iXfFugajQUakhrSicKp4ow2.js, line 7)
ni (Shared_iXfFugajQUakhrSicKp4ow2.js, line 7)
link (Shared_iXfFugajQUakhrSicKp4ow2.js, line 7)
initialize (Compose0x_2kCmXEaj5suLjKenHKv7TQ2.js, line 1)
initializeView (App0x_sAXqRyKYu1rawatfwcHbkg2.js, line 1)
(fonction anonyme) (jquery_IxInqeqWhsTYFrwY33VHww2.js, line 16)
v (jquery_IxInqeqWhsTYFrwY33VHww2.js, line 16)
fireWith (jquery_IxInqeqWhsTYFrwY33VHww2.js, line 16)
fire (jquery_IxInqeqWhsTYFrwY33VHww2.js, line 16)
v (jquery_IxInqeqWhsTYFrwY33VHww2.js, line 16)
fireWith (jquery_IxInqeqWhsTYFrwY33VHww2.js, line 16)
fire (jquery_IxInqeqWhsTYFrwY33VHww2.js, line 16)
o (App0x_sAXqRyKYu1rawatfwcHbkg2.js, line 1)
v (jquery_IxInqeqWhsTYFrwY33VHww2.js, line 16)
fireWith (jquery_IxInqeqWhsTYFrwY33VHww2.js, line 16)
fire (jquery_IxInqeqWhsTYFrwY33VHww2.js, line 16)
v (jquery_IxInqeqWhsTYFrwY33VHww2.js, line 16)
fireWith (jquery_IxInqeqWhsTYFrwY33VHww2.js, line 16)
fire (jquery_IxInqeqWhsTYFrwY33VHww2.js, line 16)
v (jquery_IxInqeqWhsTYFrwY33VHww2.js, line 16)
fireWith (jquery_IxInqeqWhsTYFrwY33VHww2.js, line 16)
fire (jquery_IxInqeqWhsTYFrwY33VHww2.js, line 16)
(fonction anonyme) (App0x_sAXqRyKYu1rawatfwcHbkg2.js, line 1)
(fonction anonyme) (default.aspx, line 185)
My extension is supposed to work over Gmail, Yahoo!Mail or Live.com for instance.
It works well with Gmail/Safari or Yahoo!/Safari but i have this error only with Live.com
I know Microsoft devs use some ugly code in their Live.com JS scripts. I found they use to _overwrite_ (!!) some native functions in IE11, like addEventListener for instance.
However, it does not seem to be this kind of problem here...
Any idea ?
Extension ID : 69843
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
Safari / error "Can't find variable: safari" in util.js line 91
-
Hello Emmanuel,
I'm not familiar with this error message. Does it only occur on live.com? Is it on a specific live.com page? Can you provide the steps for reproducing the issue?
Thanks -
-
Hello Shlomo;
Yes, this occurs only on live.com.
No specific page or email, it happens as soon as the inbox is displayed.
Step 1 : install extension
Step 2 : log in a live.com mailbox
Step 3 : check console and find the error message (among many others... due to http and https mixed content)
Toda -
-
Shlomo,
For your information, i also have this error using an other webmail (local french provider) using Zimbra.
Here is the stack trace. It seems to relate to the "ready" event when an iFrame is created. Remind you the extension runs in iFrame mode.
[Error] ReferenceError: Can't find variable: safari
global code (util.js, line 1)
setContent (Startup1_1_all.js.zgz, line 22453)
(fonction anonyme) (Startup1_1_all.js.zgz, line 36039)
_createFrame (Startup1_1_all.js.zgz, line 36086)
DwtIframe (Startup1_1_all.js.zgz, line 35852)
_displayContent
_renderMessageBody1
(fonction anonyme) ([native code], line 0)
run (mail, line 844)
getBodyPart
_renderMessageBody
_renderMessage
set
setItem
_displayItem
_handleResponseSetSelectedItem
(fonction anonyme) ([native code], line 0)
run (mail, line 844)
_handleResponseGetLoadedMsg
run (mail, line 879)
_handleResponseLoad
(fonction anonyme) ([native code], line 0)
run (mail, line 844)
_handleResponseFetchMsg
(fonction anonyme) ([native code], line 0)
_handleResponseSendRequest (Startup1_2_all.js.zgz, line 37951)
run (mail, line 879)
_runCallback (Startup1_1_all.js.zgz, line 38762)
run (mail, line 879)
__handleResponse (Startup1_1_all.js.zgz, line 2071)
onreadystatechange (Startup1_1_all.js.zgz, line 1976) -
-
EMPLOYEE
1 -
-
Hello Shlomo,
Did you wait a bit ?
I mean i don't even see traces from my extension.
You should have something like that :
[Log] VFEXT3@: Environnement : staging
Version : 71
Name : VeriFrom2 staging
Debug Mode : Non
Browser name : webkit
IE : Non
In Frame :false
[Log] VFEXT3@:Document ready state 1 : complete
[Log] VFEXT3@:NO Go
[Log] VFEXT3@:Document ready state 3 : complete
I guess you did not clone the extension and deactivate logs in source code ;-) -
-
-
-
OK Thanks.
No need to clone the ext.
What are your safari and os versions ?
Can you check from the Console what is the jQuery version loaded ? (i have 1.7.2) -
-
Hi Shlomo,
I tested with a dummy Extension (http://crossrider.com/download/safari...).
The only code i added is a console.log call from Extenstion.js.
And i still have this error message :
Of course the previous and regular extension was deactivated before.
Emmanuel -
-
Just in case... The error is the same in Staging and Production
-
-
Hello Emmanuel,
I tested on OS X Yosemite 10.10.1 / Safari 8.0.2 (10600.2.5).
The "can't find variable: safari" can be safely ignored and the rest of the code should work as expected. I can see from your image that you are receiving logs indicating that the extension is running.
So what exactly is not working in the extension? How can I reproduce the problem. -
-
Hello Shlomo,
You're right the extension keeps running... but not the Live.com webmail app, at least not correctly (you can't display an email from list for instance).
Which is still a show-stopper, since the extension is unused if the webmail does not run correctly.
I'll try with your Safari and Yosemite version. -
-
This seems to be the same issue I reported, where it is still a showstopper.
https://getsatisfaction.com/crossride... -
Loading Profile...







