Bug 70036 - compile error in WebCore::WorkerContext::importScript()
Summary: compile error in WebCore::WorkerContext::importScript()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Minor
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-13 10:18 PDT by sanachan.y
Modified: 2011-10-14 11:25 PDT (History)
1 user (show)

See Also:


Attachments
Include ExceptionCode.h instead (1.05 KB, patch)
2011-10-13 10:18 PDT, sanachan.y
no flags Details | Formatted Diff | Diff
Patch2 (1.11 KB, patch)
2011-10-14 08:51 PDT, sanachan.y
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description sanachan.y 2011-10-13 10:18:21 PDT
Created attachment 110868 [details]
Include ExceptionCode.h instead

In WebCore::WorkerContext::importScript() method,
a compile error like 'SYNTAX_ERR is not defined' occurs when
compile switches are set to :-
  - ENABLE_WORKERS=1
  - ENABLE_FILE_SYSTEM=0

Include dom/ExceptionCode.h instead, like the attached candidate patch.

I don't know about WebKit's commit policy so that I set commit-queue to '?'.
Comment 1 WebKit Review Bot 2011-10-13 10:22:17 PDT
Attachment 110868 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1

Source/WebCore/ChangeLog:3:  Line contains tab character.  [whitespace/tab] [5]
Source/WebCore/ChangeLog:4:  Line contains tab character.  [whitespace/tab] [5]
Source/WebCore/ChangeLog:5:  Line contains tab character.  [whitespace/tab] [5]
Source/WebCore/ChangeLog:7:  Line contains tab character.  [whitespace/tab] [5]
Source/WebCore/ChangeLog:9:  Line contains tab character.  [whitespace/tab] [5]
Source/WebCore/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Total errors found: 6 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 2 sanachan.y 2011-10-14 08:51:28 PDT
Created attachment 111019 [details]
Patch2

improved according to the found errors by WebKit Review Bot
Comment 3 Darin Adler 2011-10-14 10:11:44 PDT
Comment on attachment 111019 [details]
Patch2

Iā€™d rather see an unconditional include of ExceptionCode.h instead of the #else, but this is OK.
Comment 4 WebKit Review Bot 2011-10-14 11:25:15 PDT
Comment on attachment 111019 [details]
Patch2

Clearing flags on attachment: 111019

Committed r97482: <http://trac.webkit.org/changeset/97482>
Comment 5 WebKit Review Bot 2011-10-14 11:25:19 PDT
All reviewed patches have been landed.  Closing bug.