Bug 159103

Summary: javaScript allows different tabs to have the same name
Product: [Applications] kst Reporter: Andrew Walker <arwalker>
Component: scriptingAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.4.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

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