Closed Bug 336288 Opened 18 years ago Closed 18 years ago

integrate UI portion of safebrowsing into /browser/components/safebrowsing

Categories

(Toolkit :: Safe Browsing, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: tony, Assigned: tony)

Details

(Keywords: fixed1.8.1)

Attachments

(7 files)

The UI portions of the safebrowsing extension need to be moved to /browser/components/safebrowsing/.
Ports UI elements of code from /extensions/safebrowsing/ into /browser/components/safebrowsing.  Branding code has been removed.  Images will be attached separately to the bug.

This also includes some small changes to /toolkit/components/url-classifier (namely, removing globalstore.js and putting it in /browser/... instead as mentioned in bug 335564).
Attachment #220588 - Flags: review?(bugs)
Attachment #220588 - Flags: approval-branch-1.8.1?(bugs)
Attached image page overlay
Attached image urlbar icon
Comment on attachment 220588 [details] [diff] [review]
adding ui components to browser/components

Here's the way I'm going to approach this in the interests of getting the most out of the time available. Rather than go into a lengthy review cycle (I have a bunch of comments), I'm going to grant r= for the integration hooks ifdef'ed out as they are, and also give branch approval. Then I can follow up afterwards with a detailed commentary and we can iterate. 

So, to clarify:

r+a=ben@mozilla.org for the code additions to browser etc. where the #ifdef MOZ_SAFE_BROWSING sections are included. You can check in that and all of the code controlled by that to the trunk and branch. I will provide a more detailed review of this code in the coming days. The changes I request can be handled as followon patches to this bug.
Attachment #220588 - Flags: review?(bugs)
Attachment #220588 - Flags: review+
Attachment #220588 - Flags: approval-branch-1.8.1?(bugs)
Attachment #220588 - Flags: approval-branch-1.8.1+
Sounds good.  All the code should be #ifdef'ed by MOZ_SAFE_BROWSING, so I'll have it committed.
(In reply to comment #9)
> Created an attachment (id=220669) [edit]
> Patch to check in
> 

The png files should be copied into the pinstripe theme dir as well.
On branch. Leaving open for trunk checkin.
Keywords: fixed1.8.1
(In reply to comment #2)
> Created an attachment (id=220589) [edit]
> X to close the warning bubble
> 
This doesn't look consistent with the other Winstripe [X] close buttons.  Can we fix this to use the default [X] included in Winstripe?

~B
(In reply to comment #12)
> This doesn't look consistent with the other Winstripe [X] close buttons.  Can
> we fix this to use the default [X] included in Winstripe?

I imagine they will all get replaced when the new theme is done.
On trunk. Hopefully I didn't forget anything.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Please don't forget to cvs-remove any now-unused parts of what's in extensions/safe-browsing/ that have been copied into browser/.
Looking through the code I saw you've hooked up a custom tab switch listener:

// There's no tabswitch event in Firefox, so we fake it by watching
// for selects on the tabbox.
this.onTabSwitchClosure_ = BindToObject(this.onTabSwitch, this);
this.tabbox_.addEventListener("select",
                              this.onTabSwitchClosure_, true);

There is now a TabSelect event you can use (bug 322898).
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: