Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Page not fully loading

Post Reply
wolf
Posts: 20
Joined: Thu Jan 31, 2019 6:36 pm

Page not fully loading

Post by wolf »

Hi,

I ran into a strange problem with a certain page that cannot be fully loaded. Using the latest Chromium 88 and Delphi XE5.

URL: https://www.lakemedelsverket.se/

It works however fine in the demo SimpleBrowser which can fully load this page. It does not work in MiniBrowser, also BriskBard seems to have this problem.

Do you have an idea how to get this page working in MiniBrowser?


BTW, MiniBrowser cannot be compiled in XE5 by default because NetEncoding does not exist (at least not in my XE5 installation).
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Page not fully loading

Post by salvadordf »

I get this in the debug log when I try to load that page with the latest MiniBrowser :

Code: Select all

[0216/152630.456:INFO:CONSOLE(1)] "ERROR [object Object]", source: https://www.lakemedelsverket.se/dist/main.js?v=20201207095638 (1)
[0216/152631.979:INFO:CONSOLE(1)] "ERROR Error: Uncaught (in promise): t: {"headers":{"normalizedNames":{},"lazyUpdate":null},"status":404,"statusText":"OK","url":"https://www.lakemedelsverket.se/api/episerver/v2.0/content/100?expand=*","ok":false,"name":"HttpErrorResponse","message":"Http failure response for https://www.lakemedelsverket.se/api/episerver/v2.0/content/100?expand=*: 404 OK","error":"\r\n<!DOCTYPE html>\r\n\r\n<html lang=\"sv\">\r\n<head>\r\n\r\n    <base href=\"/\">\r\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\r\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=2.0\" />\r\n\r\n    <title></title>\r\n\r\n    <!-- Open graph markup -->\r\n    <meta property=\"og:url\" />\r\n    <meta property=\"og:type\" content=\"article\" />\r\n    <meta property=\"og:description\" />\r\n    <meta property=\"og:image\" />\r\n    \r\n    <!-- Search indexing -->\r\n    <meta name=\"robots\">\r\n    <meta name=\"robots\">\r\n    <meta name=\"description\">\r\n\r\n\r\n    <!-- Favicon -->\r\n    <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/dist/assets/favicons/apple-touch-icon.png\">\r\n    <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/dist/assets/favicons/favicon-32x32.png\">\r\n    <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/dist/assets/favicons/favicon-16x16.png\">\r\n    <link rel=\"manifest\" href=\"/dist/assets/favicons/site.webmanifest\">\r\n    <link rel=\"mask-icon\" href=\"/dist/assets/favicons/safari-pinned-tab.svg\" color=\"#66c0f6\">\r\n    <link rel=\"shortcut icon\" href=\"/dist/assets/favicons/favicon.ico\">\r\n    <meta name=\"msapplication-TileColor\" content=\"#ffffff\">\r\n    <meta name=\"msapplication-config\" content=\"/dist/assets/favicons/browserconfig.xml\">\r\n    <meta name=\"theme-color\" content=\"#ffffff\">\r\n\r\n    <!-- Turn off Edge phone number format recognition -->\r\n    <meta name=\"format-detection\" content=\"telephone=no\">\r\n\r\n    <link rel=\"stylesheet\" href=\"/dist/styles.css?v=20201207095638\" />\r\n\r\n    \r\n\r\n    <!-- ReadSpeaker script -->\r\n    <script type=\"text/javascript\">\r\n        window.rsConf = {\r\n            general: {\r\n                usePost: true,\r\n                selectionPlayer: '#readspeaker_button1'\r\n            },\r\n            params: '//cdn1.readspeaker.com/script/11228/webReader/webReader.js?pids=wr'\r\n        };\r\n    </script>\r\n    <script src=\"//cdn1.readspeaker.com/script/11228/webReader/webReader.js?pids=wr\" type=\"text/javascript\"></script>\r\n<script type=\"text/javascript\">var appInsights=window.appInsights||function(config){function t(config){i[config]=function(){var t=arguments;i.queue.push(function(){i[config].apply(i,t)})}}var i={config:config},u=document,e=window,o=\"script\",s=\"AuthenticatedUserContext\",h=\"start\",c=\"stop\",l=\"Track\",a=l+\"Event\",v=l+\"Page\",r,f;setTimeout(function(){var t=u.createElement(o);t.src=config.url||\"https://az416426.vo.msecnd.net/scripts/a/ai.0.js\";u.getElementsByTagName(o)[0].parentNode.appendChild(t)});try{i.cookie=u.cookie}catch(y){}for(i.queue=[],r=[\"Event\",\"Exception\",\"Metric\",\"PageView\",\"Trace\",\"Dependency\"];r.length;)t(\"track\"+r.pop());return t(\"set\"+s),t(\"clear\"+s),t(h+a),t(c+a),t(h+v),t(c+v),t(\"flush\"),config.disableExceptionTracking||(r=\"onerror\",t(\"_\"+r),f=e[r],e[r]=function(config,t,u,e,o){var s=f&&f(config,t,u,e,o);return s!==!0&&i[\"_\"+r](config,t,u,e,o),s}),i}({instrumentationKey:\"f41a3a53-a9ca-4992-8aa1-afa7c4d8c650\",sdkExtension:\"a\"});window.appInsights=appInsights;appInsights.queue&&appInsights.queue.length===0&&appInsights.trackPageView();</script></head>\r\n<body>\r\n    \r\n\r\n\r\n\r\n<input name=\"__RequestVerificationToken\" type=\"hidden\" value=\"bNbtYZDK2b7gTA0nYMIuKqmaAYmPjV17T6O2itO4Q9oLuFWSsTmvQZ0t51YIQCjA4AHNyM_q2vS-aZGyfSJeO1G6__xmX06Pix41m-V9aaw1\" />\r\n\r\n<app-root></app-root>\r\n\r\n<script  src=\"/dist/runtime.js?v=20201207095638\"></script>\r\n<script nomodule src=\"/dist/polyfills-es5.js?v=20201207095638\"></script>\r\n<script  src=\"/dist/polyfills.js?v=20201207095638\"></script>\r\n<script  src=\"/dist/main.js?v=20201207095638\"></script>\r\n\r\n    \r\n</body>\r\n</html>"}", source: https://www.lakemedelsverket.se/dist/main.js?v=20201207095638 (1)
I also tried to load that page using the official CEF sample application called cefclient and it has the same problem so it seems to be a CEF issue.

Please, report it in the CEF forum :
https://magpcss.org/ceforum/

Some demos only work with the latest Delphi version but in this case you can also use Lazarus to open the MiniBrowser demo inside the "demos/Lazarus_Windows" directory.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Page not fully loading

Post by salvadordf »

This is the link to the official CEF sample application I used :
https://cef-builds.spotifycdn.com/cef_binary_88.2.8%2Bge484012%2Bchromium-88.0.4324.150_windows64_client.tar.bz2
wolf
Posts: 20
Joined: Thu Jan 31, 2019 6:36 pm

Re: Page not fully loading

Post by wolf »

Thanks, I could also reproduce it with the official CEF sample app.

I tried to sign up to their forums, but did not receive the activation e-mail. I hope that I'll receive their activation email in the next couple of hours so I can login to their forums to report this issue...
Post Reply