зеркало из https://github.com/mozilla/gecko-dev.git
Bug 458167 - (comments-only changes) Grammar Nazi Vol1: s/it's/its/ for the posessive version of the word, and a few other misc comment-typos, in these directories: accessible browser config profile rdf toolkit tools xpcom xpfe
This commit is contained in:
Родитель
df29d18d6e
Коммит
5492039225
|
@ -469,7 +469,7 @@ OBJID_WINDOW<br>
|
||||||
<p style="margin-left: 40px;">MSAA has a well deseved reputation for
|
<p style="margin-left: 40px;">MSAA has a well deseved reputation for
|
||||||
quirkiness. It is not "plug and play", and will take a lot of
|
quirkiness. It is not "plug and play", and will take a lot of
|
||||||
testing/refinement before your solution works with any product. Here are
|
testing/refinement before your solution works with any product. Here are
|
||||||
some of it's quirks and some solutions/workarounds:<br>
|
some of its quirks and some solutions/workarounds:<br>
|
||||||
</p>
|
</p>
|
||||||
<div style="margin-left: 40px;"><big><a name="Crash_prone"></a>MSAA can
|
<div style="margin-left: 40px;"><big><a name="Crash_prone"></a>MSAA can
|
||||||
be crash prone</big><br>
|
be crash prone</big><br>
|
||||||
|
@ -495,7 +495,7 @@ accessibility object should be called whenever the document or UI object
|
||||||
it refers to goes away. The easiest way to do that is to keep a pointer
|
it refers to goes away. The easiest way to do that is to keep a pointer
|
||||||
to an accessible in each internal UI object. If that pointer is
|
to an accessible in each internal UI object. If that pointer is
|
||||||
non-null, then there is an accessible object for it. Whenever the UI
|
non-null, then there is an accessible object for it. Whenever the UI
|
||||||
object is destroyed, shutdown it's accessible object as well. In
|
object is destroyed, shutdown its accessible object as well. In
|
||||||
Gecko/Mozilla we are not allowed to keep this extra pointer for each
|
Gecko/Mozilla we are not allowed to keep this extra pointer for each
|
||||||
accessible object, so when accessibility is turned on we use a hash
|
accessible object, so when accessibility is turned on we use a hash
|
||||||
table to cache these objects. Such a cache must be kept in perfect sync
|
table to cache these objects. Such a cache must be kept in perfect sync
|
||||||
|
|
|
@ -86,7 +86,7 @@ interface nsIAccessibilityService : nsIAccessibleRetrieval
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Invalidate the accessibility cache associated with aPresShell, for accessibles
|
* Invalidate the accessibility cache associated with aPresShell, for accessibles
|
||||||
* that were generated for aContainerContent and it's subtree.
|
* that were generated for aContainerContent and its subtree.
|
||||||
* The container content node for the change is passed in, rather than the
|
* The container content node for the change is passed in, rather than the
|
||||||
* changed presentation for the content node itself.
|
* changed presentation for the content node itself.
|
||||||
* @param aPresShell The presShell where changes occured
|
* @param aPresShell The presShell where changes occured
|
||||||
|
|
|
@ -538,7 +538,7 @@ NS_IMETHODIMP nsAccessible::Shutdown()
|
||||||
mNextSibling = nsnull;
|
mNextSibling = nsnull;
|
||||||
|
|
||||||
// Invalidate the child count and pointers to other accessibles, also make
|
// Invalidate the child count and pointers to other accessibles, also make
|
||||||
// sure none of it's children point to this parent
|
// sure none of its children point to this parent
|
||||||
InvalidateChildren();
|
InvalidateChildren();
|
||||||
if (mParent) {
|
if (mParent) {
|
||||||
nsCOMPtr<nsPIAccessible> privateParent(do_QueryInterface(mParent));
|
nsCOMPtr<nsPIAccessible> privateParent(do_QueryInterface(mParent));
|
||||||
|
@ -1975,7 +1975,7 @@ nsresult nsAccessible::GetXULName(nsAString& aLabel, PRBool aCanAggregateSubtree
|
||||||
// Check if label's value attribute is used
|
// Check if label's value attribute is used
|
||||||
if (xulLabel && NS_SUCCEEDED(xulLabel->GetValue(label)) && label.IsEmpty()) {
|
if (xulLabel && NS_SUCCEEDED(xulLabel->GetValue(label)) && label.IsEmpty()) {
|
||||||
// If no value attribute, a non-empty label must contain
|
// If no value attribute, a non-empty label must contain
|
||||||
// children that define it's text -- possibly using HTML
|
// children that define its text -- possibly using HTML
|
||||||
AppendFlatStringFromSubtree(labelContent, &label);
|
AppendFlatStringFromSubtree(labelContent, &label);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2653,7 +2653,7 @@ nsAccessible::GetValue(nsAString& aValue)
|
||||||
if (!aValue.IsEmpty())
|
if (!aValue.IsEmpty())
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
||||||
// Check if it's an simple xlink.
|
// Check if it's a simple xlink.
|
||||||
if (nsAccUtils::IsXLink(content)) {
|
if (nsAccUtils::IsXLink(content)) {
|
||||||
nsCOMPtr<nsIPresShell> presShell(do_QueryReferent(mWeakShell));
|
nsCOMPtr<nsIPresShell> presShell(do_QueryReferent(mWeakShell));
|
||||||
if (presShell)
|
if (presShell)
|
||||||
|
@ -2788,7 +2788,7 @@ nsAccessible::GetNumActions(PRUint8 *aNumActions)
|
||||||
if (!content)
|
if (!content)
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
||||||
// Check if it's an simple xlink.
|
// Check if it's a simple xlink.
|
||||||
if (nsAccUtils::IsXLink(content)) {
|
if (nsAccUtils::IsXLink(content)) {
|
||||||
*aNumActions = 1;
|
*aNumActions = 1;
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
@ -2816,7 +2816,7 @@ nsAccessible::GetActionName(PRUint8 aIndex, nsAString& aName)
|
||||||
if (IsDefunct())
|
if (IsDefunct())
|
||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
|
|
||||||
// Check if it's simple xlink.
|
// Check if it's a simple xlink.
|
||||||
nsCOMPtr<nsIContent> content(do_QueryInterface(mDOMNode));
|
nsCOMPtr<nsIContent> content(do_QueryInterface(mDOMNode));
|
||||||
if (nsAccUtils::IsXLink(content)) {
|
if (nsAccUtils::IsXLink(content)) {
|
||||||
aName.AssignLiteral("jump");
|
aName.AssignLiteral("jump");
|
||||||
|
@ -2859,7 +2859,7 @@ nsAccessible::DoAction(PRUint8 aIndex)
|
||||||
|
|
||||||
PRBool doAction = PR_FALSE;
|
PRBool doAction = PR_FALSE;
|
||||||
|
|
||||||
// Check if it's simple xlink.
|
// Check if it's a simple xlink.
|
||||||
nsCOMPtr<nsIContent> content(do_QueryInterface(mDOMNode));
|
nsCOMPtr<nsIContent> content(do_QueryInterface(mDOMNode));
|
||||||
if (nsAccUtils::IsXLink(content))
|
if (nsAccUtils::IsXLink(content))
|
||||||
doAction = PR_TRUE;
|
doAction = PR_TRUE;
|
||||||
|
@ -3454,7 +3454,7 @@ nsAccessible::GetURI(PRInt32 aIndex, nsIURI **aURI)
|
||||||
if (aIndex != 0)
|
if (aIndex != 0)
|
||||||
return NS_ERROR_INVALID_ARG;
|
return NS_ERROR_INVALID_ARG;
|
||||||
|
|
||||||
// Check if it's simple xlink.
|
// Check if it's a simple xlink.
|
||||||
nsCOMPtr<nsIContent> content(do_QueryInterface(mDOMNode));
|
nsCOMPtr<nsIContent> content(do_QueryInterface(mDOMNode));
|
||||||
if (nsAccUtils::IsXLink(content)) {
|
if (nsAccUtils::IsXLink(content)) {
|
||||||
nsAutoString href;
|
nsAutoString href;
|
||||||
|
|
|
@ -136,7 +136,7 @@ private:
|
||||||
nsCOMPtr<nsIDOMNode> mCurrentControl; // Selection controller for the currently focused control
|
nsCOMPtr<nsIDOMNode> mCurrentControl; // Selection controller for the currently focused control
|
||||||
|
|
||||||
// Info for the the last selection event.
|
// Info for the the last selection event.
|
||||||
// If it was on a control, then it's control's selection. Otherwise, it's for
|
// If it was on a control, then its control's selection. Otherwise, it's for
|
||||||
// a document where the selection changed.
|
// a document where the selection changed.
|
||||||
nsCOMPtr<nsIWeakReference> mLastUsedSelection; // Weak ref to nsISelection
|
nsCOMPtr<nsIWeakReference> mLastUsedSelection; // Weak ref to nsISelection
|
||||||
nsCOMPtr<nsIAccessibleText> mLastTextAccessible;
|
nsCOMPtr<nsIAccessibleText> mLastTextAccessible;
|
||||||
|
|
|
@ -92,7 +92,7 @@ NS_IMETHODIMP nsXULButtonAccessible::GetActionName(PRUint8 aIndex, nsAString& aN
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tell the button to do it's action
|
* Tell the button to do its action
|
||||||
*/
|
*/
|
||||||
NS_IMETHODIMP nsXULButtonAccessible::DoAction(PRUint8 index)
|
NS_IMETHODIMP nsXULButtonAccessible::DoAction(PRUint8 index)
|
||||||
{
|
{
|
||||||
|
@ -271,7 +271,7 @@ NS_IMETHODIMP nsXULDropmarkerAccessible::GetActionName(PRUint8 aIndex, nsAString
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tell the Dropmarker to do it's action
|
* Tell the Dropmarker to do its action
|
||||||
*/
|
*/
|
||||||
NS_IMETHODIMP nsXULDropmarkerAccessible::DoAction(PRUint8 index)
|
NS_IMETHODIMP nsXULDropmarkerAccessible::DoAction(PRUint8 index)
|
||||||
{
|
{
|
||||||
|
@ -893,7 +893,7 @@ NS_IMETHODIMP nsXULTextFieldAccessible::GetActionName(PRUint8 aIndex, nsAString&
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tell the button to do it's action
|
* Tell the button to do its action
|
||||||
*/
|
*/
|
||||||
NS_IMETHODIMP nsXULTextFieldAccessible::DoAction(PRUint8 index)
|
NS_IMETHODIMP nsXULTextFieldAccessible::DoAction(PRUint8 index)
|
||||||
{
|
{
|
||||||
|
|
|
@ -71,7 +71,7 @@ NS_IMETHODIMP nsXULTabAccessible::GetActionName(PRUint8 aIndex, nsAString& aName
|
||||||
return NS_ERROR_INVALID_ARG;
|
return NS_ERROR_INVALID_ARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Tell the tab to do it's action */
|
/** Tell the tab to do its action */
|
||||||
NS_IMETHODIMP nsXULTabAccessible::DoAction(PRUint8 index)
|
NS_IMETHODIMP nsXULTabAccessible::DoAction(PRUint8 index)
|
||||||
{
|
{
|
||||||
if (index == eAction_Switch) {
|
if (index == eAction_Switch) {
|
||||||
|
|
|
@ -4264,7 +4264,7 @@ function displaySecurityInfo()
|
||||||
* @param commandID a string identifying the sidebar to toggle; see the
|
* @param commandID a string identifying the sidebar to toggle; see the
|
||||||
* note below. (Optional if a sidebar is already open.)
|
* note below. (Optional if a sidebar is already open.)
|
||||||
* @param forceOpen boolean indicating whether the sidebar should be
|
* @param forceOpen boolean indicating whether the sidebar should be
|
||||||
* opened regardless of it's current state (optional).
|
* opened regardless of its current state (optional).
|
||||||
* @note
|
* @note
|
||||||
* We expect to find a xul:broadcaster element with the specified ID.
|
* We expect to find a xul:broadcaster element with the specified ID.
|
||||||
* The following attributes on that element may be used and/or modified:
|
* The following attributes on that element may be used and/or modified:
|
||||||
|
|
|
@ -258,7 +258,7 @@ var onProcessFrame = [ ];
|
||||||
var onProcessElement = [ ];
|
var onProcessElement = [ ];
|
||||||
|
|
||||||
// These functions are called once when all the elements in all of the target
|
// These functions are called once when all the elements in all of the target
|
||||||
// document (and all of it's subframes, if any) have been processed
|
// document (and all of its subframes, if any) have been processed
|
||||||
var onFinished = [ ];
|
var onFinished = [ ];
|
||||||
|
|
||||||
// These functions are called once when the Page Info window is closed.
|
// These functions are called once when the Page Info window is closed.
|
||||||
|
|
|
@ -143,7 +143,7 @@ function needHomepageOverride(prefb) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copies a pref override file into the user's profile pref-override folder,
|
// Copies a pref override file into the user's profile pref-override folder,
|
||||||
// and then tells the pref service to reload it's default prefs.
|
// and then tells the pref service to reload its default prefs.
|
||||||
function copyPrefOverride() {
|
function copyPrefOverride() {
|
||||||
try {
|
try {
|
||||||
var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"]
|
var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"]
|
||||||
|
|
|
@ -567,7 +567,7 @@ PlacesTreeView.prototype = {
|
||||||
|
|
||||||
// Need to redraw the rows around this one because session boundaries
|
// Need to redraw the rows around this one because session boundaries
|
||||||
// may have changed. For example, if we add a page to a session, the
|
// may have changed. For example, if we add a page to a session, the
|
||||||
// previous page will need to be redrawn because it's session border
|
// previous page will need to be redrawn because its session border
|
||||||
// will disappear.
|
// will disappear.
|
||||||
if (this._showSessions) {
|
if (this._showSessions) {
|
||||||
if (newViewIndex > 0)
|
if (newViewIndex > 0)
|
||||||
|
@ -606,7 +606,7 @@ PlacesTreeView.prototype = {
|
||||||
/**
|
/**
|
||||||
* THIS FUNCTION DOES NOT HANDLE cases where a collapsed node is being
|
* THIS FUNCTION DOES NOT HANDLE cases where a collapsed node is being
|
||||||
* removed but the node it is collapsed with is not being removed (this then
|
* removed but the node it is collapsed with is not being removed (this then
|
||||||
* just swap out the removee with it's collapsing partner). The only time
|
* just swap out the removee with its collapsing partner). The only time
|
||||||
* when we really remove things is when deleting URIs, which will apply to
|
* when we really remove things is when deleting URIs, which will apply to
|
||||||
* all collapsees. This function is called sometimes when resorting items.
|
* all collapsees. This function is called sometimes when resorting items.
|
||||||
* However, we won't do this when sorted by date because dates will never
|
* However, we won't do this when sorted by date because dates will never
|
||||||
|
|
|
@ -66,7 +66,7 @@ function test() {
|
||||||
testRootNode.containerOpen = true;
|
testRootNode.containerOpen = true;
|
||||||
is(testRootNode.childCount, 0, "confirm test root node is a container, and is empty");
|
is(testRootNode.childCount, 0, "confirm test root node is a container, and is empty");
|
||||||
|
|
||||||
// create folder A, fill it, validate it's contents
|
// create folder A, fill it, validate its contents
|
||||||
var folderAId = PlacesUtils.bookmarks.createFolder(testRootId, "A", -1);
|
var folderAId = PlacesUtils.bookmarks.createFolder(testRootId, "A", -1);
|
||||||
populate(folderAId);
|
populate(folderAId);
|
||||||
var folderANode = PlacesUtils.getFolderContents(folderAId).root;
|
var folderANode = PlacesUtils.getFolderContents(folderAId).root;
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
# * The session file stores a session.state property, that
|
# * The session file stores a session.state property, that
|
||||||
# * indicates whether the browser is currently running. When the browser shuts
|
# * indicates whether the browser is currently running. When the browser shuts
|
||||||
# * down, the field is changed to "stopped". At startup, this field is read, and
|
# * down, the field is changed to "stopped". At startup, this field is read, and
|
||||||
# * if it's value is "running", then it's assumed that the browser had previously
|
# * if its value is "running", then it's assumed that the browser had previously
|
||||||
# * crashed, or at the very least that something bad happened, and that we should
|
# * crashed, or at the very least that something bad happened, and that we should
|
||||||
# * restore the session.
|
# * restore the session.
|
||||||
# *
|
# *
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
*
|
*
|
||||||
* Overview
|
* Overview
|
||||||
* This service keeps track of a user's session, storing the various bits
|
* This service keeps track of a user's session, storing the various bits
|
||||||
* required to return the browser to it's current state. The relevant data is
|
* required to return the browser to its current state. The relevant data is
|
||||||
* stored in memory, and is periodically saved to disk in a file in the
|
* stored in memory, and is periodically saved to disk in a file in the
|
||||||
* profile directory. The service is started at first window load, in
|
* profile directory. The service is started at first window load, in
|
||||||
* delayedStartup, and will restore the session from the data received from
|
* delayedStartup, and will restore the session from the data received from
|
||||||
|
@ -567,7 +567,7 @@ SessionStoreService.prototype = {
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When a tab closes, collect it's properties
|
* When a tab closes, collect its properties
|
||||||
* @param aWindow
|
* @param aWindow
|
||||||
* Window reference
|
* Window reference
|
||||||
* @param aTab
|
* @param aTab
|
||||||
|
|
|
@ -796,7 +796,7 @@ class Section(dict):
|
||||||
|
|
||||||
Note: if ``call_on_sections`` is ``True`` then - on encountering a
|
Note: if ``call_on_sections`` is ``True`` then - on encountering a
|
||||||
subsection, *first* the function is called for the *whole* subsection,
|
subsection, *first* the function is called for the *whole* subsection,
|
||||||
and then recurses into it's members. This means your function must be
|
and then recurses into its members. This means your function must be
|
||||||
able to handle strings, dictionaries and lists. This allows you
|
able to handle strings, dictionaries and lists. This allows you
|
||||||
to change the key of subsections as well as for ordinary members. The
|
to change the key of subsections as well as for ordinary members. The
|
||||||
return value when called on the whole subsection has to be discarded.
|
return value when called on the whole subsection has to be discarded.
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
# This is a partial python port of nsinstall.
|
# This is a partial python port of nsinstall.
|
||||||
# It's intended to be used when there's no natively compile nsinstall
|
# It's intended to be used when there's no natively compile nsinstall
|
||||||
# available, and doesn't intend to be fully equivalent.
|
# available, and doesn't intend to be fully equivalent.
|
||||||
# It's major use is for l10n repackaging on systems that don't have
|
# Its major use is for l10n repackaging on systems that don't have
|
||||||
# a full build environment set up.
|
# a full build environment set up.
|
||||||
# The basic limitation is, it doesn't even try to link and ignores
|
# The basic limitation is, it doesn't even try to link and ignores
|
||||||
# all related options.
|
# all related options.
|
||||||
|
|
|
@ -2273,7 +2273,7 @@ nsPrefMigration::DetermineOldPath(nsIFileSpec *profilePath, const char *oldPathN
|
||||||
we'll also be converting:
|
we'll also be converting:
|
||||||
|
|
||||||
Please make sure that any pref that contains native characters
|
Please make sure that any pref that contains native characters
|
||||||
in it's value is not included in this list as we do not want to
|
in its value is not included in this list as we do not want to
|
||||||
convert them into UTF-8 format. Prefs are being get and set in a
|
convert them into UTF-8 format. Prefs are being get and set in a
|
||||||
unicode format (FileXPref) now and there is no need for
|
unicode format (FileXPref) now and there is no need for
|
||||||
conversion of those prefs.
|
conversion of those prefs.
|
||||||
|
|
|
@ -67,7 +67,7 @@ interface nsIRDFRemoteDataSource : nsISupports
|
||||||
void Refresh(in boolean aBlocking);
|
void Refresh(in boolean aBlocking);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Request that a data source write it's contents out to
|
* Request that a data source write its contents out to
|
||||||
* permanent storage, if applicable.
|
* permanent storage, if applicable.
|
||||||
*/
|
*/
|
||||||
void Flush();
|
void Flush();
|
||||||
|
|
|
@ -66,7 +66,7 @@ interface nsIRDFResource : nsIRDFNode {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is called by the nsIRDFService after constructing
|
* This method is called by the nsIRDFService after constructing
|
||||||
* a resource object to initialize it's URI. You would not normally
|
* a resource object to initialize its URI. You would not normally
|
||||||
* call this method directly
|
* call this method directly
|
||||||
*/
|
*/
|
||||||
void Init(in string uri);
|
void Init(in string uri);
|
||||||
|
|
|
@ -1023,7 +1023,7 @@ RDFServiceImpl::GetResource(const nsACString& aURI, nsIRDFResource** aResource)
|
||||||
rv = factory->CreateInstance(nsnull, NS_GET_IID(nsIRDFResource), (void**) &result);
|
rv = factory->CreateInstance(nsnull, NS_GET_IID(nsIRDFResource), (void**) &result);
|
||||||
if (NS_FAILED(rv)) return rv;
|
if (NS_FAILED(rv)) return rv;
|
||||||
|
|
||||||
// Now initialize it with it's URI. At this point, the resource
|
// Now initialize it with its URI. At this point, the resource
|
||||||
// implementation should register itself with the RDF service.
|
// implementation should register itself with the RDF service.
|
||||||
rv = result->Init(flatURI.get());
|
rv = result->Init(flatURI.get());
|
||||||
if (NS_FAILED(rv)) {
|
if (NS_FAILED(rv)) {
|
||||||
|
|
|
@ -115,7 +115,7 @@ interface nsIDownload : nsITransfer {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Optional. If set, it will contain the target's relevant MIME information.
|
* Optional. If set, it will contain the target's relevant MIME information.
|
||||||
* This includes it's MIME Type, helper app, and whether that helper should be
|
* This includes its MIME Type, helper app, and whether that helper should be
|
||||||
* executed.
|
* executed.
|
||||||
*/
|
*/
|
||||||
readonly attribute nsIMIMEInfo MIMEInfo;
|
readonly attribute nsIMIMEInfo MIMEInfo;
|
||||||
|
|
|
@ -80,7 +80,7 @@ function test()
|
||||||
getService(Ci.nsIDownloadManagerUI);
|
getService(Ci.nsIDownloadManagerUI);
|
||||||
ok(dmui.visible, "Download Manager window is open, as expected.");
|
ok(dmui.visible, "Download Manager window is open, as expected.");
|
||||||
|
|
||||||
// Reset the pref to it's default value
|
// Reset the pref to its default value
|
||||||
Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch).
|
Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch).
|
||||||
setBoolPref(PREF_BDM_CLOSEWHENDONE, false);
|
setBoolPref(PREF_BDM_CLOSEWHENDONE, false);
|
||||||
|
|
||||||
|
|
|
@ -226,7 +226,7 @@ nsParentalControlsServiceWin::RequestURIOverride(nsIURI *aTarget, nsIInterfaceRe
|
||||||
return NS_ERROR_INVALID_ARG;
|
return NS_ERROR_INVALID_ARG;
|
||||||
|
|
||||||
HWND hWnd = nsnull;
|
HWND hWnd = nsnull;
|
||||||
// If we have a native window, use it's handle instead
|
// If we have a native window, use its handle instead
|
||||||
nsCOMPtr<nsIWidget> widget(do_GetInterface(aWindowContext));
|
nsCOMPtr<nsIWidget> widget(do_GetInterface(aWindowContext));
|
||||||
if (widget)
|
if (widget)
|
||||||
hWnd = (HWND)widget->GetNativeData(NS_NATIVE_WINDOW);
|
hWnd = (HWND)widget->GetNativeData(NS_NATIVE_WINDOW);
|
||||||
|
@ -265,7 +265,7 @@ nsParentalControlsServiceWin::RequestURIOverrides(nsIArray *aTargets, nsIInterfa
|
||||||
}
|
}
|
||||||
|
|
||||||
HWND hWnd = nsnull;
|
HWND hWnd = nsnull;
|
||||||
// If we have a native window, use it's handle instead
|
// If we have a native window, use its handle instead
|
||||||
nsCOMPtr<nsIWidget> widget(do_GetInterface(aWindowContext));
|
nsCOMPtr<nsIWidget> widget(do_GetInterface(aWindowContext));
|
||||||
if (widget)
|
if (widget)
|
||||||
hWnd = (HWND)widget->GetNativeData(NS_NATIVE_WINDOW);
|
hWnd = (HWND)widget->GetNativeData(NS_NATIVE_WINDOW);
|
||||||
|
|
|
@ -231,7 +231,7 @@ LoginManagerStorage_legacy.prototype = {
|
||||||
|
|
||||||
var key = login.hostname;
|
var key = login.hostname;
|
||||||
|
|
||||||
// If first entry for key, create an Array to hold it's logins.
|
// If first entry for key, create an Array to hold its logins.
|
||||||
var rollback;
|
var rollback;
|
||||||
if (!this._logins[key]) {
|
if (!this._logins[key]) {
|
||||||
this._logins[key] = [];
|
this._logins[key] = [];
|
||||||
|
|
|
@ -75,7 +75,7 @@ interface nsIAnnotationService : nsISupports
|
||||||
// Removed at application exit.
|
// Removed at application exit.
|
||||||
const unsigned short EXPIRE_SESSION = 0;
|
const unsigned short EXPIRE_SESSION = 0;
|
||||||
|
|
||||||
// NOTE: 1 is skipped due to it's temporary use as EXPIRE_NEVER in bug #319455.
|
// NOTE: 1 is skipped due to its temporary use as EXPIRE_NEVER in bug #319455.
|
||||||
|
|
||||||
// For general page settings, things the user is interested in seeing
|
// For general page settings, things the user is interested in seeing
|
||||||
// if they come back to this page some time in the near future.
|
// if they come back to this page some time in the near future.
|
||||||
|
|
|
@ -2070,7 +2070,7 @@ nsNavBookmarks::QueryFolderChildren(PRInt64 aFolderId,
|
||||||
while (NS_SUCCEEDED(mDBGetChildren->ExecuteStep(&results)) && results) {
|
while (NS_SUCCEEDED(mDBGetChildren->ExecuteStep(&results)) && results) {
|
||||||
|
|
||||||
// The results will be in order of index. Even if we don't add a node
|
// The results will be in order of index. Even if we don't add a node
|
||||||
// because it was excluded, we need to count it's index, so do that
|
// because it was excluded, we need to count its index, so do that
|
||||||
// before doing anything else. Index was initialized to -1 above, so
|
// before doing anything else. Index was initialized to -1 above, so
|
||||||
// it will start counting at 0 the first time through the loop.
|
// it will start counting at 0 the first time through the loop.
|
||||||
index ++;
|
index ++;
|
||||||
|
|
|
@ -1503,7 +1503,7 @@ nsNavHistory::CleanUpOnQuit()
|
||||||
if (NS_SUCCEEDED(rv)) {
|
if (NS_SUCCEEDED(rv)) {
|
||||||
mozStorageTransaction transaction(mDBConn, PR_FALSE);
|
mozStorageTransaction transaction(mDBConn, PR_FALSE);
|
||||||
// 1. Indexes are moved along with the renamed table. Since we're dropping
|
// 1. Indexes are moved along with the renamed table. Since we're dropping
|
||||||
// that table, we're also dropping it's indexes, and later re-creating them
|
// that table, we're also dropping its indexes, and later re-creating them
|
||||||
// for the new table.
|
// for the new table.
|
||||||
rv = mDBConn->ExecuteSimpleSQL(
|
rv = mDBConn->ExecuteSimpleSQL(
|
||||||
NS_LITERAL_CSTRING("DROP INDEX IF EXISTS moz_places_urlindex"));
|
NS_LITERAL_CSTRING("DROP INDEX IF EXISTS moz_places_urlindex"));
|
||||||
|
|
|
@ -840,7 +840,7 @@ nsNavHistoryExpire::ExpireEmbeddedLinks(mozIStorageConnection* aConnection)
|
||||||
// visits, bookmarks or "place:" URIs.
|
// visits, bookmarks or "place:" URIs.
|
||||||
//
|
//
|
||||||
// The aMaxRecords parameter is an optional cap on the number of
|
// The aMaxRecords parameter is an optional cap on the number of
|
||||||
// records to delete. If it's value is -1, all records will be deleted.
|
// records to delete. If its value is -1, all records will be deleted.
|
||||||
|
|
||||||
nsresult
|
nsresult
|
||||||
nsNavHistoryExpire::ExpireHistoryParanoid(mozIStorageConnection* aConnection,
|
nsNavHistoryExpire::ExpireHistoryParanoid(mozIStorageConnection* aConnection,
|
||||||
|
|
|
@ -1271,7 +1271,7 @@ var PlacesUtils = {
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Serializes the given node (and all it's descendents) as JSON
|
* Serializes the given node (and all its descendents) as JSON
|
||||||
* and writes the serialization to the given output stream.
|
* and writes the serialization to the given output stream.
|
||||||
*
|
*
|
||||||
* @param aNode
|
* @param aNode
|
||||||
|
|
|
@ -78,7 +78,7 @@ bmsvc.setItemTitle(bm2, newTitle);
|
||||||
this gets called after our observer gets notified of onItemChanged
|
this gets called after our observer gets notified of onItemChanged
|
||||||
which is triggered by updating the item's title.
|
which is triggered by updating the item's title.
|
||||||
after receiving the notification, our original query should also
|
after receiving the notification, our original query should also
|
||||||
have been live-updated, so we can iterate through it's children,
|
have been live-updated, so we can iterate through its children,
|
||||||
to check that only the modified bookmark has changed.
|
to check that only the modified bookmark has changed.
|
||||||
*/
|
*/
|
||||||
function runTest() {
|
function runTest() {
|
||||||
|
|
|
@ -254,7 +254,7 @@ function populateDB(aArray) {
|
||||||
* database. It also has some interesting meta functions to determine which APIs
|
* database. It also has some interesting meta functions to determine which APIs
|
||||||
* should be called, and to determine if this object should show up in the
|
* should be called, and to determine if this object should show up in the
|
||||||
* resulting query.
|
* resulting query.
|
||||||
* It's parameter is an object specifying which attributes you want to set.
|
* Its parameter is an object specifying which attributes you want to set.
|
||||||
* For ex:
|
* For ex:
|
||||||
* var myobj = new queryData({isVisit: true, uri:"http://mozilla.com", title="foo"});
|
* var myobj = new queryData({isVisit: true, uri:"http://mozilla.com", title="foo"});
|
||||||
* Note that it doesn't do any input checking on that object.
|
* Note that it doesn't do any input checking on that object.
|
||||||
|
|
|
@ -448,7 +448,7 @@ function run_test() {
|
||||||
var expirationDate = (Date.now() - (8 * 86400 * 1000)) * 1000;
|
var expirationDate = (Date.now() - (8 * 86400 * 1000)) * 1000;
|
||||||
dbConnection.executeSimpleSQL("UPDATE moz_annos SET dateAdded = " + expirationDate);
|
dbConnection.executeSimpleSQL("UPDATE moz_annos SET dateAdded = " + expirationDate);
|
||||||
dbConnection.executeSimpleSQL("UPDATE moz_items_annos SET dateAdded = " + expirationDate);
|
dbConnection.executeSimpleSQL("UPDATE moz_items_annos SET dateAdded = " + expirationDate);
|
||||||
// modify it's value
|
// modify its value
|
||||||
annosvc.setPageAnnotation(testURI, testAnnoName, "mod", 0, annosvc.EXPIRE_DAYS);
|
annosvc.setPageAnnotation(testURI, testAnnoName, "mod", 0, annosvc.EXPIRE_DAYS);
|
||||||
annosvc.setItemAnnotation(bookmark, testAnnoName, "mod", 0, annosvc.EXPIRE_DAYS);
|
annosvc.setItemAnnotation(bookmark, testAnnoName, "mod", 0, annosvc.EXPIRE_DAYS);
|
||||||
// add a uri and then remove it, to trigger expiration
|
// add a uri and then remove it, to trigger expiration
|
||||||
|
|
|
@ -120,7 +120,7 @@ var PrintUtils = {
|
||||||
// For the browser implemented via XUL with the PP toolbar we cannot let it be
|
// For the browser implemented via XUL with the PP toolbar we cannot let it be
|
||||||
// automatically opened from the print engine because the XUL scrollbars in the PP window
|
// automatically opened from the print engine because the XUL scrollbars in the PP window
|
||||||
// will layout before the content window and a crash will occur.
|
// will layout before the content window and a crash will occur.
|
||||||
// Doing it all from script, means it lays out before hand and we can let printing do it's own thing
|
// Doing it all from script, means it lays out before hand and we can let printing do its own thing
|
||||||
var PPROMPTSVC = Components.classes["@mozilla.org/embedcomp/printingprompt-service;1"]
|
var PPROMPTSVC = Components.classes["@mozilla.org/embedcomp/printingprompt-service;1"]
|
||||||
.getService(Components.interfaces.nsIPrintingPromptService);
|
.getService(Components.interfaces.nsIPrintingPromptService);
|
||||||
// just in case we are already printing,
|
// just in case we are already printing,
|
||||||
|
|
|
@ -432,7 +432,7 @@ function fillRowWithFlex(aRow)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Makes sure that an item that has been cloned from a template
|
* Makes sure that an item that has been cloned from a template
|
||||||
* is stripped of all properties that may adversely affect it's
|
* is stripped of all properties that may adversely affect its
|
||||||
* appearance in the palette.
|
* appearance in the palette.
|
||||||
*/
|
*/
|
||||||
function cleanUpItemForPalette(aItem, aWrapper)
|
function cleanUpItemForPalette(aItem, aWrapper)
|
||||||
|
@ -466,7 +466,7 @@ function cleanUpItemForPalette(aItem, aWrapper)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Makes sure that an item that has been cloned from a template
|
* Makes sure that an item that has been cloned from a template
|
||||||
* is stripped of all properties that may adversely affect it's
|
* is stripped of all properties that may adversely affect its
|
||||||
* appearance in the toolbar. Store critical properties on the
|
* appearance in the toolbar. Store critical properties on the
|
||||||
* wrapper so they can be put back on the item when we're done.
|
* wrapper so they can be put back on the item when we're done.
|
||||||
*/
|
*/
|
||||||
|
@ -860,7 +860,7 @@ var toolbarDNDObserver =
|
||||||
if (wrapper.parentNode.lastPermanentChild && wrapper.parentNode.lastPermanentChild.id == wrapper.firstChild.id)
|
if (wrapper.parentNode.lastPermanentChild && wrapper.parentNode.lastPermanentChild.id == wrapper.firstChild.id)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Remove the item from it's place in the toolbar.
|
// Remove the item from its place in the toolbar.
|
||||||
wrapper.parentNode.removeChild(wrapper);
|
wrapper.parentNode.removeChild(wrapper);
|
||||||
|
|
||||||
// Determine which toolbar we are dropping on.
|
// Determine which toolbar we are dropping on.
|
||||||
|
|
|
@ -629,7 +629,7 @@ interface nsIAddonInstallListener : nsISupports
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when an add-on compatibility check starts. This will be called
|
* Called when an add-on compatibility check starts. This will be called
|
||||||
* during an install if an add-on is incompatible according to it's
|
* during an install if an add-on is incompatible according to its
|
||||||
* install.rdf.
|
* install.rdf.
|
||||||
* @param addon
|
* @param addon
|
||||||
* The add-on that the compatibility check will be for
|
* The add-on that the compatibility check will be for
|
||||||
|
|
|
@ -190,7 +190,7 @@ function newURI(spec) {
|
||||||
/**
|
/**
|
||||||
* Checks whether this blocklist element is valid for the current OS and ABI.
|
* Checks whether this blocklist element is valid for the current OS and ABI.
|
||||||
* If the element has an "os" attribute then the current OS must appear in
|
* If the element has an "os" attribute then the current OS must appear in
|
||||||
* it's comma separated list for the element to be valid. Similarly for the
|
* its comma separated list for the element to be valid. Similarly for the
|
||||||
* xpcomabi attribute.
|
* xpcomabi attribute.
|
||||||
*/
|
*/
|
||||||
function matchesOSABI(blocklistElement) {
|
function matchesOSABI(blocklistElement) {
|
||||||
|
|
|
@ -3683,7 +3683,7 @@ ExtensionManager.prototype = {
|
||||||
|
|
||||||
if (ds.getItemProperty(id, "providesUpdatesSecurely") == "false") {
|
if (ds.getItemProperty(id, "providesUpdatesSecurely") == "false") {
|
||||||
/* It's possible the previous version did not understand updateKeys so
|
/* It's possible the previous version did not understand updateKeys so
|
||||||
* check if we can import one for this addon from it's manifest. */
|
* check if we can import one for this addon from its manifest. */
|
||||||
installRDF = location.getItemFile(id, FILE_INSTALL_MANIFEST);
|
installRDF = location.getItemFile(id, FILE_INSTALL_MANIFEST);
|
||||||
if (installRDF.exists()) {
|
if (installRDF.exists()) {
|
||||||
metadataDS = getInstallManifest(installRDF);
|
metadataDS = getInstallManifest(installRDF);
|
||||||
|
|
|
@ -258,7 +258,7 @@ NO_PKG_FILES += \
|
||||||
necko_unit_tests \
|
necko_unit_tests \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
# browser/locales/Makefile uses this makefile for it's variable defs, but
|
# browser/locales/Makefile uses this makefile for its variable defs, but
|
||||||
# doesn't want the libs:: rule.
|
# doesn't want the libs:: rule.
|
||||||
ifndef PACKAGER_NO_LIBS
|
ifndef PACKAGER_NO_LIBS
|
||||||
libs:: make-package
|
libs:: make-package
|
||||||
|
|
|
@ -61,7 +61,7 @@ function checkCert(channel) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class implements nsIBadCertListener. It's job is to prevent "bad cert"
|
* This class implements nsIBadCertListener. Its job is to prevent "bad cert"
|
||||||
* security dialogs from being shown to the user. It is better to simply fail
|
* security dialogs from being shown to the user. It is better to simply fail
|
||||||
* if the certificate is bad. See bug 304286.
|
* if the certificate is bad. See bug 304286.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -548,7 +548,7 @@ public:
|
||||||
|
|
||||||
// Perform the operation. Return OK to indicate success. After all actions
|
// Perform the operation. Return OK to indicate success. After all actions
|
||||||
// have been executed, Finish will be called. A requirement of Execute is
|
// have been executed, Finish will be called. A requirement of Execute is
|
||||||
// that it's operation be reversable from Finish.
|
// that its operation be reversable from Finish.
|
||||||
virtual int Execute() = 0;
|
virtual int Execute() = 0;
|
||||||
|
|
||||||
// Finish is called after execution of all actions. If status is OK, then
|
// Finish is called after execution of all actions. If status is OK, then
|
||||||
|
|
|
@ -1761,7 +1761,7 @@ int map2tsv(Options* inOptions)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Guess using offsets.
|
** Guess using offsets.
|
||||||
** Is there a next symbol available? If so, it's start offset is the end of this symbol.
|
** Is there a next symbol available? If so, its start offset is the end of this symbol.
|
||||||
** Otherwise, our section offset + length is the end of this symbol.
|
** Otherwise, our section offset + length is the end of this symbol.
|
||||||
**
|
**
|
||||||
** The trick is, the DB size can not go beyond the offset size, for sanity.
|
** The trick is, the DB size can not go beyond the offset size, for sanity.
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
#
|
#
|
||||||
# You can tweak ``linux.gnuplot.in'' to change the graph's output.
|
# You can tweak ``linux.gnuplot.in'' to change the graph's output.
|
||||||
|
|
||||||
# This script computes a line using linear regression; it's output is
|
# This script computes a line using linear regression; its output is
|
||||||
# of the form:
|
# of the form:
|
||||||
#
|
#
|
||||||
# <b1> * x + <b0>
|
# <b1> * x + <b0>
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
# mozilla.org.)
|
# mozilla.org.)
|
||||||
#
|
#
|
||||||
|
|
||||||
# This script computes a line using linear regression; it's output is
|
# This script computes a line using linear regression; its output is
|
||||||
# of the form:
|
# of the form:
|
||||||
#
|
#
|
||||||
# <b1> * x + <b0>
|
# <b1> * x + <b0>
|
||||||
|
|
|
@ -427,7 +427,7 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
// The first arc in the sorted set will have the largest
|
// The first arc in the sorted set will have the largest
|
||||||
// weight. Pull it out, and emit it's sink.
|
// weight. Pull it out, and emit its sink.
|
||||||
arc_count_index_t::iterator max = sorted_arcs.begin();
|
arc_count_index_t::iterator max = sorted_arcs.begin();
|
||||||
call_graph_arc *arc = const_cast<call_graph_arc *>(*max);
|
call_graph_arc *arc = const_cast<call_graph_arc *>(*max);
|
||||||
|
|
||||||
|
|
|
@ -172,7 +172,7 @@ sub main {
|
||||||
# essentially calls `kill -9 $pid`.
|
# essentially calls `kill -9 $pid`.
|
||||||
# the reason this exists is because i can't figure
|
# the reason this exists is because i can't figure
|
||||||
# out how to kill apprunner yet, since i can't grab
|
# out how to kill apprunner yet, since i can't grab
|
||||||
# it's pid. (it's harder than you think.)
|
# its pid. (it's harder than you think.)
|
||||||
# when i figure it out, i'll fix it here, then all will
|
# when i figure it out, i'll fix it here, then all will
|
||||||
# be great. until then, all apprunners are killed!)
|
# be great. until then, all apprunners are killed!)
|
||||||
################################################################
|
################################################################
|
||||||
|
|
|
@ -688,7 +688,7 @@ recalculateAllocationCost(STOptions * inOptions, STContext * inContext,
|
||||||
/*
|
/*
|
||||||
** Now, see if they desire a callsite update.
|
** Now, see if they desire a callsite update.
|
||||||
** As mentioned previously, we decide if the run desires us to
|
** As mentioned previously, we decide if the run desires us to
|
||||||
** manipulate the callsite data only if it's stamp is set.
|
** manipulate the callsite data only if its stamp is set.
|
||||||
** We change all callsites and parent callsites to have that
|
** We change all callsites and parent callsites to have that
|
||||||
** stamp as well, so as to mark them as being relevant to
|
** stamp as well, so as to mark them as being relevant to
|
||||||
** the current run in question.
|
** the current run in question.
|
||||||
|
@ -1461,7 +1461,7 @@ getLiveAllocationByHeapID(STRun * aRun, PRUint32 aHeapID)
|
||||||
/*
|
/*
|
||||||
** appendEvent
|
** appendEvent
|
||||||
**
|
**
|
||||||
** Given an allocation, append a new event to it's lifetime.
|
** Given an allocation, append a new event to its lifetime.
|
||||||
** Returns the new event on success, otherwise NULL.
|
** Returns the new event on success, otherwise NULL.
|
||||||
*/
|
*/
|
||||||
STAllocEvent *
|
STAllocEvent *
|
||||||
|
@ -2871,7 +2871,7 @@ displayMemoryLeaks(STRequest * inRequest, STRun * aRun)
|
||||||
current = aRun->mAllocations[loop];
|
current = aRun->mAllocations[loop];
|
||||||
if (NULL != current && 0 != current->mEventCount) {
|
if (NULL != current && 0 != current->mEventCount) {
|
||||||
/*
|
/*
|
||||||
** In order to be a leak, the last event of it's life must
|
** In order to be a leak, the last event of its life must
|
||||||
** NOT be a free operation.
|
** NOT be a free operation.
|
||||||
**
|
**
|
||||||
** A free operation is just that, a free.
|
** A free operation is just that, a free.
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function returns an instance of nsIInterfaceRequestor that aggregates
|
* This function returns an instance of nsIInterfaceRequestor that aggregates
|
||||||
* two nsIInterfaceRequestor instances. It's GetInterface method queries
|
* two nsIInterfaceRequestor instances. Its GetInterface method queries
|
||||||
* aFirst for the requested interface and will query aSecond only if aFirst
|
* aFirst for the requested interface and will query aSecond only if aFirst
|
||||||
* failed to supply the requested interface. Both aFirst and aSecond may
|
* failed to supply the requested interface. Both aFirst and aSecond may
|
||||||
* be null.
|
* be null.
|
||||||
|
|
|
@ -73,7 +73,7 @@ public:
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CategoryNode keeps a hashtable of it's entries.
|
* CategoryNode keeps a hashtable of its entries.
|
||||||
* the CategoryNode itself is permanently allocated in
|
* the CategoryNode itself is permanently allocated in
|
||||||
* the arena.
|
* the arena.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -183,7 +183,7 @@
|
||||||
// This clashes with some of the Win32 system headers (specifically,
|
// This clashes with some of the Win32 system headers (specifically,
|
||||||
// winbase.h). Hopefully they'll have been included first; else we may
|
// winbase.h). Hopefully they'll have been included first; else we may
|
||||||
// have problems. We could include winbase.h before doing this;
|
// have problems. We could include winbase.h before doing this;
|
||||||
// unfortunately, it's bring in too much crap and'd slow stuff down
|
// unfortunately, it'd bring in too much crap and'd slow stuff down
|
||||||
// more than it's worth doing.
|
// more than it's worth doing.
|
||||||
#ifdef CreateDirectory
|
#ifdef CreateDirectory
|
||||||
#undef CreateDirectory
|
#undef CreateDirectory
|
||||||
|
|
|
@ -257,7 +257,7 @@ PRBool xptiInterfaceInfoManager::BuildFileSearchPath(nsISupportsArray** aPath)
|
||||||
// Add the GRE's component directory to searchPath if the
|
// Add the GRE's component directory to searchPath if the
|
||||||
// application is using an GRE.
|
// application is using an GRE.
|
||||||
// An application indicates that it's using an GRE by returning
|
// An application indicates that it's using an GRE by returning
|
||||||
// a valid nsIFile via it's directory service provider interface.
|
// a valid nsIFile via its directory service provider interface.
|
||||||
//
|
//
|
||||||
// Please see http://www.mozilla.org/projects/embedding/MRE.html
|
// Please see http://www.mozilla.org/projects/embedding/MRE.html
|
||||||
// for more info. on GREs
|
// for more info. on GREs
|
||||||
|
|
|
@ -114,7 +114,7 @@ public:
|
||||||
/* NS_IMETHOD WriteValue(const char *aPrefix); */
|
/* NS_IMETHOD WriteValue(const char *aPrefix); */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* nsISample.idl specifies all of it's string types as string, instead
|
* nsISample.idl specifies all of its string types as string, instead
|
||||||
* of wstring (wide string), the Unicode type. If the world were a
|
* of wstring (wide string), the Unicode type. If the world were a
|
||||||
* perfect place, all normal strings in XPCOM interfaces would be unicode.
|
* perfect place, all normal strings in XPCOM interfaces would be unicode.
|
||||||
* If this type had been specified as wstring, it would appear as
|
* If this type had been specified as wstring, it would appear as
|
||||||
|
|
|
@ -534,7 +534,7 @@ class nsTSubstring_CharT
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* this function releases mData and does not change the value of
|
* this function releases mData and does not change the value of
|
||||||
* any of it's member variables. in other words, this function acts
|
* any of its member variables. in other words, this function acts
|
||||||
* like a destructor.
|
* like a destructor.
|
||||||
*/
|
*/
|
||||||
void NS_FASTCALL Finalize();
|
void NS_FASTCALL Finalize();
|
||||||
|
|
|
@ -334,7 +334,7 @@ verify_attribute_declaration(IDL_tree attr_tree)
|
||||||
/* We don't support attributes named IID, conflicts with static GetIID
|
/* We don't support attributes named IID, conflicts with static GetIID
|
||||||
* member. The conflict is due to certain compilers (VC++) choosing a
|
* member. The conflict is due to certain compilers (VC++) choosing a
|
||||||
* different vtable order, placing GetIID at the beginning regardless
|
* different vtable order, placing GetIID at the beginning regardless
|
||||||
* of it's placement
|
* of its placement
|
||||||
*/
|
*/
|
||||||
if (strcmp(
|
if (strcmp(
|
||||||
IDL_IDENT(
|
IDL_IDENT(
|
||||||
|
@ -521,7 +521,7 @@ check_param_attribute(IDL_tree method_tree, IDL_tree param,
|
||||||
}
|
}
|
||||||
if (referred_param == param) {
|
if (referred_param == param) {
|
||||||
IDL_tree_error(method_tree,
|
IDL_tree_error(method_tree,
|
||||||
"attribute [%s(%s)] refers to it's own parameter",
|
"attribute [%s(%s)] refers to its own parameter",
|
||||||
attr_name, referred_name);
|
attr_name, referred_name);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -581,7 +581,7 @@ verify_method_declaration(IDL_tree method_tree)
|
||||||
/* We don't support attributes named IID, conflicts with static GetIID
|
/* We don't support attributes named IID, conflicts with static GetIID
|
||||||
* member. The conflict is due to certain compilers (VC++) choosing a
|
* member. The conflict is due to certain compilers (VC++) choosing a
|
||||||
* different vtable order, placing GetIID at the beginning regardless
|
* different vtable order, placing GetIID at the beginning regardless
|
||||||
* of it's placement
|
* of its placement
|
||||||
*/
|
*/
|
||||||
if (strcmp(method_name, "GetIID") == 0) {
|
if (strcmp(method_name, "GetIID") == 0) {
|
||||||
IDL_tree_error(method_tree,
|
IDL_tree_error(method_tree,
|
||||||
|
|
|
@ -45,7 +45,7 @@ interface nsIDOMElement;
|
||||||
/**
|
/**
|
||||||
* The nsIXULBrowserWindow supplies the methods that may be called from the
|
* The nsIXULBrowserWindow supplies the methods that may be called from the
|
||||||
* internals of the browser area to tell the containing xul window to update
|
* internals of the browser area to tell the containing xul window to update
|
||||||
* it's ui.
|
* its ui.
|
||||||
*/
|
*/
|
||||||
[scriptable, uuid(67a601df-f091-4894-a2e2-2e6cfebb35ea)]
|
[scriptable, uuid(67a601df-f091-4894-a2e2-2e6cfebb35ea)]
|
||||||
interface nsIXULBrowserWindow : nsISupports
|
interface nsIXULBrowserWindow : nsISupports
|
||||||
|
|
|
@ -453,7 +453,7 @@ void AEGenericClass::HandleMake(AEDesc *token, const AppleEvent *appleEvent, App
|
||||||
// then deal with it correctly later.
|
// then deal with it correctly later.
|
||||||
if (objectSpec.descriptorType == typeNull)
|
if (objectSpec.descriptorType == typeNull)
|
||||||
{
|
{
|
||||||
::AEDisposeDesc(token); // destroy it's old representation, token will now be null descriptor
|
::AEDisposeDesc(token); // destroy its old representation, token will now be null descriptor
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -112,7 +112,7 @@ interface nsIDownload : nsITransfer {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Optional. If set, it will contain the target's relevant MIME information.
|
* Optional. If set, it will contain the target's relevant MIME information.
|
||||||
* This includes it's MIME Type, helper app, and whether that helper should be
|
* This includes its MIME Type, helper app, and whether that helper should be
|
||||||
* executed.
|
* executed.
|
||||||
*/
|
*/
|
||||||
readonly attribute nsIMIMEInfo MIMEInfo;
|
readonly attribute nsIMIMEInfo MIMEInfo;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче