Support Chrome Beta import on Windows
Categories
(Firefox :: Migration, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox74 | --- | verified |
People
(Reporter: FredMcD, Assigned: MattN)
Details
(Keywords: good-first-bug, Whiteboard: [lang=js])
Attachments
(3 files, 1 obsolete file)
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Steps to reproduce:
https://support.mozilla.org/en-US/questions/1247876#answer-1191690
Trouble migrating from Chrome to Firefox
Actual results:
A user reports unable to import data from Chrome browser.
Expected results:
https://support.mozilla.org/en-US/questions/1247876#answer-1191622
User statement;
Problem resolved.
Turns out Chrome beta isn't supported, had to install the original Chrome and then it recognized it.
Updated•5 years ago
|
Othera reporting the sane issue. See;
https://support.mozilla.org/en-US/forums/support-forum-contributors/713335
Assignee | ||
Comment 2•5 years ago
|
||
Thanks. If someone on Chrome Beta can provide their OS and the path to their profile folder then this can be an easy fix. We currently only handle Chrome Beta on Linux:
https://dxr.mozilla.org/mozilla-central/rev/c2593a3058afdfeaac5c990e18794ee8257afe99/browser/components/migration/ChromeProfileMigrator.js#479,481,491
You can contact the user; https://support.mozilla.org/en-US/user/Dauntless
Comment 4•5 years ago
|
||
On windows 10, chrome://version says
Profile Path C:\Users\sfoster\AppData\Local\Google\Chrome Beta\User Data\Default
Assignee | ||
Comment 5•5 years ago
|
||
Looks we need to include Windows in the supported platforms: https://dxr.mozilla.org/mozilla-central/rev/c2593a3058afdfeaac5c990e18794ee8257afe99/browser/components/migration/ChromeProfileMigrator.js#479,481,491
Please install Chrome Beta on Windows to test.
Comment 6•5 years ago
|
||
Hi Matthew I would like to work on it, can you help me how to solve it, I build the firefox on my laptop already.
Thanks
Assignee | ||
Comment 7•5 years ago
|
||
Hello, make sure you're running Windows, install Chrome Beta, and then adjust at the code from comment 5. If you're succesful, run Firefox with --migration and make sure you see Chrome Beta as an option on the first page of the wizard.
Comment 8•5 years ago
|
||
Hi, I would like to take this forward.
Can this be assigned to me..???
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Hi, there has been no activity on this bug for a couple of months.
Please can this be assigned to me?
Assignee | ||
Comment 10•5 years ago
|
||
You can work on it… when you submit your review request on Phabricator then I'll assign it to you.
Comment 11•5 years ago
|
||
I have Chrome Beta installed. I've made changes to the following files (patch attached). I am still not able to see Chrome Beta as an option in the first page of the wizard even after a complete rebuild.
I modified the code and was able to hide Chrome or Edge as an available option though.
Did I miss any thing? Any idea where the code to detect available browsers are?
Assignee | ||
Comment 12•5 years ago
|
||
I haven't tested the patch but since you're touching components.conf, make sure you are using a non-artifact build (see ./mach bootstrap
for more info)
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Comment 13•5 years ago
|
||
(In reply to Matthew N. [:MattN] (PM me if requests are blocking you) from comment #12)
I haven't tested the patch but since you're touching components.conf, make sure you are using a non-artifact build (see
./mach bootstrap
for more info)
Yes. It was a non-artifact build.
Assignee | ||
Comment 14•5 years ago
|
||
Comment on attachment 9070392 [details] [diff] [review] Patch to enable Chrome-Beta import in Windows Sorry, I've been quite busy the last week… maybe Sam will have a chance to look at this. Do you see any errors in the Browser Console when you test migration from within Firefox?
Comment 15•5 years ago
|
||
Apologies for the delay, I've had to re-setup my windows box. Testing and reviewing this is next up on my list.
Comment 16•5 years ago
|
||
Comment on attachment 9070392 [details] [diff] [review] Patch to enable Chrome-Beta import in Windows I've built (non-artifact) with this patch and still not seeing the Chrome beta option in the import dialog on Windows. And there is a an exception in the console from MigrationUtils.jsm which also suggests that the component registration isn't working out: ``` [Exception... "ComponentManager::CreateInstance returned failure code:" nsresult: "0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE)" location: "JS frame :: resource:///modules/MigrationUtils.jsm :: MU_getMigrator :: line 718" data: no] MigrationUtils.jsm:718:29 MU_getMigrator resource:///modules/MigrationUtils.jsm:718 onImportSourcePageShow chrome://browser/content/migration/migration.js:117 init chrome://browser/content/migration/migration.js:67 onload chrome://browser/content/migration/migration.xul:1 MU_showMigrationWizard resource:///modules/MigrationUtils.jsm:892 PO_importFromBrowser chrome://browser/content/places/places.js:409 oncommand chrome://browser/content/places/places.xul:1 ``` I wondered if it was the extra spaces in 'constructor': ' ChromeBetaMigrator' but apparently not. I'll leave myself need-info'd to look into this further.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 17•5 years ago
|
||
(In reply to Sam Foster [:sfoster] (he/him) from comment #16)
I wondered if it was the extra spaces in 'constructor': '
ChromeBetaMigrator' but apparently not. I'll leave myself need-info'd to
look into this further.
I'm now not sure if my confirmation of this was any good. Have you tried removing these 2 spaces in the constructor value to see if that solves the problem?
Assignee | ||
Comment 18•4 years ago
|
||
Comment on attachment 9070392 [details] [diff] [review] Patch to enable Chrome-Beta import in Windows Review of attachment 9070392 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/components/migration/ChromeProfileMigrator.jsm @@ +474,5 @@ > + * Chrome Beta - Windows and Linux > + */ > + > +if (AppConstants.platform != "macosx") { > + function ChromeBetaMigrator() { I think the issue is just that this function needs to be defined at the top-level of the file, not inside the `if`. Can you put the `if` only around the `EXPORTED_SYMBOLS.push()` line and try again?
Assignee | ||
Comment 19•4 years ago
|
||
Assignee | ||
Comment 20•4 years ago
|
||
The other patch on this bug can build on top of mine or vice-versa.
Assignee | ||
Comment 21•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Comment 22•4 years ago
|
||
Comment on attachment 9120087 [details]
Data Collection Renewal
Renewal review:
1) Is the provided Data Collection Review complete, correct, and data-review+ by a Data Steward?
Yes, legacy-style! It's a category 2, opt-out, all-channel collection.
2) Is the data collection covered by the existing Firefox Privacy Notice?
Yes.
Assignee | ||
Comment 23•4 years ago
|
||
Depends on D58202
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Comment 24•4 years ago
|
||
Pushed by mozilla@noorenberghe.ca: https://hg.mozilla.org/integration/autoland/rev/b329e8beb91f Fix Linux Chrome Beta and Chrome Dev migrator support and telemetry. r=Gijs https://hg.mozilla.org/integration/autoland/rev/e6cf7f793500 Support Chrome Beta import on Windows. r=MattN
Assignee | ||
Comment 25•4 years ago
•
|
||
- I manually tested that Chrome Beta and Dev now work properly on Linux.
- I also tested Chrome Beta works on Windows
Comment 26•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b329e8beb91f
https://hg.mozilla.org/mozilla-central/rev/e6cf7f793500
Comment 27•4 years ago
|
||
I could verify the import of passwords, history and bookmarks, and I could not observe any data that was not imported properly, BUT I do not know how to properly check whether the cookies were properly imported. Can you tell me how?
Tests were done on Windows 10 with Chrome Canary and Nightly v74.0a1 from 2020-01-31.
Assignee | ||
Comment 28•4 years ago
|
||
(In reply to Bodea Daniel [:danibodea] from comment #27)
I could verify the import of passwords, history and bookmarks, and I could not observe any data that was not imported properly, BUT I do not know how to properly check whether the cookies were properly imported. Can you tell me how?
You would have to use the Storage tab in the Web Developer Tools while visiting a site that had cookies in Chrome. Choose Cookies in the sidebar. You would want to inspect the Cookies in the Chrome Developer Tools before import. Note that we don't import encrypted/secure cookies though.
Comment 29•4 years ago
|
||
With the help provided in the previous comment, I can confirm that SOME cookies are being imported, but few of them. I have attempted to understand exactly which should properly be imported (those that aren't encrypted or secure). I can't determine which ones should be imported and aren't.
This being said, I will assume this issue was fixed correctly. Thank you!
Description
•