Navigations in bookmark apps are not recorded to browser history
Reported by
balbi...@gmail.com,
Mar 14 2018
|
||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; CrOS x86_64 10176.76.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.190 Safari/537.36 Platform: 10176.76.0 (Official Build) stable-channel swanky Steps to reproduce the problem: 1. Browse any website (it records a visit on your history) 2. Pin website to shelf 3. Browse site from shelf (it doesn't record a visit on your history) 4. If your unpin the site, you will still have access to it from your app launcher and it won't record a visit on your history either. What is the expected behavior? To record history at all times. What went wrong? Users that are not supposed to clear browser history nor use incognito mode (through user settings under chrome management) can actually browse around without leaving any footprint (record) on their history, so in some way they can navigate anonymously, which you don't want with students at any time. Did this work before? N/A Chrome version: 64.0.3282.190 Channel: stable OS Version: 10176.76.0 Flash Version: 28.0.0.161 On non-managed chromebooks it seems to work fine. I haven't been able to determine whether the bug concerns the type of chromebook (managed, non-managed) or the user settings (not allow to clear browser history or allowed to).
,
Mar 14 2018
Assign as the ChromeOS issue.
,
Mar 15 2018
Not an enterprise issue - it's a problem with pinned pages on chrome os in general, has nothing to do with managed devices. I'm not sure who the right owner is here, but adding Component:History because it primarily impacts history. Note that if the page itself refreshes, it is added to history - it's just the initial opening of that pinned page that doesn't get reflected in history.
,
Mar 15 2018
If you pin Youtube, for instance, any video you watch from that pinned page are not reflected in history either, if I'm not mistaken.
,
Dec 7
Hello! This bug is receiving this notice because there has been no acknowledgment of its existence in quite a bit of time. - If you are currently working on this bug, please provide an update. - If you are currently affected by this bug, please update with your current symptoms and relevant logs. If there has been no updates provided by EOD Wednesday, 12/12/18 (5pm EST), this bug will be archived and can be re-opened at any time deemed necessary. Thank you!
,
Dec 7
I'm afraid the issue is still there in latest versions of Chrome OS, please see attached.
,
Dec 10
Hello, the error persists in the version Version 70.0.3538.110 Following the same steps
,
Dec 11
,
Dec 11
,
Dec 11
Assigning to sczs@ to confirm that this is WAI. It's generally recommended that network traffic monitoring is done via a network Proxy as well as additional resources available via the Admin Console. I don't believe this is the intended use case of this feature but I have looped in someone from the engineering team to confirm this.
,
Dec 11
Hey sylcat@ I'm sorry I work on Chrome iOS and have no knowledge of the behavior on ChromeOS or who might be the right owner. ccing sdefresne as a components/history Owner and msramek@ as ChromeOS privacy. They might have a better idea.
,
Dec 11
Thanks for the update! sdfresne@ is this something you can assist with? Or if not would you happen to know someone who would be a better fit to assist?
,
Dec 14
I've looked at the HistoryService code and I don't see anything that would prevent saving the navigation to the history. I am unfamiliar with how those pinned tabs work with ChromeOS, but I would tend to think there is some logic that may decide to not send the navigation to the HistoryService. I think someone more familiar with ChromeOS (ideally someone involved with the pinned tab features) should take a look. jamescook: as a randomly selected OWNERS from src/chrome/browser/chromeos can you redirect to the correct triage queue for chromeos bugs?
,
Dec 14
Issue 914960 has been merged into this issue.
,
Dec 14
I think this is a generic bookmark app / PWA-ish problem. benwells, can you find an owner? Here's a repro: * Navigate to a page * Wipe your history * Browser menu > More tools > Create shortcut... * New item created in shelf * Close browser window * Right-click on shelf item, set "New tab > New window" * Click the item. It opens in the desktop PWA frame * Do some navigations * Open browser history. None of the navigations are recorded. The string "Create shortcut..." is IDS_ADD_TO_OS_LAUNCH_SURFACE, tied to a feature extensions::util::IsNewBookmarkAppsEnabled(), which is apparently on all platforms except Mac. I don't have a Windows machine handy, but I wonder if the problem reproduces there as well.
,
Dec 17
,
Dec 17
Looks to me like the issue is in HistoryTabHelper: https://cs.chromium.org/chromium/src/chrome/browser/history/history_tab_helper.cc?type=cs&q=chrome/browser/history/history_tab_helper.cc&sq=package:chromium&g=0&l=180 If browser->is_app() is true on desktop, navigations aren't saved to history. Bookmark apps count as browser->is_app(). It looks like this has been the case for >6 years - I assume because we don't want to record navigations in Chrome Apps to history. I think it doesn't make sense to stop navigations in bookmark apps from appearing in history (e.g. Android does not have the same check). A fix will be slightly involved - we'll need to check the type of app, and ensure if the underlying app is a bookmark app (Extension::from_bookmark() is true), we allow the history to be saved. We should also consider moving that chunk of code closer to the start of the method so it returns before it makes a bunch of not-used arguments.
,
Dec 17
+loyso - our new web app container is going to need to think about issues like this one.
,
Dec 17
Can we just remove that check? Chrome Packaged Apps should not be included in history, but they don't have a browser so won't be checking browser->is_app. All other app types should be in history.
,
Dec 17
If packaged apps don't have a browser and every other kind of app should be in history, I see no reason for the check to be kept. :)
,
Dec 20
I've got the trivial fix for this up now.
,
Jan 3
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/31ef5b44a15160bcc4acdde7b4d073876ecb9b6f commit 31ef5b44a15160bcc4acdde7b4d073876ecb9b6f Author: Dominick Ng <dominickn@chromium.org> Date: Thu Jan 03 04:08:30 2019 Record navigations in extension-based apps to history. This CL addresses a bug where bookmark apps (including desktop PWAs) do not have their navigations record to Chrome history. Chrome Packaged apps do not have a |browser| object, so removing the is_app() check will not affect them. BUG= 821685 Change-Id: I87356b6c6d3dad5e4cc321966bf385975adac995 Reviewed-on: https://chromium-review.googlesource.com/c/1388045 Reviewed-by: Ben Wells <benwells@chromium.org> Reviewed-by: Sylvain Defresne <sdefresne@chromium.org> Reviewed-by: Christian Dullweber <dullweber@chromium.org> Commit-Queue: Dominick Ng <dominickn@chromium.org> Cr-Commit-Position: refs/heads/master@{#619581} [modify] https://crrev.com/31ef5b44a15160bcc4acdde7b4d073876ecb9b6f/chrome/browser/history/history_tab_helper.cc
,
Jan 3
,
Jan 7
Tried testing the issue on the reported chrome version #64.0.3282.190 using Mac OS 10.13.6, Ubuntu 17.10 and Windows 10 by following steps as per comment#0 and on chrome version #71.0.3578.98 using Windows 10 as per comment#15. In both cases observed the history gets recorded. Attached screencasts for reference. @Dominick Ng: Could you please review attached screencasts and let us know if anything is being missed from our end. Help us in verifying the fix on latest M-73. Thanks.!
,
Jan 8
#24: You need to install a Progressive Web App, e.g. mobile.twitter.com. The bug will not manifest if you install a shortcut that opens in the browser; it needs to open in a standalone app window. |
||||||||||||||||
►
Sign in to add a comment |
||||||||||||||||
Comment 1 by balbi...@gmail.com
, Mar 14 2018