Fix for bug # 123140. wyciwyg:// appears on urlbar for JS dynamic pages. r=mcafee, sr=alecf a=asa

This commit is contained in:
radha%netscape.com 2002-03-04 22:54:16 +00:00
Родитель 3fa92c5b30
Коммит 90f7f8893b
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -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;