Closed
Bug 478160
Opened 15 years ago
Closed 15 years ago
@namespace 'a b' results in serialization weirdness
Categories
(Core :: CSS Parsing and Computation, defect, P4)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla1.9.2a1
People
(Reporter: jruderman, Assigned: dbaron)
References
Details
(Keywords: testcase)
Attachments
(3 files)
473 bytes,
text/html
|
Details | |
8.64 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
9.86 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•15 years ago
|
||
Yeah, we probably need to put quotes around the contents of the url().
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → dbaron
Status: NEW → ASSIGNED
OS: Mac OS X → All
Hardware: x86 → All
Assignee | ||
Comment 2•15 years ago
|
||
I have patches for this in my queue (two of them, though there's really more that needs to be done, although that's probably covered by other bugs), but I need to write tests for them at some later point. (My queue is at http://hg.mozilla.org/users/dbaron_mozilla.com/patches/ , and the patches are escape-string-should-append and quote-and-escape-url .)
Assignee | ||
Comment 3•15 years ago
|
||
This simplifies a lot of callers of this function, including future ones (I'm going to add more, and not only in this bug).
Attachment #365614 -
Flags: superreview?(bzbarsky)
Attachment #365614 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 4•15 years ago
|
||
This fixes this bug.
Attachment #365615 -
Flags: superreview?(bzbarsky)
Attachment #365615 -
Flags: review?(bzbarsky)
Updated•15 years ago
|
Attachment #365614 -
Flags: superreview?(bzbarsky)
Attachment #365614 -
Flags: superreview+
Attachment #365614 -
Flags: review?(bzbarsky)
Attachment #365614 -
Flags: review+
Updated•15 years ago
|
Attachment #365615 -
Flags: superreview?(bzbarsky)
Attachment #365615 -
Flags: superreview+
Attachment #365615 -
Flags: review?(bzbarsky)
Attachment #365615 -
Flags: review+
Comment 5•15 years ago
|
||
Comment on attachment 365615 [details] [diff] [review] patch 2: serialize all url() in quoted form, and escape the strings properly > nsROCSSPrimitiveValue::GetEscapedURI(nsIURI *aURI, PRUnichar **aReturn) >+ // XXX Should this reuse nsStyleUtil::AppendEscapedCSSString? Please. And get rid of this function altogether. r+sr=bzbarsky
Assignee | ||
Comment 6•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/5a21d2b181e9 http://hg.mozilla.org/mozilla-central/rev/1ff736fd5e41
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Priority: -- → P4
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
Comment 7•15 years ago
|
||
I just spent part of a day tracking down a problem in an older extension (I did not write the original code). It turns out that the code assumed that getComputedStyle() would NOT return quotes within url() values but because of this bug fix that is not a valid assumption in Firefox 3.6. I added a note to the end of this section: https://developer.mozilla.org/en/Firefox_3.6_for_developers#DOM Is more documentation needed somewhere? I suspect this change will affect other pages and extensions too....
Comment 8•15 years ago
|
||
(In reply to comment #7) > I suspect this change will affect other pages and extensions too.... Like the N900 mobile version of Google Images. See bug 537218.
Updated•14 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•