feat: Restore webContents navigation history and page state (#45433)
* feat: Working navigationHistory.restore with just title/url * feat: Restore page state, too * chore: Docs, lint, tests * Implement feedback * More magic * Make _awaitNextLoad truly private * Implement API group feedback * One more round of feedback
This commit is contained in:
parent
6fdfca6e49
commit
9f47c9a051
8 changed files with 259 additions and 10 deletions
|
@ -219,6 +219,10 @@ class WebContents final : public ExclusiveAccessContext,
|
|||
bool RemoveNavigationEntryAtIndex(int index);
|
||||
std::vector<content::NavigationEntry*> GetHistory() const;
|
||||
void ClearHistory();
|
||||
void RestoreHistory(v8::Isolate* isolate,
|
||||
gin_helper::ErrorThrower thrower,
|
||||
int index,
|
||||
const std::vector<v8::Local<v8::Value>>& entries);
|
||||
int GetHistoryLength() const;
|
||||
const std::string GetWebRTCIPHandlingPolicy() const;
|
||||
void SetWebRTCIPHandlingPolicy(const std::string& webrtc_ip_handling_policy);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue