X
Apasă aici pentru a merge la versiunea mobilă a site-ului.

Forum pentru suport

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

Postat

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

Alte detalii de sistem

Pluginuri instalate

  • Shockwave Flash 14.0 r0
  • 5.1.30514.0
  • Foxit Reader Plug-In For Firefox and Netscape

Aplicație

  • Firefox 31.0
  • User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
  • URL de suport: https://support.mozilla.org/1/firefox/31.0/WINNT/ru/

Suplimente

  • ColorZilla 2.8 ({6AC85730-7D0F-4de0-B3FA-21142DD85326})
  • Firebug 2.0.2 (firebug@software.joehewitt.com)
  • FlashGot 1.5.6.2 ({19503e42-ca3c-4c27-b1e2-9cdb2170ee34})
  • SQLite Manager 0.8.1 (SQLiteManager@mrinalkant.blogspot.com)
  • Troubleshooter 1.1a (troubleshooter@mozilla.org)

Javascript

  • incrementalGCEnabled: True

Grafică

  • adapterDescription: Intel(R) HD Graphics 4000
  • adapterDescription2:
  • adapterDeviceID: 0x0166
  • adapterDeviceID2:
  • adapterDrivers: igdumdim64 igd10iumd64 igd10iumd64 igdumdim32 igd10iumd32 igd10iumd32
  • adapterDrivers2:
  • adapterRAM: Unknown
  • adapterRAM2:
  • adapterVendorID: 0x8086
  • adapterVendorID2:
  • clearTypeParameters: Gamma: 2200 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 50
  • direct2DEnabled: True
  • directWriteEnabled: True
  • directWriteVersion: 6.3.9600.17111
  • driverDate: 5-16-2014
  • driverDate2:
  • driverVersion: 10.18.10.3621
  • driverVersion2:
  • info: {u'AzureCanvasBackend': u'direct2d', u'AzureFallbackCanvasBackend': u'cairo', u'AzureContentBackend': u'direct2d', u'AzureSkiaAccelerated': 0}
  • isGPU2Active: False
  • numAcceleratedWindows: 1
  • numTotalWindows: 1
  • webglRenderer: Google Inc. -- ANGLE (Intel(R) HD Graphics 4000 Direct3D9Ex vs_3_0 ps_3_0)
  • windowLayerManagerRemote: False
  • windowLayerManagerType: Direct3D 10

Preferințe modificate

  • accessibility.typeaheadfind.flashBar: 0
  • browser.cache.disk.capacity: 358400
  • browser.cache.disk.smart_size.first_run: False
  • browser.cache.disk.smart_size.use_old_max: False
  • browser.cache.disk.smart_size_cached_value: 358400
  • browser.cache.frecency_experiment: 4
  • browser.places.smartBookmarksVersion: 7
  • browser.sessionstore.upgradeBackup.latestBuildID: 20140716183446
  • browser.startup.homepage: about:home
  • browser.startup.homepage_override.buildID: 20140716183446
  • browser.startup.homepage_override.mstone: 31.0
  • dom.mozApps.used: True
  • extensions.lastAppVersion: 31.0
  • gfx.direct3d.last_used_feature_level_idx: 0
  • network.cookie.cookieBehavior: 1
  • network.cookie.prefsMigrated: True
  • places.database.lastMaintenance: 1407409297
  • places.history.expiration.transient_current_max_pages: 104262
  • plugin.disable_full_page_plugin_for_types: application/pdf
  • plugin.importedState: True
  • plugins.notifyMissingFlash: False
  • privacy.donottrackheader.enabled: True
  • privacy.sanitize.migrateFx3Prefs: True
  • storage.vacuum.last.index: 1
  • storage.vacuum.last.places.sqlite: 1405354366

Diverse

  • JS utilizator: Nu
  • Accesibilitate: Nu
guigs
  • Top 25 Contributor
  • Administrator
  • Moderator
1008 soluții 11074 răspunsuri

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.

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.

Deținătorul întrebării

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

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
guigs
  • Top 25 Contributor
  • Administrator
  • Moderator
1008 soluții 11074 răspunsuri

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

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 autocomplete|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. [https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy]

Deținătorul întrebării

no. it is not helpful :(

no. it is not helpful :(

Deținătorul întrebării

trouble with vk.com openapi.js on this site

trouble with vk.com openapi.js on this site
guigs
  • Top 25 Contributor
  • Administrator
  • Moderator
1008 soluții 11074 răspunsuri

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.

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.

Deținătorul întrebării

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

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

Deținătorul întrebării

Widget works on TORBrowser.

Widget works on TORBrowser.
Jjoc JJ 0 soluții 9 răspunsuri

Hmmm... install Javavascript here .

Hmmm... install Javavascript [http://www.microsoft.com/en-us/windows/compatibility/CompatCenter/ProductDetailsViewer?Name=Java&vendor=Oracle&ModelOrVersion=7&Type=Software&tempOsid=Windows+8.1 here] .

Soluția aleasă

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

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