Call beforeVisible() before resumeCallback() when setting the active amp-story-page (#12921)
Call beforeVisible() before resumeCallback() when setting the active amp-story-page (#12921)

* Change progress bar to not handle active page, since active page updates progress bar through PAGE_PROGRESS events

* Revert "Change progress bar to not handle active page, since active page updates progress bar through PAGE_PROGRESS events"

This reverts commit 0500899056e84a85138352aa6ea7edc8d9e033d0.

* Call beforeVisible() before resumeCallback() in setActive(...)

aghassemi/amphtml,chaveznvg/amphtml,camelburrito/amphtml,yandex-pcode/amphtml,rsimha-amp/amphtml,pedjoni8/amphtml,yandex-pcode/amphtml,rsimha-amp/amphtml,yieldmo/amphtml,alanorozco/amphtml,media-net/amphtml,kamtschatka/amphtml,Gregable/amphtml,yandex-pcode/amphtml,engtat/amphtml,jmadler/amphtml,bpaduch/amphtml,nexxtv/amphtml,media-net/amphtml,laterpay/amphtml,tlong2/amphtml,danielrozenberg/amphtml,rsimha-amp/amphtml,mhc-gh/amphtml,yieldbot/amphtml,bpaduch/amphtml,camelburrito/amphtml,adup-tech/amphtml,sebastianbenz/amphtml,ampproject/amphtml,honeybadgerdontcare/amphtml,mhc-gh/amphtml,cvializ/amphtml,donttrustthisbot/amphtml,yieldbot/amphtml,koshka/amphtml,yieldmo/amphtml,aghassemi/amphtml,jridgewell/amphtml,tlong2/amphtml,powdercloud/amphtml,kamtschatka/amphtml,powdercloud/amphtml,smartadserver/amphtml,bpaduch/amphtml,mhc-gh/amphtml,ampproject/amphtml,aghassemi/amphtml,engtat/amphtml,bpaduch/amphtml,cory-work/amphtml,sharethrough/amphtml,zhouyx/amphtml,laterpay/amphtml,koshka/amphtml,honeybadgerdontcare/amphtml,prateekbh/amphtml,bpaduch/amphtml,kamtschatka/amphtml,honeybadgerdontcare/amphtml,jridgewell/amphtml,danielrozenberg/amphtml,sriramkrish85/amphtml,sriramkrish85/amphtml,kamtschatka/amphtml,Gregable/amphtml,smartadserver/amphtml,clawr/amphtml,zhouyx/amphtml,aghassemi/amphtml,donttrustthisbot/amphtml,voyagegroup/amphtml,adup-tech/amphtml,rsimha-amp/amphtml,dotandads/amphtml,alanorozco/amphtml,jmadler/amphtml,tlong2/amphtml,BenDz/amphtml,luciancrasovan/amphtml,donttrustthisbot/amphtml,sharethrough/amphtml,engtat/amphtml,adup-tech/amphtml,taboola/amphtml,clawr/amphtml,cvializ/amphtml,lannka/amphtml,cory-work/amphtml,jmadler/amphtml,prateekbh/amphtml,widespace-os/amphtml,nexxtv/amphtml,honeybadgerdontcare/amphtml,dotandads/amphtml,media-net/amphtml,dotandads/amphtml,jpettitt/amphtml,ampproject/amphtml,luciancrasovan/amphtml,voyagegroup/amphtml,camelburrito/amphtml,jmadler/amphtml,camelburrito/amphtml,sebastianbenz/amphtml,techhtml/amphtml,adup-tech/amphtml,BenDz/amphtml,cvializ/amphtml,smartadserver/amphtml,ampproject/amphtml,techhtml/amphtml,clawr/amphtml,lannka/amphtml,widespace-os/amphtml,engtat/amphtml,chaveznvg/amphtml,honeybadgerdontcare/amphtml,alanorozco/amphtml,clawr/amphtml,jpettitt/amphtml,BenDz/amphtml,src-code/amphtml,voyagegroup/amphtml,sebastianbenz/amphtml,erwinmombay/amphtml,yieldbot/amphtml,techhtml/amphtml,tlong2/amphtml,nexxtv/amphtml,cvializ/amphtml,jpettitt/amphtml,BenDz/amphtml,yieldmo/amphtml,prateekbh/amphtml,nexxtv/amphtml,erwinmombay/amphtml,koshka/amphtml,lannka/amphtml,lannka/amphtml,engtat/amphtml,jpettitt/amphtml,dotandads/amphtml,alanorozco/amphtml,yandex-pcode/amphtml,danielrozenberg/amphtml,clawr/amphtml,erwinmombay/amphtml,zhouyx/amphtml,cory-work/amphtml,powdercloud/amphtml,yandex-pcode/amphtml,sriramkrish85/amphtml,cory-work/amphtml,Gregable/amphtml,cory-work/amphtml,cvializ/amphtml,src-code/amphtml,danielrozenberg/amphtml,prateekbh/amphtml,chaveznvg/amphtml,adup-tech/amphtml,ampproject/amphtml,chaveznvg/amphtml,techhtml/amphtml,luciancrasovan/amphtml,alanorozco/amphtml,media-net/amphtml,sharethrough/amphtml,alanorozco/amphtml,sebastianbenz/amphtml,cory-work/amphtml,alanorozco/amphtml,zhouyx/amphtml,cory-work/amphtml,bpaduch/amphtml,honeybadgerdontcare/amphtml,mhc-gh/amphtml,pedjoni8/amphtml,Gregable/amphtml,zhouyx/amphtml,yieldbot/amphtml,adup-tech/amphtml,luciancrasovan/amphtml,smartadserver/amphtml,zhangsu/amphtml,Gregable/amphtml,pedjoni8/amphtml,powdercloud/amphtml,chaveznvg/amphtml,laterpay/amphtml,clawr/amphtml,yieldmo/amphtml,laterpay/amphtml,yieldmo/amphtml,erwinmombay/amphtml,danielrozenberg/amphtml,zhangsu/amphtml,chaveznvg/amphtml,zhouyx/amphtml,mhc-gh/amphtml,yieldbot/amphtml,ampproject/amphtml,aghassemi/amphtml,taboola/amphtml,ampproject/amphtml,jpettitt/amphtml,jridgewell/amphtml,kamtschatka/amphtml,smartadserver/amphtml,jpettitt/amphtml,nexxtv/amphtml,jridgewell/amphtml,dotandads/amphtml,laterpay/amphtml,voyagegroup/amphtml,erwinmombay/amphtml,Gregable/amphtml,media-net/amphtml,ampproject/amphtml,tlong2/amphtml,prateekbh/amphtml,dotandads/amphtml,yandex-pcode/amphtml,engtat/amphtml,src-code/amphtml,camelburrito/amphtml,Gregable/amphtml,BenDz/amphtml,sharethrough/amphtml,koshka/amphtml,taboola/amphtml,sharethrough/amphtml,powdercloud/amphtml,jridgewell/amphtml,yandex-pcode/amphtml,voyagegroup/amphtml,engtat/amphtml,techhtml/amphtml,taboola/amphtml,sriramkrish85/amphtml,lannka/amphtml,prateekbh/amphtml,luciancrasovan/amphtml,prateekbh/amphtml,zhangsu/amphtml,voyagegroup/amphtml,camelburrito/amphtml,techhtml/amphtml,BenDz/amphtml,lannka/amphtml,sebastianbenz/amphtml,src-code/amphtml,powdercloud/amphtml,jmadler/amphtml,alanorozco/amphtml,donttrustthisbot/amphtml,aghassemi/amphtml,donttrustthisbot/amphtml,danielrozenberg/amphtml,powdercloud/amphtml,zhangsu/amphtml,src-code/amphtml,danielrozenberg/amphtml,media-net/amphtml,taboola/amphtml,widespace-os/amphtml,luciancrasovan/amphtml,zhangsu/amphtml,media-net/amphtml,tlong2/amphtml,jpettitt/amphtml,rsimha-amp/amphtml,pedjoni8/amphtml,media-net/amphtml,donttrustthisbot/amphtml,cvializ/amphtml,yieldmo/amphtml,nexxtv/amphtml,mhc-gh/amphtml,danielrozenberg/amphtml,widespace-os/amphtml,laterpay/amphtml,taboola/amphtml,voyagegroup/amphtml,koshka/amphtml,sharethrough/amphtml,src-code/amphtml,sriramkrish85/amphtml,zhangsu/amphtml,pedjoni8/amphtml,jmadler/amphtml,camelburrito/amphtml,jridgewell/amphtml,luciancrasovan/amphtml,yieldmo/amphtml,taboola/amphtml,yieldbot/amphtml,honeybadgerdontcare/amphtml,sebastianbenz/amphtml,Gregable/amphtml,smartadserver/amphtml,kamtschatka/amphtml,widespace-os/amphtml,widespace-os/amphtml,sriramkrish85/amphtml,mhc-gh/amphtml,koshka/amphtml,bpaduch/amphtml,jpettitt/amphtml,erwinmombay/amphtml,rsimha-amp/amphtml,zhouyx/amphtml,pedjoni8/amphtml,donttrustthisbot/amphtml,jridgewell/amphtml,clawr/amphtml,lannka/amphtml,mhc-gh/amphtml,rsimha-amp/amphtml,nexxtv/amphtml