mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 10:08:41 +00:00
[XForms] Allow chrome:// to submit anywhere. Bug 316931, r=doronr+aaronr, patch by surkov@dc.baikal.ru
This commit is contained in:
parent
9feebd2a16
commit
8671300fe6
@ -965,9 +965,13 @@ nsXFormsSubmissionElement::CheckSameOrigin(nsIURI *aBaseURI, nsIURI *aTestURI)
|
||||
// if same origin is required, default to false
|
||||
allowSubmission = PR_FALSE;
|
||||
|
||||
// if we don't replace the instance, we allow file:// to submit data anywhere
|
||||
// if we don't replace the instance, we allow file:// and chrome://
|
||||
// to submit data anywhere
|
||||
if (!mIsReplaceInstance) {
|
||||
aBaseURI->SchemeIs("file", &allowSubmission);
|
||||
if (!allowSubmission) {
|
||||
aBaseURI->SchemeIs("chrome", &allowSubmission);
|
||||
}
|
||||
}
|
||||
|
||||
// let's check the permission manager
|
||||
|
Loading…
x
Reference in New Issue
Block a user