Javascript block through javascript.enabled false not working as expected in newer versions, any actual way?

Since a few versions, around 24.0 or earlier, when you toggle javascript.enabled from true to false to block javascript, doesn't work after load a page.
Further details:
1.- load a page with javascript enabled
2.- toggle javascript preference to block javascript (javascript.enabled from true to false)
3.- if you interact with javascript elements = they still work
This wasn't this way in earlier versions.
You can check in the following page. You'll see that the only way to actually block javascript execution is to load the page with the preference javascript.enabled set to false (A.K.A. javascript blocked):
http://www.geocities.ws/jothache/event_listener.html
Note: to easy change javascript preferences, for those don't want to play with about:config you can use addons like QuickJava:
https://addons.mozilla.org/en-US/firefox/addon/quickjava/
I find that how it works now, in the latest versions, it is a VERY HUGE SECURITY ISSUE as javascript is never actually blocked when the preference is toggled and AJAX (httpXMLrequest through javascript) still works so the possibilities of lost of privacy inreases, as for example, mouse tracking and send it to the server, not only as the example scripts I posted above.
The question is, is there anyway to really block javascript in the latests versions or should I report this as a bug?
Regards.

Hi guigs2,
if there is no problem in open the bug ticket being a simple user I'll report by myself (if I haven't misunderstood you). (Confirm this and I'll do myself).
About the AJAX problem, here we have a sample test that works after toggle the preference:
http://www.w3schools.com/xml/xml_http.asp
I know about noscript and I don't like it. I prefer to do manually (those measures and more). What bothered me is that even toggle the preference, what in the past did the job of stopping the execution of scripts, now doesn't. In about version 24 it was only happening to event listeners not being blocked (used nowadays for dynamic events assignments). Now is with every javascript code.
About the tracking methods, I'm aware of HTTP tracking without any need of javascript. Even a simple "knock knock" on any kind of server leaves a trace.
I was just pointing that this preference stopping doing its job (stopping scripts executions) has the worst sceneario in a security way with XMLHttpRequest calls.
But one of the things that bothers me too, and it is not related to tracking, is that, in humble machines as mine, some javascript codes make drop whole performance and the preference toggle now does nothing, so the script keeps running without being able of doing anything and sometimes you don't have the option to load a page without javascript because you need some feature of that page that requires javascript what becomes "all or nothing".
Regards.

Similar Messages

  • ShowFieldCodes = false not working as expected in MS Word 2013.

    Hi,
    I am facing an issue with hiding the field codes in Word 2013, the same code works fine in Word 2010.
    I have the below code to insert the field codes,
     Word.Range fldRng = foundRng.Duplicate;
                    object dir = Word.WdCollapseDirection.wdCollapseStart;
                    fldRng.Collapse(ref dir);
                    object type = Word.WdFieldType.wdFieldAddin;
                    object text = "MyMarker";
                    object p = false;
                    Word.Field f = sourceRng.Fields.Add(fldRng, ref type, ref text, ref p);
    At certain point of time in my code i show the field codes and hide the field codes as shown in below code snippet, this works absolutely fine in Word 2010 but in Word 2013 sometimes it works as expected and some times field codes are not hidden,
    _docWindow.View.ShowFieldCodes = true;
    _docWindow.View.ShowFieldCodes = false;
    Please help me out to solve this issue. Thanks in advance .
    Regards,
    Chetan Rajakumar

    Hi Cindy,
    I checked and confirmed that 'Alt+F9' toggles the field codes correctly.
    Yes, whatever the field codes i added from the code all of them are not hidden. when i have below code:
    _docWindow.View.ShowFieldCodes = true;
    _docWindow.View.ShowFieldCodes = false;
    because of project reqquirement we had the above code.
    But if i comment the above bolded line and i dont show the field codes, After executing i found out that still the field codes are visible at some lines(not in all the lines) in the  document. I am not making any changes in the settings/options/etc
    after i execute the code. I am confused whether any other code is making the fieldcodes visible. Do we have any other syntax/codes that can make the fieldcodes visible ? Thanks in advance.
    Regards,
    Chetan Rajakumar

  • Safari Will Not Work Even After Downloading New Version

    Several months ago I experienced a brief power outage and since then Safari has not worked. At All. I have downloaded Safari twice directly from the Apple site and still no luck. THe Software Restore disks with my original OSX package do not seem to work. Any suggestions?
    Been using Firefox but there are some things I prefer about Safari (bookmarks and they way they are handled).

    I clicked on a link in my email this morning and safari opened and then it opened 73 other tabs (I think all my bookmarks). I closed it and when I reopened I get the title bar and beachball not a new page. Activity monitor shows it is using 100% cpu. If I open safari from a link in email it opens normally. I downloaded and installed the latest (same) version from apple, same story. Thank god firefox still works ok. Any ideas? James.

  • ServiceDesk software not working as expected with new Firefox version

    After recently upgrading to Firefox 5.0, I have discovered that the ServiceDesk software I use with Firefox no longer works as expected. This software is ManageEngine ServiceDesk Plus 8.0. The problem is irratic but unique to Firefox. I don't have this problem with Chrome or IE.
    The problem is this: When I open an issue, several fields become active, one of which is the description field where the user who sent the issue typed the description of their problem. When editing the issue and the active fields become active, sometimes this description field is completely blank, meaning their description is gone, but not really. I have to close the page and try to re-open hoping this time, the description will be shown. Also, there is a tab for me to enter a resolution when I want to close it. I cannot enter anything in this field, or rather I can, but when I save it, nothing gets saved to this field, so the user doesn't get to see my resolution. The default font for ServiceDesk is Arial, but I know something is amiss because the default font is Times. If the font shows as Arial, then I know everything will be okay.

    I knew I would figure this out as soon as I posted it...
    This is the behavior you see if the SamAccountName field is not included.

  • My camera does not work? On my new ipad3 any come across this?

    It starts to take them and freezes

    My camera doesn't work either.  When I press the camera button, nothing happens. Do you mind telling me what camera app you use? I'm using camera awesome.
    Thanks!

  • Client Side Javascript Validation not Working in Struts 1.x version

    hi,
    I'm following the steps provioded in the below link for Javascript Client side validation but still it is not working.I'm struggling to get this work.
    [http://www.visualbuilder.com/jsp/struts/tutorial2/pageorder/9/|http://www.visualbuilder.com/jsp/struts/tutorial2/pageorder/9/]
    "The framework automatically generates the browser specific JavaScript and validate the data only at the client side."From the above statement i undertstand that framework itself generates the javascript function for validating the field mentioned in validations.xml file so that we dont have to explicitly write a javascript function for
    validating the fields
    (or)
    Do we need to call an explicit function
    Please need help on this.
    I have followed all the steps mentioned on the above link but Client Side Javascript Validation not Working in Struts 1.x version....
    Thanks and Regards,
    Deepak

    Hi,
    Please find my steps below....still getting an error.
    2> which version of commons-validation.jar needs to be downloaded ...Link please
        downloaded the latest commons-validation.jar and placed in lib.refreshed the project,and did a build.
        3> which DTD name to be specified in "validator-rules.xml" which is in accordance to commons-validator.jar file.
    validator-rules.xml ::
    <!DOCTYPE form-validation PUBLIC
              "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
              "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">validation.xml:
    <!DOCTYPE form-validation PUBLIC
    "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
    "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">
    i did as u said and im gettiong the below errorNov 5, 2009 4:33:08 PM org.apache.struts.validator.ValidatorPlugIn initResources
    SEVERE: Invalid byte 2 of 2-byte UTF-8 sequence.
    org.apache.commons.digester.xmlrules.XmlLoadException: Invalid byte 2 of 2-byte UTF-8 sequence.
         at org.apache.commons.digester.xmlrules.FromXmlRuleSet.addRuleInstances(FromXmlRuleSet.java:139)
         at org.apache.commons.digester.Digester.addRuleSet(Digester.java:1610)
         at org.apache.commons.digester.xmlrules.DigesterLoader.createDigester(DigesterLoader.java:89)
         at org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:122)
         at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:238)
         at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:181)
         at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1036)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:455)
         at javax.servlet.GenericServlet.init(GenericServlet.java:212)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:927)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:890)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:448)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
    Need help forum members.....
    Please reply to my question 1  which has been asked before as belowDo i need to write explicit javascript function for validation in Struts (or) struts generates the javascript function by itself.??? Please explain with an example....
    Edited by: Deepak_A_L on Nov 5, 2009 4:37 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • After update Mac OS 10.9.1 Trim Enabler does not work anymore!

    After updating from Mac OS 10.9.0 to 10.9.1 the program Trim Enabler does not work anymore and my 4 SSDs from Samsung and Kingston are no longer supported.
    What can I do?
    Should I scrap my SSDs?
    Why does Apple do such things?
    Will Apple that I switch to Windows? There Trim works with all SSDs and BluRay will not boycott!

    Apple does not support TRIM for SSDs that were not factory
    installed and TRIM Enabler is a hack to get around this.  Any
    hack is always subject to being disabled, or worse, with any
    system update whether it is OSX or Windows.

  • Spam blocker in Outlook 2010 is not working.

    I go into the program and add to the list of domains I want to block. It just does not work.
    I am blocking them by going into Junk via opposite mouse button and then options and the Block Senders tab and then I click on add.
    I add a domain as @donotwant.com  click apply and then OK.   I see it in the list even after I close Outlook and go back in.
    Yet the emails are still ending up in my junk folder from that sender!!!  I have seen this problem mentioned by others on the web.
    If this is a bug in 2010 then it should be fixed!!  if I am doing something incorrectly, please inform me.   Is  there a possible space being added to the end of the string by Microsoft that I can not see but is causing the problem?  
    (I can not believe that the programmer who wrote this stuff would not use a trim string command to avoid the issue)
    (My gosh from a programming standpoint this should be easy for Outlook.  Compare the list of blocked addresses to the incoming new emails and block the ones that match it on the list.  I think a Junior High School programmer can handle it.  
    The kid would certainly Use an INString command to pull the domains that are blocked.) 
    Not blocking these is really annoying.  I would appreciate any help offered.
    Thank you

    Hi,
    This is the default behavior for emails sent from blocked senders in case some users want to check the email in the Junk Email folder.
    If you want to permanently delete emails from a domain senders, we can set an Outlook rule to do this. Please follow the steps below:
    1. Click on Home tab > Rules >
    Manage Rules & Alert
    2. Click New Rule…
    3. Select “Apply rule on message I send”, click Next button.
    4. Tick the check box before “with specific words in the sender’s address” in the
    Select condition(s) box. Click
    specific words and type @domain.com (you need type @donotwant.com) in the box and click
    Add button. Click OK.
    5. Click Next.
    6. Select the action “permanently delete it”. Click Next. Click Next.
    7. Make sure the option “Turn on this rule” is selected. Click Finish.
    Now, all emails from @domain.com will be permanently deleted.
    In addition, we can consider to set block list on the server side to prevent the emails sending to your mailbox.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • DB Adapter polling as singleton process is not working as expected

    Am using poller DB adapater to control the transaction per seconds to the downstream system and i want this poller process as singleton (One instance should be in running state at a time).
    As suggested in oracle documents , below is the parameters configured in composite.xml file.
    <service name="polling_Mange_Alert_Events"
      ui:wsdlLocation="polling_Mange_Alert_Events.wsdl">
    <interface.wsdl interface="http://xmlns.oracle.com/pcbpel/adapter/db/Application1/int_app_manageAlerts/polling_Mange_Alert_Events#wsdl.interface(polling_Mange_Alert_Events_ptt)"/>
      <binding.jca config="polling_Mange_Alert_Events_db.jca">
      <property name="singleton">true</property>
      </binding.jca>
      <property name="jca.retry.count" type="xs:int" many="false" override="may">2147483647</property>
      <property name="jca.retry.interval" type="xs:int" many="false"
      override="may">1</property>
      <property name="jca.retry.backoff" type="xs:int" many="false"
      override="may">2</property>
      <property name="jca.retry.maxInterval" type="xs:string" many="false"
      override="may">120</property>
      </service>
    Below is the JCA file parameters configured :
    <adapter-config name="polling_Mange_Alert_Events" adapter="Database Adapter" wsdlLocation="polling_Mange_Alert_Events.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
      <connection-factory location="eis/DB/vff-int-fus" UIConnectionName="PT_APPINFRA" adapterRef=""/>
      <endpoint-activation portType="polling_Mange_Alert_Events_ptt" operation="receive">
        <activation-spec className="oracle.tip.adapter.db.DBActivationSpec">
          <property name="DescriptorName" value="polling_Mange_Alert_Events.ManageAlertEvents"/>
          <property name="QueryName" value="polling_Mange_Alert_EventsSelect"/>
          <property name="MappingsMetaDataURL" value="polling_Mange_Alert_Events-or-mappings.xml"/>
          <property name="PollingStrategy" value="LogicalDeletePollingStrategy"/>
          <property name="MarkReadColumn" value="TRANSACTION_STATUS"/>
          <property name="MarkReadValue" value="Processing"/>
          <property name="PollingInterval" value="10"/>
          <property name="MaxRaiseSize" value="5"/>
          <property name="MaxTransactionSize" value="5"/>
          <property name="NumberOfThreads" value="1"/>
          <property name="ReturnSingleResultSet" value="false"/>
          <property name="MarkUnreadValue" value="Pending"/>
        </activation-spec>
      </endpoint-activation>
    </adapter-config>
    This poller process is running on clustered environment (2 soa nodes) and it is not working as expected as singleton process.
    Please advise to solve this issue ?

    Hi,
    1.Set Singleton property outside   <binding.jca> like this:
    <binding.jca config="polling_Mange_Alert_Events_db.jca"/>
      <property name="singleton">true</property>
      <property name="jca.retry.count" type="xs:int" many="false" override="may">2147483647</property>
      <property name="jca.retry.interval" type="xs:int" many="false"
    2.Also you can try setting these values in jca file:
    <property name="RowsPerPollingInterval" value="100"/>
    <property name="MaxTransactionSize" value="100"/>
    3. try to increase the polling interval time.
    Regards,
    Anshul

  • TCP Window sizing not working as expected for Windows server 2008 R2 SP1

    Hi ,
    TCP window size is not working as expected. It is varying . Aplied the hotfix suggested by Microsoft and set the multipliccation factor as 1.The window size is not getting auto tuned based on the client machine. The data transfer rate is getting degraded.
    Please help.
    Thanks,
    Pro1962

    Hi,
    I think window auto-tuning is enabled.
    You can disable it by running the following commend.
    netsh interface tcp set global autotuninglevel=disabled
    Hope this helps.

  • Container-Managed Transaction Type Attributes not working as expected

    I am having a problem with the container-managed transactions not working as expected. I have 2 methods that work as follows:
    MethodA{
    for(a lot)
    call MethodB;
    @Transaction Type = RequiresNew
    MethodB{
    EntityManager Persist to database
    I want the code in MethodB to be committed to the database when methodB returns. The problem is that I am running out of memory and MethodA is failing. When methodA fails after numerous calls to MethodB nothing is persisted to the database.
    It is my understanding that when using requires new transactions that a new transaction is started for each call to the method and ends when the method returns while the calling method transaction is suspended.
    How am I misunderstanding the requiresNew transaction attribute. What can I do to make a batch insert into my database that will not run out of memory (commit when a methodB returns)?
    Thanks in advance.

    The problem is that EJB invocation semantics for security, container-managed transactions, etc.
    only apply when an invocation is made through an EJB reference. In your case, you are directly
    invoking the implementation method from within the bean. The EJB container has no idea that's
    happening. It's no different than invoking a utility method.
    In order to get the behavior you'd like, you need to retrieve a reference to your own bean and invoke
    through that. You can use SessionContext.getBusinessObject() to get the EJB reference for the
    business interface through which the method in question is exposed.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • I own the 4s and my BT Planttronics Pro works fine with calls but does not work to listen to music? Any ideas on how to correct this?

    I own the 4s and my BT Planttronics Pro works fine with calls but does not work to listen to music?
    Any ideas on how to correct this?
    Thanks-Vitaleyes

    I don't know what they call it, but my plantronics voyager pro, and my wifes plantronics voyager pro+ will not let you hear music through the headset.  My Blueant T1 does support it and plays the music through the deadset.

  • Keyboard not working as expected

    I woke up this morning and suddenly found a few problems with my keyboard:
    The caps lock light is reversed so that the caps is off when the light is on and vice versa
    The placement of some of the symbols are moved around. The @ is to the right of the P button and Shift-2 produces a ". Shift-9 is ), shift-8 is ( and many other switched like this.
    Resetting PRAM or the computer doesnt fix this

    Hello there, morris152.
    The following Knowlede Base article provides some great information for troubleshooting your issue with the keyboard:
    One or more keys on the keyboard do not respond
    http://support.apple.com/kb/ts1381
    Particularly:
    Some keys don't work as expected
    From the Apple menu, choose System Preferences.
    From the View menu, choose Speech.
    Click the Text to Speech tab.
    If "Speak selected text when the key is pressed" is enabled, the key or key combination set to speak text cannot be used for other purposes or used to type text--click Set Key and change it to a less-commonly used key combination (try to use modifier keys such as Shift, Command, Option, and Control). Or, disable the "Speak selected text when the key is pressed" option.
    Click the Accessibilty or Universal Access pane in System Preferences, then click the Keyboard tab.
    Make sure that Slow Keys is turned off. With Slow Keys on, you need to press a key for a longer period of time for it to be recognized.
    In the Accessibilty or Universal Access pane, click the Mouse tab, and make sure Mouse Keys is turned off. With Mouse Keys enabled, you cannot use the Numeric Keypad to enter numbers--instead the keypad moves the pointer (cursor). (There is an option to enable Mouse Keys with five presses of the Option key; you may want to turn that option off to avoid accidentally enabling it.) If Mouse Keys is enabled and you are using a keyboard with no numeric keypad or Num Lock function, see Unable to type while Mouse Keys is enabled in Mac OS X.
    If the function keys on the top row of the keyboard are not working as expected, see Mac OS X: How to change the behavior of function keys.
    If the issue persists, use Keyboard Viewer to help isolate the issue:
    Click the Language & Text pane (Mac OS X v10.6) or International pane (Mac OS X v10.5.8 or earlier) in System Preferences.
    Click the Input Sources tab (or Input Menu tab in Mac OS X 10.5.8 or earlier).
    Click the Keyboard & Character Viewer "On" checkbox to select it (click the Keyboard Viewer "On" checkbox in Mac OS X 10.5.8 or earlier).
    From the Input (flag) menu, choose Show Keyboard Viewer.
    If the keyboard is connected and detected by OS X, the keys you type will highlight in the Keyboard Viewer window. Open TextEdit (or any text application), and try to type something using the keys that were previously not responding to see if they highlight in Keyboard Viewer.
    Start from the Mac OS X Install Disc, choose Terminal from the Utilities menu and test the keys which were previously not working.  If the keys work while started from the Install disc, then the keyboard itself is working correctly.  Use How to troubleshoot a software issue to isolate the software issue that may be causing the keys to not respond.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Silverlight 5 binding on a property with logic in its setter does not work as expected when debug is attached

    My problem is pretty easy to reproduce.
    I created a project from scratch with a view model.
    As you can see in the setter of "Age" property I have a simple logic.
        public class MainViewModel : INotifyPropertyChanged
                public event PropertyChangedEventHandler PropertyChanged;
                private int age;
                public int Age
                    get
                        return age;
                    set
                        /*Age has to be over 18* - a simple condition in the setter*/
                        age = value;
                        if(age <= 18)
                            age = 18;
                        OnPropertyChanged("Age");
                public MainViewModel(int age)
                    this.Age = age;
                private void OnPropertyChanged(string propertyName)
                    if (this.PropertyChanged != null)
                        PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    In the MainPage.xaml 
         <Grid x:Name="LayoutRoot" Background="White">
                <TextBox 
                    Text="{Binding Path=Age, Mode=TwoWay}" 
                    HorizontalAlignment="Left"
                    Width="100"
                    Height="25"/>
                <TextBlock
                    Text="{Binding Path=Age, Mode=OneWay}"
                    HorizontalAlignment="Right"
                    Width="100"
                    Height="25"/>
            </Grid>
    And MainPage.xaml.cs I simply instantiate the view model and set it as a DataContext.
        public partial class MainPage : UserControl
            private MainViewModel mvm;
            public MainPage()
                InitializeComponent();
                mvm = new MainViewModel(20);
                this.DataContext = mvm;
    I expect that this code will limit set the Age to 18 if the value entered in the TextBox is lower than 18.
    Scenario: Insert into TextBox the value "5" and press tab (for the binding the take effect, TextBox needs to lose the focus)
    Case 1: Debugger is attached =>
    TextBox value will be "5" and TextBlock value will be "18" as expected. - WRONG
    Case 2: Debugger is NOT attached => 
    TextBox value will be "18" and TextBlock value will be "18" - CORRECT
    It seems that when debugger is attached the binding does not work as expected on the object that triggered the update of the property value. This happens only if the property to which we are binding has some logic into the setter or getter.
    Has something changed in SL5 and logic in setters is not allowed anymore?
    Configuration:
    VisualStudio 2010 SP1
    SL 5 Tools 5.1.30214.0
    SL5 sdk 5.0.61118.0
    IE 10
    Thanks!                                       

    Inputting the value and changing it straight away is relatively rare.
    Very few people are now using Silverlight because it's kind of deprecated...
    This is why nobody has reported this.
    I certainly never noticed this problem and I have a number of live Silverlight systems out there.
    Some of which are huge.
    If you want a "fix":
    private void OnPropertyChanged(string propertyName)
    if (this.PropertyChanged != null)
    //PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    Storyboard sb = new Storyboard();
    sb.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 100));
    sb.Completed += delegate
    PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    sb.Begin();
    The fact this works is interesting because (I think ) it means the textbox can't be updated at the point the propertychanged is raised.
    Please don't forget to upvote posts which you like and mark those which answer your question.
    My latest Technet article - Dynamic XAML

  • IPhone 4s back camera not working even after buying new iphone 4s

    Back when the ios 6 updates were coming out  in 2013 my iPhone 4 back camera stopped working, after trying way too many ways to reset the phone  and  finding others with this same issue I decided to start over I bought a new iPhone 4s so this one was better and 32gb instead of 16gb and it was 9 days later the back camera stopped working on my NEW iphone and still doesn't work to this day? What on earth should I do? How can this be fixed? I've tried hard reset, backing up the new phone, all the tricks I've tried on both phones do not work!!

    A new phone has a warranty.  So take it to an Apple store.  If they can't fix it, they will replace the phone.  Or do you mean: it stopped working after 9 days, but then you waited until the warranty ran out and then ask us?

Maybe you are looking for

  • Creating transports in QA system

    Hello experts We have had to apply a snote in our qa system (path issues), which worked fine. The issue were having now is that when we have released it and the  transport has created a log entry but noting else.  Can anybody advise why the qa can't

  • Mail encoding question

    Whenever i receive an email with non-UTF8 encoding, the content will look like this: http://dl.dropbox.com/u/4501501/mail_content.jpg However if i view the content in the inbox mail listing, the content seems look just fine: http://dl.dropbox.com/u/4

  • My iPod touch won't update to iOS 5

    iPod touch 3rd gen (32gb) and it has iOS 4.0 as of now. Please help !

  • Creating runtime environment

    Hello APEX Community, I am a DBA and have successfully installed the APEX full development environment on a server. On the same server but a different database, I want to install the APEX runtime environment. How will this work? For the runtime envir

  • Changing names on ios7.2

    Hi, This may be a lame question, but under what command can I change the name statement "name 175.129.14.16 mail-ext"? Also, can the name statement be changed without removing the NAT statement and access-list? ASA Version 7.2(2) hostname asa5510 dom