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)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 21
People
(Reporter: paul, Assigned: anton)
References
Details
Attachments
(1 file, 1 obsolete file)
|
2.78 KB,
patch
|
anton
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Updated•13 years ago
|
Priority: -- → P2
| Assignee | ||
Comment 1•13 years ago
|
||
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 2•13 years ago
|
||
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+
Comment 3•13 years ago
|
||
(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.
| Reporter | ||
Updated•13 years ago
|
Attachment #705122 -
Flags: review?(paul) → review+
| Assignee | ||
Comment 4•13 years ago
|
||
Added registerCleanupFunction that clears the pref. Carrying over r+.
Attachment #705122 -
Attachment is obsolete: true
Attachment #705556 -
Flags: review+
| Assignee | ||
Comment 5•13 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Comment 6•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 21
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•