зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1456391 - Part 9: Support PrivacyLevel form data filtering with GeckoView, too. r=snorp
MozReview-Commit-ID: 9F5ZNWf0lYc --HG-- extra : rebase_source : 7da2705d27fdecbc915f3d6516452c413635b062
This commit is contained in:
Родитель
5ec5f23aab
Коммит
375f2704c3
|
@ -10,6 +10,7 @@ XPCOMUtils.defineLazyModuleGetters(this, {
|
|||
Services: "resource://gre/modules/Services.jsm",
|
||||
SessionHistory: "resource://gre/modules/sessionstore/SessionHistory.jsm",
|
||||
FormData: "resource://gre/modules/FormData.jsm",
|
||||
PrivacyFilter: "resource://gre/modules/sessionstore/PrivacyFilter.jsm",
|
||||
ScrollPosition: "resource://gre/modules/ScrollPosition.jsm",
|
||||
Utils: "resource://gre/modules/sessionstore/Utils.jsm",
|
||||
});
|
||||
|
@ -87,6 +88,8 @@ class GeckoViewContent extends GeckoViewContentModule {
|
|||
|
||||
scrolldata.zoom.displaySize = displaySize;
|
||||
|
||||
formdata = PrivacyFilter.filterFormData(formdata || {});
|
||||
|
||||
return {history, formdata, scrolldata};
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче