Google Chrome extension bug

3 October, 2010 (18:09)

I’m working on a new extension for chrome, which will add, now missing, functionality to Facebook.
The extension uses a “content script” which is only run on URLs that match a certain pattern and it also loads a CSS file which has some styles for the elements I inject into the page.
But I had a problem that the CSS simply did not load and no amount of googling helped me resolve the issue, it seems as if no one had ever had a problem like this. I knew that with the majority of internet users connecting through reliable broadband services from providers such as O2 and Verizon that the problem was unlikely to be connection based. However, I was still struggling to work out why the CSS did not load. Only after trying everything I could imagine have I found the cause of the problem. Well it was actually dumb luck.
I had my “matches” pattern set like “http://www.facebook.com/album.php?*” and after removing the question mark the CSS magically loaded.

I suspect that this is a bug in Chrome as there is no mention of question mark having any special meaning in relation to CSS files (or anything else for that matter) in documentation.
I have filled a bug report that is currently marked as “unconfirmed”, but I suspect that nobody has looked at it yet. I wrote this so that if somebody has the same problem, he won’t waste his time on google and stackoverflow, as there is no solution out there (besides this one now:)

bug

Write a comment