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)
| 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. |
nothing calls this directly
no test coverage detected