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

Issue 6304200141045760: Fix issue with comments and thumbnails not loading on YouTube in Safari (Closed)

Created:
Feb. 28, 2014, 9:38 p.m. by Sebastian Noack
Modified:
March 5, 2014, 5:32 p.m.
Visibility:
Public.

Description

Since we disable pushState on YouTube, the comments and thumbnails for the video in the side bar aren't loading anymore. It turned out that this wasn't because disabling pushState, but because we changed the location to a javascript: URL for that purpose. My assumption is that this interrupts pending requests, because it doesn't matter what JavaScript code is executed. I got the same issue when just using javascript:void(0); instead. However we can still inject a script tag.

Patch Set 1 #

Total comments: 3

Patch Set 2 : Addressed comment #

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

Messages

Total messages: 5
Sebastian Noack
http://codereview.adblockplus.org/6304200141045760/diff/5629499534213120/safari/include.youtube.js File safari/include.youtube.js (right): http://codereview.adblockplus.org/6304200141045760/diff/5629499534213120/safari/include.youtube.js#newcode74 safari/include.youtube.js:74: "document.documentElement.removeChild(document.getElementById('__disablePushState'));"; In the previous review Wladimir suggested that we ...
Feb. 28, 2014, 9:54 p.m. (2014-02-28 21:54:22 UTC) #1
Wladimir Palant
http://codereview.adblockplus.org/6304200141045760/diff/5629499534213120/safari/include.youtube.js File safari/include.youtube.js (right): http://codereview.adblockplus.org/6304200141045760/diff/5629499534213120/safari/include.youtube.js#newcode74 safari/include.youtube.js:74: "document.documentElement.removeChild(document.getElementById('__disablePushState'));"; Why have the script remove itself? Using |script.async ...
March 3, 2014, 7:21 a.m. (2014-03-03 07:21:13 UTC) #2
Sebastian Noack
http://codereview.adblockplus.org/6304200141045760/diff/5629499534213120/safari/include.youtube.js File safari/include.youtube.js (right): http://codereview.adblockplus.org/6304200141045760/diff/5629499534213120/safari/include.youtube.js#newcode74 safari/include.youtube.js:74: "document.documentElement.removeChild(document.getElementById('__disablePushState'));"; On 2014/03/03 07:21:13, Wladimir Palant wrote: > Why ...
March 5, 2014, 11:24 a.m. (2014-03-05 11:24:01 UTC) #3
Wladimir Palant
LGTM
March 5, 2014, 2:51 p.m. (2014-03-05 14:51:43 UTC) #4
Felix Dahlke
March 5, 2014, 2:52 p.m. (2014-03-05 14:52:47 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld