|
Shinya Kasatani made changes - 28/May/08 09:25 PM
I've just took a look on it with a fresh build:
Environment: OS X 10.5.3, Firefox 3.0rc1 Regarding multiWindow: Upon closing my browser tabs I discovered that the content of the first one has been replaced by the the initial content of an AUT window. This is not what Selenium expected (me neither I see, there's security error when trying to load css files from chrome:// URL.
Shinya Kasatani made changes - 03/Jun/08 12:41 AM
It seems pretty hard to fix this problem, so I'm postponing this.
Shinya Kasatani made changes - 03/Jun/08 12:45 AM
Here is a workaround: 1. extract the selenium-test.css from the selenium-core distribution, HtmlTestSuiteFrame.prototype._attachStylesheet = function() { var d = this.getDocument(); var head = d.getElementsByTagName('head').item(0); var styleLink = d.createElement("link"); styleLink.rel = "stylesheet"; styleLink.type = "text/css"; styleLink.href = "http://example.com/~fred/selenium-tests.css"; // Replace with actual URL, see above LOG.debug("styleLink.href="+styleLink.href); head.appendChild(styleLink); }; HtmlTestFrame.prototype._attachStylesheet = 4. Clear browser cache, quit Firefox and restart it. You should get colors in your test tables now. There is a regression with the current revision 495 compared to r452, where the original problem has been solved: The same behavior as in the description is observable with the latest build. I also encountered CSS issue on TestFrame with FF3 Chrome Mode. (FF2 works fine) Another concern is FF3 must set Security.fileuri.strict_origin_policy = false for file system. I figure out the root cause for this CSS issue on FF3 Selenium Chrome TestRunner mode. On my FF3 Error Console, I see error message: It seems FF3's default security settings not allow external file access chrome:// resource. n.b.: Because older versions of Firefox do not understand the contentaccessible flag, any extension designed to work with both Firefox 3 and older versions of Firefox will need to provide a fallback. For example: content packagename chrome/path/ So, I try to modify Selenium-IDE1.0b2's chrome.manifest, add contentaccessible=yes It displayed CSS correctly this time on FF3 Selenium Chrome TestRunner. Shinya, Can you have a try and verify this troubleshooting? Moreover, FF3 Security.fileuri.strict_origin_policy issue still hasn't been fixed. Can you take a look? A FF3 patch for chrome.manifest
Jerry Qian made changes - 27/Dec/08 11:01 PM
Thanks Jerry for the patch. I've applied it in r506.
Shinya Kasatani made changes - 18/Feb/09 12:51 AM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Resolved in r453.
Also the URI of the TestRunner has been changed to make it work. Please change chrome://selenium-ide/ to chrome://selenium-ide-testrunner/ .