Bug 43791 - Web Inspector: replace hand written InspectorBackendStub.js with generated one
Summary: Web Inspector: replace hand written InspectorBackendStub.js with generated one
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Ilya Tikhonovsky
URL:
Keywords:
Depends on: 44108 44161
Blocks: 43977 44042
  Show dependency treegraph
 
Reported: 2010-08-10 08:01 PDT by Ilya Tikhonovsky
Modified: 2010-08-18 08:53 PDT (History)
13 users (show)

See Also:


Attachments
[patch] initial version. (15.58 KB, patch)
2010-08-10 08:08 PDT, Ilya Tikhonovsky
no flags Details | Formatted Diff | Diff
[patch] second iteration. just for check gtk build on trybots. (15.61 KB, patch)
2010-08-11 04:51 PDT, Ilya Tikhonovsky
no flags Details | Formatted Diff | Diff
[patch] third iteration. for trybots (20.91 KB, patch)
2010-08-11 12:16 PDT, Ilya Tikhonovsky
no flags Details | Formatted Diff | Diff
[patch] fourth iteration. Gtk tests were disabled. Qt tests were disabled. Cr-linux was fixed. (25.63 KB, patch)
2010-08-13 08:44 PDT, Ilya Tikhonovsky
no flags Details | Formatted Diff | Diff
[patch] next iteration. (140.70 KB, patch)
2010-08-16 06:07 PDT, Ilya Tikhonovsky
no flags Details | Formatted Diff | Diff
[patch] next iteration. rebaselined. (29.32 KB, patch)
2010-08-16 23:18 PDT, Ilya Tikhonovsky
no flags Details | Formatted Diff | Diff
[patch] next iteration. With working Qt tests and disabled GTK tests. (30.55 KB, patch)
2010-08-17 07:02 PDT, Ilya Tikhonovsky
yurys: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Tikhonovsky 2010-08-10 08:01:44 PDT
%subj%
Comment 1 Ilya Tikhonovsky 2010-08-10 08:08:32 PDT
Created attachment 64012 [details]
[patch] initial version.
Comment 2 Yury Semikhatsky 2010-08-10 08:19:14 PDT
Comment on attachment 64012 [details]
[patch] initial version.

Please make sure that devtools.html and inspector.html won't miss link to the generated file.
Comment 3 WebKit Review Bot 2010-08-10 08:38:15 PDT
Attachment 64012 [details] did not build on chromium:
Build output: http://queues.webkit.org/results/3733036
Comment 4 Ilya Tikhonovsky 2010-08-11 04:51:43 PDT
Created attachment 64097 [details]
[patch] second iteration. just for check gtk build on trybots.
Comment 5 WebKit Review Bot 2010-08-11 06:30:04 PDT
Attachment 64097 [details] did not build on chromium:
Build output: http://queues.webkit.org/results/3776051
Comment 6 Ilya Tikhonovsky 2010-08-11 12:16:17 PDT
Created attachment 64143 [details]
[patch] third iteration. for trybots
Comment 7 WebKit Review Bot 2010-08-11 14:54:32 PDT
Attachment 64143 [details] did not build on chromium:
Build output: http://queues.webkit.org/results/3756077
Comment 8 Ilya Tikhonovsky 2010-08-13 08:44:52 PDT
Created attachment 64348 [details]
[patch] fourth iteration. Gtk tests were disabled. Qt tests were disabled. Cr-linux was fixed.
Comment 9 Joseph Pecoraro 2010-08-13 10:22:26 PDT
Comment on attachment 64348 [details]
[patch] fourth iteration. Gtk tests were disabled. Qt tests were disabled. Cr-linux was fixed.

> +++ b/LayoutTests/platform/qt/Skipped
> +# [Qt] InspectorBackendStub.js was removed from the sources and replaced with generated one.
> +inspector/

Could use a bug, I see you made one for Gtk.


> +++ b/WebCore/ChangeLog
> +2010-08-10  Ilya Tikhonovsky  <loislo@chromium.org>
> +
> +        Reviewed by NOBODY (OOPS!).
> +
> +        Web Inspector: replace hand written InspectorBackendStub.js by generated one.
> +        https://bugs.webkit.org/show_bug.cgi?id=43791
> +
> +        * GNUmakefile.am:
> +        * WebCore.gypi:
> +        * WebCore.xcodeproj/project.pbxproj:
> +        * combine-javascript-resources:
> +        * inspector/CodeGeneratorInspector.pm:
> +        * inspector/front-end/InspectorBackendStub.js: Removed.
> +

Could mention that you're adding a new, optional, command
line switch to `combine-javascript-resources` to accomplish this.
I think it would be helpful!


> +++ b/WebCore/WebCore.gypi
> -            'inspector/front-end/InspectorBackendStub.js',

Should this file be removed from WebKit.qrc as well?

  WebCore/inspector/front-end/WebKit.qrc


> +++ b/WebCore/WebCore.xcodeproj/project.pbxproj
> @@ -20306,7 +20306,7 @@

The following (reformatted) still exists in the build phase:

>   # Don't do anything for Debug builds, so the Inspector is easier to debug.
>   if [[ ${CONFIGURATION:=Debug} == \"Debug\" ]]; then
>     exit
>   fi

If I understand this correctly, a release build would run the combine-javascript
script, but not a debug build. Does the generated javascript file get copied over
to the build directory elsewhere so this works in debug builds?


> +++ b/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp
> +    // FixMe: it is not working. It should be not current folder but subsolder of $(WEBKITOUTPUTDIR)/Programs.

NIT: Grammar: "It should not be the current directory, but a subdirectory of $(WEBKITOUTPUTDIR)/Programs."

r? concerning the Mac Debug build question.
Comment 10 Eric Seidel (no email) 2010-08-13 21:37:46 PDT
Comment on attachment 64012 [details]
[patch] initial version.

Cleared Yury Semikhatsky's review+ from obsolete attachment 64012 [details] so that this bug does not appear in http://webkit.org/pending-commit.
Comment 11 Ilya Tikhonovsky 2010-08-16 06:07:25 PDT
Created attachment 64487 [details]
[patch] next iteration.


(In reply to comment #9)
> (From update of attachment 64348 [details])
> > +++ b/LayoutTests/platform/qt/Skipped
> > +# [Qt] InspectorBackendStub.js was removed from the sources and replaced with generated one.
> > +inspector/
> 
> Could use a bug, I see you made one for Gtk.

https://bugs.webkit.org/show_bug.cgi?id=44042


> > +++ b/WebCore/ChangeLog
> > +2010-08-10  Ilya Tikhonovsky  <loislo@chromium.org>
> > +
> > +        Reviewed by NOBODY (OOPS!).
> > +
> > +        Web Inspector: replace hand written InspectorBackendStub.js by generated one.
> > +        https://bugs.webkit.org/show_bug.cgi?id=43791
> > +
> > +        * GNUmakefile.am:
> > +        * WebCore.gypi:
> > +        * WebCore.xcodeproj/project.pbxproj:
> > +        * combine-javascript-resources:
> > +        * inspector/CodeGeneratorInspector.pm:
> > +        * inspector/front-end/InspectorBackendStub.js: Removed.
> > +
> 
> Could mention that you're adding a new, optional, command
> line switch to `combine-javascript-resources` to accomplish this.
> I think it would be helpful!

done

> > +++ b/WebCore/WebCore.gypi
> > -            'inspector/front-end/InspectorBackendStub.js',
> 
> Should this file be removed from WebKit.qrc as well?
> 
>   WebCore/inspector/front-end/WebKit.qrc

done 



> > +++ b/WebCore/WebCore.xcodeproj/project.pbxproj
> > @@ -20306,7 +20306,7 @@
> 
> The following (reformatted) still exists in the build phase:
> 
> >   # Don't do anything for Debug builds, so the Inspector is easier to debug.
> >   if [[ ${CONFIGURATION:=Debug} == \"Debug\" ]]; then
> >     exit
> >   fi
> 
> If I understand this correctly, a release build would run the combine-javascript
> script, but not a debug build. Does the generated javascript file get copied over
> to the build directory elsewhere so this works in debug builds?

done


> > +++ b/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp
> > +    // FixMe: it is not working. It should be not current folder but subsolder of $(WEBKITOUTPUTDIR)/Programs.
> 
> NIT: Grammar: "It should not be the current directory, but a subdirectory of $(WEBKITOUTPUTDIR)/Programs."

done
Comment 12 Yury Semikhatsky 2010-08-16 06:33:50 PDT
Comment on attachment 64487 [details]
[patch] next iteration.

WebCore/WebCore.vcproj/WebCore.vcproj: 
 +  				CommandLine="mkdir 2&gt;NUL &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;mkdir 2&gt;NUL &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders&quot;&#x0D;&#x0A;mkdir 2&gt;NUL &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\bindings&quot;&#x0D;&#x0A;mkdir 2&gt;NUL &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\parser&quot;&#x0D;&#x0A;mkdir 2&gt;NUL &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\runtime&quot;&#x0D;&#x0A;mkdir 2&gt;NUL &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\masm&quot;&#x0D;&#x0A;mkdir 2&gt;NUL &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\pcre&quot;&#x0D;&#x0A;mkdir 2&gt;NUL &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\profiler&quot;&#x0D;&#x0A;mkdir 2&gt;NUL &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wrec&quot;&#x0D;&#x0A;mkdir 2&gt;NUL &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf&quot;&#x0D;&#x0A;mkdir 2&gt;NUL &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\text&quot;&#x0D;&#x0A;mkdir 2&gt;NUL &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode&quot;&#x0D;&#x0A;mkdir 2&gt;NUL &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode\icu&quot;&#x0D;&#x0A;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\config.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(WebKitOutputDir)\obj\WebCore\DerivedSources\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\accessibility\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\accessibility\win\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\inspector\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\loader\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\loader\appcache\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\loader\archive\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\loader\archive\cf\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\loader\icon\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\history\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\history\cf\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\html\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\notifications\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\css\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\platform\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\platform\animation\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\platform\cf\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\platform\graphics\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\platform\graphics\cg\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\platform\graphics\transforms\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\platform\graphics\win\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\platform\graphics\opentype\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\platform\text\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\platform\text\transcoder\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\platform\win\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\platform\network\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\platform\network\cf\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\platform\network\win\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\platform\sql\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\platform\cairo\cairo\src\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\bindings\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\bindings\js\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\page\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\page\animation\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\page\win\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\bridge\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\bridge\jsc\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\plugins\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\plugins\win\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\rendering\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\rendering\style\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\editing\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\dom\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\xml\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\svg\animation\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\svg\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\storage\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\websockets\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)..\workers\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)\..\ForwardingHeaders\bindings\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\bindings&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)\..\ForwardingHeaders\parser\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\parser&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)\..\ForwardingHeaders\runtime\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\runtime&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)\..\ForwardingHeaders\masm\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\masm&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)\..\ForwardingHeaders\pcre\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\pcre&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)\..\ForwardingHeaders\profiler\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\profiler&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)\..\ForwardingHeaders\wrec\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wrec&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)\..\ForwardingHeaders\wtf\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)\..\ForwardingHeaders\wtf\text\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\text&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)\..\ForwardingHeaders\wtf\unicode\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode&quot;&#x0D;&#x0A;xcopy /y /d &quot;$(ProjectDir)\..\ForwardingHeaders\wtf\unicode\icu\*.h&quot; &quot;$(WebKitOutputDir)\include\WebCore\ForwardingHeaders\wtf\unicode\icu&quot;&#x0D;&#x0A;&#x0D;&#x0A;mkdir 2&gt;NUL &quot;$(WebKitOutputDir)\bin\WebKit.resources\inspector&quot;&#x0D;&#x0A;xcopy /y /d /s /exclude:xcopy.excludes &quot;$(ProjectDir)\..\inspector\front-end\*&quot; &quot;$(WebKitOutputDir)\bin\WebKit.resources\inspector&quot;&#x0D;&#x0A;mkdir 2&gt;NUL &quot;$(WebKitOutputDir)\bin\WebKit.resources\en.lproj&quot;&#x0D;&#x0A;xcopy /y /d /s /exclude:xcopy.excludes &quot;$(ProjectDir)\..\English.lproj\localizedStrings.js&quot; &quot;$(WebKitOutputDir)\bin\WebKit.resources\en.lproj&quot;&#x0D;&#x0A;&#x0D;&#x0A;if exist &quot;$(WebKitOutputDir)\buildfailed&quot; del &quot;$(WebKitOutputDir)\buildfailed&quot;&#x0D;&#x0A;"
Would be nice to extract this command into external build file as you proposed offline. If you did that prior to this change it would make it more clear.

LayoutTests/platform/qt/Skipped:5437
 +  inspector/
Please coordinate this with Qt team before landing.
Comment 13 Ilya Tikhonovsky 2010-08-16 23:18:02 PDT
Created attachment 64552 [details]
[patch] next iteration. rebaselined.
Comment 14 Joseph Pecoraro 2010-08-16 23:47:47 PDT
Comment on attachment 64552 [details]
[patch] next iteration. rebaselined.

Thanks for addressing my comments Ilya!

> +    open(my $STUB, ">$outputDir/$backendJSStubName.js") || die "Couldn't open file $outputDir/$backendJSStubName.js";
> +    print $STUB join("\n", @backendStubJS);
> +    close($STUB);
> +    undef($STUB);

I'd recommend "JS_STUB". Or something with JS in the name. Even though the
filename is on the right, I still like the readability of the open() argument.
And who knows, in the future we might have other stubs.

Otherwise this looks good to me. I'll let someone who knows more about the
build systems have a look.
Comment 15 Ilya Tikhonovsky 2010-08-17 07:02:20 PDT
Created attachment 64587 [details]
[patch] next iteration. With working Qt tests and disabled GTK tests.
Comment 16 Yury Semikhatsky 2010-08-17 07:06:47 PDT
Comment on attachment 64587 [details]
[patch] next iteration. With working Qt tests and disabled GTK tests.

r+ given that Qt build works fine.
Comment 17 WebKit Review Bot 2010-08-17 07:40:54 PDT
http://trac.webkit.org/changeset/65500 might have broken Qt Windows 32-bit Release and Qt Windows 32-bit Debug
Comment 18 Ilya Tikhonovsky 2010-08-18 03:03:51 PDT
Committed r65595
	M	GNUmakefile.am
	M	WebKit/chromium/WebKit.gyp
	M	WebKit/chromium/ChangeLog
	M	WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp
	M	WebKit/gtk/ChangeLog
	M	WebCore/WebCore.pri
	M	WebCore/WebCore.pro
	M	WebCore/ChangeLog
	M	WebCore/WebCore.vcproj/copyInspectorFiles.cmd
	M	WebCore/GNUmakefile.am
	M	WebCore/WebCore.gyp/WebCore.gyp
	M	WebCore/WebCore.gypi
	M	WebCore/inspector/CodeGeneratorInspector.pm
	D	WebCore/inspector/front-end/InspectorBackendStub.js
	A	WebCore/inspector/front-end/InspectorBackendStub.qrc
	M	WebCore/inspector/front-end/WebKit.qrc
	M	WebCore/WebCore.xcodeproj/project.pbxproj
	M	WebCore/combine-javascript-resources
	M	ChangeLog
	M	LayoutTests/platform/gtk/Skipped
	M	LayoutTests/ChangeLog
W: -empty_dir: trunk/WebCore/inspector/front-end/InspectorBackendStub.js
r65595 = 98068b3e7c4f021a5e6e6be9ba5aff8949b689ac (refs/remotes/trunk)
Comment 19 WebKit Review Bot 2010-08-18 03:28:13 PDT
http://trac.webkit.org/changeset/65595 might have broken Qt Windows 32-bit Debug
The following changes are on the blame list:
http://trac.webkit.org/changeset/65594
http://trac.webkit.org/changeset/65595
http://trac.webkit.org/changeset/65596
http://trac.webkit.org/changeset/65597
Comment 20 WebKit Review Bot 2010-08-18 07:42:08 PDT
http://trac.webkit.org/changeset/65608 might have broken Qt Linux Release minimal, Qt Linux ARMv5 Release, and Qt Linux ARMv7 Release
Comment 21 Csaba Osztrogonác 2010-08-18 08:11:25 PDT
Unfortunately directory separator is different on Windows and on Linux,
and $$PWD always contains slashes instead of $$QMAKE_DIR_SEP.

I propose you should use a code like this:

...
TEMP = $$PWD/$$INSPECTOR_BACKEND_STUB_QRC $${WC_GENERATED_SOURCES_DIR}/InspectorBackendStub.qrc
inspectorBackendStub.commands = $$QMAKE_COPY $$replace(TEMP, "/", $$QMAKE_DIR_SEP)
...

I tested it on Windows and on Linux and it works.
Comment 22 Ilya Tikhonovsky 2010-08-18 08:53:00 PDT
The fix was rolled out and landed again 

Committed r65608
	M	GNUmakefile.am
	M	WebKit/chromium/WebKit.gyp
	M	WebKit/chromium/ChangeLog
	M	WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp
	M	WebKit/gtk/ChangeLog
	M	WebCore/WebCore.pri
	M	WebCore/WebCore.pro
	M	WebCore/ChangeLog
	M	WebCore/WebCore.vcproj/copyInspectorFiles.cmd
	M	WebCore/GNUmakefile.am
	M	WebCore/WebCore.gyp/WebCore.gyp
	M	WebCore/WebCore.gypi
	M	WebCore/inspector/CodeGeneratorInspector.pm
	D	WebCore/inspector/front-end/InspectorBackendStub.js
	A	WebCore/inspector/front-end/InspectorBackendStub.qrc
	M	WebCore/inspector/front-end/WebKit.qrc
	M	WebCore/WebCore.xcodeproj/project.pbxproj
	M	WebCore/combine-javascript-resources
	M	ChangeLog
	M	LayoutTests/platform/gtk/Skipped
	M	LayoutTests/ChangeLog
W: -empty_dir: trunk/WebCore/inspector/front-end/InspectorBackendStub.js
r65608 = a47f67210f35308e6571a84d16314e6cfd67a4da (refs/remotes/trunk)

qt for linux fix.
Committed r65609
	M	WebCore/WebCore.pri
	M	WebCore/ChangeLog
r65609 = 50a68d9e955199ab33c84123d775fbfbd06f8ce4 (refs/remotes/trunk)