Bug 32306

Summary: [V8] Isolated world reuse failure
Product: WebKit Reporter: Søren Gjesse <sgjesse>
Component: WebCore Misc.Assignee: Søren Gjesse <sgjesse>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, ager, commit-queue, dglazkov, eric, pfeldman, sgjesse, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
pfeldman: review-
Patch fixing webkit style none

Description Søren Gjesse 2009-12-08 23:56:36 PST
The layout test LayoutTests/http/tests/security/isolatedWorld/world-reuse.html fails with V8 bindings changes introduced in r51407 (http://trac.webkit.org/changeset/51407). See http://crbug.com/28905 for details.
Comment 1 Søren Gjesse 2009-12-09 04:50:08 PST
Created attachment 44529 [details]
Patch
Comment 2 WebKit Review Bot 2009-12-09 04:54:21 PST
Attachment 44529 [details] did not pass style-queue:

Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1
WebCore/bindings/v8/V8Proxy.cpp:396:  One line control clauses should not use braces.  [whitespace/braces] [4]
WebCore/bindings/v8/V8Proxy.cpp:398:  One line control clauses should not use braces.  [whitespace/braces] [4]
WebCore/bindings/v8/V8Proxy.cpp:1383:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
WebCore/bindings/v8/V8Proxy.cpp:1383:  Use 0 instead of NULL.  [readability/null] [5]
WebCore/bindings/v8/V8Proxy.cpp:1384:  Use 0 instead of NULL.  [readability/null] [5]
Total errors found: 5
Comment 3 Pavel Feldman 2009-12-09 05:05:30 PST
Comment on attachment 44529 [details]
Patch

> +    if (debugId == -1) {
> +        snprintf(buffer, sizeof(buffer), "injected");
> +    } else {
> +        snprintf(buffer, sizeof(buffer), "injected,%d", debugId);
> +    }

no {} for single line bodies

>      targetContext->SetData(v8::String::New(buffer));
>  
>      return true;
> @@ -1378,6 +1380,8 @@ int V8Proxy::contextDebugId(v8::Handle<v
>          return -1;
>      v8::String::AsciiValue ascii(context->GetData());
>      char* comma = strnstr(*ascii, ",", ascii.length());
> +    if (comma == NULL)
> +        return NULL;


if (!comma)
    return 0;

>      return atoi(comma + 1);
>  }
>
Comment 4 Søren Gjesse 2009-12-09 05:13:26 PST
Created attachment 44530 [details]
Patch fixing webkit style
Comment 5 WebKit Commit Bot 2009-12-09 06:34:45 PST
Comment on attachment 44530 [details]
Patch fixing webkit style

Rejecting patch 44530 from commit-queue.

Unexpected failure when landing patch!  Please file a bug against bugzilla-tool.
Failed to run "['WebKitTools/Scripts/bugzilla-tool', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', '--quiet', '44530']" exit_code: 1
Last 500 characters of output:
nd_handle_errors
    self.run()
  File "/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/modules/landingsequence.py", line 54, in run
    self.clean()
  File "/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/modules/landingsequence.py", line 81, in clean
    step.run()
  File "/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/modules/buildsteps.py", line 101, in run
    os.chdir(self._tool._scm.checkout_root)
AttributeError: 'NoneType' object has no attribute 'checkout_root'
Comment 6 Dimitri Glazkov (Google) 2009-12-09 09:35:42 PST
Comment on attachment 44530 [details]
Patch fixing webkit style

Let's try again?
Comment 7 WebKit Commit Bot 2009-12-09 09:36:56 PST
Comment on attachment 44530 [details]
Patch fixing webkit style

Rejecting patch 44530 from commit-queue.

Unexpected failure when landing patch!  Please file a bug against bugzilla-tool.
Failed to run "['WebKitTools/Scripts/bugzilla-tool', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', '--quiet', '44530']" exit_code: 1
Last 500 characters of output:
nd_handle_errors
    self.run()
  File "/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/modules/landingsequence.py", line 54, in run
    self.clean()
  File "/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/modules/landingsequence.py", line 81, in clean
    step.run()
  File "/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/modules/buildsteps.py", line 101, in run
    os.chdir(self._tool._scm.checkout_root)
AttributeError: 'NoneType' object has no attribute 'checkout_root'
Comment 8 Eric Seidel (no email) 2009-12-09 11:03:29 PST
This is from Adam's refactoring of the queues last night.  I'll stop the commit-queue and we'll get a fix in shortly.
Comment 9 Eric Seidel (no email) 2009-12-09 11:36:27 PST
Comment on attachment 44530 [details]
Patch fixing webkit style

Sorry for the noise.  Adam believes to have fixed the issue.  I've restarted the commit bot.
Comment 10 WebKit Commit Bot 2009-12-09 12:14:21 PST
Comment on attachment 44530 [details]
Patch fixing webkit style

Clearing flags on attachment: 44530

Committed r51912: <http://trac.webkit.org/changeset/51912>
Comment 11 WebKit Commit Bot 2009-12-09 12:14:28 PST
All reviewed patches have been landed.  Closing bug.