Standalone test case for oxide:
import QtQuick 2.4 import com.canonical.Oxide 1.15 WebView { url: "https://www.nasa.gov/multimedia/nasatv/" context: WebContext { userAgent: "Mozilla/5.0 (Linux; Android 5.0;) AppleWebKit/537.36 Chrome/51.0.2704.79 Mobile Safari/537.36" } onJavaScriptConsoleMessage: console.log("[JS] (%1:%2) %3".arg(sourceId).arg(lineNumber).arg(message)) }
And here is the output when launched in qmlscene on arale:
qml: [JS] (https://www.nasa.gov/sites/all/modules/scald_twitter/scald_twitter.js?o7tar6:23) Uncaught ReferenceError: jQuery is not defined qml: [JS] (https://www.nasa.gov/multimedia/nasatv/:0) Mixed Content: The page at 'https://www.nasa.gov/multimedia/nasatv/' was loaded over a secure connection, but contains a form which targets an insecure endpoint 'http://nasasearch.nasa.gov/search'. This endpoint should be made available over a secure connection. qml: [JS] (https://www.nasa.gov/multimedia/nasatv/:0) Mixed Content: The page at 'https://www.nasa.gov/multimedia/nasatv/' was loaded over a secure connection, but contains a form which targets an insecure endpoint 'http://nasasearch.nasa.gov/search'. This endpoint should be made available over a secure connection. qml: [JS] (https://www.nasa.gov/multimedia/nasatv/#public:0) Mixed Content: The page at 'https://www.nasa.gov/multimedia/nasatv/#public' was loaded over HTTPS, but requested an insecure script 'http://79423.analytics.edgesuite.net/html5/akamaihtml5-min.js'. This request has been blocked; the content must be served over HTTPS. qml: [JS] (https://www.nasa.gov/multimedia/nasatv/#public:0) Mixed Content: The page at 'https://www.nasa.gov/multimedia/nasatv/#public' was loaded over HTTPS, but requested an insecure video 'http://nasatv-lh.akamaihd.net/i/NASA_101@319270/master.m3u8'. This content should also be served over HTTPS. [0609/120740:ERROR:render_media_log.cc(23)] MediaEvent: PIPELINE_ERROR demuxer: could not open qml: [JS] (https://www.nasa.gov/multimedia/nasatv/#public:0) Mixed Content: The page at 'https://www.nasa.gov/multimedia/nasatv/#public' was loaded over HTTPS, but requested an insecure video 'http://nasatv-lh.akamaihd.net/i/NASA_101@319270/master.m3u8'. This content should also be served over HTTPS. [0609/120802:ERROR:render_media_log.cc(23)] MediaEvent: PIPELINE_ERROR demuxer: could not open qml: [JS] (undefined:0) Uncaught (in promise) NotSupportedError: Failed to load because no supported source was found.
Standalone test case for oxide:
import QtQuick 2.4 /www.nasa. gov/multimedia/ nasatv/" onsoleMessage: console.log("[JS] (%1:%2) %3".arg( sourceId) .arg(lineNumber ).arg(message) )
import com.canonical.Oxide 1.15
WebView {
url: "https:/
context: WebContext {
userAgent: "Mozilla/5.0 (Linux; Android 5.0;) AppleWebKit/537.36 Chrome/51.0.2704.79 Mobile Safari/537.36"
}
onJavaScriptC
}
And here is the output when launched in qmlscene on arale:
qml: [JS] (https:/ /www.nasa. gov/sites/ all/modules/ scald_twitter/ scald_twitter. js?o7tar6: 23) Uncaught ReferenceError: jQuery is not defined /www.nasa. gov/multimedia/ nasatv/ :0) Mixed Content: The page at 'https:/ /www.nasa. gov/multimedia/ nasatv/ ' was loaded over a secure connection, but contains a form which targets an insecure endpoint 'http:// nasasearch. nasa.gov/ search'. This endpoint should be made available over a secure connection. /www.nasa. gov/multimedia/ nasatv/ :0) Mixed Content: The page at 'https:/ /www.nasa. gov/multimedia/ nasatv/ ' was loaded over a secure connection, but contains a form which targets an insecure endpoint 'http:// nasasearch. nasa.gov/ search'. This endpoint should be made available over a secure connection. /www.nasa. gov/multimedia/ nasatv/ #public: 0) Mixed Content: The page at 'https:/ /www.nasa. gov/multimedia/ nasatv/ #public' was loaded over HTTPS, but requested an insecure script 'http:// 79423.analytics .edgesuite. net/html5/ akamaihtml5- min.js'. This request has been blocked; the content must be served over HTTPS. /www.nasa. gov/multimedia/ nasatv/ #public: 0) Mixed Content: The page at 'https:/ /www.nasa. gov/multimedia/ nasatv/ #public' was loaded over HTTPS, but requested an insecure video 'http:// nasatv- lh.akamaihd. net/i/NASA_ 101@319270/ master. m3u8'. This content should also be served over HTTPS. ERROR:render_ media_log. cc(23)] MediaEvent: PIPELINE_ERROR demuxer: could not open /www.nasa. gov/multimedia/ nasatv/ #public: 0) Mixed Content: The page at 'https:/ /www.nasa. gov/multimedia/ nasatv/ #public' was loaded over HTTPS, but requested an insecure video 'http:// nasatv- lh.akamaihd. net/i/NASA_ 101@319270/ master. m3u8'. This content should also be served over HTTPS. ERROR:render_ media_log. cc(23)] MediaEvent: PIPELINE_ERROR demuxer: could not open
qml: [JS] (https:/
qml: [JS] (https:/
qml: [JS] (https:/
qml: [JS] (https:/
[0609/120740:
qml: [JS] (https:/
[0609/120802:
qml: [JS] (undefined:0) Uncaught (in promise) NotSupportedError: Failed to load because no supported source was found.