Last Comment Bug 1299809 - After refresh some buttons become inactive
: After refresh some buttons become inactive
Status: RESOLVED DUPLICATE of bug 654072
:
Product: Firefox
Classification: Client Software
Component: Device Permissions (show other bugs)
: 51 Branch
: All All
-- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
: Florian Quèze [:florian] [:flo]
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-01 07:03 PDT by ovidiu boca[:Ovidiu]
Modified: 2016-11-21 12:37 PST (History)
5 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---
affected


Attachments

Description User image ovidiu boca[:Ovidiu] 2016-09-01 07:03:48 PDT
[Affected versions]:

FF Nightly 51.0a1


[Affected platforms]:


Tested on Mac OS X 10.10, Windows 7 x32, Ubuntu 16.04 x64.


[Steps to reproduce]:

1. Go to https://webrtc.github.io/samples/src/content/peerconnection/pc1/ click Start and share you devices.
2. Click on "Share Selected Devices".
3. Refresh the page. 

[Expected result]:

Page is refreshed and you can click on "Start", camera starts capturing.

[Actual result]:

"Start" button is inactive and can't be clicked.
Comment 1 User image Florian Quèze [:florian] [:flo] 2016-09-05 03:54:49 PDT
I can reproduce but this seems to be a bug of the test page, not a Firefox bug.

Note: if reload with Shift+Cmd+R instead of just Cmd+R, I can't reproduce anymore.
Comment 2 User image ovidiu boca[:Ovidiu] 2016-09-05 04:37:21 PDT
I tested again ussing the same test page and after the second refresh (Shift+Cmd+R) the "Start" button is inactive. Please try to refresh the page multiple times to see if you can reproduce it.
Comment 3 User image Florian Quèze [:florian] [:flo] 2016-09-05 04:56:34 PDT
(In reply to ovidiu boca[:Ovidiu] from comment #2)
> I tested again ussing the same test page and after the second refresh
> (Shift+Cmd+R) the "Start" button is inactive. Please try to refresh the page
> multiple times to see if you can reproduce it.

I tried at least 5 times and can't reproduce when I shift+reload.
Comment 4 User image ovidiu boca[:Ovidiu] 2016-09-05 05:25:05 PDT
Using Firefox Nightly 51.0a1(2016-09-04) on Mac OS X 10.10 and Windows 10 x64 I can reproduce this issue, with new profile no add-ons. If I open the same link in a new Tab everything works until I refresh the Tab.
Comment 5 User image Petruta Rasa [QA] [:petruta] 2016-11-15 09:29:07 PST
I reproduced the issue with Firefox 51 beta 1 under Ubuntu 16.04 64-bit.
Only if I hard refresh the page (Ctrl+Shift+R or Ctrl+F5), I can click the Start button again.

Reopening since this works fine on Chrome 54.0.2840.90 under Ubuntu, with F5 or "Reload this page" button from toolbar.
Comment 6 User image Florian Quèze [:florian] [:flo] 2016-11-21 09:26:03 PST
Is there anything known that this test page could be doing that would work on Chrome but not on Firefox?
Comment 7 User image Randell Jesup [:jesup] 2016-11-21 11:31:38 PST
It appears simply a bug(?) in the page, depending on how much dom state survives a reload.  On 'start', start() is called, which disables the button.  Apparently that survives a simple reload (but not a shift-reload).  main.js initializes callbutton.disabled and hangupbutton.disabled, but does nothing with startbutton.disabled.
Comment 8 User image Randell Jesup [:jesup] 2016-11-21 12:37:38 PST
Longstanding tradeoff of restoring form state on reload...
If a site modifies fields the browser might cache, it should initialize them and not depend on defaults (i.e. set disabled=false where it sets disabled=true for the other buttons)

*** This bug has been marked as a duplicate of bug 654072 ***

Note You need to log in before you can comment on or make changes to this bug.