# -*- Mode: HTML -*- # ***** BEGIN LICENSE BLOCK ***** # Version: MPL 1.1/GPL 2.0/LGPL 2.1 # # The contents of this file are subject to the Mozilla Public License Version # 1.1 (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # http://www.mozilla.org/MPL/ # # Software distributed under the License is distributed on an "AS IS" basis, # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License # for the specific language governing rights and limitations under the # License. # # The Original Code is mozilla.org browser. # # The Initial Developer of the Original Code is # Simon Bünzli # Portions created by the Initial Developer are Copyright (C) 2006 # the Initial Developer. All Rights Reserved. # # Contributor(s): # Dão Gottwald # # Alternatively, the contents of this file may be used under the terms of # either the GNU General Public License Version 2 or later (the "GPL"), or # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), # in which case the provisions of the GPL or the LGPL are applicable instead # of those above. If you wish to allow use of your version of this file only # under the terms of either the GPL or the LGPL, and not to allow others to # use your version of this file under the terms of the MPL, indicate your # decision by deleting the provisions above and replace them with the notice # and other provisions required by the GPL or the LGPL. If you do not delete # the provisions above, a recipient may use your version of this file under # the terms of any one of the MPL, the GPL or the LGPL. # # ***** END LICENSE BLOCK ***** -1; var host = this._uri.host; if (host) { var subdomain; var port = (this._uri.port > -1) ? ":" + this._uri.port : ""; if (this._uri.hostPort[0] == "[") { // IPv6 address subdomain = "["; port = "]" + port; } else if (0 && !/^[.0-9]+$/.test(host)) { //XXX subdomain detection disabled (bug 386727) //XXX subdomain detection disabled for IP addresses (bug 364129) // getEffectiveTLDLength might convert our host and return a misleading length. // To avoid this, pass the ASCII host, count the dots of its effective TLD // and use that number to operate on our actual host. var asciiHost = this._uri.asciiHost; var domainSegments = host.split("."); var cSubdomain = domainSegments.length - asciiHost.slice(asciiHost.length - this.tldService.getEffectiveTLDLength(asciiHost)) .split(".").length - 1; if (cSubdomain > 0) { host = domainSegments; subdomain = host.splice(0, cSubdomain).join(".") + "."; host = host.join("."); } } else { subdomain = ""; } this._subDomain.setAttribute("value", subdomain); this._domain.setAttribute("value", host); this._port.setAttribute("value", port); } else { this._subDomain.removeAttribute("value"); this._domain.removeAttribute("value"); this._port.removeAttribute("value"); } var path = this._uri.path; try { // try to decode as UTF-8 path = decodeURI(path); } catch(e) {} this._path.setAttribute("value", path); ]]> 0) { opacity -= opacity * DECLINATION_REL + DECLINATION_ABS; if (opacity < 0) opacity = 0; this._blendingTimers.push(setTimeout(processFrame, delay, opacity, delay == INITIAL_DELAY)); delay += FRAME_LENGTH; } ]]> pBO.screenX + pBO.width) return; } this._mouseover = true; setTimeout(function(self) { if (self._mouseover) { self.plain = true; if (!self._focused && self._contentIsCropped) self._initURLTooltip(function() { return this.plain ? this.value : null; }, self, "start"); } }, 60, this); ]]>