The registration of schemes is currently racey as they are not registered from the...
authorcdn@chromium.org <cdn@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Jan 2012 00:54:30 +0000 (00:54 +0000)
committercdn@chromium.org <cdn@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Jan 2012 00:54:30 +0000 (00:54 +0000)
Getting rid of the assert that ensures that we are registering from the main thread until we can fix this.

Thank you ap@webkit for helping us identify this.

https://bugs.webkit.org/show_bug.cgi?id=77160

Reviewed by Adam Barth.

* platform/SchemeRegistry.cpp:
(WebCore::CORSEnabledSchemes):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106064 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/SchemeRegistry.cpp

index 47cd87c..85d21db 100644 (file)
@@ -1,3 +1,17 @@
+2012-01-26  Cris Neckar  <cdn@chromium.org>
+
+        The registration of schemes is currently racey as they are not registered from the main thread. 
+        Getting rid of the assert that ensures that we are registering from the main thread until we can fix this.
+
+        Thank you ap@webkit for helping us identify this.
+
+        https://bugs.webkit.org/show_bug.cgi?id=77160
+
+        Reviewed by Adam Barth.
+
+        * platform/SchemeRegistry.cpp:
+        (WebCore::CORSEnabledSchemes):
+
 2012-01-26  Anders Carlsson  <andersca@apple.com>
 
         We don't need to always repaint overlay scrollbars if they're in layers
index 40b43b3..d5d36f1 100644 (file)
@@ -155,7 +155,7 @@ static URLSchemesMap& schemesAllowingDatabaseAccessInPrivateBrowsing()
 
 static URLSchemesMap& CORSEnabledSchemes()
 {
-    ASSERT(isMainThread());
+    // FIXME: http://bugs.webkit.org/show_bug.cgi?id=77160  
     DEFINE_STATIC_LOCAL(URLSchemesMap, CORSEnabledSchemes, ());
 
     if (CORSEnabledSchemes.isEmpty()) {