Open GoogleCodeExporter opened 9 years ago
Can you upload the test page and plugin file?
Original comment by qiu...@gmail.com
on 9 Jul 2012 at 6:39
ya sure!!! please wait....
Original comment by jinade...@gmail.com
on 9 Jul 2012 at 6:42
please find the attachment..
Original comment by jinade...@gmail.com
on 9 Jul 2012 at 6:56
Attachments:
In order to use JS "new ActiveXObject", "dynamic" should be added at the helper
script field of this rule.
On my system, it can successfully return "false".
---------- Start of log --------------
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like
Gecko) Chrome/20.0.1132.47 Safari/536.11
Extension version: 1.4.9.2
------------ Frame 2 ------------------
Objects:
{"href":"http://localhost/testpages/Activex.html","clsid":"{1FC0D50A-4803-4f97-9
4FB-2F41717F558D}","actived":true,"rule":"custom_1341817082443_22_13246"}
{"href":"http://localhost/testpages/Activex.html","actived":true,"rule":"custom_
1341817082443_22_13246"}
Log:
15:08:00 PageURL: http://localhost/testpages/Activex.html
15:08:00 Loading config from session cache
15:08:00 Page
rule:{"title":"Rule","type":"wild","value":"http://localhost/*","userAgent":"","
scriptItems":"","identifier":"custom_1341817082443_22_13246","script":"dynamic"}
15:08:00 Dynamic create AxControls.HelloWorld
15:08:00 BeforeLoading axHello
15:08:00 BeforeLoading axHello
15:08:00 BeforeLoading axHello
15:08:00 0x00610908 npactivex.cpp:402 instance name: axHello
15:08:00 0x00610908 npactivex.cpp:402 instance id: axHello
15:08:00 0x00610908 FakeDispatcher.cpp:85 Disp 0x02eb4048 Type: [object
HTMLDocument], Name:
15:08:00 0x00610908 axhost.cpp:556 AxHost.CreateControl: control created
successfully
15:08:00 0x00610908 npactivex.cpp:460 00610908 AxHost.NPP_New: Create control
finished
15:08:00 0x00610908 FakeDispatcher.cpp:254 Disp 0x02eb4048 Unsupported
Interface {C3FCC19E-A970-11D2-8B5A-00A0C9B7C9C4}
15:08:00 0x00610908 FakeDispatcher.cpp:254 Disp 0x02eb4048 Unsupported
Interface {B196B283-BAB4-101A-B69C-00AA00341D07}
15:08:00 0x00610908 FakeDispatcher.cpp:254 Disp 0x02eb4048 Unsupported
Interface {00000003-0000-0000-C000-000000000046}
15:08:00 0x00610908 FakeDispatcher.cpp:254 Disp 0x02eb4048 Unsupported
Interface {00000144-0000-0000-C000-000000000046}
15:08:00 Enabled object, id: axHello clsid:
{1FC0D50A-4803-4f97-94FB-2F41717F558D}
15:08:00 BeforeLoading
15:08:00 Found objects created by client scripts
15:08:00 0x00610840 axhost.cpp:468 AxHost.setClsIDFromProgID: PROGID
AxControls.HelloWorld resolved and set
15:08:00 0x00610840 FakeDispatcher.cpp:85 Disp 0x02eb4380 Type: [object
HTMLDocument], Name:
15:08:00 0x00610840 axhost.cpp:556 AxHost.CreateControl: control created
successfully
15:08:00 0x00610840 npactivex.cpp:460 00610840 AxHost.NPP_New: Create control
finished
15:08:00 0x00610840 scriptable.cpp:341 GetMethodObject GetText
15:08:02 found 0 object(s) on page
15:08:02 found 0 object(s) on page
---------------- End of log ---------------
1864396061
Original comment by qiu...@gmail.com
on 9 Jul 2012 at 7:10
Oh !!its worked?? Then what should I do? can u give an example of added the
helper script field to rule??
Original comment by jinade...@gmail.com
on 9 Jul 2012 at 8:07
Here is a screenshot.
Use rule with the site pattern and add dynamic at helper script.
Don't use CLSID rules, those rules cannot be worked with "new ActiveXObject"
Original comment by qiu...@gmail.com
on 9 Jul 2012 at 8:10
Attachments:
Thanks a lot.. but does not gives "Alert".This is my log..
----------------------------------
---------- Start of log --------------
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like
Gecko) Chrome/20.0.1132.47 Safari/536.11
Extension version: 1.4.9.2
------------ Frame 2 ------------------
Objects:
{"href":"http://localhost/Activex/Activex.html","clsid":"{1FC0D50A-4803-4f97-94F
B-2F41717F558D}","actived":true,"rule":"custom_1337933032440_23_14478"}
{"href":"http://localhost/Activex/Activex.html","actived":true,"rule":"custom_13
37933032440_23_14478"}
Log:
13:51:33 PageURL: http://localhost/Activex/Activex.html
13:51:33 Loading config from session cache
13:51:33 Page
rule:{"title":"Rule","type":"wild","value":"http://localhost/*","userAgent":"","
scriptItems":"","identifier":"custom_1337933032440_23_14478","script":"dynamic"}
13:51:33 Dynamic create AxControls.HelloWorld
13:51:33 BeforeLoading axHello
13:51:33 BeforeLoading axHello
13:51:33 BeforeLoading axHello
13:51:33 Enabled object, id: axHello clsid:
{1FC0D50A-4803-4f97-94FB-2F41717F558D}
13:51:33 BeforeLoading
13:51:33 Found objects created by client scripts
13:51:33 found 0 object(s) on page
13:51:33 found 0 object(s) on page
---------------- End of log ---------------
-284921039
Original comment by jinade...@gmail.com
on 9 Jul 2012 at 8:23
Because this object is not script safe, you should choose "YES" on an warning
message, or scripting with this object is prohibited.
Implement IObjectSafety to mark it script safe.
Original comment by qiu...@gmail.com
on 9 Jul 2012 at 10:28
You said that "successfully return "false".IN you r system its worked and
deosn't in my computer.If any extra extension need to add to chrome or in
Registry?
Original comment by jinade...@gmail.com
on 9 Jul 2012 at 11:23
Can you open the log from option page when the activex page is running and copy
the logs here?
It seems that my auto log-report system has some problems, and cannot report
the whole logs.
Original comment by qiu...@gmail.com
on 9 Jul 2012 at 11:55
This is my log file and screenshot of rule added.
---------- Start of log --------------
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like
Gecko) Chrome/20.0.1132.47 Safari/536.11
Extension version: 1.4.9.2
------------ Frame 2 ------------------
Objects:
{"href":"http://localhost/Activex/Activex.html","clsid":"{1FC0D50A-4803-4f97-94F
B-2F41717F558D}","actived":true,"rule":"custom_1337933032440_23_14478"}
Log:
17:56:56 PageURL: http://localhost/Activex/Activex.html
17:56:56 BeforeLoading axHello
17:56:56 Pending object
17:56:56 found 1 object(s) on page
17:56:56 BeforeLoading axHello
17:56:56 Nested onBeforeLoading axHello
17:56:56 Pending object
17:56:56 found 1 object(s) on page
17:56:56 Pending object
17:56:56 Page
rule:{"title":"Rule","type":"wild","value":"http://localhost/*","userAgent":"","
scriptItems":"","identifier":"custom_1337933032440_23_14478","script":"dynamic"}
17:56:56 BeforeLoading axHello
17:56:56 Enabled object, id: axHello clsid:
{1FC0D50A-4803-4f97-94FB-2F41717F558D}
---------------- End of log ---------------
-1127009196
Original comment by jinade...@gmail.com
on 9 Jul 2012 at 12:30
Attachments:
Can it work after you refresh this page?
Original comment by qiu...@gmail.com
on 9 Jul 2012 at 12:53
No..its not working..I don't know what to do !!
Original comment by jinade...@gmail.com
on 9 Jul 2012 at 1:28
Original issue reported on code.google.com by
jinade...@gmail.com
on 26 Jun 2012 at 5:12