Closed Bug 661132 Opened 14 years ago Closed 14 years ago

Fix test for bug 642338 so it doesn't rely on firefox.js prefs

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED
mozilla7
Tracking Status
status2.0 --- unaffected

People

(Reporter: justin.lebar+bug, Assigned: justin.lebar+bug)

References

Details

(Whiteboard: [Blocks (SM) bug 653996] [good first bug])

Attachments

(1 file, 1 obsolete file)

The test I added in bug 642338 relies on a Firefox-specific pref, that you can't hide the location bar. Since this is a core test, it shouldn't rely on this pref being set.
Depends on: 652338
Wrong bug ID.
No longer depends on: 652338
Blocks: 642338
Thanks.
Bug 642338 comment 37: { Serge Gautherie (:sgautherie) 2011-05-31 17:07:04 PDT > If not, I'll review a patch to modify the test so it checks the pref before > the is() call. To be explicit, is() check is fine in both cases, but its expected value should simply depend on "dom.disable_window_open_feature.location"(!?) preference value. } More details are in bug 653996.
Blocks: 653996
Severity: normal → major
Whiteboard: [Blocks (SM) bug 653996] [good first bug]
Version: unspecified → Trunk
So just to be clear, I *can* rely on a pref in all.js? > pref("dom.disable_window_open_feature.status", true);
Attached patch Patch v1 (obsolete) — Splinter Review
> So just to be clear, I *can* rely on a pref in all.js? Actually, nevermind. That's not necessary.
Assignee: nobody → justin.lebar+bug
Attachment #537580 - Flags: feedback?(sgautherie.bz)
Comment on attachment 537580 [details] [diff] [review] Patch v1 [Mozilla/5.0 (Windows NT 5.0; rv:7.0a1) Gecko/20110605 Firefox/7.0a1 SeaMonkey/2.2a1pre] (nightly, SM 2.4a1pre !) I like this code. And it fixes bug 653996 :-) From my bug 653996 comment 3: { Nit: you might want to add "from HTML" (or "content" or whatever applies) to the comment, "ftr". }
Attachment #537580 - Flags: feedback?(sgautherie.bz) → feedback+
Status: NEW → ASSIGNED
Attached patch Patch v2Splinter Review
Attachment #537580 - Attachment is obsolete: true
Comment on attachment 537657 [details] [diff] [review] Patch v2 I meant to ask for Smaug's review on this patch, but I apparently missed that.
Attachment #537657 - Flags: review?(Olli.Pettay)
Attachment #537657 - Flags: review?(Olli.Pettay) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla7
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: