Closed Bug 482073 Opened 15 years ago Closed 15 years ago

test_classifier.html issues resulting in intermittent failures

Categories

(Toolkit :: Safe Browsing, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3.6a1

People

(Reporter: Waldo, Assigned: dcamp)

References

()

Details

(Keywords: fixed1.9.1, intermittent-failure)

Attachments

(1 file, 1 obsolete file)

I think the iframe in this test needs to be *before* the doUpdate() call, because if the setTimeout isn't reached, the iframe hasn't been processed yet (so the test fails when getElementById returns null).

Second, and off-topic enough that I'd usually file a separate bug except my connection's horrible, I'd prefer that malware.com:80 be malware.example.com:80 (assuming the malware distinction can be added to subdomains without tainting parent domains) to avoid going outside the reserved domain names in RFC (something), but at least that's not a failure issue.
Attached patch fix (obsolete) — Splinter Review
Just moved that update to onload.  Yeah, malware.com->malware.example.com makes sense.
Assignee: nobody → dcamp
Attachment #366446 - Flags: review?(jwalden+bmo)
Attachment #366446 - Flags: review?(jwalden+bmo) → review+
Comment on attachment 366446 [details] [diff] [review]
fix

Looks good except for this (not noticed until after filing the bug):

>diff -r be848dc25e6c toolkit/components/url-classifier/tests/mochitest/classifierFrame.html

> <!-- Try loading from a malware css URI
>-<link rel="stylesheet" type="text/css" href="http://malware.com/tests/toolkit/components/url-classifier/tests/mochitest/evil.css"></link>
>+<link rel="stylesheet" type="text/css" href="http://malware.example.com/tests/toolkit/components/url-classifier/tests/mochitest/evil.css"></link>

That comment's not closed, which messes with doing this test:
> 
> <!-- Try loading a marked-as-malware css through an @import from a clean URI -->
> <link rel="stylesheet" type="text/css" href="import.css"></link>
Attachment #366446 - Attachment is obsolete: true
http://hg.mozilla.org/mozilla-central/rev/f4e4e522ebcd
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Blocks: 438871
Flags: in-testsuite+
Whiteboard: [orange]
Target Milestone: --- → Firefox 3.6a1
Version: unspecified → Trunk
Whiteboard: [orange]
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: