Link http://vk.com/oauth/widget.html#_https=1 fully does not work
Link http://vk.com/oauth/widget.html#_https=1 fully does not work. In Chromium, Iron and Dragon Chrome is all ok
Soluție aleasă
Widget does not work on Firefox for Windows and Linux . I'll write to vk.com support
Citește acest răspuns în context 👍 0Toate răspunsurile (10)
Hi dmitry_sensei, Your script: function onDone() {
var result = location.href.match('_https') ? -1 : 1; var failed = false; try { window.opener.gotSession(result); } catch (e) { failed = true; } if (failed) { /*failed = false; try { document.domain = location.host.toString().match(/[a-zA-Z]+\.[a-zA-Z]+\.?$/)[0]; window.opener.gotSession(result); } catch (e) { failed = true; }*/ if (failed && location.protocol == 'https:') { window.location = location.href.replace('https:', 'http:')+'#_https=1'; failed = 1; } } if (failed !== 1) { setTimeout(window.close(), 100); } }
If it works it will close in 100 seconds? Are there any errors in the error console for you?
I got:
11:20:49.619 GET http://vk.com/oauth/widget.html#_https=1 [HTTP/1.1 304 Not Modified 207ms] 11:20:49.829 The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. widget.html 11:20:49.902 Scripts may not close windows that were not opened by script. widget.html:28
What happens if the script opens the window, then the function runs? It looks like it is working, but there is error preventing it.
open http://anti-maidan.com. Click on Add comment (window of comment). In Web Console Error: VK.Widgets: object #vk_like not found. openapi.js:1586 Error: Permission denied to access property 'chat' lerss:566 Empty string passed to getElementById(). tcounter.js:1 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://goodgame.ru:8080/chat/info. This can be fixed by moving the resource to the same domain or enabling CORS. info HTTP "Content-Type" of "audio/mpeg" is not supported. Load of media resource http://goodgame.ru/files/msg.mp3 failed. lerss "The "fb-root" div has not been created, auto-creating" all.js:54 HTTP "Content-Type" of "audio/mpeg" is not supported. Load of media resource http://goodgame.ru/files/win.mp3 failed. lerss Use of getPreventDefault() is deprecated. Use defaultPrevented instead. jquery-1.7.1.min.js:3
I am not sure about the audio file but the same origin policy can be changed. In order to change your Firefox Configuration please do the following steps :
- In the Location bar, type about:config and press Enter. The about:config "This might void your warranty!" warning page may appear.
- Click I'll be careful, I promise! to continue to the about:config page.
- Search for security.fileuri.strict_origin_policy and set it to false.
no. it is not helpful :(
trouble with vk.com openapi.js on this site
Ok, please try stackoverflow.com for this question as well as webcompat.com for more information on filing a bug for Web compatibility. I am sorry I was not able to help you.
Kerio (Winroute) show me VK.COM Comments Widget in Kerio Admin Console. But Firefox does not show the widget window.
Widget works on TORBrowser.
Hmmm... install Javavascript here .
Soluție aleasă
Widget does not work on Firefox for Windows and Linux . I'll write to vk.com support