July 27, 2020 at 11:34:47 AM UTC
VERIFY
Websites
Websites
Runtime: 3s
Share on Facebook or Twitter
On July 27, 2020 at 11:34:47 AM UTC, https://cdn.ampproject.org/v0/amp-iframe-0.1.js was accessible when tested on AS206065 in Iran.
Failures
HTTP Experiment
null
DNS Experiment
null
Control
null
DNS Queries
Resolver:
162.158.86.42
Query:
IN A cdn.ampproject.org
Engine:
system
Name
Class
TTL
Type
DATA
Answer IP Info
@
IN
CNAME
cdn-content.ampproject.org
Unknown AS
@
IN
A
74.125.136.132
Unknown AS
TCP Connections
74.125.136.132:443: succeeded
HTTP Requests
URL
GET https://cdn.ampproject.org/v0/amp-iframe-0.1.js
Response Headers
X-XSS-Protection:
0
Content-Length:
24039
Strict-Transport-Security:
max-age=31536000; includeSubDomains; preload
X-Content-Type-Options:
nosniff
Content-Security-Policy:
default-src * blob: data:; script-src blob: https://cdn.ampproject.org/esm/ https://cdn.ampproject.org/lts/ https://cdn.ampproject.org/mp/ https://cdn.ampproject.org/rtv/ https://cdn.ampproject.org/sp/ https://cdn.ampproject.org/sw/ https://cdn.ampproject.org/v0.js https://cdn.ampproject.org/v0.mjs https://cdn.ampproject.org/v0/ https://cdn.ampproject.org/viewer/; object-src 'none'; style-src 'unsafe-inline' https://cdn.ampproject.org/rtv/ https://cdn.materialdesignicons.com https://cloud.typography.com https://fast.fonts.net https://fonts.googleapis.com https://maxcdn.bootstrapcdn.com https://p.typekit.net https://pro.fontawesome.com https://use.fontawesome.com https://use.typekit.net; report-uri https://csp.withgoogle.com/csp/amp
Accept-Ranges:
bytes
Expires:
Mon, 27 Jul 2020 13:34:49 GMT
Vary:
Accept-Encoding
Server:
sffe
ETag:
"de1b2c64b6dca720"
Cache-Control:
private, max-age=604800, stale-while-revalidate=604800
Date:
Mon, 27 Jul 2020 13:34:49 GMT
Access-Control-Allow-Origin:
*
Alt-Svc:
h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Content-Type:
text/javascript
Timing-Allow-Origin:
*
Response Body
(self.AMP=self.AMP||[]).push({n:"amp-iframe",v:"2007102309001",f:(function(AMP,_){ var m,aa="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b};function ba(a){for(var b=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global],c=0;c<b.length;++c){var d=b[c];if(d&&d.Math==Math)return}(function(){throw Error("Cannot find global object");})()}ba(this);"function"===typeof Symbol&&Symbol("x");var n; if("function"==typeof Object.setPrototypeOf)n=Object.setPrototypeOf;else{var q;a:{var ca={a:!0},r={};try{r.__proto__=ca;q=r.a;break a}catch(a){}q=!1}n=q?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var u=n,v;function w(){return v?v:v=Promise.resolve(void 0)};function da(a,b){b=void 0===b?"":b;try{return decodeURIComponent(a)}catch(c){return b}};var ea=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;var x=self.AMP_CONFIG||{},fa=("string"==typeof x.cdnProxyRegex?new RegExp(x.cdnProxyRegex):x.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function ha(a){if(!self.document||!self.document.head||self.location&&fa.test(self.location.origin))return null;var b=self.document.head.querySelector('meta[name="'+a+'"]');return b&&b.getAttribute("content")||null} var ia={thirdParty:x.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:x.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:("string"==typeof x.thirdPartyFrameRegex?new RegExp(x.thirdPartyFrameRegex):x.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdn:x.cdnUrl||ha("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:fa,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:x.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:x.betaErrorReportingUrl|| "https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:x.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:x.geoApiUrl||ha("amp-geo-api")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var y=self.__AMP_LOG;function z(){if(!y.user)throw Error("failed to call initLogConstructor");return y.user}function A(){if(y.dev)return y.dev;throw Error("failed to call initLogConstructor");}function B(a,b,c,d,e){z().assert(a,b,c,d,e,void 0,void 0,void 0,void 0,void 0,void 0)};var ja=Object.prototype.hasOwnProperty;function C(a){return a||{}};function D(){this.ga=100;this.O=this.Z=0;this.G=Object.create(null)}D.prototype.has=function(a){return!!this.G[a]};D.prototype.get=function(a){var b=this.G[a];if(b)return b.access=++this.O,b.payload};D.prototype.put=function(a,b){this.has(a)||this.Z++;this.G[a]={payload:b,access:this.O};if(!(this.Z<=this.ga)){A().warn("lru-cache","Trimming LRU cache");a=this.G;var c=this.O+1,d;for(d in a){var e=a[d].access;if(e<c){c=e;var f=d}}void 0!==f&&(delete a[f],this.Z--)}};function ka(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function E(a,b){return b.length>a.length?!1:0==a.lastIndexOf(b,0)};C({c:!0,v:!0,a:!0,ad:!0,action:!0});var F,la; function ma(a){F||(F=self.document.createElement("a"),la=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new D));var b=la,c=F;if(b&&b.has(a))a=b.get(a);else{c.href=a;c.protocol||(c.href=c.href);var d={href:c.href,protocol:c.protocol,host:c.host,hostname:c.hostname,port:"0"==c.port?"":c.port,pathname:c.pathname,search:c.search,hash:c.hash,origin:null};"/"!==d.pathname[0]&&(d.pathname="/"+d.pathname);if("http:"==d.protocol&&80==d.port||"https:"==d.protocol&&443==d.port)d.port="",d.host=d.hostname;d.origin= c.origin&&"null"!=c.origin?c.origin:"data:"!=d.protocol&&d.host?d.protocol+"//"+d.host:d.href;b&&b.put(a,d);a=d}return a};function G(a){if(a.__AMP__EXPERIMENT_TOGGLES)return a.__AMP__EXPERIMENT_TOGGLES;a.__AMP__EXPERIMENT_TOGGLES=Object.create(null);var b=a.__AMP__EXPERIMENT_TOGGLES;if(a.AMP_CONFIG)for(var c in a.AMP_CONFIG){var d=a.AMP_CONFIG[c];"number"===typeof d&&0<=d&&1>=d&&(b[c]=Math.random()<d)}if(a.AMP_CONFIG&&Array.isArray(a.AMP_CONFIG["allow-doc-opt-in"])&&0<a.AMP_CONFIG["allow-doc-opt-in"].length){var e=a.AMP_CONFIG["allow-doc-opt-in"],f=a.document.head.querySelector('meta[name="amp-experiments-opt-in"]'); if(f){var h=f.getAttribute("content").split(",");for(c=0;c<h.length;c++)-1!=e.indexOf(h[c])&&(b[h[c]]=!0)}}Object.assign(b,na(a));if(a.AMP_CONFIG&&Array.isArray(a.AMP_CONFIG["allow-url-opt-in"])&&0<a.AMP_CONFIG["allow-url-opt-in"].length){c=a.AMP_CONFIG["allow-url-opt-in"];var k=a.location.originalHash||a.location.hash;a=Object.create(null);if(k)for(var l;l=ea.exec(k);){var g=da(l[1],l[1]);l=l[2]?da(l[2].replace(/\+/g," "),l[2]):"";a[g]=l}for(k=0;k<c.length;k++)g=a["e-"+c[k]],"1"==g&&(b[c[k]]=!0), "0"==g&&(b[c[k]]=!1)}return b}function na(a){var b="";try{"localStorage"in a&&(b=a.localStorage.getItem("amp-experiment-toggles"))}catch(e){A().warn("EXPERIMENTS","Failed to retrieve experiments from localStorage.")}var c=b?b.split(/\s*,\s*/g):[];a=Object.create(null);for(var d=0;d<c.length;d++)0!=c[d].length&&("-"==c[d][0]?a[c[d].substr(1)]=!1:a[c[d]]=!0);return a};var oa=[{experimentId:"ampdoc-fie",isTrafficEligible:function(){return!0},branches:["21065001","21065002"]}];function H(a,b){var c=a.ownerDocument.defaultView,d=c.__AMP_TOP||(c.__AMP_TOP=c),e=c!=d,f;if(G(d)["ampdoc-fie"]){d.__AMP_EXPERIMENT_BRANCHES=d.__AMP_EXPERIMENT_BRANCHES||{};for(f=0;f<oa.length;f++){var h=oa[f],k=h.experimentId;ja.call(d.__AMP_EXPERIMENT_BRANCHES,k)||(h.isTrafficEligible&&h.isTrafficEligible(d)?!d.__AMP_EXPERIMENT_BRANCHES[k]&&G(d)[k]&&(h=h.branches,d.__AMP_EXPERIMENT_BRANCHES[k]=h[Math.floor(Math.random()*h.length)]||null):d.__AMP_EXPERIMENT_BRANCHES[k]=null)}f="21065002"===(d.__AMP_EXPERIMENT_BRANCHES? d.__AMP_EXPERIMENT_BRANCHES["ampdoc-fie"]:null)}else f=!1;var l=f;e&&!l?b=I(c,b)?J(c,b):null:(a=K(a),a=pa(a),b=I(a,b)?J(a,b):null);return b}function L(a,b){a=a.__AMP_TOP||(a.__AMP_TOP=a);return J(a,b)}function qa(a,b){var c=K(a);c=pa(c);return J(c,b)}function K(a){return a.nodeType?L((a.ownerDocument||a).defaultView,"ampdoc").getAmpDoc(a):a}function pa(a){a=K(a);return a.isSingleDoc()?a.win:a} function J(a,b){I(a,b);var c=a.__AMP_SERVICES;c||(c=a.__AMP_SERVICES={});a=c[b];a.obj||(a.obj=new a.ctor(a.context),a.ctor=null,a.context=null,a.resolve&&a.resolve(a.obj));return a.obj}function I(a,b){a=a.__AMP_SERVICES&&a.__AMP_SERVICES[b];return!(!a||!a.ctor&&!a.obj)};/* https://mths.be/cssescape v1.5.1 by @mathias | MIT license */ function ra(a,b){for(;a&&void 0!==a;a=a.parentElement)if(b(a))return a;return null}function sa(a){return a.closest?a.closest(".i-amphtml-overlay"):ra(a,function(a){var b=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector;return b?b.call(a,".i-amphtml-overlay"):!1})};function M(a,b){var c=this;this.ea=L(a,"timer");this.ka=b;this.ha=0;this.F=-1;this.W=0;this.X=!1;this.fa=function(){c.F=-1;c.W=0;c.X=!0;c.ka();c.X=!1}}M.prototype.isPending=function(){return-1!=this.F};M.prototype.schedule=function(a){var b=a||this.ha;this.X&&10>b&&(b=10);var c=Date.now()+b;return!this.isPending()||-10>c-this.W?(this.cancel(),this.W=c,this.F=this.ea.delay(this.fa,b),!0):!1};M.prototype.cancel=function(){this.isPending()&&(this.ea.cancel(this.F),this.F=-1)};var N;function ta(a,b){var c=a,d=b;var e=function(a){try{return d(a)}catch(k){throw self.__AMP_REPORT_ERROR(k),k;}};var f=ua();c.addEventListener("message",e,f?void 0:!1);return function(){c&&c.removeEventListener("message",e,f?void 0:!1);e=c=d=null}}function ua(){if(void 0!==N)return N;N=!1;try{var a={get capture(){N=!0}};self.addEventListener("test-options",null,a);self.removeEventListener("test-options",null,a)}catch(b){}return N};function va(a,b){try{return JSON.parse(a)}catch(c){return b&&b(c),null}};function wa(a){if(!xa(a))return null;var b=a.indexOf("{");try{return JSON.parse(a.substr(b))}catch(c){return A().error("MESSAGING","Failed to parse message: "+a,c),null}}function xa(a){return"string"==typeof a&&0==a.indexOf("amp-")&&-1!=a.indexOf("{")};function ya(a,b){return ta(a,b)};function za(a,b){for(var c=[],d=0,e=0;e<a.length;e++){var f=a[e];b(f,e,a)?c.push(f):(d<e&&(a[d]=f),d++)}d<a.length&&(a.length=d)};var O,Aa="Webkit webkit Moz moz ms O o".split(" ");function Ba(a,b){var c=a.style;if(E("zIndex","--"))c="zIndex";else{O||(O=Object.create(null));var d=O.zIndex;if(!d){d="zIndex";if(void 0===c.zIndex){var e;b:{for(e=0;e<Aa.length;e++){var f=Aa[e]+"ZIndex";if(void 0!==c[f]){e=f;break b}}e=""}void 0!==c[e]&&(d=e)}O.zIndex=d}c=d}c&&(E(c,"--")?a.style.setProperty(c,b):a.style[c]=b)}function Ca(a,b){void 0===b&&(b=a.hasAttribute("hidden"));b?a.removeAttribute("hidden"):a.setAttribute("hidden","")};function Da(a,b,c){var d=a.listeningFors;!d&&c&&(d=a.listeningFors=Object.create(null));a=d||null;if(!a)return a;var e=a[b];!e&&c&&(e=a[b]=[]);return e||null}function Ea(a,b,c){var d=c?b.getAttribute("data-amp-3p-sentinel"):"amp";a=Da(a,d,!0);for(d=0;d<a.length;d++){var e=a[d];if(e.frame===b){var f=e;break}}f||(f={frame:b,events:Object.create(null)},a.push(f));return f.events} function Fa(a){for(var b=C({sentinel:"unlisten"}),c=a.length-1;0<=c;c--){var d=a[c];if(!d.frame.contentWindow){a.splice(c,1);var e=d.events,f;for(f in e)e[f].splice(0,Infinity).forEach(function(a){a(b)})}}} function Ga(a){a.listeningFors||a.addEventListener("message",function(b){if(b.data){var c=Ha(b.data);if(c&&c.sentinel){var d=b.source;var e=Da(a,c.sentinel);if(e){for(var f,h=0;h<e.length;h++){var k=e[h],l=k.frame.contentWindow;if(l){var g;if(!(g=d==l))b:{for(g=d;g&&g!=g.parent;g=g.parent)if(g==l){g=!0;break b}g=!1}if(g){f=k;break}}else setTimeout(Fa,0,e)}d=f?f.events:null}else d=e;var p=d;if(p){var t=p[c.type];if(t)for(t=t.slice(),d=0;d<t.length;d++)(0,t[d])(c,b.source,b.origin,b)}}}})} function P(a,b,c,d,e,f){function h(b,d,h,g){if("amp"==b.sentinel){if(d!=a.contentWindow)return;var k="null"==h&&f;if(l!=h&&!k)return}if(e||d==a.contentWindow)"unlisten"==b.sentinel?p():c(b,d,h,g)}var k=a.ownerDocument.defaultView;Ga(k);d=Ea(k,a,d);var l=ma(a.src).origin,g=d[b]||(d[b]=[]),p;g.push(h);return p=function(){if(h){var a=g.indexOf(h);-1<a&&g.splice(a,1);c=g=h=null}}} function Ia(a,b,c,d,e){if(a.contentWindow)for(d.type=c,d.sentinel=e?a.getAttribute("data-amp-3p-sentinel"):"amp",a=d,e&&(a="amp-"+JSON.stringify(d)),d=0;d<b.length;d++)e=b[d],e.win.postMessage(a,e.origin)}function Ha(a){"string"==typeof a&&(a="{"==a.charAt(0)?va(a,function(a){A().warn("IFRAME-HELPER","Postmessage could not be parsed. Is it in a valid JSON format?",a)})||null:xa(a)?wa(a):null);return a} function Q(a,b){var c=this;this.h=a;this.S=!1;this.B=[];this.ma=P(this.h,"send-intersections",function(a,e,f){c.B.some(function(a){return a.win==e})||c.B.push({win:e,origin:f});b(a,e,f)},this.S,this.S)}Q.prototype.send=function(a,b){za(this.B,function(a){return!a.win.parent});Ia(this.h,this.B,a,b,this.S)};Q.prototype.destroy=function(){this.ma();this.B.length=0};var R=[[300,250],[320,50],[300,50],[320,100]]; function Ja(a){var b=(a.getAttribute("allow")||"").trim();a.setAttribute("allow","execution-while-not-rendered 'none';"+b)};function S(a,b,c,d){return{left:a,top:b,width:c,height:d,bottom:b+d,right:a+c,x:a,y:b}}function Ka(a){for(var b=-Infinity,c=Infinity,d=-Infinity,e=Infinity,f=0;f<arguments.length;f++){var h=arguments[f];if(h&&(b=Math.max(b,h.left),c=Math.min(c,h.left+h.width),d=Math.max(d,h.top),e=Math.min(e,h.top+h.height),c<b||e<d))return null}return Infinity==c?null:S(b,d,c-b,e-d)}function T(a,b,c){return 0==b&&0==c||0==a.width&&0==a.height?a:S(a.left+b,a.top+c,a.width,a.height)};var La=[0,.05,.1,.15,.2,.25,.3,.35,.4,.45,.5,.55,.6,.65,.7,.75,.8,.85,.9,.95,1],Ma=Date.now();function U(a,b){var c=this;this.P=a;this.o=null;this.U=this.Y=!1;this.L=null;this.N=a.getViewport();this.$=new Q(b,function(){Na(c)});this.o=new Oa(function(a){for(var b=0;b<a.length;b++)delete a[b].target;c.$.send("intersection",C({changes:a}))});this.o.tick(this.N.getRect());this.fire=function(){c.Y&&c.U&&c.o.tick(c.N.getRect())}} function Na(a){a.Y=!0;a.o.observe(a.P.element);a.P.getVsync().measure(function(){a.U=a.P.isInViewport();a.fire()});var b=a.N.onScroll(a.fire),c=a.N.onChanged(a.fire);a.L=function(){b();c()}}U.prototype.onViewportCallback=function(a){this.U=a};U.prototype.destroy=function(){this.Y=!1;this.o.disconnect();this.o=null;this.L&&(this.L(),this.L=null);this.$.destroy();this.$=null}; function Oa(a){var b={threshold:La};this.ba=a;var c=b&&b.threshold;c=c?Array.isArray(c)?c:[c]:[0];for(a=0;a<c.length;a++){var d=c[a];"number"===typeof d&&isFinite(d)}this.la=c.sort();this.V=null;this.j=[];this.w=this.C=null}m=Oa.prototype;m.disconnect=function(){this.j.length=0;Pa(this)}; m.observe=function(a){for(var b=0;b<this.j.length;b++)if(this.j[b].element===a){A().warn("INTERSECTION-OBSERVER","should observe same element once");return}var c={element:a,currentThresholdSlot:0};this.V&&(b=Qa(this,c,this.V))&&this.ba([b]);b=K(a);b.win.MutationObserver&&!this.C&&(this.w=new M(b.win,this.ja.bind(this,a)),this.C=H(a,"hidden-observer").add(this.ia.bind(this)));this.j.push(c)}; m.unobserve=function(a){for(var b=0;b<this.j.length;b++)if(this.j[b].element===a){this.j.splice(b,1);0>=this.j.length&&Pa(this);return}A().warn("INTERSECTION-OBSERVER","unobserve non-observed element")};m.tick=function(a){this.V=a;for(var b=[],c=0;c<this.j.length;c++){var d=Qa(this,this.j[c],a);d&&b.push(d)}b.length&&this.ba(b)}; function Qa(a,b,c){var d=b.element,e=d.getLayoutBox(),f=d.getOwner(),h=f&&f.getLayoutBox(),k=Ka(e,h,c)||S(0,0,0,0);f=k.width*k.height;var l=e.width*e.height;f=0===l?0:f/l;a=a.la;l=0;var g=a.length;if(0==f)a=0;else{for(var p=(l+g)/2|0;l<p;)f<a[p]?g=p:l=p,p=(l+g)/2|0;a=g}var t=a;if(t==b.currentThresholdSlot)return null;b.currentThresholdSlot=t;a=k;l=e;if(g=c)a=T(a,-c.left,-c.top),l=T(l,-c.left,-c.top),g=T(g,-c.left,-c.top);return{time:"undefined"!==typeof performance&&performance.now?performance.now(): Date.now()-Ma,rootBounds:g,boundingClientRect:l,intersectionRect:a,intersectionRatio:f,target:d}}m.ia=function(){this.w.isPending()||this.w.schedule(16)};m.ja=function(a){var b=this,c=qa(a,"viewport");qa(a,"resources").onNextPass(function(){b.tick(c.getRect())})};function Pa(a){a.C&&a.C();a.C=null;a.w&&a.w.cancel();a.w=null};var Ra={"AMP-FX-FLYING-CARPET":!0,"AMP-LIGHTBOX":!0,"AMP-STICKY-AD":!0,"AMP-LIGHTBOX-GALLERY":!0};var Sa="allowfullscreen allowpaymentrequest allowtransparency allow frameborder referrerpolicy scrolling tabindex title".split(" "),Ta=0;function V(a){a=AMP.BaseElement.call(this,a)||this;a.K=null;a.I=!1;a.T=!1;a.D=!1;a.da=!1;a.R=null;a.h=null;a.J=!1;a.l=null;a.A="";a.M=null;a.iframeSrc=null;a.H=null;a.m=null;a.ca=!1;return a}var W=AMP.BaseElement;V.prototype=aa(W.prototype);V.prototype.constructor=V; if(u)u(V,W);else for(var X in W)if("prototype"!=X)if(Object.defineProperties){var Ua=Object.getOwnPropertyDescriptor(W,X);Ua&&Object.defineProperty(V,X,Ua)}else V[X]=W[X];V.oa=W.prototype;m=V.prototype;m.isLayoutSupported=function(a){return"fixed"==a||"fixed-height"==a||"responsive"==a||"fill"==a||"flex-item"==a||"fluid"==a||"intrinsic"==a}; function Va(a,b,c){var d=window.location.href;c=void 0===c?"":c;a=a.element;var e=H(a,"url"),f=e.parse(b),h=f.hostname,k=f.protocol;f=f.origin;B(e.isSecure(b)||"data:"==k,"Invalid <amp-iframe> src. Must start with https://. Found %s",a);var l=e.parse(d);B(!/\sallow-same-origin\s/i.test(" "+c+" ")||f!=l.origin&&"data:"!=k,"Origin of <amp-iframe> must not be equal to container %sif allow-same-origin is set. See https://github.com/ampproject/amphtml/blob/master/spec/amp-iframe-origin-policy.md for details.", a);B(!(ka(h,"."+ia.thirdPartyFrameHost)||ka(h,".ampproject.org")),"amp-iframe does not allow embedding of frames from ampproject.*: %s",b);return b} function Wa(a){var b=a.element.getLayoutBox(),c=Math.min(600,.75*a.getViewport().getSize().height);B(b.top>=c,"<amp-iframe> elements must be positioned outside the first 75% of the viewport or 600px from the top (whichever is smaller): %s Current position %s. Min: %sPositioning rules don't apply for iframes that use `placeholder`.See https://github.com/ampproject/amphtml/blob/master/extensions/amp-iframe/amp-iframe.md#iframe-with-placeholder for details.",a.element,b.top,c)} function Xa(a,b){if(b){a=H(a.element,"url").parse(b);var c=a.hash;"data:"==a.protocol||c&&"#"!=c||(a=b.indexOf("#"),b=(-1==a?b:b.substring(0,a))+"#amp=1");return b}} m.firstAttachedCallback=function(){this.A=this.element.getAttribute("sandbox");var a;if(!(a=Xa(this,this.element.getAttribute("src"))))if(a=this.element.getAttribute("srcdoc")){B(!(" "+this.A+" ").match(/\s+allow-same-origin\s+/i),"allow-same-origin is not allowed with the srcdoc attribute %s.",this.element);if("undefined"!==typeof TextEncoder)var b=(new TextEncoder("utf-8")).encode(a);else{a=unescape(encodeURIComponent(a));b=new Uint8Array(a.length);for(var c=0;c<a.length;c++){var d=a.charCodeAt(c); b[c]=d}}a=btoa;c=Array(b.length);for(d=0;d<b.length;d++)c[d]=String.fromCharCode(b[d]);b=c.join("");a="data:text/html;charset=utf-8;base64,"+a(b)}else a=void 0;this.iframeSrc=Va(this,a,this.A)};m.preconnectCallback=function(a){this.iframeSrc&&L(this.win,"preconnect").url(this.getAmpDoc(),this.iframeSrc,a)}; m.buildCallback=function(){this.K=this.getPlaceholder();this.I=!!this.K;(this.J=this.element.hasAttribute("resizable"))&&this.element.setAttribute("scrolling","no");this.element.hasAttribute("frameborder")||this.element.setAttribute("frameborder","0");var a=this.element;if("no"!=a.getAttribute("scrolling")){var b=a.ownerDocument.createElement("i-amphtml-scroll-container");a.appendChild(b);a=b}this.H=a;Ya(this)}; m.onLayoutMeasure=function(){Za(this);var a=this.element;a:{var b=a.getLayoutBox();var c=b.height;b=b.width;for(var d=0;d<R.length;d++){var e=R[d][0],f=R[d][1];if(!(f>c||e>b)&&20>=c-f&&20>=b-e){c=!0;break a}}c=!1}this.T=c;c=this.element;b=c.getLayoutBox();this.D=10<b.width||10<b.height?!1:!sa(c);if(c=this.T){c=this.win;b=!1;d=0;do Ra[a.tagName]?(d++,b=!1):(e=(c.getComputedStyle(a)||Object.create(null)).position,"fixed"!=e&&"sticky"!=e||(b=!0)),a=a.parentElement;while(a&&"BODY"!=a.tagName);c=!(!b&& 1>=d)}this.da=c;this.l&&this.l.fire()};function Za(a){if(a.h){var b=a.getViewport().getLayoutRect(a.h),c=a.getLayoutBox();a.R=T(b,-c.left,-c.top)}}m.getIntersectionElementLayoutBox=function(){if(!this.h)return AMP.BaseElement.prototype.getIntersectionElementLayoutBox.call(this);var a=this.getLayoutBox();this.R||Za(this);return T(this.R,a.left,a.top)}; m.layoutCallback=function(){var a=this;B(!this.da,"amp-iframe is not used for displaying fixed ad. Please use amp-sticky-ad and amp-ad instead.");this.I||Wa(this);this.J&&B(this.getOverflowElement(),"Overflow element must be defined for resizable frames: %s",this.element);if(!this.iframeSrc)return w();if(this.D&&!this.getAmpDoc().registerSingleton(1))return console.error("Only 1 analytics/tracking iframe allowed per page. Please use amp-analytics instead or file a GitHub issue for your use case: https://github.com/ampproject/amphtml/issues/new"), w();var b=this.element.ownerDocument.createElement("iframe");this.h=b;this.applyFillContent(b);b.name="amp_iframe"+Ta++;this.I&&Ba(b,-1);this.propagateAttributes(Sa,b);var c=b.getAttribute("allow")||"";c=c.replace("autoplay","autoplay-disabled");b.setAttribute("allow",c);b.setAttribute("sandbox",this.A||"");G(this.win)["pausable-iframe"]&&Ja(this.h);b.src=this.iframeSrc;this.D||(this.l=new U(this,b));b.onload=function(){b.readyState="complete";a.aa();a.D&&(a.iframeSrc=null,L(a.win,"timer").promise(5E3).then(function(){b.parentElement&& b.parentElement.removeChild(b);a.element.setAttribute("amp-removed","");a.h=null}))};P(b,"embed-size",function(b){Y(a,b.height,b.width)},void 0,void 0,!0);this.M=ya(this.win,function(b){if(a.h&&b.source===a.h.contentWindow&&(b=b.data,"string"===typeof b&&E(b,"pym"))){var c=b.split(/xPYMx/);"height"===c[2]?Y(a,parseInt(c[3],10),void 0):"width"===c[2]?Y(a,void 0,parseInt(c[3],10)):z().warn("amp-iframe","Unsupported Pym.js message: "+b)}});this.I&&P(b,"embed-ready",this.aa.bind(this));this.H.appendChild(b); return this.loadPromise(b).then(function(){a.H!=a.element&&L(a.win,"timer").delay(function(){a.mutateElement(function(){a.H.classList.add("amp-active")})},1E3)})};m.unlayoutOnPause=function(){return!Z(this)};m.pauseCallback=function(){Z(this)&&Ca(this.h,!1)};m.resumeCallback=function(){Z(this)&&Ca(this.h,!0)}; function Z(a){var b;if(b=!!G(a.win)["pausable-iframe"]&&!!a.h)a=a.h,b=!!a.featurePolicy&&-1!=a.featurePolicy.features().indexOf("execution-while-not-rendered")&&!a.featurePolicy.allowsFeature("execution-while-not-rendered");return b}m.unlayoutCallback=function(){this.M&&(this.M(),this.M=null);if(this.h){var a=this.h;a.parentElement&&a.parentElement.removeChild(a);this.K&&this.togglePlaceholder(!0);this.h=null;this.l&&(this.l.destroy(),this.l=null)}return!0};m.viewportCallback=function(a){if(this.l)this.l.onViewportCallback(a)}; m.getLayoutPriority=function(){return this.T?2:this.D?1:AMP.BaseElement.prototype.getLayoutPriority.call(this)};m.mutatedAttributesCallback=function(a){var b=a.src;void 0!==b&&(this.iframeSrc=Xa(this,b),this.h&&(this.h.src=Va(this,this.iframeSrc,this.A)));this.h&&a.title&&this.propagateAttributes(["title"],this.h)};m.aa=function(){var a=this;this.K&&this.getVsync().mutate(function(){a.h&&(Ba(a.h,0),a.togglePlaceholder(!1))})};m.firstLayoutCompleted=function(){}; m.throwIfCannotNavigate=function(){if(!/\sallow-top-navigation\s/i.test(" "+this.A+" "))throw z().createError('"AMP.navigateTo" is only allowed on <amp-iframe> when its "sandbox" attribute contains "allow-top-navigation".');}; function Y(a,b,c){if(a.J)if(100>b)a.user().error("amp-iframe","Ignoring embed-size request because the resize height is less than 100px. If you are using amp-iframe to display ads, consider using amp-ad instead.",a.element);else{var d,e;b=parseInt(b,10);isNaN(b)||(d=Math.max(b+(a.element.offsetHeight-a.h.offsetHeight),b));c=parseInt(c,10);isNaN(c)||(e=Math.max(c+(a.element.offsetWidth-a.h.offsetWidth),c));void 0!==d||void 0!==e?a.attemptChangeSize(d,e).then(function(){void 0!==d&&a.element.setAttribute("height", d);void 0!==e&&a.element.setAttribute("width",e)},function(){}):a.user().error("amp-iframe","Ignoring embed-size request because no width or height value is provided",a.element)}else a.ca||(a.user().error("amp-iframe","Ignoring embed-size request because this iframe is not resizable",a.element),a.ca=!0)} function Ya(a){if(G(a.win)["iframe-messaging"]){var b=a.element,c=b.getAttribute("src");c&&(a.m=H(b,"url").parse(c).origin);a.registerAction("postMessage",function(b){a.m?a.h.contentWindow.postMessage(b.args,a.m):z().error("amp-iframe",'"postMessage" action is only allowed with "src"attribute with an origin.')});if(a.m){var d=0,e=function(b){if(b.source===a.h.contentWindow)if(b.origin!==a.m)z().error("amp-iframe",'"message" received from unexpected origin: '+b.origin+". Only allowed from: "+a.m); else{if(a.getAmpDoc().getRootNode().activeElement!==a.h)var c=!1;else c=a.win.document.createElement("audio"),c.play(),c=c.paused?!1:!0;if(c){var f=b.data;try{var l=JSON.parse(JSON.stringify(f))}catch(p){z().error("amp-iframe",'Data from "message" event must be JSON.');return}var g=a.win;b=C({data:l});c={detail:b};Object.assign(c,void 0);"function"==typeof g.CustomEvent?b=new g.CustomEvent("amp-iframe:message",c):(g=g.document.createEvent("CustomEvent"),g.initCustomEvent("amp-iframe:message",!!c.bubbles, !!c.cancelable,b),b=g);H(a.element,"action").trigger(a.element,"message",b,3)}else d++,z().error("amp-iframe",'"message" event may only be triggered from a user gesture.'),10<=d&&(z().error("amp-iframe",'Too many non-gesture-triggered "message" events; detaching event listener.'),a.win.removeEventListener("message",e))}};a.win.addEventListener("message",e)}}}m.na=function(a){this.m=a};(function(a){a.registerElement("amp-iframe",V)})(self.AMP); })}); //# sourceMappingURL=amp-iframe-0.1.js.map
Measurement UID
0120200727d9c69675d17bf0b11424fea6eced11
Report ID
20200727T124454Z_AS206065_8jCf6zYTu1AFntaebfTSLP56QiG5l6elr18gT0KLY8YGNiWqH3
Platform
android
Software Name
ooniprobe-android (2.5.1)
Measurement Engine
libmeasurement_kit (0.10.11)
Raw Measurement Data
Loading…