From 8c543c4065eecccf34f5d9184a7c0d9cddb0aad8 Mon Sep 17 00:00:00 2001 From: Elbert Alias Date: Sat, 11 Mar 2017 10:34:24 +1100 Subject: [PATCH] Fix for issue #1407 --- src/utils/iframe.js | 6 ++++-- src/utils/network.js | 24 ++++++++++++++++++++++-- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/src/utils/iframe.js b/src/utils/iframe.js index 2322b509f..64e2c20e4 100644 --- a/src/utils/iframe.js +++ b/src/utils/iframe.js @@ -150,7 +150,7 @@ var exports = {}; video_assets: opt_video_assets, assets: opt_assets, version: '3', - mrev: '5dacb94-c', + mrev: '9efbfba-c', msgNum: this.msgNum, timestamp: new Date().getTime(), pageVis: document.visibilityState, @@ -859,7 +859,7 @@ var exports = {}; var _pageTags; var INIT_MS_BW_SEARCHES = 2000; var PAGE_TAG_RE = new RegExp('gpt|oascentral'); - var POST_MSG_ID = '1484952787-11883-24071-12354-1549'; + var POST_MSG_ID = '1488911709-15415-26289-19282-15751'; var AD_SERVER_RE = new RegExp('^(google_ads_iframe|oas_frame|atwAdFrame)'); function getPageTags(doc) { @@ -1009,6 +1009,8 @@ var exports = {}; delete adData.postMessageId; + event.stopImmediatePropagation(); + if ( isChildWin(myWin, ifrWin) ) { if ( exports.utils.isFriendlyWindow(ifrWin) ) { ifrTag = ifrWin.frameElement; diff --git a/src/utils/network.js b/src/utils/network.js index 933c59fe7..944db09c2 100644 --- a/src/utils/network.js +++ b/src/utils/network.js @@ -22,11 +22,27 @@ var topVideoAssetDomains = [ '2mdn.net', + 'adap.tv', + 'adnxs.com', + 'adsrvr.org', + 'btrll.com', + 'celtra.com', + 'flashtalking.com', + 'flite.com', 'innovid.com', + 'jivox.com', + 'mixpo.com', + 'nytimes.com', + 'playwire.com', + 'selectmedia.asia', 'serving-sys.com', - 'btrll.com', + 'solvemedia.com', + 'spotible.com', 'teads.tv', - 'tubemogul.com' + 'tribalfusion.com', + 'tubemogul.com', + 'videologygroup.com', + 'washingtonpost.com' ]; if ( !String.prototype.endsWith ) { @@ -484,6 +500,10 @@ var hasVpaidOrVastRequest = tagRequests.some(function(tagRequest) { return isVpaidOrVastRequest(tagRequest); }); + + if ( assetRequest.isYoutubeAd ) { + return true; + } if ( hasVpaidOrVastRequest ) { return true; }