MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / pushState

Method pushState

src/main/java/org/htmlunit/History.java:340–348  ·  view source on GitHub ↗

Allows to change history state and url if provided. @param state the new state to use @param url the new url to use

(final Object state, final URL url)

Source from the content-addressed store, hash-verified

338 * @param url the new url to use
339 */
340 public void pushState(final Object state, final URL url) {
341 final Page page = window_.getEnclosedPage();
342 final HistoryEntry entry = addPage(page);
343
344 if (entry != null) {
345 entry.setUrl(url, page);
346 entry.setState(state);
347 }
348 }
349
350 /**
351 * Returns current state object.

Callers

nothing calls this directly

Calls 4

addPageMethod · 0.95
setUrlMethod · 0.95
setStateMethod · 0.95
getEnclosedPageMethod · 0.65

Tested by

no test coverage detected