Title: [92041] trunk/Source/WebCore
Revision
92041
Author
[email protected]
Date
2011-07-29 19:11:24 -0700 (Fri, 29 Jul 2011)

Log Message

Remove zipcar.com site specific hack added in r87361
https://bugs.webkit.org/show_bug.cgi?id=65405

Reviewed by Adam Barth.

* html/HTMLScriptElement.cpp:
(WebCore::HTMLScriptElement::insertedIntoDocument):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (92040 => 92041)


--- trunk/Source/WebCore/ChangeLog	2011-07-30 02:06:58 UTC (rev 92040)
+++ trunk/Source/WebCore/ChangeLog	2011-07-30 02:11:24 UTC (rev 92041)
@@ -1,3 +1,13 @@
+2011-07-29  James Simonsen  <[email protected]>
+
+        Remove zipcar.com site specific hack added in r87361
+        https://bugs.webkit.org/show_bug.cgi?id=65405
+
+        Reviewed by Adam Barth.
+
+        * html/HTMLScriptElement.cpp:
+        (WebCore::HTMLScriptElement::insertedIntoDocument):
+
 2011-07-29  James Robinson  <[email protected]>
 
         [chromium] Reorder functions in LayerRendererChromium.cpp to make bug 58840 easier to review

Modified: trunk/Source/WebCore/html/HTMLScriptElement.cpp (92040 => 92041)


--- trunk/Source/WebCore/html/HTMLScriptElement.cpp	2011-07-30 02:06:58 UTC (rev 92040)
+++ trunk/Source/WebCore/html/HTMLScriptElement.cpp	2011-07-30 02:11:24 UTC (rev 92041)
@@ -29,7 +29,6 @@
 #include "EventNames.h"
 #include "HTMLNames.h"
 #include "ScriptEventListener.h"
-#include "Settings.h"
 #include "Text.h"
 
 namespace WebCore {
@@ -82,33 +81,8 @@
         HTMLElement::parseMappedAttribute(attr);
 }
 
-static bool needsOldRequirejsQuirk(HTMLScriptElement* element)
-{
-    if (element->fastGetAttribute(typeAttr) != "script/cache")
-        return false;
-
-    Document* document = element->document();
-
-    const KURL& url = ""
-    if (!equalIgnoringCase(url.host(), "www.zipcar.com"))
-        return false;
-
-    Settings* settings = document->settings();
-    if (!settings)
-        return false;
-    if (!settings->needsSiteSpecificQuirks())
-        return false;
-
-    return true;
-}
-
 void HTMLScriptElement::insertedIntoDocument()
 {
-    if (needsOldRequirejsQuirk(this)) {
-        if (!asyncAttributeValue())
-            handleAsyncAttribute(); // Clear forceAsync, so this script loads in parallel, but executes in order.
-        setAttribute(typeAttr, "text/_javascript_");
-    }
     HTMLElement::insertedIntoDocument();
     ScriptElement::insertedIntoDocument();
 }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to