diff options
author | Pierre Rossi <pierre.rossi@theqtcompany.com> | 2015-02-18 18:08:14 +0100 |
---|---|---|
committer | Pierre Rossi <pierre.rossi@theqtcompany.com> | 2015-02-19 12:20:15 +0000 |
commit | e263449d32e9392985c1587f2a0b4e0e77e605a2 (patch) | |
tree | 9c00f24771315c22bf0e228429e6691884ead463 /tests/auto/quick/qmltests/data/webchannel-test.html | |
parent | b26f697dbed3c2d12db0254a67cdf23396b91c23 (diff) |
WebChannel: don't mess with the navigator object
The navigator object is actually exposed later on from WebCore using
a different mechanism, so the V8 extension approach won't work with it.
Better take the chrome extensions approach and expose our own.
This should "un-break" the part of the web that was broken by
eee482929a.
Change-Id: I991be2e12bb9ebcf60ace02721497c3fcd923c7f
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'tests/auto/quick/qmltests/data/webchannel-test.html')
-rw-r--r-- | tests/auto/quick/qmltests/data/webchannel-test.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qmltests/data/webchannel-test.html b/tests/auto/quick/qmltests/data/webchannel-test.html index 940821209..92966b24a 100644 --- a/tests/auto/quick/qmltests/data/webchannel-test.html +++ b/tests/auto/quick/qmltests/data/webchannel-test.html @@ -5,7 +5,7 @@ <script type="text/javascript" src="qrc:///qtwebchannel/qwebchannel.js"></script> <script type="text/javascript"> //BEGIN SETUP - var channel = new QWebChannel(navigator.qtWebChannelTransport, function(channel) { + var channel = new QWebChannel(qt.webChannelTransport, function(channel) { window.testObject = channel.objects.testObject; testObject.runTest.connect(function(foo) { testObject.foo = foo; |