RESOLVED FIXED Bug 51750
[Qt]Add local storage settings to QtTestBrowser command line arguments
https://bugs.webkit.org/show_bug.cgi?id=51750
Summary [Qt]Add local storage settings to QtTestBrowser command line arguments
suchi
Reported 2010-12-30 07:49:30 PST
Following local storage settings can be enable form command line arguments for QtTestBrowser: LocalStorageEnabled OfflineStorageDatabaseEnabled OfflineWebApplicationCacheEnabled setOfflineStorageDefaultQuota(maxsize)
Attachments
Patch to enable local storage settings from command line in QtTestBrowser (4.32 KB, patch)
2011-01-03 06:49 PST, suchi
kling: review-
Adding the modified patch as suggested by Andreas Kling (2.46 KB, patch)
2011-01-03 13:16 PST, suchi
no flags
suchi
Comment 1 2011-01-03 06:49:49 PST
Created attachment 77808 [details] Patch to enable local storage settings from command line in QtTestBrowser with this patch user would be able to enable local storage settings from command line for QtTestBrowser
Andreas Kling
Comment 2 2011-01-03 08:18:51 PST
Comment on attachment 77808 [details] Patch to enable local storage settings from command line in QtTestBrowser View in context: https://bugs.webkit.org/attachment.cgi?id=77808&action=review > WebKit.pri:68 > -linux-g++* { > - isEqual(QT_ARCH,x86_64)|isEqual(QT_ARCH,i386): QMAKE_CXXFLAGS += -Werror > -} > +#linux-g++* {isEqual(QT_ARCH,x86_64)|isEqual(QT_ARCH,i386): QMAKE_CXXFLAGS += -Werror} This does not belong in this patch. > WebKitTools/QtTestBrowser/main.cpp:79 > - QWebSettings::enablePersistentStorage(); > + QWebSettings::enablePersistentStorage(); Unrelated whitespace change. > WebKitTools/QtTestBrowser/main.cpp:132 > + << "[-localStorageEnabled]" > + << "[-offlineStorageDatabaseEnabled]" > + << "[-offlineWebApplicationCacheEnabled]" > + << "[-setOfflineStorageDefaultQuota maxSize]" You should follow the same convention as the existing options, -words-separated-by-dashes > WebKitTools/QtTestBrowser/main.cpp:168 > + if (args.contains("-localStorageEnabled")) { > + QWebSettings::globalSettings()->setAttribute(QWebSettings::LocalStorageEnabled, true); > + } Coding style, no {} here. > WebKitTools/QtTestBrowser/main.cpp:172 > + if (args.contains("-offlineStorageDatabaseEnabled")) { > + QWebSettings::globalSettings()->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, true); > + } Ditto. > WebKitTools/QtTestBrowser/main.cpp:176 > + if (args.contains("-offlineWebApplicationCacheEnabled")) { > + QWebSettings::globalSettings()->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, true); > + } Ditto. > WebKitTools/QtTestBrowser/main.cpp:179 > + if (setOfflineStorageDefaultQuotaIndex != -1){ Coding style, space between ) and {. > WebKitTools/QtTestBrowser/webpage.cpp:50 > - applyProxy(); > - > + applyProxy(); > + Unrelated whitespace change.
suchi
Comment 3 2011-01-03 13:16:19 PST
Created attachment 77838 [details] Adding the modified patch as suggested by Andreas Kling Thanks for the comment, had modified the patch with the suggested change.
Andreas Kling
Comment 4 2011-01-05 08:59:43 PST
Comment on attachment 77838 [details] Adding the modified patch as suggested by Andreas Kling r=me
WebKit Commit Bot
Comment 5 2011-01-05 09:37:45 PST
Comment on attachment 77838 [details] Adding the modified patch as suggested by Andreas Kling Clearing flags on attachment: 77838 Committed r75074: <http://trac.webkit.org/changeset/75074>
WebKit Commit Bot
Comment 6 2011-01-05 09:37:51 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.