Closed Bug 249809 Opened 21 years ago Closed 21 years ago

wrong referer sent for generated content linked from stylesheet

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.8beta1

People

(Reporter: dbaron, Assigned: dbaron)

References

()

Details

(Whiteboard: [patch])

Attachments

(1 file, 1 obsolete file)

Description: This is similar to bug 249168 and bug 249171. When the 'content' property contains a url() value, we should send the stylesheet URL as the HTTP Referer header when retrieving the URL. Steps to Reproduce: Load http://dbaron.org/css/test/2004/referer/content Actual results: red square Expected results: green square
Attached patch work in progress (obsolete) — Splinter Review
Doesn't compile yet; the new content class needs to live in content.
Attached patch patchSplinter Review
I talked to jst about the new file and it was ok with him.
Attachment #152310 - Attachment is obsolete: true
Attachment #152458 - Flags: superreview?(bzbarsky)
Attachment #152458 - Flags: review?(bzbarsky)
Comment on attachment 152458 [details] [diff] [review] patch >Index: content/shared/src/nsStyleStruct.cpp >+PRBool nsStyleContentData::operator==(const nsStyleContentData& aOther) >+ return mContent.mString == aOther.mContent.mString; I know you just copied this, but that should be a string compare, not a pointer compare. >Index: content/html/style/src/nsCSSDataBlock.cpp > case eCSSType_ValueList: >+ if (iProp == eCSSProperty_content) { Add a comment below the if block that we're falling through on purpose? >Index: content/svg/document/src/Makefile.in This isn't really relevant to this bug. >Index: content/xul/content/src/nsXULElement.h Nor is this. >Index: layout/html/style/src/nsCSSFrameConstructor.cpp >@@ -1353,48 +1353,44 @@ nsCSSFrameConstructor::CreateGeneratedFr >+ if (!data.mContent.mImage) { > // CSS had something specified that couldn't be converted to a URI object "image object" r+sr=bzbarsky with those nits
Attachment #152458 - Flags: superreview?(bzbarsky)
Attachment #152458 - Flags: superreview+
Attachment #152458 - Flags: review?(bzbarsky)
Attachment #152458 - Flags: review+
(In reply to comment #3) > >Index: content/svg/document/src/Makefile.in > This isn't really relevant to this bug. > >Index: content/xul/content/src/nsXULElement.h > Nor is this. They actually were relevant (although a good bit more was needed) before I moved a bunch of nsStyleContentData functions from the .h file to the .cpp file, and I figured they were good changes anyway...
Fix checked in to trunk, 2004-07-14 15:19 -0700.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.8beta
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: