Skip to content

Commit

Permalink
Don't allow other fast fetch impls to import doubleclick or adsense i…
Browse files Browse the repository at this point in the history
…mpls. (#12101)

* Don't allow anyone, for any reason, ever, no matter who, no matter who you are with, to extend doubleclick impl or adsense impl

* Don't let any files depend
  • Loading branch information
bradfrizzell authored and Barb Paduch committed Dec 6, 2017
1 parent cd23566 commit 97072fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build-system/dep-check-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,11 @@ exports.rules = [
'src/iframe-helper.js',
],
},

{
mustNotDependOn: [
'extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js',
'extensions/amp-ad-network-adsense-impl/0.1/amp-ad-network-adsense-impl.js',
],
},
];
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export function resetSharedState() {
sharedState.reset();
}

/** @final */
export class AmpAdNetworkAdsenseImpl extends AmpA4A {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ function fluidMessageListener_(event) {
listener.instance.receiveMessageForFluid_(payload);
}

/** @final */
export class AmpAdNetworkDoubleclickImpl extends AmpA4A {

/**
Expand Down

0 comments on commit 97072fb

Please sign in to comment.