Ticket #8300: 0001-ensure-lastChild-is-document.body.patch

File 0001-ensure-lastChild-is-document.body.patch, 784 bytes (added by arlolra, 6 years ago)
  • proxy/flashproxy.js

    From 9598c605339292e59a01223d112a6072e774c1e6 Mon Sep 17 00:00:00 2001
    From: Arlo Breault <arlolra@gmail.com>
    Date: Sun, 10 Mar 2013 11:09:20 -0700
    Subject: [PATCH] ensure lastChild is document.body
    
    ---
     proxy/flashproxy.js | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js
    index bf3fce9..b110717 100644
    a b function flashproxy_badge_insert() { 
    10111011
    10121012    /* http://intertwingly.net/blog/2006/11/10/Thats-Not-Write for this trick to
    10131013       insert right after the <script> element in the DOM. */
    1014     e = document;
     1014    e = { lastChild: document.body };
    10151015    while (e.lastChild && e.lastChild.nodeType === 1) {
    10161016        e = e.lastChild;
    10171017    }