RESOLVED INVALID Bug 83772
[BlackBerry] Set referrer for plugin load if needed.
https://bugs.webkit.org/show_bug.cgi?id=83772
Summary [BlackBerry] Set referrer for plugin load if needed.
Charles Wei
Reported 2012-04-12 05:19:04 PDT
Set referrer for resources requested by plugin.
Attachments
Patch (3.65 KB, patch)
2012-04-12 05:24 PDT, Charles Wei
no flags
Patch (3.66 KB, patch)
2012-04-12 06:30 PDT, Charles Wei
no flags
Patch (3.66 KB, patch)
2012-04-12 07:09 PDT, Charles Wei
tonikitoo: review-
pnormand: commit-queue-
Charles Wei
Comment 1 2012-04-12 05:24:59 PDT
Rob Buis
Comment 2 2012-04-12 05:27:10 PDT
Comment on attachment 136883 [details] Patch Looks ideal for a helper method :)
Charles Wei
Comment 3 2012-04-12 05:46:05 PDT
(In reply to comment #2) > (From update of attachment 136883 [details]) > Looks ideal for a helper method :) Good suggestion. That makes less code.
Charles Wei
Comment 4 2012-04-12 06:30:42 PDT
Early Warning System Bot
Comment 5 2012-04-12 06:43:08 PDT
Philippe Normand
Comment 6 2012-04-12 06:46:15 PDT
Build Bot
Comment 7 2012-04-12 06:46:59 PDT
Charles Wei
Comment 8 2012-04-12 06:59:37 PDT
Comment on attachment 136891 [details] Patch typo in the patch, and revoke the review request.
Charles Wei
Comment 9 2012-04-12 07:09:20 PDT
Philippe Normand
Comment 10 2012-04-12 07:13:24 PDT
Early Warning System Bot
Comment 11 2012-04-12 07:14:10 PDT
Build Bot
Comment 12 2012-04-12 07:34:58 PDT
Antonio Gomes
Comment 13 2012-04-12 07:51:19 PDT
Comment on attachment 136902 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=136902&action=review > Source/WebCore/ChangeLog:8 > + No new tests, initial upstream of BlackBerry porting. plePlease say what it fixes, and why others might not need this. > Source/WebCore/plugins/PluginView.cpp:127 > +static void setReferrerIfNeeded(FrameLoaderRequest request, const Frame* parentFrame) > +{ > +#if PLATFORM(BLACKBERRY) > + if (!SecurityPolicy::shouldHideReferrer(request.resourceRequest().url(), parentFrame->document()->baseURL())) > + request.resourceRequest().setHTTPReferrer(parentFrame->loader()->outgoingReferrer()); > +#endif > +} use param_unused in a #else block, please.
Note You need to log in before you can comment on or make changes to this bug.