Commit-Queue | +1 |
Hi James, I added CHECK for the disposition support as well as very simple browsertests for the functionality. Could you please help take a look? Thanks
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
LGTM with nit
CHECK(disposition == WindowOpenDisposition::NEW_FOREGROUND_TAB);
nit: use CHECK_EQ and you'll get a better error message if it trips
#endif
Not for this CL, out of curiosity I wonder if content::WebContents::OpenURL() could be useful here? It seems to understand disposition and transition type.
"../browser/extensions/extension_tab_util_unittest.cc",
Thanks for adding this!
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
CHECK(disposition == WindowOpenDisposition::NEW_FOREGROUND_TAB);
nit: use CHECK_EQ and you'll get a better error message if it trips
Done
Not for this CL, out of curiosity I wonder if content::WebContents::OpenURL() could be useful here? It seems to understand disposition and transition type.
Thanks for your suggestion. I will further investigate and wrap up a follow up CL if `content::WebContents::OpenURL()` works better here. ❤️
"../browser/extensions/extension_tab_util_unittest.cc",
Zhengzheng LiuThanks for adding this!
😊
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. |
The CQ failure is not related to this change. A revert to fix this failure has been submitted. https://chromium-review.googlesource.com/c/chromium/src/+/6917491
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Commit-Queue | +2 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | -1 |
// TODO(crbug.com//440173000): Support new window disposition for Android.
what do you mean by "new" here? Is this supposed to be "other"?
web_contents->GetBrowserContext(), GURL("http://www.google.com"));
Wonder if we should use an internal URL like chrome://version instead
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +0 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Hi Achuith, please help take another look. Thanks.
// TODO(crbug.com//440173000): Support new window disposition for Android.
what do you mean by "new" here? Is this supposed to be "other"?
Done
web_contents->GetBrowserContext(), GURL("http://www.google.com"));
Wonder if we should use an internal URL like chrome://version instead
Done. "www.google.com" is also used in other places. I will create a bug to clean this usage up?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
FYI: The ClangTidy warning is related to b/443228626, which is not caused by this CL.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
web_contents->GetBrowserContext(), GURL("http://www.google.com"));
Zhengzheng LiuWonder if we should use an internal URL like chrome://version instead
Done. "www.google.com" is also used in other places. I will create a bug to clean this usage up?
Let's not bother with this. I thought we'd want to avoid making calls to external sites in these tests (in theory the call could fail).
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
web_contents->GetBrowserContext(), GURL("http://www.google.com"));
Zhengzheng LiuWonder if we should use an internal URL like chrome://version instead
Achuith BhandarkarDone. "www.google.com" is also used in other places. I will create a bug to clean this usage up?
Let's not bother with this. I thought we'd want to avoid making calls to external sites in these tests (in theory the call could fail).
OK.Thanks for the suggestions and reviews.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Commit-Queue | +2 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
extensions: Refactor NavigateToURL to take disposition param
-- Add CHECK of the disposition param for NavigateToURL to make sure it
is supported on the specific platform.
-- Add simple browsertest for NavigateToURL method.
-- Enable extension_tab_util_unittest on desktop Android.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |