RESOLVED FIXED 48571
[chromium] UUID generation does not work in Linux that has sandbox turned on
https://bugs.webkit.org/show_bug.cgi?id=48571
Summary [chromium] UUID generation does not work in Linux that has sandbox turned on
Jian Li
Reported Thursday, October 28, 2010 11:54:18 PM UTC
UUID generation does not work in Linux that has sandbox turned on.
Attachments
Proposed Patch (2.93 KB, patch)
2010-10-28 17:00 PDT, Jian Li
jianli: commit-queue-
Proposed Patch (2.77 KB, patch)
2010-10-28 17:26 PDT, Jian Li
dimich: review-
jianli: commit-queue-
Proposed Patch (2.84 KB, patch)
2010-10-28 17:58 PDT, Jian Li
dimich: review+
jianli: commit-queue-
Jian Li
Comment 1 Friday, October 29, 2010 1:00:11 AM UTC
Created attachment 72262 [details] Proposed Patch
Jian Li
Comment 2 Friday, October 29, 2010 1:26:55 AM UTC
Created attachment 72268 [details] Proposed Patch
Dmitry Titov
Comment 3 Friday, October 29, 2010 1:53:10 AM UTC
Comment on attachment 72268 [details] Proposed Patch View in context: https://bugs.webkit.org/attachment.cgi?id=72268&action=review A few nits. r- because it implements it in the case where it should probably stay unimplemented... > WebCore/platform/UUID.cpp:99 > #else Is there a specific benefit in enabling it for everything else? Why not limit to LINUX + CHROMIUM? If the bug is about Chromium Linux implementation, then it should be narrowly scoped, otherwise there should be a note why specifically the previously unimplemented functionality should be implemented. > WebCore/platform/UUID.cpp:101 > + for (size_t i = 0; i < sizeof(randomData) / sizeof(unsigned); ++i) .. / sizeof(randomData[0]) ? > WebCore/platform/UUID.cpp:113 > + builder.append(String::format("%03x", randomData[2] >> 16)); seems it has to be (randomData[2] >> 16 ) & 0x00000fff here...
Jian Li
Comment 4 Friday, October 29, 2010 1:58:45 AM UTC
Created attachment 72276 [details] Proposed Patch All fixed.
Dmitry Titov
Comment 5 Friday, October 29, 2010 2:03:36 AM UTC
Comment on attachment 72276 [details] Proposed Patch r=me
Jian Li
Comment 6 Friday, October 29, 2010 2:18:21 AM UTC
Adam Barth
Comment 7 Friday, October 29, 2010 7:41:19 AM UTC
Why don't we just use this code on all platforms? I don't see the value in calling the platform-specific libraries.
Jian Li
Comment 8 Friday, October 29, 2010 7:29:40 PM UTC
(In reply to comment #7) > Why don't we just use this code on all platforms? I don't see the value in calling the platform-specific libraries. I will watch this for a while. If we do not see any problem, we can start to extend to all other platforms.
Note You need to log in before you can comment on or make changes to this bug.