Closed
Bug 416958
Opened 18 years ago
Closed 18 years ago
Update header names
Categories
(Core :: XML, defect, P3)
Core
XML
Tracking
()
RESOLVED
FIXED
mozilla1.9beta4
People
(Reporter: sicking, Assigned: suryaismail)
References
Details
Attachments
(1 file, 2 obsolete files)
14.28 KB,
patch
|
sicking
:
review+
sicking
:
superreview+
|
Details | Diff | Splinter Review |
some of the headers have changed names in the access-control spec. We need to update those. Also, the Method-Check header should be removed, along with using the method as part of the key to the OPTIONS cache.
Surya, wanna have a go. Might be just as easy to do as part of bug 416957, but i wanted to have a separate bug so we don't forget.
Updated•18 years ago
|
Flags: blocking1.9?
Assignee | ||
Comment 1•18 years ago
|
||
Comment 2•18 years ago
|
||
Surya, btw, I changed Access-Control-Origin so it no longer includes the port if the port is the default port for the scheme. This should make the 95% case easier for Web developers.
Reporter | ||
Comment 3•18 years ago
|
||
you should also remove the use of the method as part of the key to the OPTIONS cache. Which probably means that you can remove passing the method to the nsACProxyListener entirely.
Assignee | ||
Comment 4•18 years ago
|
||
Corrections. Thanks Anne and Jonas. Sorry for making you guys repeat yourselves.
Attachment #303053 -
Attachment is obsolete: true
Reporter | ||
Updated•18 years ago
|
Attachment #303213 -
Flags: review?(jonas)
Reporter | ||
Updated•18 years ago
|
Flags: blocking1.9? → blocking1.9+
Priority: -- → P3
Reporter | ||
Comment 5•18 years ago
|
||
Comment on attachment 303213 [details] [diff] [review]
Corrections
> uri->GetPort(&port);
>- if (port == -1) {
>- port = NS_GetDefaultPort(scheme.get());
>- if (port == -1) {
>- return NS_ERROR_DOM_BAD_URI;
>- }
>+ if (port != -1) {
>+ root.Append(":");
>+ root.AppendInt(port);
> }
So I don't think this is exactly what you want to do. This'll send out http://foo.com:80 if the user explicitly navigates to :80. Rather you should compare not write out a port if GetPort returns -1 *or* if it returns the same as NS_GetDefaultPort.
r/sr=me with that fixed.
Attachment #303213 -
Flags: superreview+
Attachment #303213 -
Flags: review?(jonas)
Attachment #303213 -
Flags: review+
Assignee | ||
Comment 6•18 years ago
|
||
Attachment #303213 -
Attachment is obsolete: true
Attachment #303468 -
Flags: review?(jonas)
Reporter | ||
Comment 7•18 years ago
|
||
Comment on attachment 303468 [details] [diff] [review]
Default port correction
Sweet, thanks!
Attachment #303468 -
Flags: superreview+
Attachment #303468 -
Flags: review?(jonas)
Attachment #303468 -
Flags: review+
Reporter | ||
Updated•18 years ago
|
Keywords: checkin-needed
Comment 8•18 years ago
|
||
Checking in content/base/src/nsCrossSiteListenerProxy.cpp;
/cvsroot/mozilla/content/base/src/nsCrossSiteListenerProxy.cpp,v <-- nsCrossSiteListenerProxy.cpp
new revision: 3.10; previous revision: 3.9
done
Checking in content/base/src/nsXMLHttpRequest.cpp;
/cvsroot/mozilla/content/base/src/nsXMLHttpRequest.cpp,v <-- nsXMLHttpRequest.cpp
new revision: 1.220; previous revision: 1.219
done
Checking in content/base/src/nsXMLHttpRequest.h;
/cvsroot/mozilla/content/base/src/nsXMLHttpRequest.h,v <-- nsXMLHttpRequest.h
new revision: 1.69; previous revision: 1.68
done
Checking in content/base/test/file_CrossSiteXHR2_inner.html;
/cvsroot/mozilla/content/base/test/file_CrossSiteXHR2_inner.html,v <-- file_CrossSiteXHR2_inner.html
new revision: 1.2; previous revision: 1.1
done
Checking in content/base/test/file_CrossSiteXHR3_inner.html;
/cvsroot/mozilla/content/base/test/file_CrossSiteXHR3_inner.html,v <-- file_CrossSiteXHR3_inner.html
new revision: 1.2; previous revision: 1.1
done
Checking in content/base/test/test_CrossSiteXHR3.html;
/cvsroot/mozilla/content/base/test/test_CrossSiteXHR3.html,v <-- test_CrossSiteXHR3.html
new revision: 1.2; previous revision: 1.1
done
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9beta4
Updated•18 years ago
|
Flags: in-testsuite+
Updated•18 years ago
|
Keywords: dev-doc-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•