diff options
| author | Stephen Blott | 2016-03-26 16:20:44 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2016-03-26 16:29:20 +0000 | 
| commit | fa67b115ce1a20e64da5b8eaa67e2979fad8f89d (patch) | |
| tree | 0ed121e5d9c2a0cdd47af6578089f50de77d5fab /lib | |
| parent | b09a7524502e7df993bd1d5eb906553348130591 (diff) | |
| download | vimium-fa67b115ce1a20e64da5b8eaa67e2979fad8f89d.tar.bz2 | |
Ensure correct sendResponse() is called.
With several frames, only one frame can call sendResponse(), whichever
one happens to call it first.
getScrollPosition, is the only handler for which we care about the
response.  Here, we make sure that sendResponse() will *only* be called
in the top frame - where we want it called.
This fixes a possible race condition in global marks.
Additionally, although it's not the primary intention here, this also
avoids calling sendResponse() unnecessarily in cases where we don't use
the response.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
