-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird blank page #226
Comments
Fixed: http://tampermonkey.net/changelog.php?version=3.12.4712&ext=gcal |
@derjanb Could you please provide us more details about how the bug was fixed (and what did cause it exactly)? I am interested in the technical details. 😃 |
Each page gets some Tampermonkey code injected. It consists of two parts, one is located at the Chrome extension context and one directly at the page. Both parts live in a separated world, but they share the DOM. That's why they can use events for communication. If now document.write is called after the document was closed all event listeners are gone. In order to workaround this TM wraps this function to re-register the event listeners, but this happens only if a userscript uses the document object. The problem now was that each time the document was referenced by a userscript the write function was wrapped again. Subsequent document.write calls caused multiple event listener (re-)registrations. This caused each TM internal event to be processed multiple times and caused a lot of load. Hope this helped. :) |
Thank you for the explanations! |
Tampermonkey version: BETA v3.12.4708
Chrome 43.0.2357.132 (64-bit)
Please install the following script and visit http://www1.macys.com/shop/product/navy-yard-8-piece-reversible-bedding-ensembles?ID=764254&CategoryID=26795
The page is visually blank.
The weird thing is you have to
document
3-times or moreIf any condition is not matched, then the page renders fine.
The text was updated successfully, but these errors were encountered: