Caută ajutor

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Acest fir de discuție a fost arhivat. Adresează o întrebare nouă dacă ai nevoie de ajutor.

Link http://vk.com/oauth/widget.html#_https=1 fully does not work

  • 10 răspunsuri
  • 5 au această problemă
  • 10 vizualizări
  • Ultimul răspuns de dmitry_sensei

more options

Link http://vk.com/oauth/widget.html#_https=1 fully does not work. In Chromium, Iron and Dragon Chrome is all ok

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 👍 0

Toate răspunsurile (10)

more options

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.

more options

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

more options

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 :

  1. In the Location bar, type about:config and press Enter. The about:config "This might void your warranty!" warning page may appear.
  2. Click I'll be careful, I promise! to continue to the about:config page.
  3. Search for security.fileuri.strict_origin_policy and set it to false.

https://developer.mozilla.org/en-US/d.../Same-origin_policy

more options

no. it is not helpful :(

more options

trouble with vk.com openapi.js on this site

more options

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.

more options

Kerio (Winroute) show me VK.COM Comments Widget in Kerio Admin Console. But Firefox does not show the widget window.

more options

Widget works on TORBrowser.

more options

Hmmm... install Javavascript here .

more options

Soluție aleasă

Widget does not work on Firefox for Windows and Linux . I'll write to vk.com support