Add a method for blocking Web SQL databases in a third-party context like was added for localStorage in bug #93390 <rdar://problem/11948659>
Created attachment 158476 [details] Patch
This patch ONLY covers creation from a Document context. The web worker case is much more intricate (especially for shared workers), and I don't believe that the workers currently have enough information at the time of invoking openDatabase to be able to support this. I'm currently trying to figure out the best way to pipe that information down into the worker.
Comment on attachment 158476 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=158476&action=review > Source/WebCore/page/SecurityOrigin.cpp:400 > + if (!topOrigin) > + return true; Can you add a FIXME comment about workers? We don't want to have this branch here forever, right?
Committed r125736: <http://trac.webkit.org/changeset/125736>
Followup bugs filed at https://bugs.webkit.org/show_bug.cgi?id=94170 and https://bugs.webkit.org/show_bug.cgi?id=94171