Closed Bug 1261655 Opened 9 years ago Closed 9 years ago

Scratchpad can not save while change ua

Categories

(DevTools Graveyard :: Scratchpad, defect, P2)

44 Branch
x86
Windows 7
defect

Tracking

(firefox45 wontfix, firefox46 wontfix, firefox47 fixed, firefox48 fixed, firefox49 fixed, firefox-esr38 unaffected, firefox-esr45 wontfix)

RESOLVED DUPLICATE of bug 1254025
Tracking Status
firefox45 --- wontfix
firefox46 --- wontfix
firefox47 --- fixed
firefox48 --- fixed
firefox49 --- fixed
firefox-esr38 --- unaffected
firefox-esr45 --- wontfix

People

(Reporter: alice0775, Unassigned)

References

Details

(Keywords: regression, Whiteboard: [btpp-fix-later])

This is a regression since Firefox44.0. Reproducible: Always Steps to reproduce: 1. Open about:config 1. Set devtools.chrome.enabled = true 2. change ua to Android / Chrome. i.e, general.useragent.override = ozilla/5.0 (Linux; Android 5.1.1; HWT31 Build/Federer) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.93 Safari/537.36 3. Open Scratchpad and change Environment to browser 4. File > Save As > Save 5. Attempt to close the Scratchpad Actual Results: It happens nothing saved. Cannot close. Expected Results: Save and Close normaly
Blocks: 1261652
when change ua scratchpad cannot save code,and when open two scratchpad from F12 , and then close the main window of firefox,the two scratchpad will not close,and click the x button will do nothing
Temporarily assigning P2, might be P1.
Priority: -- → P2
Whiteboard: [btpp-fix-later]
Thanks for filing. I'm not sure why the codemirror update triggered this problem. I can confirm the issue, although it's only tied to the general.useragent.override pref and doesn't require switching to Browser Environemnt: Here's what I see in the browser console: TypeError: cm.getInputField(...).controllers is undefined editor.js:434:7
Flags: needinfo?(bgrinstead)
Then when trying to close the window, it doesn't close and I see this: TypeError: cm is undefined editor.js:962:5 Editor.prototype.isClean() editor.js:962 Scratchpad.dirty() scratchpad.js:313 SP_promptSave() scratchpad.js:1853 SP_close() scratchpad.js:1913 SP_onClose() scratchpad.js:1899 bound SP_onClose() self-hosted editor.js
seems that latest nightly have fixed it?
Thanks for the update FateRover. Looking at comment 4, this must have been fixed by Bug 1254025 (we now force CM to use a textarea, regardless of the UserAgent). Closing as duplicate, feel free to reopen if needed!
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Flags: needinfo?(gl)
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.