Changeset 88446 in webkit
- Timestamp:
- Jun 9, 2011 7:06:51 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r88445 r88446 1 2011-06-09 Robert Hogan <robert@webkit.org> 2 3 Reviewed by Andreas Kling. 4 5 Teach Qt about window.internals 6 https://bugs.webkit.org/show_bug.cgi?id=61074 7 8 Unskip fast/harness/internals-object.html 9 10 * platform/qt/Skipped: 11 1 12 2011-06-09 Csaba Osztrogonác <ossy@webkit.org> 2 13 -
trunk/LayoutTests/platform/qt/Skipped
r88442 r88446 2517 2517 http/tests/security/isolatedWorld/cross-origin-xhr.html 2518 2518 2519 # https://bugs.webkit.org/show_bug.cgi?id=610742520 fast/harness/internals-object.html2521 2522 2519 # failing new tests 2523 2520 fast/block/float/overhanging-tall-block.html -
trunk/Source/WebCore/ChangeLog
r88444 r88446 1 2011-06-09 Robert Hogan <robert@webkit.org> 2 3 Reviewed by Andreas Kling. 4 5 Teach Qt about window.internals 6 https://bugs.webkit.org/show_bug.cgi?id=61074 7 8 A weakness of the Qt DRT setup is that things like JSContextRef are abstracted 9 away from the QtWebKit API so we need DumpRenderTreeSupportQt to access WebCore internals. 10 Since the window.internals object requires JSContextRef we need to implement it in DumpRenderTreeSupportQt 11 where we can access it. DumpRenderTreeSupportQt cannot be compiled outside Qt's WebCore and as it 12 is our only possible route into the WebCoreTestSupport class neither can the new window.internals plumbing. 13 Likewise we can't put the accessor in WebCoreTestSupport because it would then need to know about QWebFrame 14 and others. The only alternative seems like a compile time guard which we would have to teach the bots about. 15 16 * CodeGenerators.pri: 17 * WebCore.pri: 18 * WebCore.pro: 19 1 20 2011-06-08 Mikołaj Małecki <m.malecki@samsung.com> 2 21 -
trunk/Source/WebCore/CodeGenerators.pri
r88343 r88446 525 525 svg/SVGViewElement.idl \ 526 526 svg/SVGVKernElement.idl \ 527 testing/Internals.idl \ 527 528 webaudio/AudioBuffer.idl \ 528 529 webaudio/AudioBufferSourceNode.idl \ … … 630 631 --include $$PWD/storage \ 631 632 --include $$PWD/css \ 633 --include $$PWD/testing \ 632 634 --include $$PWD/webaudio \ 633 635 --include $$PWD/workers \ -
trunk/Source/WebCore/WebCore.pri
r88350 r88446 49 49 $$SOURCE_DIR/WebCore/bindings/v8/custom \ 50 50 $$SOURCE_DIR/WebCore/bindings/v8/specialization \ 51 $$SOURCE_DIR/WebCore/bridge/qt/v8 51 $$SOURCE_DIR/WebCore/bridge/qt/v8 \ 52 $$SOURCE_DIR/WebCore/testing/v8 52 53 53 54 } else { … … 56 57 $$SOURCE_DIR/WebCore/bindings/js \ 57 58 $$SOURCE_DIR/WebCore/bindings/js/specialization \ 58 $$SOURCE_DIR/WebCore/bridge/c 59 $$SOURCE_DIR/WebCore/bridge/c \ 60 $$SOURCE_DIR/WebCore/testing/js 59 61 } 60 62 … … 111 113 $$SOURCE_DIR/WebCore/svg/graphics/filters \ 112 114 $$SOURCE_DIR/WebCore/svg/properties \ 115 $$SOURCE_DIR/WebCore/testing \ 113 116 $$SOURCE_DIR/WebCore/webaudio \ 114 117 $$SOURCE_DIR/WebCore/websockets \ -
trunk/Source/WebCore/WebCore.pro
r88357 r88446 225 225 bindings/v8/custom/V8ConsoleCustom.cpp \ 226 226 bindings/v8/custom/V8SQLTransactionSyncCustom.cpp \ 227 bindings/v8/V8WorkerContextErrorHandler.cpp 227 bindings/v8/V8WorkerContextErrorHandler.cpp \ 228 testing/v8/WebCoreTestSupport.cpp 228 229 } else { 229 230 SOURCES += \ … … 377 378 bridge/runtime_method.cpp \ 378 379 bridge/runtime_object.cpp \ 379 bridge/runtime_root.cpp 380 bridge/runtime_root.cpp \ 381 testing/js/WebCoreTestSupport.cpp 380 382 } 381 383 … … 1183 1185 rendering/style/StyleTransformData.cpp \ 1184 1186 rendering/style/StyleVisualData.cpp \ 1187 testing/Internals.cpp \ 1185 1188 xml/DOMParser.cpp \ 1186 1189 xml/XMLHttpRequest.cpp \ … … 2448 2451 svg/SVGZoomAndPan.h \ 2449 2452 svg/SVGZoomEvent.h \ 2453 testing/Internals.h \ 2450 2454 workers/AbstractWorker.h \ 2451 2455 workers/DedicatedWorkerContext.h \ -
trunk/Source/WebKit/qt/ChangeLog
r88339 r88446 1 2011-06-09 Robert Hogan <robert@webkit.org> 2 3 Reviewed by Andreas Kling. 4 5 Teach Qt about window.internals 6 https://bugs.webkit.org/show_bug.cgi?id=61074 7 8 * WebCoreSupport/DumpRenderTreeSupportQt.cpp: 9 (DumpRenderTreeSupportQt::injectInternalsObject): 10 * WebCoreSupport/DumpRenderTreeSupportQt.h: 11 1 12 2011-06-08 Andreas Kling <kling@webkit.org> 2 13 -
trunk/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp
r88052 r88446 24 24 #include "DumpRenderTreeSupportQt.h" 25 25 26 #if USE(JSC) 27 #include "APICast.h" 28 #endif 26 29 #include "ApplicationCacheStorage.h" 27 30 #include "CSSComputedStyleDeclaration.h" … … 75 78 #endif 76 79 #include "TextIterator.h" 80 #include "WebCoreTestSupport.h" 77 81 #include "WorkerThread.h" 78 82 #include <wtf/CurrentTime.h> … … 1167 1171 } 1168 1172 1173 void DumpRenderTreeSupportQt::injectInternalsObject(QWebFrame* frame) 1174 { 1175 WebCore::Frame* coreFrame = QWebFramePrivate::core(frame); 1176 #if USE(JSC) 1177 JSC::JSLock lock(JSC::SilenceAssertionsOnly); 1178 1179 JSDOMWindow* window = toJSDOMWindow(coreFrame, mainThreadNormalWorld()); 1180 Q_ASSERT(window); 1181 1182 JSC::ExecState* exec = window->globalExec(); 1183 Q_ASSERT(exec); 1184 1185 JSContextRef context = toRef(exec); 1186 WebCoreTestSupport::injectInternalsObject(context); 1187 #elif USE(V8) 1188 WebCoreTestSupport::injectInternalsObject(V8Proxy::mainWorldContext(coreFrame)); 1189 #endif 1190 } 1191 1169 1192 // Provide a backward compatibility with previously exported private symbols as of QtWebKit 4.6 release 1170 1193 -
trunk/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h
r88041 r88446 217 217 218 218 static QString layerTreeAsText(QWebFrame*); 219 220 static void injectInternalsObject(QWebFrame*); 219 221 }; 220 222 -
trunk/Tools/ChangeLog
r88437 r88446 1 2011-06-09 Robert Hogan <robert@webkit.org> 2 3 Reviewed by Andreas Kling. 4 5 Teach Qt about window.internals 6 https://bugs.webkit.org/show_bug.cgi?id=61074 7 8 * DumpRenderTree/qt/DumpRenderTreeQt.cpp: 9 (WebCore::DumpRenderTree::initJSObjects): 10 1 11 2011-06-09 Eric Seidel <eric@webkit.org> 2 12 -
trunk/Tools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
r87311 r88446 752 752 frame->addToJavaScriptWindowObject(QLatin1String("GCController"), m_gcController); 753 753 frame->addToJavaScriptWindowObject(QLatin1String("plainText"), m_plainTextController); 754 DumpRenderTreeSupportQt::injectInternalsObject(frame); 754 755 } 755 756
Note: See TracChangeset
for help on using the changeset viewer.