[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
kocienda
kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 06:14:12 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 4db3738c33943d23b9237607d8de6ad701667521
Author: kocienda <kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Tue May 21 21:54:09 2002 +0000
2002-05-21 Kenneth Kocienda <kocienda at apple.com>
Fix for this bug:
Radar 2924728 (post form fails at pt.apple.com; succeeds at macosx.apple.com)
Posted forms are now submitted with the IFURLHandleFlagLoadFromOrigin
load flag set. This prevents a potential bug which may cause a page
with a form that uses itself as an action to be returned from the
cache without submitting.
* kwq/KWQKHTMLPart.mm:
(KHTMLPart::submitForm)
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1189 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog-2002-12-03 b/WebCore/ChangeLog-2002-12-03
index 3981e73..0170199 100644
--- a/WebCore/ChangeLog-2002-12-03
+++ b/WebCore/ChangeLog-2002-12-03
@@ -1,5 +1,19 @@
2002-05-21 Kenneth Kocienda <kocienda at apple.com>
+ Fix for this bug:
+
+ Radar 2924728 (post form fails at pt.apple.com; succeeds at macosx.apple.com)
+
+ Posted forms are now submitted with the IFURLHandleFlagLoadFromOrigin
+ load flag set. This prevents a potential bug which may cause a page
+ with a form that uses itself as an action to be returned from the
+ cache without submitting.
+
+ * kwq/KWQKHTMLPart.mm:
+ (KHTMLPart::submitForm)
+
+2002-05-21 Kenneth Kocienda <kocienda at apple.com>
+
Merged these four include files into the precompiled header.
These are used for the enhanced assertion/debuggin support I
added yesterday.
diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index 3981e73..0170199 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,5 +1,19 @@
2002-05-21 Kenneth Kocienda <kocienda at apple.com>
+ Fix for this bug:
+
+ Radar 2924728 (post form fails at pt.apple.com; succeeds at macosx.apple.com)
+
+ Posted forms are now submitted with the IFURLHandleFlagLoadFromOrigin
+ load flag set. This prevents a potential bug which may cause a page
+ with a form that uses itself as an action to be returned from the
+ cache without submitting.
+
+ * kwq/KWQKHTMLPart.mm:
+ (KHTMLPart::submitForm)
+
+2002-05-21 Kenneth Kocienda <kocienda at apple.com>
+
Merged these four include files into the precompiled header.
These are used for the enhanced assertion/debuggin support I
added yesterday.
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 3981e73..0170199 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,5 +1,19 @@
2002-05-21 Kenneth Kocienda <kocienda at apple.com>
+ Fix for this bug:
+
+ Radar 2924728 (post form fails at pt.apple.com; succeeds at macosx.apple.com)
+
+ Posted forms are now submitted with the IFURLHandleFlagLoadFromOrigin
+ load flag set. This prevents a potential bug which may cause a page
+ with a form that uses itself as an action to be returned from the
+ cache without submitting.
+
+ * kwq/KWQKHTMLPart.mm:
+ (KHTMLPart::submitForm)
+
+2002-05-21 Kenneth Kocienda <kocienda at apple.com>
+
Merged these four include files into the precompiled header.
These are used for the enhanced assertion/debuggin support I
added yesterday.
diff --git a/WebCore/kwq/KWQKHTMLPart.mm b/WebCore/kwq/KWQKHTMLPart.mm
index 989fe0e..2794aaf 100644
--- a/WebCore/kwq/KWQKHTMLPart.mm
+++ b/WebCore/kwq/KWQKHTMLPart.mm
@@ -555,6 +555,7 @@ void KHTMLPart::submitForm( const char *action, const QString &url, const QByteA
#endif
NSMutableDictionary *attributes = [NSMutableDictionary dictionary];
+ unsigned loadFlags = 0;
#ifdef NEED_THIS
KParts::URLArgs args;
@@ -595,6 +596,11 @@ void KHTMLPart::submitForm( const char *action, const QString &url, const QByteA
NSData *postData = [NSData dataWithBytes:formData.data() length:formData.size()];
[attributes setObject:postData forKey:IFHTTPURLHandleRequestData];
[attributes setObject:@"POST" forKey:IFHTTPURLHandleRequestMethod];
+ // When posting, use the IFURLHandleFlagLoadFromOrigin load flag.
+ // This prevents a potential bug which may cause a page
+ // with a form that uses itself as an action to be returned
+ // from the cache without submitting.
+ loadFlags = IFURLHandleFlagLoadFromOrigin;
}
#ifdef NEED_THIS
@@ -619,8 +625,8 @@ void KHTMLPart::submitForm( const char *action, const QString &url, const QByteA
oldDataSource = getDataSource();
frame = [oldDataSource webFrame];
-
- newDataSource = WCIFWebDataSourceMake(u.getNSURL(), attributes, 0);
+
+ newDataSource = WCIFWebDataSourceMake(u.getNSURL(), attributes, loadFlags);
[newDataSource _setParent: [oldDataSource parent]];
[frame setProvisionalDataSource: newDataSource];
diff --git a/WebCore/kwq/KWQKHTMLPartImpl.mm b/WebCore/kwq/KWQKHTMLPartImpl.mm
index 989fe0e..2794aaf 100644
--- a/WebCore/kwq/KWQKHTMLPartImpl.mm
+++ b/WebCore/kwq/KWQKHTMLPartImpl.mm
@@ -555,6 +555,7 @@ void KHTMLPart::submitForm( const char *action, const QString &url, const QByteA
#endif
NSMutableDictionary *attributes = [NSMutableDictionary dictionary];
+ unsigned loadFlags = 0;
#ifdef NEED_THIS
KParts::URLArgs args;
@@ -595,6 +596,11 @@ void KHTMLPart::submitForm( const char *action, const QString &url, const QByteA
NSData *postData = [NSData dataWithBytes:formData.data() length:formData.size()];
[attributes setObject:postData forKey:IFHTTPURLHandleRequestData];
[attributes setObject:@"POST" forKey:IFHTTPURLHandleRequestMethod];
+ // When posting, use the IFURLHandleFlagLoadFromOrigin load flag.
+ // This prevents a potential bug which may cause a page
+ // with a form that uses itself as an action to be returned
+ // from the cache without submitting.
+ loadFlags = IFURLHandleFlagLoadFromOrigin;
}
#ifdef NEED_THIS
@@ -619,8 +625,8 @@ void KHTMLPart::submitForm( const char *action, const QString &url, const QByteA
oldDataSource = getDataSource();
frame = [oldDataSource webFrame];
-
- newDataSource = WCIFWebDataSourceMake(u.getNSURL(), attributes, 0);
+
+ newDataSource = WCIFWebDataSourceMake(u.getNSURL(), attributes, loadFlags);
[newDataSource _setParent: [oldDataSource parent]];
[frame setProvisionalDataSource: newDataSource];
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list