[M108 Migration] Reset EWebContext ptr in CookieManager during EWebContext destroyed 02/288102/10
authorBakka Uday Kiran <b.kiran@samsung.com>
Fri, 10 Feb 2023 10:38:38 +0000 (16:08 +0530)
committerBot Blink <blinkbot@samsung.com>
Wed, 15 Feb 2023 15:52:34 +0000 (15:52 +0000)
commiteebfc7f5c6f945a09dfc966e7451aa93f09b8ef6
tree339f207fca8b9310a7a80ecb0d9867f6f68da7e2
parentc65a73d10638773d9a7406b4f24f978a8c368ee3
[M108 Migration] Reset EWebContext ptr in CookieManager during EWebContext destroyed

CookieManager accesses EWebContext when it handles cookie storage,
but it has longer life cycle than EWebContext. To prevent accessing the
destroyed EWebContext, this patch resets the pointer of EWebContext in
CookieManager when EWebContext is destroyed.

Chromium supports only SQLite based persistent cookie storage.
This patch deprecates an enumeration for text file based cookie storage,
EWK_COOKIE_PERSISTENT_STORAGE_TEXT.

Reference:
https://review.tizen.org/gerrit/c/281416
https://review.tizen.org/gerrit/c/280780

Change-Id: I180b12b6929aac1d991d2c942f1eaf6780de992f
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
tizen_src/ewk/efl_integration/cookie_manager.cc
tizen_src/ewk/efl_integration/cookie_manager.h
tizen_src/ewk/efl_integration/eweb_context.cc
tizen_src/ewk/efl_integration/public/ewk_cookie_manager.cc