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

Issue 5641434644348928: Fixed element collapsing in Safari (Closed)

Created:
Jan. 15, 2014, 7:34 p.m. by Sebastian Noack
Modified:
Jan. 16, 2014, 4:26 p.m.
Visibility:
Public.

Description

Since we are using the "beforeload" event on Safari to block content, neiher the "load" nor "error" event is dispatched, and therfore the code that removes blocked elements from the DOM isn't triggered. So I had to dispatch the "error" event manually, in the "beforeload" event handler.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M safari/ext/content.js View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 4
Sebastian Noack
Jan. 15, 2014, 7:39 p.m. (2014-01-15 19:39:41 UTC) #1
Wladimir Palant
http://codereview.adblockplus.org/5641434644348928/diff/5629499534213120/safari/ext/content.js File safari/ext/content.js (right): http://codereview.adblockplus.org/5641434644348928/diff/5629499534213120/safari/ext/content.js#newcode330 safari/ext/content.js:330: event.target.dispatchEvent(errorEvent); a) Does Safari really allow dispatching the same ...
Jan. 16, 2014, 9:21 a.m. (2014-01-16 09:21:24 UTC) #2
Sebastian Noack
http://codereview.adblockplus.org/5641434644348928/diff/5629499534213120/safari/ext/content.js File safari/ext/content.js (right): http://codereview.adblockplus.org/5641434644348928/diff/5629499534213120/safari/ext/content.js#newcode330 safari/ext/content.js:330: event.target.dispatchEvent(errorEvent); On 2014/01/16 09:21:24, Wladimir Palant wrote: > a) ...
Jan. 16, 2014, 1:20 p.m. (2014-01-16 13:20:56 UTC) #3
Wladimir Palant
Jan. 16, 2014, 4:14 p.m. (2014-01-16 16:14:41 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld