[Webkit-unassigned] [Bug 66058] The url property of a beforeload event should be an absolute URL

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 11 21:04:45 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=66058





--- Comment #2 from Marc Hoyois <marc.hoyois at gmail.com>  2011-08-11 21:04:45 PST ---
Interesting, I didn't know about resolveURL. There are indeed 4 places in my ClickToPlugin extension where it is critical that URLs be resolved, so I'll check the other thread. But I think that event.url should be absolute regardless.
Other URL-properties of DOM objects (e.g. anchor.href, video.mediaSrc) return absolute URLs, so it seems consistent that event.url should be absolute.

The use case I have in mind is very specific to the beforeload event: when deciding whether or not to block (or do something else with) a resource, the "beginning" of the URL is usually the most relevant part, and so the URL has to be resolved using the anchor trick. If we want to sniff the MIME type of the resource, we also need an absolute URL.

-- 
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