Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29436567: Issue 3200 - Delay initialization for prerendered documents (Closed)

Created:
May 11, 2017, 7:11 p.m. by Manish Jethani
Modified:
Aug. 29, 2017, 2:13 p.m.
Reviewers:
Sebastian Noack, kzar
Base URL:
https://hg.adblockplus.org/adblockpluschrome/
Visibility:
Public.

Description

Issue 3200 - Delay initialization for prerendered documents Lazily instantiate the message proxy for a Page object in the background page; wait until a prerendered document is made visible in the content script.

Patch Set 1 #

Patch Set 2 : Delay composer.ready until document is visible #

Total comments: 4

Patch Set 3 : Address comments to Patch Set 2 #

Total comments: 6

Patch Set 4 : Move common logic into separate function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -17 lines) Patch
M composer.postload.js View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M include.preload.js View 1 2 3 1 chunk +24 lines, -1 line 0 comments Download
M safari/ext/background.js View 1 2 2 chunks +31 lines, -15 lines 0 comments Download

Messages

Total messages: 13
Manish Jethani
May 11, 2017, 7:11 p.m. (2017-05-11 19:11:53 UTC) #1
Manish Jethani
Patch Set 1
May 11, 2017, 7:15 p.m. (2017-05-11 19:15:33 UTC) #2
Manish Jethani
Patch Set 2: Delay composer.ready until document is visible This fixes the issue of the ...
May 12, 2017, 1:33 p.m. (2017-05-12 13:33:52 UTC) #3
kzar
Otherwise LGTM https://codereview.adblockplus.org/29436567/diff/29437573/composer.postload.js File composer.postload.js (right): https://codereview.adblockplus.org/29436567/diff/29437573/composer.postload.js#newcode588 composer.postload.js:588: document.addEventListener("visibilitychange", function onVisibilitychange() Nit: Long line. Also ...
May 19, 2017, 12:33 p.m. (2017-05-19 12:33:05 UTC) #4
Manish Jethani
Patch Set 3: Address comments to Patch Set 2 https://codereview.adblockplus.org/29436567/diff/29437573/composer.postload.js File composer.postload.js (right): https://codereview.adblockplus.org/29436567/diff/29437573/composer.postload.js#newcode588 composer.postload.js:588: ...
May 19, 2017, 11:58 p.m. (2017-05-19 23:58:48 UTC) #5
kzar
LGTM
May 20, 2017, 10:24 a.m. (2017-05-20 10:24:00 UTC) #6
Sebastian Noack
Just to clarify, this patch has been tested against the "safari" bookmark, and is supposed ...
May 20, 2017, 11:19 a.m. (2017-05-20 11:19:06 UTC) #7
Manish Jethani
On 2017/05/20 11:19:06, Sebastian Noack wrote: > Just to clarify, this patch has been tested ...
May 20, 2017, 7 p.m. (2017-05-20 19:00:58 UTC) #8
Manish Jethani
https://codereview.adblockplus.org/29436567/diff/29442761/composer.postload.js File composer.postload.js (right): https://codereview.adblockplus.org/29436567/diff/29442761/composer.postload.js#newcode586 composer.postload.js:586: if (document.visibilityState == "prerender") On 2017/05/20 11:19:06, Sebastian Noack ...
May 20, 2017, 7:01 p.m. (2017-05-20 19:01:06 UTC) #9
Sebastian Noack
https://codereview.adblockplus.org/29436567/diff/29442761/composer.postload.js File composer.postload.js (right): https://codereview.adblockplus.org/29436567/diff/29442761/composer.postload.js#newcode586 composer.postload.js:586: if (document.visibilityState == "prerender") On 2017/05/20 19:01:06, Manish Jethani ...
May 21, 2017, 8:31 p.m. (2017-05-21 20:31:01 UTC) #10
Manish Jethani
Patch Set 4: Move common logic into separate function Also rebased. https://codereview.adblockplus.org/29436567/diff/29442761/composer.postload.js File composer.postload.js (right): ...
Aug. 24, 2017, 2:07 p.m. (2017-08-24 14:07:58 UTC) #11
Sebastian Noack
LGTM. kzar, can you have a look as well?
Aug. 24, 2017, 2:09 p.m. (2017-08-24 14:09:29 UTC) #12
kzar
Aug. 29, 2017, 1:07 p.m. (2017-08-29 13:07:00 UTC) #13
LGTM

Powered by Google App Engine
This is Rietveld