Primary eng (and PM) emails
Summary
WebSQL was implemented in WebKit and Blink as a thin layer on top of SQLite. WebSQL has failed to get traction with other browsers, and the work on the standard has been discontinued. Due to the SQLite implementation, WebSQL exposes a full text search extension (FTS3) which has proven difficult to maintain.
Motivation
First, WebKit has removed FTS support from its WebSQL implementation, and we would like to do the same, for interoperability. Second, FTS had a security issue, and maintaining it has been troublesome. Removing it would allow us to remove a large surface area (SQLite virtual tables) from WebSQL. Third, FTS has low (apparently zero) usage. Given that WebSQL has been abandoned, we’d rather not maintain the unused parts of it.
Interoperability and Compatibility Risk
Describe the degree of interoperability and compatibility risk. For a feature that is also supported in some other engine, do they support eventual removal?
Edge: Never shipped WebSQL
Firefox: Never shipped WebSQL
Safari: Removed FTS support from WebSQL (shipped in Safari 10.1.1)
Alternative implementation suggestion for web developers
Web developers will have to implement full text search at the application level, or settle for a subset of the functionality. Gmail’s offline Chrome application uses “LIKE %needle%” queries.
Usage information from UseCounter
We have shipped a use counter for FTS use in WebSQL in M60: https://www.chromestatus.com/metrics/feature/timeline/popularity/1980
The counter is completely to zero (even looking internally at beta-only data). I think I triggered it when I checked if it works, a few days ago. I checked that the counter triggers by going to chrome://histograms after running an FTS WebSQL test like https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/storage/websql/fts-crash-703507.html
OWP launch tracking bug
Entry on the feature dashboard
https://www.chromestatus.com/feature/5669618848890880
Requesting approval to remove too?
Yes. I would like to remove the feature immediately. I intend to request a merge to M60 for the removal, due to an active security issue. Given the zero UseCounter in beta, I believe no deprecation period is warranted.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAP_mGKohAxsnikk1Jq0d3mEOqtyaVJJbPxJO7L4%2BQ58CWtXghw%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY_mTNV9-JWUZjrTdFQrzYokO%2BgpS-rrHtZykr%3DzuX2Jdw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw_BxgbM61EzMm5h9OCPSVDFDqKq%2BKWOxgeye18mXyDeaA%40mail.gmail.com.
LGTM3
LGTM2
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY_mTNV9-JWUZjrTdFQrzYokO%2BgpS-rrHtZykr%3DzuX2Jdw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw_BxgbM61EzMm5h9OCPSVDFDqKq%2BKWOxgeye18mXyDeaA%40mail.gmail.com.
Thanks for reaching out Conrad! It's entirely possible our UseCounter is lying to us somehow, and then that would totally change the discussion.Can you give us (at least Victor and I) access / steps to reproduce the behavior on your site so we can dig in? I signed up with my google.com account but it sounds like I'm on a waitlist.Also what does your site do on non-WebKit-based browsers? The Microsoft folks love to remind us that Outlook Web Access works just as well as GMail without relying on WebSQL at all (uses IndexedDB and libraries on top). Without any apparent path for broad browser support, WebSQL itself is on pretty rocky footing on the web at the moment (though that's not the subject of this intent, it's certainly related).Rick
Hi Rick,Thanks for looking into this! I've added your Google account to our private beta, let me know if you need a test account added instead (I know some large companies prevent oauth access to emails).You can sign in here: https://mail.superhuman.com/. This will prompt you first for Oauth, and secondly to install an extension, which is what actually uses WebSQL. Happy to share our code if you need it.Conrad
On Fri, Jul 14, 2017 at 10:14 AM, Rick Byers<rby...@chromium.org>wrote:
Thanks for reaching out Conrad! It's entirely possible our UseCounter is lying to us somehow, and then that would totally change the discussion.Can you give us (at least Victor and I) access / steps to reproduce the behavior on your site so we can dig in? I signed up with my google.com account but it sounds like I'm on a waitlist.Also what does your site do on non-WebKit-based browsers? The Microsoft folks love to remind us that Outlook Web Access works just as well as GMail without relying on WebSQL at all (uses IndexedDB and libraries on top). Without any apparent path for broad browser support, WebSQL itself is on pretty rocky footing on the web at the moment (though that's not the subject of this intent, it's certainly related).Rick
Oh yeah I definitely can't give you oath to my google.com e-mail (or install a "can access all information on all websites you visit" extension when using a chrome profile any of my real account for that matter <grin>). I've requested access for rbyers.test@gmail.com instead. Victor, I can share the password for that account with you.
Ah if it's accessing via an extension that explains why it doesn't show up. Generally our web compat principles / analysis are around the open web and so the data doesn't include extensions by default. Obviously extension compatibility is important too, but it's a little different. Still it's not showing up in our extension-specific metrics so we still need to investigate that (the extensions-specific metrics haven't been tested anywhere near as thoroughly as the normal open-web metrics).I suppose relying on a Chrome extension answers the question about other browsers, right? This is a Chrome-only application?
On Fri, Jul 14, 2017 at 1:29 PM, Conrad Irwin <conrad@superhuman.com> wrote:
Hi Rick,Thanks for looking into this! I've added your Google account to our private beta, let me know if you need a test account added instead (I know some large companies prevent oauth access to emails).You can sign in here: https://mail.superhuman.com/. This will prompt you first for Oauth, and secondly to install an extension, which is what actually uses WebSQL. Happy to share our code if you need it.Conrad
On Fri, Jul 14, 2017 at 10:14 AM, Rick Byers<rbyers@chromium.org>wrote:
Thanks for reaching out Conrad! It's entirely possible our UseCounter is lying to us somehow, and then that would totally change the discussion.Can you give us (at least Victor and I) access / steps to reproduce the behavior on your site so we can dig in? I signed up with my google.com account but it sounds like I'm on a waitlist.Also what does your site do on non-WebKit-based browsers? The Microsoft folks love to remind us that Outlook Web Access works just as well as GMail without relying on WebSQL at all (uses IndexedDB and libraries on top). Without any apparent path for broad browser support, WebSQL itself is on pretty rocky footing on the web at the moment (though that's not the subject of this intent, it's certainly related).Rick
Oh yeah I definitely can't give you oath to my google.com e-mail (or install a "can access all information on all websites you visit" extension when using a chrome profile any of my real account Ah if it's accessing via an extension that explains why it doesn't show up. Generally our web compat principles / analysis are around the open web and so the data doesn't include extensions by default. Obviously extension compatibility is important too, but it's a little different. Still it's not showing up in our extension-specific metrics so we still need to investigate that (the extensions-specific metrics haven't been tested anywhere near as thoroughly as the normal open-web metrics).
Conrad
- Interoperability - Safari being the only other major browser with support (with no likely path for other browsers) definitely makes WebSql an attractive removal target. Should Safari drop support for the fts3 extension, then that would make dropping support for it from Chrome more attractive as well.
Thank you for the thoughtful response, Rick!One small clarification, below.On Tue, Jul 18, 2017 at 5:32 AM, Rick Byers <rby...@chromium.org> wrote:
- Interoperability - Safari being the only other major browser with support (with no likely path for other browsers) definitely makes WebSql an attractive removal target. Should Safari drop support for the fts3 extension, then that would make dropping support for it from Chrome more attractive as well.
The whole WebSQL is a more complex story, but Safari _did_ drop support for the FTS3 extension. Safari 10.1.1, the current version on my OS X 10.12 laptop, passes a layout test that checks for lack for FTS3 support. We are the only browser that ships FTS3 at the moment.
I'll collect more data and come back with an updated intent. Since the (most recent) security issue was solved, the timeline needs to be revised, at the very least.
Thank you,Victor
Quick question for you Conrad: is all your WebSQL access from pages with a chrome-extension:// URL, or do you also do some from the regular web page? I assume that if it's the extension that owns the database, you can only read from the database from the extension context, right? I'm just trying to predict what Victor will see in his metrics when he fixes them.
I removed extensions from our default metrics awhile back, but I wasn't considering cases like this where a web property relies on it's own extension to function correctly. I'm still not exactly sure what to make of web compat around extensions - it's definitely not the same thing as the open web. In general the web platform team's mission is to make the web better, and we don't really see extensions as part of "the web", though I do see making apps like SuperHuman successful as part of our mission (just that relying on an extension is a bug we need to fix together somehow).
Thanks again for reaching out so quickly on this to blink-dev. Active security issues (especially those about to be announced publicly at a BlackHat conference) make us willing to rush decisions like this. I'm very glad we caught your usage and found an alternate plan in time. Sorry for the scare!
As a web developer, FTS is a very useful part of WebSQL. A couple of years ago, I developed an offline database web search facility in conjunction with a daily downloadable RF database. This app (you can see it here; https://web.acma.gov.au/offline-rrl/ ) is a valuable tool to allow our RF engineers, and public, to lookup our RF database and search it, etc, when they are out in the field eg; “off grid” and “off network”. WebSQL and FTS3 are key components to this tool and I do not know of any other realistic web based client side tool that can achieve the same power. I would strongly like this functionality to remain. And on the topic of virtual tables, any chance of extending to allow offline WebSQL spatial indexing capabilities as well as full text searching would also come in very useful.
Harris.
As a web developer, FTS is a very useful part of WebSQL. A couple of years ago, I developed an offline database web search facility in conjunction with a daily downloadable RF database. This app (you can see it here; https://web.acma.gov.au/offline-rrl/ ) is a valuable tool to allow our RF engineers, and public, to lookup our RF database and search it, etc, when they are out in the field eg; “off grid” and “off network”. WebSQL and FTS3 are key components to this tool and I do not know of any other realistic web based client side tool that can achieve the same power. I would strongly like this functionality to remain. And on the topic of virtual tables, any chance of extending to allow offline WebSQL spatial indexing capabilities as well as full text searching would also come in very useful.
Hi Victor,
Thanks for your explanation. The offline app I mentioned above ( https://web.acma.gov.au/offline-rrl/ ) is a complete standalone web app that can consume our daily downloadable relational database (zip file of csv’s). It allows extensive and complex searching of this database – leveraging the browser performance of WebSQL and FTS. I have long understood that WebSQL has been an abandoned standard, and if it really is abandoned, I for one, have a real need for a standards based native SQL engine inside the browser – preferably with full text and spatial indexing capabilities.
Harris