[Title] Authentication in iFrame
[Issue#] TD-9604, DCM-596
[Problem] Authentication pop up is not shown for iFrames
[Cause] Since we are handling Authentication challenge requests only for main frames, iframe case is being ignored.
[Solution] Enabled Authentication challenge requests for all frames
[Developer] Raveendra Karu (r.karu@samsung.com)
#define ENABLE_TIZEN_CONSIDER_COOKIE_DISABLED_IF_SOUP_COOKIE_JAR_ACCEPT_NEVER_IS_SET 1 /* Raveendra Karu(r.karu@samsung.com) : Gets cookies enabled/disabled status from browser settings and returns the same to the Navigator Object */
#define ENABLE_TIZEN_REDIRECTED_LOCATION_IS_NOT_UTF_8 1 /* Raveendra Karu(r.karu@samsung.com) : If redirected url is not utf-8 encoded, String:fromUTF8 (url) returns NULL. This patch is to avoid this problem*/
#define ENABLE_TIZEN_CLEAR_HTTPBODY_IN_POST_TO_GET_REDIRECTION 1 /* Raveendra Karu(r.karu@samsung.com) : Clear request http body if redirection happens from POST/PUT to GET */
+#define ENABLE_TIZEN_AUTHENTICATION_CHALLENGE_ENABLED_IN_ALL_FRAMES 1 /* Raveendra Karu(r.karu@samsung.com) : Authentication challenge is enabled even if the frame is not a main frame*/
#define ENABLE_TIZEN_FIX_SHOULD_AA_LINES_CONDITION 1 /*Younghwan Cho(yhwan.cho@samsung.com) : Add some conditions for AA to draw box-lines */
#define ENABLE_TIZEN_JPEGIMAGE_DECODING_THREAD 0 /* Keunyong Lee(ky07.lee@samsung.com) : Make new thread for Jpeg image decoding */
#define ENABLE_TIZEN_CLEAR_MEMORY_CACHE_BUG_FIX 1 /* Keunyong Lee(ky07.lee@samsung.com) : Fix decoded data contolling problem after memory cache clearing */
void PageLoadClientEfl::didReceiveAuthenticationChallengeInFrame(WKPageRef page, WKFrameRef frame, WKAuthenticationChallengeRef authenticationChallenge, const void* clientInfo)
{
+#if !ENABLE(TIZEN_AUTHENTICATION_CHALLENGE_ENABLED_IN_ALL_FRAMES)
if (!WKFrameIsMainFrame(frame))
return;
+#endif
Evas_Object* ewkView = toPageLoadClientEfl(clientInfo)->viewImpl()->view();
Ewk_Auth_Challenge* authChallenge = ewkAuthChallengeCreate(authenticationChallenge);