Closed Bug 832880 Opened 13 years ago Closed 13 years ago

If devtools.chrome.enabled is off, don't respect the browser modeline

Categories

(DevTools Graveyard :: Scratchpad, defect, P2)

x86
All
defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 21

People

(Reporter: paul, Assigned: anton)

References

Details

Attachments

(1 file, 1 obsolete file)

No description provided.
Priority: -- → P2
Updated code and tests. Also replaced hard-coded SCRATCHPAD_CONTEXT_* variables with gScratchpadWindow properties.
Attachment #705122 - Flags: review?(paul)
Attachment #705122 - Flags: review?(fayearthur)
Comment on attachment 705122 [details] [diff] [review] Respect browser modeline only if devtools.chrome.enabled is true Review of attachment 705122 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/devtools/scratchpad/test/browser_scratchpad_bug_644413_modeline.js @@ +73,5 @@ > + // the content context. > + is(gScratchpad.executionContext, gScratchpadWindow.SCRATCHPAD_CONTEXT_CONTENT); > + > + // Set the pref and try again. > + Services.prefs.setBoolPref(DEVTOOLS_CHROME_ENABLED, true); Make sure to clear this pref before the test finishes: Services.prefs.clearUserPref(DEVTOOLS_CHROME_ENABLED);
Attachment #705122 - Flags: review?(fayearthur) → review+
(In reply to Heather Arthur [:harth] from comment #2) > Make sure to clear this pref before the test finishes: > > Services.prefs.clearUserPref(DEVTOOLS_CHROME_ENABLED); You can use registerCleanup() to make sure this is called no matter if the test fails/times out/whatever - see scratchpad/test/head.js for an example of its use.
Attachment #705122 - Flags: review?(paul) → review+
Added registerCleanupFunction that clears the pref. Carrying over r+.
Attachment #705122 - Attachment is obsolete: true
Attachment #705556 - Flags: review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 21
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: