tallforasmurf / CoBro

A minimal web browser for reading web comics
2 stars 1 forks source link

Investigate assorted log messages #25

Open tallforasmurf opened 6 years ago

tallforasmurf commented 6 years ago

The following messages appear on the console (regardless of the Qt log override):

A Parser-blocking, cross-origin script, http://ads.thehiveworks.com/delivery/spc.php?zones=245%7C246%7C387&source=&r=54663846&charset=UTF-8&loc=http%3A//sssscomic.com/comic.php, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. See https://www.chromestatus.com/feature/5718547946799104 for more details.

and many more similar. Meanwhile, within the log file written by Cobro we have a similar number of

WARNING:root:Qt context: file http://ads.thehiveworks.com/delivery/spcjs.php?id=88 function ? line 9
WARNING:root:Qt message: A Parser-blocking, cross-origin script, http://partner.googleadservices.com/gampad/google_ads.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. See https://www.chromestatus.com/feature/5718547946799104 for more details.

and a lot of

ERROR:root:Qt context: file http://ads.thehiveworks.com/delivery/spcjs.php?id=88 function ? line 24
ERROR:root:Qt message: Facebook Pixel Error: Error: [ID:560616780737475] An invalid email address was specified for 'em'. This data will not be sent with any events for this Pixel.
WARNING:root:Qt context: file http://ads.thehiveworks.com/delivery/spcjs.php?id=88 function ? line 1
WARNING:root:Qt message: Mixed Content: The page at 'https://www.projectwonderful.com/backfill.php?t=4&s=g' was loaded over HTTPS, but requested an insecure image 'http://www.projectwonderful.com/img/customtags4.png'. This content should also be served over HTTPS.
WARNING:root:Qt context: file http://ads.thehiveworks.com/delivery/spcjs.php?id=88 function ? line 4
WARNING:root:Qt message: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

and some of

ERROR:root:Qt context: file http://ads.thehiveworks.com/delivery/spcjs.php?id=88 function ? line 0
ERROR:root:Qt message: Refused to execute script from 'https://att.demdex.net/event?d_event=imp&d_src=127123&d_creative=92245680&d_placement=203711305&d_campaign=20141172&d_site=2932773&d_cb=169371072' because its MIME type ('image/gif') is not executable.

The following might be significant, does this mean a property of QWebEngine could be set?

ERROR:root:Qt context: file http://ads.thehiveworks.com/delivery/spcjs.php?id=88 function ? line 67
ERROR:root:Qt message: Failed to set referrer policy: The value '' is not one of 'always', 'default', 'never', 'origin-when-crossorigin', 'no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', or 'unsafe-url'. The referrer policy has been left unchanged.
tallforasmurf commented 6 years ago

first message occurs because of code in the loaded page. It and other messages perhaps can be filtered via: http://doc.qt.io/qt-5/qtwebengine-debugging.html#console-logging http://doc.qt.io/qt-5/qml-qtwebengine-webengineview.html#javaScriptConsoleMessage-signal

if the messages are originating in javascript, consider disabling it,

QWebEngineSettings::JavascriptEnabled

tallforasmurf commented 6 years ago

The messages are triggered from these comics: Stand Still Stay Silent User Friendly Sinfest Dinosaur Comics poorly drawn lines Squid Row Tree Lobsters

These are the urls that cause the messages:


http://a.tribalfusion.com/displayAd.js?dver=0.8&th=10949142916,
http://a.tribalfusion.com/j.ad?flashVer=0&ver=1.28&th=10949142916&tagKey=2781518529&loaderVer=0.1&site=poorlydrawnlinescommobile&adSpace=ros&center=1&size=320x50&env=display&url=http%3A%2F%2Fwww.poorlydrawnlines.com%2F&f=0&p=1199782&tKey=a3mneM5AvV5Gb6TG3bVcnk49YJQPIfi2&a=1&adContainerId=richmedia_2&rnd=1203285
http://ap.lijit.com/www/delivery/fpi.js?z=282537&u=PoorlyDrawnLines&width=320&height=50
http://www.google-analytics.com/ga.js
http://www.projectwonderful.com/gen.php?id=51457&type=5&r=3838.&location=http%3A//www.treelobsters.com/
http://ads.thehiveworks.com/delivery/spc.php?zones=245%7C246%7C387&source=&r=27955170&charset=UTF-8&loc=http%3A//sssscomic.com/comic.php
http://partner.googleadservices.com/gampad/google_ads.js
https://securepubads.g.doubleclick.net/gampad/ads?correlator=4042003566580088&output=json_html&callback=GA_googleSetAdContentsBySlotForSync&impl=s&ic=0&eid=108809087&client=ca-pub-0064896115895736&slotname=1_HomePage_120x600&page_slots=1_HomePage_120x600&cookie_enabled=1&url=http%3A%2F%2Fuserfriendly.org%2F&lmt=1506881208&dt=1506881208995&cc=45&biw=1052&bih=747&adk=1928942879&adx=8&ady=342&ifi=1&oid=3&u_tz=-420&u_his=10&u_h=900&u_w=1440&u_ah=877&u_aw=1436&u_cd=24&flash=0&gads=v2&ga_vid=957281988.1506881209&ga_sid=1506881209&ga_hid=712854802
http://tags.expo9.exponential.com/tags/Userfriendlyorg/ROS/tags.js