Skip to content
  • abarth@webkit.org's avatar
    REGRESSION (r104000): AdBlock extension fails to load/function · 81d6a0e5
    abarth@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=75554
    
    Reviewed by Andy Estes.
    
    Source/WebCore:
    
    Previously, we would claim the documentElement was available before
    we'd actually attached it to the DOM (which we now do via the
    attachment queue).  This issue was noted in the code with a FIXME
    comment, but there was no test coverage for the issue.  This patch
    resolves the FIXME and adds a test.
    
    Test: userscripts/document-element-available-at-start.html
    
    * html/parser/HTMLConstructionSite.cpp:
    (WebCore::HTMLConstructionSite::insertHTMLHtmlStartTagBeforeHTML):
    
    LayoutTests:
    
    This test checks that the documentElement is available when user
    scripts are run at document start.
    
    * userscripts/document-element-available-at-start-expected.txt: Added.
    * userscripts/document-element-available-at-start.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105321 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    81d6a0e5