Closed Bug 473345 Opened 16 years ago Closed 16 years ago

check dom workers against the url-classifier

Categories

(Toolkit :: Safe Browsing, defect, P1)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: dcamp, Assigned: dcamp)

Details

(Keywords: verified1.9.1)

Attachments

(1 file, 3 obsolete files)

Attached patch fix (obsolete) (deleted) — Splinter Review
As mentioned in bug 441359, a new script loader was added that we need to pass through the classifier.
Flags: blocking-firefox3.1?
Attachment #356685 - Flags: superreview?(jonas)
Attachment #356685 - Flags: review?(jonas)
Jonas: a P1 blocker is waiting on this review.
Flags: blocking-firefox3.1? → blocking-firefox3.1+
Priority: -- → P1
Comment on attachment 356685 [details] [diff] [review] fix Looks good, but bent should have a look. The one thing that would be good to do is to make sure that importScript (only available inside worker) also gets blocked appropriately.
Attachment #356685 - Flags: superreview?(jonas)
Attachment #356685 - Flags: superreview+
Attachment #356685 - Flags: review?(jonas)
Attachment #356685 - Flags: review?(bent.mozilla)
Comment on attachment 356685 [details] [diff] [review] fix This looks good! I agree with Jonas, it would be nice to have a test for an 'importScripts("blockedScript.js")' within the worker.
Attachment #356685 - Flags: review?(bent.mozilla) → review+
I'll certainly take on writing a Mozmill test for this case, could you be a little more specific about the kind of blocking you are talking about? This is what I'm thinking, blockedScript.js has a self executing function defined with a giant while loop or sync xhr call and after its done a flag is set. If the line after importScripts is executed before that flag is set then we have a failure. Does this sound like reasonable validation? Any suggest improvements?
importScripts should throw if the load is blocked, so maybe ensuring that we see an exception is sufficient.
Attached patch importScripts test (obsolete) (deleted) — Splinter Review
This adds a mochitest for importScripts to the existing mochitest
Attachment #357054 - Flags: review?(bent.mozilla)
Ah, that's simple enough. Will update when I have my test finished.
Attached patch now with cleanWorker.js (obsolete) (deleted) — Splinter Review
Attachment #357054 - Attachment is obsolete: true
Attachment #357062 - Flags: review?(bent.mozilla)
Attachment #357054 - Flags: review?(bent.mozilla)
Comment on attachment 357062 [details] [diff] [review] now with cleanWorker.js Awesome, thanks!
Attachment #357062 - Flags: review?(bent.mozilla) → review+
Attached patch combined patch as landed (deleted) — Splinter Review
Attachment #356685 - Attachment is obsolete: true
Attachment #357062 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 16 years ago
Keywords: fixed1.9.1
Resolution: --- → FIXED
Flags: in-testsuite+
verified via code inspection.
Status: RESOLVED → VERIFIED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: