diff --git a/db/sqlite3/src/moz.build b/db/sqlite3/src/moz.build
index d6c3ee97e712132893ab529cce3879b7cf165c12..a1b9c6a211261f496fa77b255b8de7e9ad733fa5 100644
--- a/db/sqlite3/src/moz.build
+++ b/db/sqlite3/src/moz.build
@@ -49,8 +49,10 @@ DEFINES['SQLITE_MAX_SCHEMA_RETRY'] = 25
 # -DSQLITE_WIN32_GETVERSIONEX=0 avoids using deprecated functions.
 # SQLite will just assume we are running on NT kinds of Windows. That's fine
 # because we don't support Win9x.
+# -DSQLITE_ALLOW_URI_AUTHORITY=1 enables uri authorities. See bug 879133.
 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
     DEFINES['SQLITE_WIN32_GETVERSIONEX'] = 0
+    DEFINES['SQLITE_ALLOW_URI_AUTHORITY'] = 1
 
 # -DSQLITE_ENABLE_LOCKING_STYLE=1 to help with AFP folders
 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':