Closed
Bug 489455
Opened 16 years ago
Closed 16 years ago
Update URLClassifier to follow Safebrowsing spec
Categories
(Toolkit :: Safe Browsing, defect, P2)
Toolkit
Safe Browsing
Tracking
()
RESOLVED
FIXED
Firefox 3.6a1
People
(Reporter: sdwilsh, Assigned: sdwilsh)
Details
(Keywords: fixed1.9.0.11, fixed1.9.1)
Attachments
(1 file, 1 obsolete file)
5.76 KB,
patch
|
tony
:
review+
dveditz
:
approval1.9.0.11+
|
Details | Diff | Splinter Review |
The spec has changed, and we need to remove a special case from Safebrowsing URL canonicalization where "%00" is changed to "%01".
Assignee | ||
Comment 1•16 years ago
|
||
This makes the requested change. I also added a test for this behavior, as well as updated the C++ test to follow the format of the rest of the test harness (TEST-PASS on success, TEST-UNEXPECTED-FAIL on failure).
Not sure if Tony or dcamp should be the one reviewing this, so requesting from both and assuming one of them will tell me what's up with that.
Attachment #373941 -
Flags: review?
Assignee | ||
Updated•16 years ago
|
Attachment #373941 -
Flags: review?(tony)
Attachment #373941 -
Flags: review?(dcamp)
Attachment #373941 -
Flags: review?
Assignee | ||
Updated•16 years ago
|
Whiteboard: [needs review safebrowsing peer]
Comment 2•16 years ago
|
||
Blocks 3.5 final, if we can get it done before b4 code freeze, we'll take it for that milestone, too!
Flags: blocking-firefox3.5+
Priority: -- → P2
Assignee | ||
Comment 3•16 years ago
|
||
It was suggested on irc to use ScopedXPCOM in the test as well so we get leak checking.
Attachment #373941 -
Attachment is obsolete: true
Attachment #373942 -
Flags: review?(tony)
Attachment #373942 -
Flags: review?(dcamp)
Attachment #373941 -
Flags: review?(tony)
Attachment #373941 -
Flags: review?(dcamp)
Comment 4•16 years ago
|
||
Comment on attachment 373942 [details] [diff] [review]
v1.1
r+
Attachment #373942 -
Flags: review?(tony) → review+
Comment 5•16 years ago
|
||
(In reply to comment #0)
> The spec has changed, and we need to remove a special case from Safebrowsing
> URL canonicalization where "%00" is changed to "%01".
Which spec has changed? I don't see any changes recently here: http://code.google.com/p/google-safe-browsing/wiki/Protocolv2Spec
But that's because this spec omits this detail completely... Oh well... Wouldn't it be more honest to say that this change is needed, because Google has changed software on their servers?
Assignee | ||
Updated•16 years ago
|
Attachment #373942 -
Flags: review?(dcamp)
Assignee | ||
Comment 6•16 years ago
|
||
(In reply to comment #5)
> Which spec has changed? I don't see any changes recently here:
> http://code.google.com/p/google-safe-browsing/wiki/Protocolv2Spec
> But that's because this spec omits this detail completely... Oh well...
> Wouldn't it be more honest to say that this change is needed, because Google
> has changed software on their servers?
More accurately, this substitution happens on the server side and in Firefox, but is not actually part of the protocol spec. Google would like their servers to not do this, and are waiting for us to update our code.
I'd love to be able to land this today, but the tree is all sorts of colors but green, so we'll have to wait and see.
Whiteboard: [needs review safebrowsing peer] → [can land]
Assignee | ||
Comment 7•16 years ago
|
||
I was wrong about the tree. Assuming things cycle green, I'll land on 1.9.1 tonight as well.
http://hg.mozilla.org/mozilla-central/rev/83b59076910c
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Summary: Update URLClassifier per new Safebrowsing spec → Update URLClassifier to follow Safebrowsing spec
Whiteboard: [can land]
Target Milestone: --- → Firefox 3.6a1
Assignee | ||
Comment 8•16 years ago
|
||
Comment on attachment 373942 [details] [diff] [review]
v1.1
Like to try and take this for 1.9.0.10, but would understand if drivers feel it hasn't baked long enough yet.
Attachment #373942 -
Flags: approval1.9.0.10?
Assignee | ||
Comment 9•16 years ago
|
||
Updated•16 years ago
|
Keywords: fixed1.9.1
Comment 10•16 years ago
|
||
Comment on attachment 373942 [details] [diff] [review]
v1.1
Approved for 1.9.0.10, a=dveditz for release-drivers
Today is code-freeze for 1.9.0.10, uncomfortably late. If this breaks safebrowsing for millions of people you owe us some expensive yummy spirits.
Attachment #373942 -
Flags: approval1.9.0.10? → approval1.9.0.10+
Assignee | ||
Comment 11•16 years ago
|
||
(In reply to comment #10)
> Today is code-freeze for 1.9.0.10, uncomfortably late. If this breaks
> safebrowsing for millions of people you owe us some expensive yummy spirits.
Hey, this is why we have tests ;)
I had to modify the test changes slightly for it all to work on 1.9.0, but otherwise this patch applied cleanly.
Checking in toolkit/components/url-classifier/src/nsUrlClassifierUtils.cpp;
new revision: 1.11; previous revision: 1.10
Checking in toolkit/components/url-classifier/tests/TestUrlClassifierUtils.cpp;
new revision: 1.8; previous revision: 1.7
Keywords: fixed1.9.0.10
Updated•10 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•