You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Behind my employers firewall I cannot view certain docsets for instance the C++.docset it just shows me a blank screen.
Trying to open it in firefox revealed the source of the problem:
The allegedly "offline documentation" tries to download a javascript file from *google-analytics.com which would be fine with me in principle BUT when access to *google-analytics.com is blocked the page wont load. It only loads in firefox when the request times out.
The problem is the following part in the documentation html files:
Strangely accessing the "real" online documentation this problem does not appear, I think that this may be due result for the gaJsHost variable in the script above. The script can't properly handle document.location.protocol==file in the offline case.
Also while looking into this I found that the c++ documentation happily excecutes a lot of java script among those scripts one tries to download adds from cdn.carbonads.com which triggers all kinds of cross site scripting exceptions in firefox but I'm not sure what this does in Zeal's qtwebview
The text was updated successfully, but these errors were encountered:
Does this happen in v0.7.0? There were similar issues reported in the past, but I believe migration to Qt WebEngine addressed that. Zeal also now blocks all online access (#955 has more context), so this really should not happen...
Behind my employers firewall I cannot view certain docsets for instance the C++.docset it just shows me a blank screen.
Trying to open it in firefox revealed the source of the problem:
The allegedly "offline documentation" tries to download a javascript file from *google-analytics.com which would be fine with me in principle BUT when access to *google-analytics.com is blocked the page wont load. It only loads in firefox when the request times out.
The problem is the following part in the documentation html files:
<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script>
Removing it makes the problem go away.
Strangely accessing the "real" online documentation this problem does not appear, I think that this may be due result for the gaJsHost variable in the script above. The script can't properly handle
document.location.protocol==file
in the offline case.Also while looking into this I found that the c++ documentation happily excecutes a lot of java script among those scripts one tries to download adds from cdn.carbonads.com which triggers all kinds of cross site scripting exceptions in firefox but I'm not sure what this does in Zeal's qtwebview
The text was updated successfully, but these errors were encountered: