Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Make <amp-install-service-worker> a low priority element, and… #14293

Merged
merged 3 commits into from Mar 28, 2018

Conversation

dreamofabear
Copy link

… remove timer-based delay to installation (#13409)"

This reverts commit 7a8be5f.


Fixes #14288 and reopens #12473.

… remove timer-based delay to installation (ampproject#13409)"

This reverts commit 7a8be5f.
// introduced to avoid installing SWs for content that the user
// only engaged with superficially.
Services.timerFor(this.win).delay(() => {
this.deferMutate(this.insertIframe_.bind(this));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jridgewell removed deferMutate, make sure you merge the changes from here into this revert: c4ef869#diff-d7bcc789dc4ca07564072200b4451bb3

expect(iframe.getAttribute('sandbox')).to.equal(
'allow-same-origin allow-scripts');
let deferredMutate;
implementation.deferMutate = fn => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, you can move anything relating to LayoutPriority because it's no longer part of this extension

@dreamofabear dreamofabear merged commit dce907b into ampproject:master Mar 28, 2018
@dreamofabear dreamofabear deleted the install-sw-rollback branch March 28, 2018 21:59
dreamofabear pushed a commit that referenced this pull request Mar 28, 2018
#14293)

* Revert "Make <amp-install-service-worker> a low priority element, and remove timer-based delay to installation (#13409)"

This reverts commit 7a8be5f.

* s/deferMutate/mutateElement

* remove import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants