• abarth@webkit.org's avatar
    REGRESSION (r104000): AdBlock extension fails to load/function · 81d6a0e5
    abarth@webkit.org authored
    Reviewed by Andy Estes.
    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:
    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
document-element-available-at-start-expected.txt 85 Bytes