зеркало из https://github.com/mozilla/pjs.git
Fix for bug # 123140. wyciwyg:// appears on urlbar for JS dynamic pages. r=mcafee, sr=alecf a=asa
This commit is contained in:
Родитель
3fa92c5b30
Коммит
90f7f8893b
|
@ -302,6 +302,11 @@ nsBrowserStatusHandler.prototype =
|
|||
|
||||
if (aWebProgress.DOMWindow == content) {
|
||||
if (!this.userTyped.value) {
|
||||
// If the url has "wyciwyg://" as the protocol, strip it off.
|
||||
// Nobody wants to see it on the urlbar for dynamically generated
|
||||
// pages.
|
||||
if (/^\s*wyciwyg:\/\/\d+\//.test(location))
|
||||
location = RegExp.rightContext;
|
||||
this.urlBar.value = location;
|
||||
// the above causes userTyped.value to become true, reset it
|
||||
this.userTyped.value = false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче