Closed Bug 1427582 Opened 7 years ago Closed 7 years ago

When using angulars 'ng-show' it doesn't work on refreshing the browser

Categories

(Firefox :: Untriaged, defect)

57 Branch
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: devashish234073, Unassigned, NeedInfo)

Details

User Agent: Mozilla/5.0 (Android 5.1; Mobile; rv:57.0) Gecko/57.0 Firefox/57.0 Build ID: 20171129020910 Steps to reproduce: <html> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <head> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script> <style> p{ margin:0px; } </style> </head> <body ng-app=""> <form action='test.html' method='POST'> <table> <tr><td>Name:</td><td><input type="text" ng-model="name" required/></td></tr> <tr ng-show='name.length>0'><td>Roll:</td><td><input type="number" ng-model="roll" required/></td></tr> <tr ng-show='roll>0'><td>Class:</td><td><input type="text" ng-model="class" required/></td></tr> <tr ng-show='class.length>0'><td>Age:</td><td><input type="number" ng-model="age" required/></td></tr> <tr ng-show='age>0'><td>Address:</td><td><input type="text" ng-model="address" required/></td></tr> <tr ng-show='address.length>0'><td>Mob No:</td><td><input type="number" ng-model="mNo" required/></td></tr> <tr ng-show='mNo>1000000000'><td colspan='2'><input type="submit" value="Save" style="width:200px;"/></td></tr> </table> </form> </body> I created an HTML file named 'test.html' with above content. Actual results: Initially it opened correctly. But when I refreshed the page all , the hidden fields were visible in the browser. (Same doesn't happen in chrome) I am using Firefox 57.0.3 (64 bit) Instead of refreshing if I move to the end of the URL and hit enter that refreshes it correctly . but browser's refresh button doesn't. Expected results: Clicking on the URL and hitting enter or using the refresh button should have given same result but they didn't.
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0 Build ID: 20171226083017 Hello, I have tested this issue on latest Firefox release 57.0.3 and latest Nightly build 59.0a1 (2018-01-04) and could not reproduce it. I have created a HTML file with the provided content and opened it in the browser. After refreshing the page in different ways (using the "Refresh" browser's button, "Ctrl+F5" keys combination and pressing "Enter" key in the address bar), the returned content remained the same, and the hidden fields didn't appear. I've also written something in the "Name" field and as I started to insert content, the hidden fields appeared:"Roll", "Class", "Age", "Address" and "Mob No". But after refreshing the page, only the "Name" field remained visible. When you encountered the issue, what operating system did you use? Also, can you please retest this using latest Firefox release and latest Nightly build (https://nightly.mozilla.org/) and report back the results? When doing this, please use a new clean Firefox profile (https://goo.gl/AWo6h8), maybe even safe mode (https://goo.gl/AR5o9d), to eliminate custom settings as a possible cause.
Flags: needinfo?(devashish234073)
Which hidden fields? Which OS?
Actually it happens only when I connect through VPN. 'angularjs' script in not accesible in IE and edge in my system but it works in chrome and firefox. But in firefox the refresh button and hitting url behaves differently.
Flags: needinfo?(devashish234073)
I've retested this issue using "Tunnel Bear" VPN application, with a United States connection, in order to access the .html document using latest Firefox Release 57.0.4 and latest Nightly build 59.0a1 (2018-01-07) and still didn't managed to reproduce it. How did you set up your VPN? Did you use an application?
Flags: needinfo?(devashish234073)
Due to the fact that I didn't manage to reproduce this issue and the reporter didn't answer to my request until now, I'm going to close this issue as Resolved-Incomplete. If anyone can still reproduce it on the latest versions, please feel free to reopen the issue and provide more information.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.