Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1630 commits
Select commit Hold shift + click to select a range
85db423
Change amp-accordion header aria-role for accessibility on iOS. (#12514)
kristoferbaxter Dec 21, 2017
171e033
root process path is different somehow because of #12472 (#12574)
erwinmombay Dec 21, 2017
17bf244
Small Refactor. Move code into SetDescendantConstraintList. (#12573)
Gregable Dec 21, 2017
0d4592d
More desktop UI fixes (#12546)
prateekbh Dec 21, 2017
f09b1ed
Re-sort validator errors when we reach the end of the document. (#12577)
Gregable Dec 21, 2017
c11d6b7
Minor refactor and formatting (#12576)
jasonpang Dec 21, 2017
120297f
Update 'yarn add' instructions (#12572)
rsimha Dec 21, 2017
a306469
Disallow any future depends on doubleclick by dep-check (#12592)
bradfrizzell Dec 22, 2017
4219785
Run ava tests for runtime changes (#12575)
rsimha Dec 22, 2017
3097468
amp-sidebar - remove experimental v 1.0, all features already merged …
aghassemi Dec 22, 2017
406f163
Guards all uses of onTriggerObservable until we can figure out more d…
jonkeller Dec 22, 2017
81ea0b0
Pass publisher domain in the medianet ad's url (#12589)
monish-chhadwa Dec 22, 2017
def37b9
Remove some launched experiments (#12588)
aghassemi Dec 22, 2017
389a087
amp-sidebar: update docs (#12595)
aghassemi Dec 22, 2017
54ce3a3
Revert "Remove some launched experiments" (#12599)
aghassemi Dec 22, 2017
502405f
Doubleclick Fast Fetch gct parameter (#12594)
keithwrightbos Dec 23, 2017
3700855
Never show landscape warning on desktop (#12609)
alanorozco Dec 31, 2017
3485716
Update toast styling (#12608)
alanorozco Dec 31, 2017
bde8583
Decrease swipe sensitivity for hint overlay (#12596)
prateekbh Jan 1, 2018
14cf9a5
Ensure node_modules is up to date before gulp [default | css | build …
rsimha Jan 2, 2018
a12002f
Add documentation for social sharing configuration (#12605)
alanorozco Jan 2, 2018
bac7583
Use correct JSON-LD field for story title (#12624)
alanorozco Jan 2, 2018
da715d0
Calculates animation rectangles without applying scaling transformati…
alanorozco Jan 2, 2018
240cd95
Progress bar styling fixes (#12630)
alanorozco Jan 2, 2018
84ad4aa
Inabox array clear (#12535)
keithwrightbos Jan 2, 2018
298355f
Fix attribute for tall for amp-pinterest (#12631)
Jan 2, 2018
c7592f4
Fix selector specificity for distance (#12632)
alanorozco Jan 3, 2018
b813631
update README.md typo (#12640)
Jan 3, 2018
b7a6e5f
Validator Rollup - pick up some test file changes (#12646)
Gregable Jan 3, 2018
694a00e
AMP Layers (#11830)
jridgewell Jan 3, 2018
3b35d5f
Update validator release changelog. (#12647)
Gregable Jan 3, 2018
50e3e0c
Implement getCustomRealTimeConfigMacros for Doubleclick Fast Fetch (#…
bradfrizzell Jan 3, 2018
c29f764
Render validator test case output inline. (#12648)
Gregable Jan 3, 2018
1374f81
Layers: Implement Disposable interface (#12653)
jridgewell Jan 3, 2018
0826b9d
Prevent unbounded accumulated error messages (#12585)
jridgewell Jan 3, 2018
de3aaae
fix (#12657)
zhouyx Jan 3, 2018
903ab55
Refactor pagination buttons and change based on navigation state (#12…
alanorozco Jan 4, 2018
323b147
Polish and optimize desktop background (#12629)
alanorozco Jan 4, 2018
9b54f40
Fix commas (#12660)
jonkeller Jan 4, 2018
5b22c0d
Move react-dates from devDependencies to dependencies (#12571)
rsimha Jan 4, 2018
2c2a909
amp-gwd-animation: Fix timeline-event-prefix attribute validator rule…
sklobovskaya Jan 4, 2018
6ae1f95
Change default user logging level of AMP runtime from `OFF` to `WARN`…
rsimha Jan 4, 2018
d2541e1
Add class bindings support for SVG tags (#12643)
tbaik Jan 4, 2018
bac0204
Write prod config and enable local dev for gulp watch (#12665)
rsimha Jan 4, 2018
fec7c1d
rotate bug fix (#12642)
prateekbh Jan 4, 2018
e98911b
no forced repaint on ipad (#12658)
prateekbh Jan 4, 2018
561ce50
Speaker fix (#12611)
prateekbh Jan 4, 2018
9b806d2
Update amp-image-lightbox default object-fit and zoom upper bound for…
cathyxz Jan 4, 2018
0ac36a8
Simplify isLocalDev logic in mode.js (#12667)
rsimha Jan 5, 2018
8f0c738
Fix name mangling bug. Update react-dates build. (#12672)
cvializ Jan 5, 2018
21f610c
Updates Refresh's network-level docs (#12013)
glevitzky Jan 5, 2018
812f244
Don't load responsive ad if tag height is not AdSense whitelisted hei…
noranazmy Jan 5, 2018
71a2b75
Change education hint for no previous page and remove text from educa…
prateekbh Jan 5, 2018
d8adb1a
Use simple a11y class and offset. (#12488)
cvializ Jan 5, 2018
0f14dde
Fix ads served from non-localhost servers (#12673)
rsimha Jan 5, 2018
15a4d2a
Eliminate the use of String.padStart() (#12681)
rsimha Jan 6, 2018
80ec23b
Eliminate the use of Object.values() (#12686)
rsimha Jan 7, 2018
e066f2c
Changes warning to error (#12678)
jonkeller Jan 8, 2018
2b41e6c
Register medianet as a vendor for doubleclick RTC (#12676)
monish-chhadwa Jan 8, 2018
adc0086
Copy title attribute from component tag to iframe (#12617)
jamesshannon Jan 8, 2018
434ff89
use dev().error to report (#12684)
zhouyx Jan 8, 2018
51fba4a
allow copyright 2018 (#12700)
calebcordry Jan 8, 2018
6a03788
Changes to the new status label (#12492)
mrjoro Jan 8, 2018
effd74f
change to new "Status Update" label (#12491)
mrjoro Jan 8, 2018
2d1c22e
Don't rewrite values of binding attributes in sanitizer.js (#12688)
Jan 8, 2018
0396583
Fix several amp-list/amp-bind interaction bugs (#12687)
Jan 8, 2018
b9583d5
Don't load full-width responsive ad if tag width is not 100vw (#12695)
noranazmy Jan 8, 2018
d04f067
cron job from @erwinmombay to update size.txt and size.csv (#12606)
donttrustthisbot Jan 8, 2018
a1d0b5b
Write AMP_CONFIG to 3p frame to enable local development (#12703)
rsimha Jan 8, 2018
9421144
cron job from @erwinmombay to update size.txt and size.csv (#12709)
donttrustthisbot Jan 8, 2018
9c45daf
Validator rollup (#12704)
Gregable Jan 8, 2018
a5696c6
Allow pr-check.js to be run locally (#12711)
rsimha Jan 8, 2018
e1bbe9a
Exclude generated dirs in validator/webui from presubmit checks (#12714)
rsimha Jan 8, 2018
09d098e
Update refresh doc to reflect full launch. (#12718)
glevitzky Jan 9, 2018
957b169
Initial set up for greenkeeper-lockfile (#12683)
rsimha Jan 9, 2018
a3c6cfc
Update dependencies to enable Greenkeeper 🌴 (#12679)
greenkeeper[bot] Jan 9, 2018
9da1a0e
Remove breaking width check in 3p path (#12722)
noranazmy Jan 9, 2018
3e9d661
Update yarn.lock (#12720)
rsimha Jan 9, 2018
bf15c90
Long task warn to err (#12705)
jonkeller Jan 9, 2018
df2e317
Prevent locking orientation from blocking rendering on error (#12662)
alanorozco Jan 9, 2018
5070512
Remove color section from WhatsApp icon (#12627)
alanorozco Jan 9, 2018
6eb62d4
Add a wrapper 'gulp pr-check' task for pr-check.js (#12715)
rsimha Jan 9, 2018
3159d5a
Update GH_TOKEN for greenkeeper (#12732)
rsimha Jan 9, 2018
746b00d
Set of amp-story bookend fixes (#12661)
alanorozco Jan 9, 2018
9afbd5c
Validator Chrome Extension: handle AMP Validator JavaScript not loadi…
honeybadgerdontcare Jan 9, 2018
b5c44c1
Add TGT macro for targeting data in json (#12707)
bradfrizzell Jan 9, 2018
d00aa0a
Remove phantomjs-prebuilt from dev deps (#12737)
rsimha Jan 9, 2018
b7aee57
remove experimental flags (#12735)
zhouyx Jan 9, 2018
570d77f
Add canonicalOrigin support to the CID API. (#12716)
lannka Jan 9, 2018
b9d3d44
Apply the contents of the "ads." file as update to ads.html, as inten…
powdercloud Jan 9, 2018
f662c54
Extract publisher domain from canonical url (#12694)
monish-chhadwa Jan 9, 2018
66cbc20
Add tests for dates-list.js (#12701)
cvializ Jan 9, 2018
5c5c7aa
check for parentElement for sandbox analytics (#12746)
zhouyx Jan 10, 2018
f30f5ce
Add a version check + warning for node (#12745)
rsimha Jan 10, 2018
8e7adce
Factor-out scrolling logic and styling for share widget (#12628)
alanorozco Jan 10, 2018
27bea07
Return sidebar focus to opener after close v2 (#12601)
cathyxz Jan 10, 2018
6b8343b
Get lightbox to work with group ids (#12663)
cathyxz Jan 10, 2018
1f4d339
Add animations to amp-story spec (#12744)
Jan 10, 2018
8188019
visibity-model-bug-fix (#12752)
zhouyx Jan 10, 2018
ad9203e
Use try catch to protect querySelector (#12734)
zhouyx Jan 10, 2018
523331d
<amp-apester-media> fix random embed and improve performance (#11936)
OmriKeret Jan 10, 2018
70f2840
Fix LGTM alerts in validator.js (#12758)
rsimha Jan 10, 2018
9d35087
Fix lgtm errors in htmlparser.js (#12764)
honeybadgerdontcare Jan 10, 2018
b89ebcc
amp-lightbox: Better resource scheduling for scrollable lightbox (#12…
aghassemi Jan 10, 2018
6673668
Fix LGTM errors in src/service/ (#12767)
rsimha Jan 10, 2018
38eb109
Fix LGTM errors in build-system/ (#12774)
rsimha Jan 10, 2018
56e5440
Fix LGTM errors in extensions/ (#12770)
rsimha Jan 10, 2018
6af3f66
remove unused code (#12776)
zhouyx Jan 10, 2018
26dde83
Fix LGTM error in validator/chromeextension/popup-validator.html (#12…
rsimha Jan 10, 2018
b9d4368
clean up tracker for document not visible error (#12698)
zhouyx Jan 10, 2018
75bcc01
Fix LGTM error in gulpfile.js (#12778)
rsimha Jan 10, 2018
4730dc6
Validator Chrome Extension: Use tabs UserAgent in requests (#12750)
honeybadgerdontcare Jan 11, 2018
1379b1b
Fix LGTM errors in error.js (#12782)
rsimha Jan 11, 2018
fdbd10d
Fix LGTM errors in 3p code (#12785)
rsimha Jan 11, 2018
4dfb447
Fix LGTM errors in examples/ (#12777)
rsimha Jan 11, 2018
a5804a7
Fix greenkeeper-lockfile on Travis (#12789)
rsimha Jan 11, 2018
c43f74f
Set yarn path before installing greenkeeper-lockfile (#12791)
rsimha Jan 11, 2018
a8a7e87
Swap preact back in with race condition band-aided (#12784)
cvializ Jan 11, 2018
b643ca1
Roll forward MediaPool changes and fix issues (#12604)
alanorozco Jan 11, 2018
046a2af
make the corp CLA instructions more clear (#12795)
mrjoro Jan 11, 2018
7deefce
Preloading story bookend (#12783)
gmajoulet Jan 11, 2018
b180538
Remove fullscreen from amp-story (#12772)
newmuis Jan 11, 2018
fe4b18c
Implement lightbox attribute for carousels (#12771)
cathyxz Jan 11, 2018
8f6eb7c
Trigger slidechange event from dynamic calls (#12814)
alanorozco Jan 11, 2018
3aaf010
Added Nielsen support for EU (#12702)
uniquelygeneric Jan 11, 2018
9e03ae0
Load amp-social-share when system share is supported. (#12812)
alanorozco Jan 12, 2018
80b5d2a
Add linter rule to prevent and fix redundant non-nullable primtives (…
cvializ Jan 12, 2018
b8b01be
Set up Greenkeeper GH_TOKEN for PR builds (#12807)
rsimha Jan 12, 2018
ec57209
Only preload iframe transport client lib if needed (#12779)
jonkeller Jan 12, 2018
cb2c5e4
Allow objects to be given as macro values in RTC config (#12802)
bradfrizzell Jan 12, 2018
40d6217
no amp story on vertical swipe (#12749)
prateekbh Jan 12, 2018
8ce98f8
Hide text/icon on no previous page hint (#12796)
prateekbh Jan 12, 2018
1bf33b3
Fix primitive wrappers in Closure type tags (#12820)
cvializ Jan 12, 2018
b236a93
Update third_party/caja to v6012 (#12680)
danielrozenberg Jan 12, 2018
ff974c1
No previous from tap on card on desktop (#12671)
prateekbh Jan 12, 2018
d6c8c8f
Remove greenkeeper token (#12822)
rsimha Jan 12, 2018
3d2cfe7
Yieldpro support (#12773)
Jan 12, 2018
2ff441e
amp-ad-exit layout validation (#12600)
clawr Jan 12, 2018
87d6109
Fix all remaining LGTM warnings in AMP code (#12826)
rsimha Jan 13, 2018
1c625d7
cron job from @erwinmombay to update size.txt and size.csv (#12833)
donttrustthisbot Jan 15, 2018
b81c1fb
Adventive amp-ad type (#12742)
adventive-engineering Jan 16, 2018
1cf17d8
Remove unnecessary pre-compiled file from package. (#12790)
honeybadgerdontcare Jan 16, 2018
62b2411
amp-ima-video: Ignore tap-and-drag to start video. Only start on tap …
shawnbuso Jan 17, 2018
c314b73
amp-list: remove `src` when local data is used to render (#12861)
aghassemi Jan 17, 2018
b9dccf3
Update amp4ads-amp-ad-exit test output. (#12846)
honeybadgerdontcare Jan 17, 2018
8a94d59
Change how AMP inabox validates that the source of a postMessage is v…
bradfrizzell Jan 17, 2018
81ad0fe
add on tap listener for multiple advance (#12844)
prateekbh Jan 17, 2018
2fa79b4
No padding, no back gradient (#12845)
prateekbh Jan 17, 2018
4c6fbba
Remove ampcors check when fetching analytics remote config (#12787)
zhouyx Jan 17, 2018
3e425d4
Rewrite third_party/caja/compile.sh to use patches where possible (#1…
danielrozenberg Jan 17, 2018
08d726f
Fix macros for RTC Doubleclick (#12841)
bradfrizzell Jan 17, 2018
b5fa389
unskip test that fail with lolex v2 (#12858)
zhouyx Jan 17, 2018
94b1479
Pull amp-image-viewer out into it's own component (#12810)
cathyxz Jan 17, 2018
1db8835
Remove the soon-to-be-deprecated gulp-util (#12825)
rsimha Jan 17, 2018
54e8eed
remove old error logging (#12875)
zhouyx Jan 17, 2018
874d738
Use the proper getAttribute function (#12872)
cathyxz Jan 17, 2018
1943c6e
Show the audio icon if there are media elements or background audio i…
newmuis Jan 17, 2018
d1584f7
Start gulp server after build is complete (#12882)
rsimha Jan 18, 2018
b5eaa3a
fix animating circle fixed position (#12871)
prateekbh Jan 18, 2018
bd39a66
[amp-audio] Adds preload attribute (#12832)
nainar Jan 18, 2018
817b32f
Referenced templates also affect [submit-error] (#12813)
danielrozenberg Jan 18, 2018
0628499
Bless amp-story media on user navigation (#12892)
newmuis Jan 18, 2018
d21a8f9
Fix carousel arrow disappearing on desktop without controls attr (#12…
cvializ Jan 18, 2018
78516cc
Add Sidebar to FixedLayer after displaying (#12899)
jridgewell Jan 18, 2018
1f1c408
Add lightbox-thumbnail-src attribute (#12877)
cathyxz Jan 18, 2018
c49c806
Auto install lightbox without adding a <amp-lightbox-viewer> tag (#12…
cathyxz Jan 18, 2018
4819d61
[Prototype] Add exit animations to lightbox viewer back to source ele…
cathyxz Jan 18, 2018
bd4e729
Support 'geo:' URL scheme for anchor href attributes. (#12904)
Gregable Jan 18, 2018
205f5f2
Print CID API error response to browser console. (#12738)
lannka Jan 19, 2018
a514e47
Consolidate gulp watch and gulp build (#12900)
rsimha Jan 19, 2018
5d2779d
Add instructions for using Typekit (#12602)
misscs Jan 19, 2018
a603598
Update the a4a spec to require amp-animation based on (#11769)
zhucl Jan 19, 2018
1ea655a
amp-carousel : install input service before using it (#12910)
aghassemi Jan 19, 2018
27a032c
amp-story initial load tweaks (#12842)
newmuis Jan 19, 2018
71b4031
Add missing option to buildExtensions() in gulp watch / gulp build (#…
rsimha Jan 19, 2018
fa62cc1
amp-story progress-bar segment fills for current page (#12613)
sanjsanj Jan 19, 2018
063a8be
Add media queries with css grid layout to ensure responsive gallery (…
cathyxz Jan 19, 2018
384ecf0
Fix double-trigger video-ended in analytics (#12922)
cvializ Jan 19, 2018
a0f4bce
Fix error reporting in compileJs (#12928)
rsimha Jan 19, 2018
7dcbc22
Support nested URL macros (#12682)
calebcordry Jan 20, 2018
62cfa4a
Allow <form> and nested <template>s in <template>s (#12853)
danielrozenberg Jan 20, 2018
ebbd55e
document our new design review time rotation (#12942)
mrjoro Jan 22, 2018
70372cc
Removes defunct refresh experiment. (#12824)
glevitzky Jan 22, 2018
9bb0e3b
Documentation to analytics basic batching support (#12907)
zhouyx Jan 22, 2018
ca98a9f
cron job from @erwinmombay to update size.txt and size.csv (#12944)
donttrustthisbot Jan 22, 2018
e5522c8
Analytics: add batching plugin support (#12854)
zhouyx Jan 22, 2018
8debef9
Call beforeVisible() before resumeCallback() when setting the active …
newmuis Jan 22, 2018
eda1daa
Sync GitHub 20180122 (#12956)
powdercloud Jan 22, 2018
92b0529
Assert valid URL protocol for bookend and schema.or json-ld data (#12…
newmuis Jan 22, 2018
6af8808
Do not block on bless promise to perform navigation (#12967)
newmuis Jan 23, 2018
901372d
Update date-picker.json (#12974)
kul3r4 Jan 23, 2018
33ae37a
Add MathML support (#12836)
adamsilverstein Jan 23, 2018
8b701cf
Add amp-wistia-player in order to load Wistia videos (#12654)
chen-anders Jan 23, 2018
4f0a36a
lightbox 2.0: new sample to use as reference for polish work (#12963)
aghassemi Jan 23, 2018
d10b16f
Add an experiment to disable HLS videos within amp-story (#12983)
newmuis Jan 23, 2018
8daf427
Add remove always prevent default on gestures for amp-image-viewer (#…
cathyxz Jan 23, 2018
393e68f
delay adding sticky-ad to fix layer (#12990)
zhouyx Jan 23, 2018
7e2ec79
Tweak animations not to show carousel too early (#12987)
cathyxz Jan 24, 2018
6e55c75
Validator Rollup (#12999)
Gregable Jan 24, 2018
be814e5
Handle figure elements in lightboxed carousel with descriptions from …
cathyxz Jan 24, 2018
ea3c4fe
Fix amp-story incorrect measurements in prerender (#12989)
Jan 24, 2018
13757d5
<amp-pinterest> Add alt attribute (#12862)
nainar Jan 24, 2018
06297c7
amp-mathml: few fixes and validator tests (#13001)
aghassemi Jan 24, 2018
81bc04b
Add resource timing to amp-analytics (#12915)
warrengm Jan 24, 2018
3274c74
Only show initial load screen for embedded AMP case. (#13008)
newmuis Jan 24, 2018
fa87e52
Rebranding of AMP Ads & A4A -> AMPHTML ads (#12898)
Jan 24, 2018
d50b47c
amp-ima-video: remove experiment (#13010)
aghassemi Jan 24, 2018
e3f6d9c
POC: Adzerk Fast Fetch with template based preferential render (#12765)
glevitzky Jan 24, 2018
85b0d06
launch amp-ima-video through a flag flip (#13014)
aghassemi Jan 24, 2018
8801b2a
Doubleclick Fast Fetch idle render fix throttle behavior for non-AMP …
keithwrightbos Jan 24, 2018
aa74b48
Implement support for the amp-bind premutate message (#12906)
josh313 Jan 24, 2018
d6dec81
Revert 12787 (#13012)
zhouyx Jan 24, 2018
7bcb8fb
Make amp-story example validate (#13016)
ithinkihaveacat Jan 24, 2018
ecba5c5
fix amp-list layoutCallback detection (#13018)
Jan 24, 2018
062621a
Unbreak rendering {{.}} as strings in templates (#13019)
danielrozenberg Jan 24, 2018
6ae0a31
Fix adzerk template ad. (#13021)
lannka Jan 24, 2018
3ddf13b
add support for byside analytics (#12693)
bysidedevel3rdparty Jan 24, 2018
a29f170
Analytics: refactor remove unused promise (#13023)
zhouyx Jan 25, 2018
12fdcee
Initial eadv.it commit (#12318)
vash1486 Jan 25, 2018
0819d2e
Story video loading spinner. (#12984)
gmajoulet Jan 25, 2018
2270d9e
amp-instagram: allow changeHeight unconditionally (#11788)
aghassemi Jan 25, 2018
5fb3da2
deprecate expandAsync and expandSync for the renamed corresponding me…
alabiaga Jan 25, 2018
720cc01
Analytics: add report immediate support to trigger (#12909)
zhouyx Jan 25, 2018
aa3dc09
Implements amp-analytics variables, csi pings for page load metrics. …
gskrell Jan 25, 2018
dc65dbf
Making sure the spinning loader is only visible on the active page on…
gmajoulet Jan 25, 2018
5b72772
Allowing to click through the system layer. (#13022)
gmajoulet Jan 25, 2018
056960e
remove expandAsync usage and replace with expandUrlAsync (#13038)
erwinmombay Jan 25, 2018
3134f69
Add PubExchange module to amp-embed (#11823)
pubexchange Jan 26, 2018
5318dfd
Update jsdom to the latest version 🚀 (#13027)
greenkeeper[bot] Jan 26, 2018
fcb9286
Fix test flake in test-url-replacements (#13046)
cathyxz Jan 26, 2018
7147e7e
Validator Rollup (#13045)
honeybadgerdontcare Jan 26, 2018
30c58e2
Remove transitions for cropped and object-fit contain images from Lig…
cathyxz Jan 26, 2018
745615b
Lightbox controls should be actually hidden and not hidden by setting…
cathyxz Jan 26, 2018
d0b3efc
Check to see if event was already consumed before triggering click ev…
cathyxz Jan 26, 2018
64f8a2c
Disable ampCors for analytics remote config XHR in a backward compati…
lannka Jan 26, 2018
e790d43
Update progress-bar.html (#12926)
sanjsanj Jan 26, 2018
69371c3
Update ava to the latest version 🚀 (#13057)
greenkeeper[bot] Jan 26, 2018
6f3a877
Sync Lightbox with Carousel (#13050)
cathyxz Jan 26, 2018
662255a
Launch "ampcontext" API migration to 10% (#13061)
lannka Jan 26, 2018
3102d9d
Update lightbox icons (#13074)
cathyxz Jan 26, 2018
2ab481f
Clean up `amp-gwd-animation` experiment (#12896)
sklobovskaya Jan 28, 2018
96cd4f2
Allow binding to amp-selector[disabled] (#13036)
Jan 29, 2018
2bcd3a5
deprecate utf8Encode and utf8Decode async calls and rename methods (#…
alabiaga Jan 29, 2018
1ef70fa
Fast Fetch: change logging of non-AMP render from error to dev warn (…
keithwrightbos Jan 29, 2018
bdcdcc5
Removing an experimental feature (#13076)
aghassemi Jan 29, 2018
bda7b5d
Changes how adzerk impl produces metadata object from ad template. (#…
glevitzky Jan 29, 2018
39ffc2c
scrollbound animations: fix jumps caused by mobile browsers' addressb…
aghassemi Jan 29, 2018
7cba5c3
Expose incremental engaged timing for use in vendor analytics configu…
cwisecarver Jan 29, 2018
d4d85b4
Pass analytics filters as bindings to core (#13000)
calebcordry Jan 29, 2018
ef5b399
AMP runtime must respect the whitelist of actions specified in meta tags
hamousavi Jan 29, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
33 changes: 13 additions & 20 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
{
"optional": ["utility.inlineEnvironmentVariables"],
"externalHelpers": true,
"whitelist": [
"es3.memberExpressionLiterals",
"es3.propertyLiterals",
"es5.properties.mutators",
"es6.arrowFunctions",
"es6.blockScoping",
"es6.classes",
"es6.constants",
"es6.destructuring",
"es6.tailCall",
"es6.modules",
"es6.parameters",
"es6.properties.computed",
"es6.properties.shorthand",
"es6.templateLiterals",
"es6.spread",
"utility.inlineEnvironmentVariables"
]
"presets": [
["env", {
"loose": true,
"targets": {
"browsers": ["Last 2 versions"]
},
"modules": "commonjs",
"sourceType": "module"
}]
],
"sourceType": "module",
"ignore": ["sha384-generated.js", "access-expr-impl.js"],
"plugins": ["transform-remove-strict-mode"]
}
25 changes: 10 additions & 15 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
{
"parser": "babel-eslint",
"rulePaths": ["build-system/eslint-rules/"],
"plugins": ["eslint-plugin-google-camelcase"],
"ecmaFeatures": {
"modules": true,
"arrowFunctions": true,
"blockBindings": true,
"forOf": false,
"destructuring": true,
"spread": true
},
"env": {
"es6": true,
"browser": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"globals": {
"it": false,
"chai": false,
Expand All @@ -38,17 +33,19 @@
"comma-dangle": [2, "always-multiline"],
"computed-property-spacing": [2, "never"],
"curly": 2,
"dict-string-keys": 2,
"closure-type-primitives": 2,
"dot-location": [2, "property"],
"enforce-private-props": 2,
"todo-format": 0,
"eol-last": 2,
"google-camelcase/google-camelcase": 2,
"indent": [2, 2, { "SwitchCase": 1 }],
"indent": [2, 2, { "SwitchCase": 1, "VariableDeclarator": 2, "MemberExpression": 2, "ObjectExpression": 1, "CallExpression": { "arguments": 2 } }],
"key-spacing": 2,
"max-len": [2, 80, 4, {
"ignoreComments": true,
"ignoreUrls": true,
"ignorePattern": ""
"ignorePattern": "^import.*';$"
}],
"no-alert": 2,
"no-array-destructuring": 2,
Expand Down Expand Up @@ -90,19 +87,17 @@
"objectsInObjects": false,
"arraysInObjects": false
}],
"object-shorthand": [2, "properties"],
"object-shorthand": [2, "properties", { "avoidQuotes": true }],
"prefer-const": 2,
"quotes": [2, "single", "avoid-escape"],
"radix": 2,
"semi": 2,
"space-after-keywords": 2,
"keyword-spacing": ["error", { "before": true, "after": true }],
"space-before-blocks": 2,
"space-before-function-paren": [2, "never"],
"space-before-keywords": 2,
"space-in-parens": 2,
"space-infix-ops": 2,
"space-unary-ops": [1, { "words": true, "nonwords": false }],
"space-return-throw-case": 2,
"wrap-iife": [2, "any"]
}
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ typings
typings.json
build-system/runner/TESTS-TestSuites.xml
/test/manual/amp-ad.adtech.html
test/coverage
package-lock.json
*.swp
*.swo
61 changes: 39 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,66 @@
language: node_js
sudo: required # See http://docs.travis-ci.com/user/trusty-ci-environment/
dist: trusty
sudo: false # See http://docs.travis-ci.com/user/trusty-ci-environment/
node_js:
- "4"
- "6"
python:
- "2.7"
notifications:
webhooks:
- http://savage.nonblocking.io:8080/savage/travis
addons:
sauce_connect: true
hosts:
- ads.localhost
- iframe.localhost
# Requested by some tests because they need a valid font host,
# but should not resolve in tests.
- fonts.googleapis.com
apt:
packages:
- protobuf-compiler
- python-protobuf
before_install:
- export CHROME_BIN=google-chrome
- export DISPLAY=:99.0
- unset _JAVA_OPTIONS # JVM heap sizes break closure compiler. #11203.
- sh -e /etc/init.d/xvfb start
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- mkdir "${TRAVIS_BUILD_DIR}/chrome"
- dpkg -x google-chrome-stable_current_amd64.deb "${TRAVIS_BUILD_DIR}/chrome"
- export CHROME_BIN="${TRAVIS_BUILD_DIR}/chrome/opt/google/chrome/google-chrome"
- sudo dpkg -i google-chrome*.deb
# Required due to https://github.com/greenkeeperio/greenkeeper-lockfile/issues/98#issuecomment-352087908
- export PATH="`yarn global bin`:$PATH"
- yarn global add greenkeeper-lockfile@1
before_script:
- pip install --user protobuf
- gem install percy-cli
- gem install percy-capybara phantomjs poltergeist
# Poltergeist requires an absolute path to find phantomjs. See #10305.
- export PATH="`pwd`/node_modules/.bin:$PATH"
- greenkeeper-lockfile-update
script: node build-system/pr-check.js
after_script: greenkeeper-lockfile-upload
branches:
only:
- master
- release
- canary
- /^amp-release-.*$/
- /^greenkeeper/.*$/
env:
global:
- SAUCE_USERNAME="amphtml"
- NPM_CONFIG_PROGRESS="false"
matrix:
- BUILD_SHARD="pre_build_checks_and_unit_tests"
- BUILD_SHARD="integration_tests"
addons:
sauce_connect:
username: "amphtml"
jwt:
# SAUCE_ACCESS_KEY for sauce_connect
- secure: "Wze0F0vGL0UcxryOx1n/vcuD5LIMGyR+69Nc6IWLoRvZBbbIpFwVFhDE6rE9ranIXiA2Hc684N4sV8ASfNDF8RRSB+jyLov159qwgji2rBxIfQ/4kuDV2vYoAJvYMz8m42kwx5FV2VV9awqMMt8mwU3wYIrKIaVCxB34uV86KIlDlbrHxt17Bm5EIiUmwi9r1AAnW/63vVRUN264D77oB4j9UQ759PfD6BDwEt54O87KurNIaLseNCr1IvzfL8veEsZ3uTbLC1GtgHfR4IGgkS2YyN2QIk06VZWeRDEOalS3RcY0nDkbCmBywxIGObnrpEMzOpjBiOb2fxLoLvvpjlla5W84zJGfWE6q4T9IvkyHuDJE+sft5B+arjMIeA6PIeUhKdV27+6qqDEf7fILZ/U/Ekn9ds4zSV8hekAZPUyyPncOeyWppCIJ8sOeCrsebkRjH1BoX/d+FE+nP0bN/XkBpIi/nManx5FyS/kqjQWGKmvsFQfEWlSUaZi7XtEQEjvBizRkzvpJanSDaoiTDS2Keulmwii3XRId51FuGtnfDZFeggLaMTKGfBX9DlPkccwYAZe6vPNfYk1pNgEj6AtnifEhYVEO+aAuWhEnJ86od+1wDOL/h+a2XY6h8/gFBywsD95p7sXPfdVDCKgwagiBo+Hw5MNjztVF7lszg1A="
hosts:
- ads.localhost
- iframe.localhost
# Requested by some tests because they need a valid font host,
# but should not resolve in tests.
- fonts.googleapis.com
apt:
packages:
- protobuf-compiler
- python-protobuf
matrix:
include:
- env: BUILD_SHARD="unit_tests"
- env: BUILD_SHARD="integration_tests"
cache:
yarn: true
directories:
- node_modules
- node_modules
- .gem
pip: true
bundler: true
21 changes: 17 additions & 4 deletions 3p/3p.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,27 @@ let ThirdPartyFunctionDef;
* @const {!Object<ThirdPartyFunctionDef>}
* @visibleForTesting
*/
export const registrations = map();
let registrations;

/** @type {number} */
let syncScriptLoads = 0;

/**
* Returns the registration map
*/
export function getRegistrations() {
if (!registrations) {
registrations = map();
}
return registrations;
}

/**
* @param {string} id The specific 3p integration.
* @param {ThirdPartyFunctionDef} draw Function that draws the 3p integration.
*/
export function register(id, draw) {
const registrations = getRegistrations();
dev().assert(!registrations[id], 'Double registration %s', id);
registrations[id] = draw;
}
Expand Down Expand Up @@ -138,7 +149,7 @@ export function validateSrcPrefix(prefix, src) {
prefix = [prefix];
}
if (src !== undefined) {
for (let p = 0; p <= prefix.length; p++) {
for (let p = 0; p < prefix.length; p++) {
const protocolIndex = src.indexOf(prefix[p]);
if (protocolIndex == 0) {
return;
Expand Down Expand Up @@ -185,14 +196,14 @@ export function computeInMasterFrame(global, taskId, work, cb) {
}
cbs.push(cb);
if (!global.context.isMaster) {
return; // Only do work in master.
return; // Only do work in master.
}
work(result => {
for (let i = 0; i < cbs.length; i++) {
cbs[i].call(null, result);
}
tasks[taskId] = {
push: function(cb) {
push(cb) {
cb(result);
},
};
Expand Down Expand Up @@ -271,6 +282,8 @@ function validateAllowedFields(data, allowedFields) {
mode: true,
consentNotificationId: true,
ampSlotIndex: true,
adHolderText: true,
loadingStrategy: true,
};

for (const field in data) {
Expand Down
18 changes: 12 additions & 6 deletions 3p/ampcontext-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import {AbstractAmpContext} from './ampcontext';
import {computeInMasterFrame} from './3p';
import {dev, user} from '../src/log';
import {dict} from '../src/utils/object';
import {adConfig} from '../ads/_config';


/**
Expand All @@ -28,8 +30,11 @@ import {dev, user} from '../src/log';
* @return {!Window}
*/
export function masterSelection(win, type) {
type = type.toLowerCase();
// The master has a special name.
const masterName = 'frame_' + type + '_master';
const masterName = 'frame_' +
(adConfig[type] && adConfig[type]['masterFrameAccessibleType'] || type) +
'_master';
let master;
try {
// Try to get the master from the parent. If it does not
Expand Down Expand Up @@ -64,7 +69,8 @@ export class IntegrationAmpContext extends AbstractAmpContext {
// available.
return (this.embedType_ === 'facebook'
|| this.embedType_ === 'twitter'
|| this.embedType_ == 'github');
|| this.embedType_ === 'github'
|| this.embedType_ === 'mathml');
}

/** @return {!Window} */
Expand Down Expand Up @@ -101,7 +107,7 @@ export class IntegrationAmpContext extends AbstractAmpContext {
}

/**
* @param {{width, height}=} opt_data
* @param {!JsonObject=} opt_data Fields: width, height
*/
renderStart(opt_data) {
this.client_.sendMessage('render-start', opt_data);
Expand All @@ -119,9 +125,9 @@ export class IntegrationAmpContext extends AbstractAmpContext {
* @param {string} entityId See comment above for content.
*/
reportRenderedEntityIdentifier(entityId) {
this.client_.sendMessage('entity-id', {
id: user().assertString(entityId),
});
this.client_.sendMessage('entity-id', dict({
'id': user().assertString(entityId),
}));
}

/**
Expand Down
Loading