| Summary: | [Content Extensions] Don't unmap shared memory | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Alex Christensen <achristensen> | ||||
| Component: | WebKit2 | Assignee: | Alex Christensen <achristensen> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | andersca, beidson, sam | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Alex Christensen
2015-04-10 18:34:58 PDT
Created attachment 250551 [details]
Patch
Anders, could you mention this bug in the radar when reviewing? Comment on attachment 250551 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=250551&action=review > Source/WebKit2/Shared/WebCompiledContentExtensionData.h:48 > + WebCompiledContentExtensionData(PassRefPtr<SharedMemory> data, NetworkCache::Data fileData, unsigned actionsOffset, unsigned actionsSize, unsigned bytecodeOffset, unsigned bytecodeSize) New code should not use PassRefPtr. This should be RefPtr<SharedMemory>&& if you want to move it in. Then use WTF::move below. (In reply to comment #3) > New code should not use PassRefPtr. This should be RefPtr<SharedMemory>&& if > you want to move it in. Then use WTF::move below. I only made that change because stylebot got mad at me for leaving it as RefPtr. If this is true (which it probably is) then stylebot should be changed. (In reply to comment #4) > (In reply to comment #3) > > New code should not use PassRefPtr. This should be RefPtr<SharedMemory>&& if > > you want to move it in. Then use WTF::move below. > I only made that change because stylebot got mad at me for leaving it as > RefPtr. If this is true (which it probably is) then stylebot should be > changed. Stylebot normally says things like "If even of these errors are wrong please file a bug on check-webkit-style", so you should probably file a bug on check-webkit-style :) |