Opened 8 years ago
Closed 8 years ago
#15932 closed defect (wontfix)
dojo/_base/connect causing 'Unhandled Error' on Opera with Dragonfly turned on
Reported by: | lysy_loren | Owned by: | Kris Zyp |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | Events | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
To reproduce this bug, on Opera 12.00 (Linux):
- open new tab
- run Opera Dragonfly (Ctrl+Shift+I)
- open some page with loaded dojo 1.8.0 (for example: http://dojotoolkit.org/documentation/tutorials/1.8/hello_dojo/demo/start.php)
- switch to console
- run command: require(dojo/_base/connect?, function(connect){});
Dragonfly reports error: "Unhandled Error: WRONG_THIS_ERR" on line 9 in dojo/_base/connect.js
When dojo/_base/connect is used in source code of the page, Dragonfly reports this error too.
Attachments (1)
Change History (5)
comment:1 Changed 8 years ago by
Component: | Core → Events |
---|---|
Owner: | set to Kris Zyp |
Changed 8 years ago by
Attachment: | dojo_connect.patch added |
---|
comment:2 Changed 8 years ago by
I'm suggesting a fix for this issue in attached patch. The idea is to not try the event on Opera. In the original code Opera is excluded anyway:
return testKeyEvent.charCode == 0 && !has("opera");
Now that the test gives a lot of grievance, it is much better idea to not even try and return false.
comment:3 Changed 8 years ago by
On Opera 12.02 (Linux) the problem does not appear. It seems that it was some bug fixes in this area in the newest Opera version.
comment:4 Changed 8 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Given that Opera is being rebuilt based on WebKit?, we should probably close this as wontfix.
Opera fix for testKeyEvent error