Home | History | Annotate | Download | only in page

Lines Matching refs:url

50 inline const KURL& Location::url() const
54 const KURL& url = m_frame->document()->url();
55 if (!url.isValid())
58 return url;
66 return url().string();
74 return url().protocol() + ":";
84 const KURL& url = this->url();
85 return url.hasPort() ? url.host() + ":" + String::number(url.port()) : url.host();
93 return url().host();
101 const KURL& url = this->url();
102 return url.hasPort() ? String::number(url.port()) : "";
110 const KURL& url = this->url();
111 return url.path().isEmpty() ? "/" : url.path();
119 const KURL& url = this->url();
120 return url.query().isEmpty() ? "" : "?" + url.query();
127 return SecurityOrigin::create(url())->toString();
135 const String& fragmentIdentifier = url().fragmentIdentifier();
145 url().copyParsedQueryTo(parameters);
160 KURL url = m_frame->document()->url();
161 if (!url.setProtocol(protocol)) {
165 m_frame->domWindow()->setLocation(url.string(), activeWindow, firstWindow);
172 KURL url = m_frame->document()->url();
173 url.setHostAndPort(host);
174 m_frame->domWindow()->setLocation(url.string(), activeWindow, firstWindow);
181 KURL url = m_frame->document()->url();
182 url.setHost(hostname);
183 m_frame->domWindow()->setLocation(url.string(), activeWindow, firstWindow);
190 KURL url = m_frame->document()->url();
193 url.removePort();
195 url.setPort(port);
196 m_frame->domWindow()->setLocation(url.string(), activeWindow, firstWindow);
203 KURL url = m_frame->document()->url();
204 url.setPath(pathname);
205 m_frame->domWindow()->setLocation(url.string(), activeWindow, firstWindow);
212 KURL url = m_frame->document()->url();
213 url.setQuery(search);
214 m_frame->domWindow()->setLocation(url.string(), activeWindow, firstWindow);
221 KURL url = m_frame->document()->url();
222 String oldFragmentIdentifier = url.fragmentIdentifier();
226 url.setFragmentIdentifier(newFragmentIdentifier);
227 // Note that by parsing the URL and *then* comparing fragments, we are
230 if (equalIgnoringNullity(oldFragmentIdentifier, url.fragmentIdentifier()))
232 m_frame->domWindow()->setLocation(url.string(), activeWindow, firstWindow);
261 if (protocolIsJavaScript(m_frame->document()->url()))