-
Notifications
You must be signed in to change notification settings - Fork 109
Tab discarding/Tab strip #173
Conversation
tab discarding works by creating a new empty webcontents and copying the navigation controller state from the current tab. It then detaches the old webcontents from the webview and attaches the new one. When the tab is activated it triggers a reload |
@@ -208,6 +209,8 @@ void CommonWebContentsDelegate::SetOwnerWindow( | |||
int32_t id = | |||
api::Window::TrackableObject::GetIDFromWrappedClass(owner_window); | |||
if (id > 0) { | |||
SessionID sessionID; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is sessionID
not being used? TabHelper::SetWindowId
will eventually set SessionID and use it so I think we can remove it here.
It is used right below your comment
… On Mar 31, 2017, at 2:10 PM, Anthony Tseng ***@***.***> wrote:
@darkdh commented on this pull request.
In atom/browser/common_web_contents_delegate.cc:
> @@ -208,6 +209,8 @@ void CommonWebContentsDelegate::SetOwnerWindow(
int32_t id =
api::Window::TrackableObject::GetIDFromWrappedClass(owner_window);
if (id > 0) {
+ SessionID sessionID;
Is sessionID not being used? TabHelper::SetWindowId will eventually set SessionID and use it so I think we can remove it here.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
no I mean it should be used like SessionTabHelper::FromWebContents(web_contents())->SetWindowID(session); because |
If we let it auto set it will have the wrong value
… On Mar 31, 2017, at 3:49 PM, Anthony Tseng ***@***.***> wrote:
no I mean it should be used like SessionTabHelper::FromWebContents(web_contents())->SetWindowID(session); because set_id only store id in its private attribute
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
"//chrome/browser/engagement/site_engagement_score.cc", | ||
"//chrome/browser/engagement/site_engagement_score.h", | ||
"chrome/browser/engagement/site_engagement_service.cc", | ||
"chrome/browser/lifetime/application_lifetime.cc", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see this file
++ |
add tab discard support through chromium tab manager
also adds browser/tabstrip support for better src/chrome code compatibility
dep for brave/browser-laptop#2388