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

Issue 6369485355220992: Fixed reload issue in Chrome (Closed)

Created:
Nov. 15, 2013, 1:08 p.m. by Sebastian Noack
Modified:
Nov. 15, 2013, 1:57 p.m.
Visibility:
Public.

Description

Fixed reload issue in Chrome

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -8 lines) Patch
M background.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/background.js View 3 chunks +5 lines, -5 lines 0 comments Download
M safari/background.js View 1 3 chunks +18 lines, -2 lines 0 comments Download
M safari/content.js View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 4
Sebastian Noack
There is no event in Safari that notifies about that the page started to load. ...
Nov. 15, 2013, 1:16 p.m. (2013-11-15 13:16:11 UTC) #1
Felix Dahlke
http://codereview.adblockplus.org/6369485355220992/diff/5629499534213120/safari/background.js File safari/background.js (right): http://codereview.adblockplus.org/6369485355220992/diff/5629499534213120/safari/background.js#newcode47 safari/background.js:47: if (event.name == "loading" && event.message == event.target.url) Shouldn't ...
Nov. 15, 2013, 1:28 p.m. (2013-11-15 13:28:37 UTC) #2
Sebastian Noack
http://codereview.adblockplus.org/6369485355220992/diff/5629499534213120/safari/background.js File safari/background.js (right): http://codereview.adblockplus.org/6369485355220992/diff/5629499534213120/safari/background.js#newcode47 safari/background.js:47: if (event.name == "loading" && event.message == event.target.url) On ...
Nov. 15, 2013, 1:45 p.m. (2013-11-15 13:45:29 UTC) #3
Felix Dahlke
Nov. 15, 2013, 1:48 p.m. (2013-11-15 13:48:49 UTC) #4
LGTM

http://codereview.adblockplus.org/6369485355220992/diff/5629499534213120/safa...
File safari/content.js (right):

http://codereview.adblockplus.org/6369485355220992/diff/5629499534213120/safa...
safari/content.js:18: safari.self.tab.dispatchMessage("loading",
document.location.href);
On 2013/11/15 13:45:29, sebastian wrote:
> On 2013/11/15 13:28:38, Felix H. Dahlke wrote:
> > Why not move this into the IIFE?
> 
> As you wish. I didn't put it into the IIFE in the first place, because of that
> code doesn't define variables and the only purpose of the IIFE below is to
hide
> variables, that don't need to be global.

Oh, I actually meant "under" the IIFE (whether it's in there or not, we
typically have definitions first, then code.)

But it actually doesn't matter, it's up to you.

Powered by Google App Engine
This is Rietveld