Bug 159103 - javaScript allows different tabs to have the same name
Summary: javaScript allows different tabs to have the same name
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: scripting (show other bugs)
Version: 1.4.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-10 22:40 UTC by Andrew Walker
Modified: 2008-03-10 22:48 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Walker 2008-03-10 22:40:23 UTC
Version:           1.4.0 (using KDE 3.5.9)
Installed from:    Compiled From Sources
OS:                Linux

The javaScript extensions allows the user to rename windows such that two or more windows have the same name

STEPS TO REPRODUCE
Start Kst
Create a new tab
Select Tools... Show JavaScript Console...
Enter the following:
Kst.windows[0].name="test"
kst.windows[1].name="test"

RESULTS:
Both tabs are now called "test"

EXPECTED RESULTS:
The renaming of the second tab should fail
Comment 1 Andrew Walker 2008-03-10 22:48:37 UTC
SVN commit 784291 by arwalker:

BUG:159103 Do not allow javaScript to rename a window/tab where the name is already in use

 M  +7 -1      bind_window.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=784291