Closed Bug 612733 Opened 15 years ago Closed 15 years ago

rename "active" property to "isActive" and add activate(), deactivate() functions to Private Browsing API

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: myk, Assigned: adw)

References

Details

Attachments

(1 file)

The "active" boolean property in the Private Browsing API should be renamed to "isActive" per API naming guidelines, and activation/deactivation should be provided by activate() and deactivate() functions rather than by setting the property to make it clearer how to activate and deactivate private browsing and emphasize that those changes have side-effects.
Attached patch patchSplinter Review
Attachment #492559 - Flags: review?(myk)
Comment on attachment 492559 [details] [diff] [review] patch > This module is available in all applications. However, only Firefox will ever > transition into or out of private browsing mode. For all other applications, >-`pb.active` will always return `false`, and none of the events will be emitted. >+`pb.active` will always be `false`, and none of the events will be emitted. This change is good but is insufficient, since the reference to pb.active should be changed to pb.isActive. > <api name="active"> > @property {boolean} >-This is a boolean. You can read this attribute to determine if private browsing >-mode is active. You can also set the attribute to enter or exit private >-browsing. This has the same issue: <api name="active"> should be <api name="isActive"> Otherwise, this looks great, r=myk with those changes.
Attachment #492559 - Flags: review?(myk) → review-
Target Milestone: 0.10 → 1.0b1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: