Bug 96362 - [BlackBerry] Basic authentication challenge credentials for stored credentials again after restarting browser
Summary: [BlackBerry] Basic authentication challenge credentials for stored credential...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit BlackBerry (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-11 00:46 PDT by Sean Wang
Modified: 2012-09-24 11:34 PDT (History)
8 users (show)

See Also:


Attachments
patch (11.39 KB, patch)
2012-09-11 01:10 PDT, Sean Wang
rwlbuis: review+
Details | Formatted Diff | Diff
rebase patch (11.53 KB, patch)
2012-09-19 00:04 PDT, Sean Wang
no flags Details | Formatted Diff | Diff
patch (11.52 KB, patch)
2012-09-19 02:53 PDT, Sean Wang
no flags Details | Formatted Diff | Diff
Fix a mistake in the last patch (2.67 KB, patch)
2012-09-20 22:46 PDT, Sean Wang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Wang 2012-09-11 00:46:22 PDT
Even user has stored the site's credentials, after restarting browser and accessing the site, the browser will still ask for credentials.
By now, the blackberry porting doesn't load credentials from persistent storage.
Comment 1 Sean Wang 2012-09-11 01:10:13 PDT
Created attachment 163297 [details]
patch

This patch is not good enough in performance, but it resolved this issue.
Know issues for this patch: It will search for credentials for every request before sending it including the URLs which don't require credentials.
The performance issue should/would be fixed in the future patches.
Comment 2 Joe Mason 2012-09-11 10:28:08 PDT
This has been internally reviewed, right?  (I think by me, but I forget if I gave it the final r+. I definitely looked at it.)
Comment 3 Sean Wang 2012-09-11 12:50:39 PDT
(In reply to comment #2)
> This has been internally reviewed, right?  (I think by me, but I forget if I gave it the final r+. I definitely looked at it.)

Yes, you have given r+ internally to the PR200694.
Comment 4 Rob Buis 2012-09-17 07:36:53 PDT
Comment on attachment 163297 [details]
patch

LGTM.
Comment 5 Sean Wang 2012-09-19 00:04:14 PDT
Created attachment 164675 [details]
rebase patch

The code base has changed in Source/WebCore/platform/network/blackberry/NetworkManager.cpp, I re-applied the last r+ed patch and made this patch.
At the same time, I added the macro BLACKBERRY_CREDENTIAL_PERSIST to include Settings.h, since it is only used by this change.

+#if ENABLE(BLACKBERRY_CREDENTIAL_PERSIST)
+#include "Settings.h"
+#endif
Comment 6 WebKit Review Bot 2012-09-19 00:07:07 PDT
Attachment 164675 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.cpp:1020:  Omit int when using unsigned  [runtime/unsigned] [1]
Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.h:59:  Omit int when using unsigned  [runtime/unsigned] [1]
Total errors found: 2 in 7 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 7 Sean Wang 2012-09-19 02:53:02 PDT
Created attachment 164702 [details]
patch

Correct the style error of the rebased patch.
Comment 8 Rob Buis 2012-09-19 07:28:07 PDT
Comment on attachment 164702 [details]
patch

Looks good.
Comment 9 Charles Wei 2012-09-19 19:08:40 PDT
Comment on attachment 164702 [details]
patch

commit.
Comment 10 WebKit Review Bot 2012-09-19 19:34:20 PDT
Comment on attachment 164702 [details]
patch

Clearing flags on attachment: 164702

Committed r129087: <http://trac.webkit.org/changeset/129087>
Comment 11 WebKit Review Bot 2012-09-19 19:34:23 PDT
All reviewed patches have been landed.  Closing bug.
Comment 12 Sean Wang 2012-09-20 22:46:29 PDT
Created attachment 165053 [details]
Fix a mistake in the last patch

Since the trunk has been changed during reviewing the last patch, one line of the last patch can cause build failure.
This patch is to sync with blackberry trunk.
Comment 13 Rob Buis 2012-09-24 07:23:48 PDT
Comment on attachment 165053 [details]
Fix a mistake in the last patch

Looks good.
Comment 14 Rob Buis 2012-09-24 10:57:35 PDT
Last patch still needs to go in.
Comment 15 WebKit Review Bot 2012-09-24 11:33:57 PDT
Comment on attachment 165053 [details]
Fix a mistake in the last patch

Clearing flags on attachment: 165053

Committed r129392: <http://trac.webkit.org/changeset/129392>
Comment 16 WebKit Review Bot 2012-09-24 11:34:00 PDT
All reviewed patches have been landed.  Closing bug.