| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
std::set<web::WebStateID> tabs = {tabInfo.tabID};Instead of doing that, we should first verify that the tab is from the current web state list. Then do a union of currently attached tabs with the new web state ID and call attachSelectedTabsWithWebStateIDs with the merged list.
[self attachSelectedTabsWithWebStateIDs:tabsThis will detach the tabs that where already attached.
cachedWebStateIDs:{}What if the tab has cached APC ?
// Check if the tab belongs to the current window's WebStateList.
WebStateSearchCriteria searchCriteria{
.identifier = webStateID,
.pinned_state = WebStateSearchCriteria::PinnedState::kAny,
};
if (GetWebStateIndex(_webStateList, searchCriteria) !=
WebStateList::kInvalidIndex) {
webStateIDs.insert(webStateID);
}
}
}Why are we changing this logic ?
if (_theme.incognito) {
return NO;
}
for (UIDragItem* item in session.items) {
if ([item.localObject isKindOfClass:[TabInfo class]]) {
// Disallow drops of off-the-record tabs.
TabInfo* tab = item.localObject;
return tab.incognito ? NO : YES;
}
}Why is tab drag and drop disabled in incognito ?
Incognito should allow incognito tabs to be dragged and dropped. Same for regular mode, it should only allow regular tabs to be dropped.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Maybe here there should already be indication that a tab that is not from the current web state list can't be dropped.
std::set<web::WebStateID> tabs = {tabInfo.tabID};Instead of doing that, we should first verify that the tab is from the current web state list. Then do a union of currently attached tabs with the new web state ID and call attachSelectedTabsWithWebStateIDs with the merged list.
This functionality is for dragging tabs from another window into the composebox. I don't think it is possible to drop a tab from the same window as is currently presenting the composebox.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |