Backed out changeset e0708cefd3df

This commit is contained in:
Dão Gottwald 2011-09-20 05:28:38 +02:00
Родитель ed61e08ff0
Коммит f15036012e
3 изменённых файлов: 3 добавлений и 17 удалений

Просмотреть файл

@ -2509,7 +2509,6 @@ function URLBarSetURI(aURI) {
}
gURLBar.value = value;
gURLBar.valueIsTyped = !valid;
SetPageProxyState(valid ? "valid" : "invalid");
}

Просмотреть файл

@ -185,8 +185,6 @@
<method name="trimValue">
<parameter name="aURL"/>
<body><![CDATA[
// This method must not modify the given URL such that calling
// nsIURIFixup::createFixupURI with the result will produce a different URI.
return this._mayTrimURLs ? trimURL(aURL) : aURL;
]]></body>
</method>
@ -499,21 +497,13 @@
// If the selection doesn't start at the beginning or URL bar is
// modified, nothing else to do here.
if (this.selectionStart > 0 || this.valueIsTyped)
return selectedVal;
let uriFixup = Cc["@mozilla.org/docshell/urifixup;1"].getService(Ci.nsIURIFixup);
let uri;
try {
uri = uriFixup.createFixupURI(inputVal, Ci.nsIURIFixup.FIXUP_FLAG_NONE);
} catch (e) {}
if (!uri)
if (this.getAttribute("pageproxystate") != "valid" || this.selectionStart > 0)
return selectedVal;
let uri = gBrowser.currentURI;
// Only copy exposable URIs
try {
uri = uriFixup.createExposableURI(uri);
uri = Cc["@mozilla.org/docshell/urifixup;1"].getService(Ci.nsIURIFixup).createExposableURI(uri);
} catch (ex) {}
// If the entire URL is selected, just use the actual loaded URI.

Просмотреть файл

@ -265,7 +265,6 @@
<!-- =================== PUBLIC MEMBERS =================== -->
<field name="valueIsTyped">false</field>
<property name="value">
<getter><![CDATA[
if (typeof this.onBeforeValueGet == "function") {
@ -284,7 +283,6 @@
if (typeof this.trimValue == "function")
val = this.trimValue(val);
this.valueIsTyped = false;
this.inputField.value = val;
if (typeof this.formatValue == "function")
@ -561,7 +559,6 @@
<handlers>
<handler event="input"><![CDATA[
if (!this.mIgnoreInput && this.mController.input == this) {
this.valueIsTyped = true;
this.mController.handleText(true);
}
this.resetActionType();