[Webkit-unassigned] [Bug 34003] [GTK] Pass cookies to GStreamer
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jan 26 03:54:57 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=34003
--- Comment #25 from Philippe Normand <pnormand at igalia.com> 2010-01-26 03:54:56 PST ---
For websites (like... Vimeo) requiring cookies AND referer:
+ Frame* frame = mp->m_player->frameView() ?
mp->m_player->frameView()->frame() : 0;
+ Document* document = frame ? frame->document() : 0;
+ if (document) {
+ gchar* referer = g_strdup(document->documentURI().utf8().data());
+ GstStructure* extraHeaders = gst_structure_new("extra-headers",
"Referer", G_TYPE_STRING,
+ referer, NULL);
+ g_object_set(element, "extra-headers", extraHeaders, NULL);
+ }
slomo ^^ :)
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list