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

Issue 6499942772244480: Reload popover on Safari every time it is shown (Closed)

Created:
Jan. 23, 2014, 10:20 a.m. by Sebastian Noack
Modified:
Jan. 23, 2014, 2 p.m.
Visibility:
Public.

Description

On Chrome the bubble is loaded when it is shown. However on Safari the bubble is loaded only once. First I thought it would be sufficient to reload the bubble on Safari when it is shown for a different tab. But more cases had recently to be added. Now I just realized two more cases when the bubble must be reloaded, one is when a new page was loaded in the tab, and the other when the bubble was shown for the new tab page on Safari 7.0 before. So by now I think it makes most sense (in favor of a simpler and more robust approach) to just reload the bubble every time it is shown.

Patch Set 1 #

Patch Set 2 : Updated the regarding comment #

Total comments: 2

Patch Set 3 : Addressed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -23 lines) Patch
M safari/ext/popup.js View 1 2 3 chunks +16 lines, -23 lines 0 comments Download

Messages

Total messages: 3
Sebastian Noack
Jan. 23, 2014, 10:27 a.m. (2014-01-23 10:27:47 UTC) #1
Wladimir Palant
Nice simplification, there is really no point overdoing this. LGTM but see nit below. http://codereview.adblockplus.org/6499942772244480/diff/5741031244955648/safari/ext/popup.js ...
Jan. 23, 2014, 1:40 p.m. (2014-01-23 13:40:54 UTC) #2
Sebastian Noack
Jan. 23, 2014, 2 p.m. (2014-01-23 14:00:34 UTC) #3
http://codereview.adblockplus.org/6499942772244480/diff/5741031244955648/safa...
File safari/ext/popup.js (right):

http://codereview.adblockplus.org/6499942772244480/diff/5741031244955648/safa...
safari/ext/popup.js:18: var mayResize = true;
On 2014/01/23 13:40:54, Wladimir Palant wrote:
> Nit: I don't really like this variable being used before declaration in
popover
> listener, even though this is valid in JavaScript. Maybe move the popover
> listener down?

Done.

Powered by Google App Engine
This is Rietveld