Closed Bug 292355 Opened 19 years ago Closed 19 years ago

Plugins send document's base URI as referrer, instead of document's URI

Categories

(Core Graveyard :: Plug-ins, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.8beta2

People

(Reporter: Biesinger, Assigned: Biesinger)

References

()

Details

Attachments

(1 file)

5932         httpChannel->SetReferrer(doc->GetBaseURI());

shouldn't that be doc->GetDocumentURI()?
Yeah, that should be GetDocumentURI() (see what links send, and images, and so
forth).  Want to post a patch, biesi?
Attached patch patchSplinter Review
only the second hunk of the patch is needed to fix this bug, the rest is
removing some unnecessary casts and indentation fixing.

I'd attach a testcase, but hard to do without inspecting server logs or writing
plugin content
Assignee: nobody → cbiesinger
Status: NEW → ASSIGNED
Attachment #182225 - Flags: superreview?(bzbarsky)
Attachment #182225 - Flags: review?(jst)
Comment on attachment 182225 [details] [diff] [review]
patch

r=jst
Attachment #182225 - Flags: review?(jst) → review+
Attachment #182225 - Flags: superreview?(bzbarsky) → superreview+
Comment on attachment 182225 [details] [diff] [review]
patch

low risk patch to send the correct referrer for plugins
Attachment #182225 - Flags: approval1.8b2?
Target Milestone: --- → mozilla1.8beta2
Comment on attachment 182225 [details] [diff] [review]
patch

a=asa
Attachment #182225 - Flags: approval1.8b2? → approval1.8b2+
Checking in modules/plugin/base/src/nsPluginHostImpl.cpp;
/cvsroot/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp,v  <-- 
nsPluginHostImpl.cpp
new revision: 1.523; previous revision: 1.522
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: