? ? Success
Pull Request for # 7207

User tests: Successful: Unsuccessful:

avatar dgt41
dgt41
19 Jun 2015

As per request on #7207

What is this?

This adds one more parameter (name="") to the iframe tag. Needed for automation testing

avatar dgt41 dgt41 - open - 19 Jun 2015
avatar dgt41 dgt41 - change - 19 Jun 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Jun 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 19 Jun 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 19 Jun 2015
Category Layout
avatar zero-24 zero-24 - change - 19 Jun 2015
Rel_Number 0 7207
Relation Type Pull Request for
avatar zero-24
zero-24 - comment - 19 Jun 2015

@dgt41 any way to easy test it? e.g. where the layout is called?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7211.

avatar dgt41
dgt41 - comment - 19 Jun 2015

@zero-24 Sorry should mention testing:

To Test this

go to http://localhost/administrator/index.php?option=com_menus&view=menus

and click on any of the Linked modules

Inspect the source page and verify that a parameter name="[the title of the modal]" is inside iframe tag

d81acdd 19 Jun 2015 avatar dgt41 .
avatar brianteeman
brianteeman - comment - 20 Jun 2015

Tested and confirmed that name did not exist in the iframe before the patch and does exist after the patch


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7211.

avatar brianteeman brianteeman - test_item - 20 Jun 2015 - Tested successfully
avatar smz smz - test_item - 20 Jun 2015 - Tested successfully
avatar smz
smz - comment - 20 Jun 2015

Tested OK.
We have 2 tests: RTC?

avatar zero-24 zero-24 - change - 21 Jun 2015
Status Pending Ready to Commit
Easy No Yes
avatar zero-24
zero-24 - comment - 21 Jun 2015

RTC. Thanks :smile:


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7211.

avatar zero-24 zero-24 - change - 21 Jun 2015
Labels Added: ?
avatar javigomez
javigomez - comment - 22 Jun 2015

thank @dgt41 :smile: and all for testing

avatar javigomez
javigomez - comment - 22 Jun 2015

Tested with selenium and works very nice, see: http://www.youtube.com/watch?v=Snm2lE81Ahg

Wondering if we should do:

if (isset($params['title']))
{
   $iframeAttributes['name']  => $params['title'];
avatar javigomez javigomez - change - 22 Jun 2015
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 22 Jun 2015
Labels Added: ?
avatar dgt41
dgt41 - comment - 22 Jun 2015

In theory you should that, but
1. Bootstrap modal are broken (visually) if you don’t pass a title
2. We do pass ALWAYS a title for core components

But the check will not hurt I guess, 3PD might do something different

avatar smz
smz - comment - 22 Jun 2015

@dgt41: if you do, I'm ready for re-testing...

avatar zero-24 zero-24 - change - 22 Jun 2015
Status Ready to Commit Pending
avatar zero-24 zero-24 - change - 22 Jun 2015
Labels Removed: ?
avatar smz
smz - comment - 22 Jun 2015

@dgt41, actually with the modal you suggested for testing (/administrator/index.php?option=com_menus&view=menus + Linked Modules) I don't see the name attribute. Also, when I previously tested, I'm quite sure it was name="", but I thought it was OK...

avatar smz
smz - comment - 22 Jun 2015

... hold on! I activated the wrong patch...!!! sorry!

avatar smz
smz - comment - 22 Jun 2015

#test confirmed OK: iframe now has name="Edit module settings"

Sorry for the confusion...

avatar smz
smz - comment - 22 Jun 2015

ehmm... why this PR has the Unit/System Tests label?

avatar dgt41
dgt41 - comment - 22 Jun 2015

Thanks Sergio,
Is needed for selenium (testing)

avatar smz
smz - comment - 22 Jun 2015

ah! OK!!! tnks!

avatar zero-24 zero-24 - change - 22 Jun 2015
Status Pending Ready to Commit
avatar zero-24 zero-24 - change - 22 Jun 2015
Labels Added: ?
avatar javigomez javigomez - close - 25 Jun 2015
avatar javigomez javigomez - change - 25 Jun 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-06-25 09:38:34
Closed_By javigomez
avatar javigomez javigomez - close - 25 Jun 2015
avatar javigomez javigomez - reopen - 25 Jun 2015
avatar javigomez javigomez - change - 25 Jun 2015
Status Closed New
Closed_Date 2015-06-25 09:38:34
Closed_By javigomez
avatar javigomez javigomez - reopen - 25 Jun 2015
avatar dgt41
dgt41 - comment - 25 Jun 2015

@javigomez does $iframeAttributes['name'] => 'Modal - ' . $params['title']; pass your accessibility tests?

avatar zero-24 zero-24 - change - 26 Jun 2015
Status New Ready to Commit
avatar zero-24 zero-24 - change - 2 Jul 2015
Milestone Added:
avatar zero-24 zero-24 - change - 2 Jul 2015
Milestone Added:
avatar Kubik-Rubik
Kubik-Rubik - comment - 6 Jul 2015

@dgt41 @javigomez So, what is the state of this PR? Do we need a change or can we merge this?

avatar dgt41
dgt41 - comment - 6 Jul 2015

@Kubik-Rubik Victor I have no idea. @javigomez made a post that there was an accessibility error if name is same as the title of the iframe. I proposed to suffix something to the title, but then Javier removed that post, so honestly I have no clue ????

avatar smz
smz - comment - 6 Jul 2015

hmm.... Reading https://developer.mozilla.org/en/docs/Web/HTML/Element/iframe#name-attribute

name
A name for the embedded browsing context (or frame). This can be used as the value of the target attribute of an <a> or <form> element, or the formtarget attribute of an <input> or <button> element.

It doesn't seems that equating it to title is a good choice...

avatar dgt41
dgt41 - comment - 10 Jul 2015

@Kubik-Rubik Victor since ther is no response from @javigomez I will suggest to change the milestone to 3.5.0

avatar javigomez
javigomez - comment - 11 Jul 2015

Sorry folks, I missed the notifications here. I was checking the accessibiltiy documentation (witch I'm not experienced) and from what I could see the current pull accomplish what is expected. And it allows us to work with iFrames in system tests witch is the reason why we oppened this issue #7207.

So for me we are good to go.

Thanks all ^_^

avatar dgt41
dgt41 - comment - 11 Jul 2015

Thanks @javigomez
@Kubik-Rubik ditch my last comment, you can merge this for 3.4.4 ????

avatar smz
smz - comment - 11 Jul 2015

So, if the iframe title is "Test iframe", do you expect this to be a valid "... value of the target attribute of an <a> or <form> element"?

avatar smz
smz - comment - 11 Jul 2015

For reference:

values for the target attribute of an <a> or <form> element can be:

  • _blank (Opens the linked document in a new window or tab)
  • _self (Opens the linked document in the same frame as it was clicked. This is default.)
  • _parent (Opens the linked document in the parent frame)
  • _top (Opens the linked document in the full body of the window)
  • framename (Opens the linked document in a named frame) Must start with an alpha character and can contain hyphen(-), underscore(_), colon(:)
avatar Kubik-Rubik
Kubik-Rubik - comment - 15 Jul 2015

@smz So, what is your suggestion how to do it right? Should we apply a filter on the title to get a valid name?

avatar dgt41
dgt41 - comment - 15 Jul 2015

@Kubik-Rubik I guess the easiest thing here would be $iframeAttributes[’title’] instead of $iframeAttributes['name']

avatar smz
smz - comment - 15 Jul 2015

Sorry, Victor, I'm on vacation and I'm not even sure I'll be willing to contribute to Joomla again when I'll be back: I'm afraid I've fought too many uphill fights to feel comfortable contributing.

But yes, I think a filter or "transforming function" to enforce the rules of the game is needed.

Regards,

Sergio

On 2015-07-15 14:44, Viktor Vogel wrote:

@smz https://github.com/smz So, what is your suggestion how to do it right? Should we apply a filter on the title to get a valid name?


Reply to this email directly or view it on GitHub #7211 (comment).

avatar wilsonge
wilsonge - comment - 19 Jul 2015

Merged - thanks!

avatar wilsonge wilsonge - change - 19 Jul 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-07-19 22:44:35
Closed_By wilsonge
avatar wilsonge wilsonge - close - 19 Jul 2015
avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment