[Webkit-unassigned] [Bug 61536] [Chromium] Add missing compile guards for WebWorkers in WebKit
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 26 12:08:50 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=61536
--- Comment #6 from Leandro GraciĆ” Gil <leandrogracia at chromium.org> 2011-05-26 12:08:50 PST ---
(From update of attachment 94992)
View in context: https://bugs.webkit.org/attachment.cgi?id=94992&action=review
>> Source/WebKit/chromium/src/DatabaseObserver.cpp:71
>> + return false;
>
> Lets add ASSERT_NOT_REACHED() here, to document that we don't expect any other case but Document in this case.
Fixed.
>> Source/WebKit/chromium/src/LocalFileSystemChromium.cpp:101
>> + allowed = false;
>
> Same as above, ASSERT_NOT_REACHED() could be useful here.
Fixed.
>>>> Source/WebKit/chromium/src/WebFileSystemCallbacksImpl.cpp:96
>>>> + m_callbacks->didOpenFileSystem(name, AsyncFileSystemChromium::create(m_type, path));
>>>
>>> This duplicates a line of code... By placing #if/#endif around if/else, it's possible to avoid that.
>>
>> Yes, but it may introduce style errors in the bots that don't enable workers. If you think this is ok I'll be happy to fix it like you propose.
>
> This could do
>
> OwnPtr<WebFileSystemCallbacksImpl> callbacks(this);
>
> #if
> if (m_context && m_context->isWorkerContext()) {
> m_callbacks->didOpenFileSystem(name, WorkerAsyncFileSystemChromium::create(m_context, m_type, path, m_synchronous));
> return;
> }
> #endif
> m_callbacks->didOpenFileSystem(name, AsyncFileSystemChromium::create(m_type, path));
>
> which addresses both issues.
Thanks for the suggestion! Fixed.
However I just realized a compile error here when uploading the patch. Give me a minute and I'll fix it.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list