Skip to content

Commit

Permalink
DELIA-59848: Gensmak app launch ends up in APPS-04035 error
Browse files Browse the repository at this point in the history
Reason for change: A failed resource loda from a child page
from the app results in maintenance of incorrect http status code
value in WebKitImplementation (as code is read on every policy decision
callback, irrespective of the source frame i.e main frame or not)...
Test Procedure: None
Priority: P1
Risks: None

Signed-off-by: Vivek.A <[email protected]>
  • Loading branch information
varumugam123 committed Feb 15, 2023
1 parent 46a2577 commit 79a9769
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WebKitBrowser/WebKitImplementation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2540,7 +2540,8 @@ static GSourceFuncs _handlerIntervention =
{
if (type == WEBKIT_POLICY_DECISION_TYPE_RESPONSE) {
auto *response = webkit_response_policy_decision_get_response(WEBKIT_RESPONSE_POLICY_DECISION(decision));
browser->SetResponseHTTPStatusCode(webkit_uri_response_get_status_code(response));
if (webkit_uri_response_is_main_frame(response))
browser->SetResponseHTTPStatusCode(webkit_uri_response_get_status_code(response));
}
webkit_policy_decision_use(decision);
return TRUE;
Expand Down

0 comments on commit 79a9769

Please sign in to comment.