Closed
Bug 1385755
Opened 7 years ago
Closed 5 years ago
symlink user.js treat as 0 bytes on Windows
Categories
(Core :: Preferences: Backend, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: kudwafter114514, Assigned: kmag)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
1.92 KB,
text/csv
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0 Build ID: 20170628075643 Steps to reproduce: 1. ``mklink user.js user.txt`` in profile directory. 2. write some setting to user.txt. 3. (Re)Start Firefox. Build ID 20170730100307 User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0 Actual results: Firefox dones not read user.js. Started from Firefox 45(Build ID 20160303134406). Expected results: Firefox read setting from user.js. Until Firefox 44(Build ID 20160123151951) was reading the link target.
Updated•7 years ago
|
Component: Untriaged → Startup and Profile System
Product: Firefox → Toolkit
Comment 1•7 years ago
|
||
Code in question: https://dxr.mozilla.org/mozilla-central/source/modules/libpref/Preferences.cpp#1266 Regression caused by bug 1219310. I wonder if we could ask the *stream* for its size, rather than the file. Otherwise we'll need to add symlink resolution to the nsIFile which is a PITA.
Blocks: 1219310
Component: Startup and Profile System → Preferences: Backend
Flags: needinfo?(nfroyd)
Keywords: regression
Product: Toolkit → Core
Comment 2•7 years ago
|
||
(In reply to Benjamin Smedberg [:bsmedberg] from comment #1) > Code in question: > https://dxr.mozilla.org/mozilla-central/source/modules/libpref/Preferences. > cpp#1266 > > Regression caused by bug 1219310. I wonder if we could ask the *stream* for > its size, rather than the file. Otherwise we'll need to add symlink > resolution to the nsIFile which is a PITA. We were asking the stream for its size before bug 1219310, so I think we can certainly do that. :) I guess we could just back out the first part of the bug? Do we have any sort of policy on symlinks in the profile directory?
Flags: needinfo?(nfroyd)
Comment 3•7 years ago
|
||
No policy. People do lots of weird shit though.
Comment 4•5 years ago
|
||
No longer reproduced on 67. I guess this is fixed by bug 1363482:
https://searchfox.org/mozilla-central/diff/bfafcc2b0611c13bda2c07afebd14ac1d2f8f418/modules/libpref/Preferences.cpp#1278
Updated•5 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Assignee: nobody → kmaglione+bmo
Updated•2 years ago
|
Has Regression Range: --- → yes
You need to log in
before you can comment on or make changes to this bug.
Description
•