Closed Bug 844683 Opened 11 years ago Closed 11 years ago

scoped-style-pseudo-001.html and scoped-style-pseudo-002.html will fail on the next merge to mozilla-beta

Categories

(Core :: CSS Parsing and Computation, defect)

21 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla22
Tracking Status
firefox21 --- fixed

People

(Reporter: philor, Assigned: heycam)

References

Details

Attachments

(1 file)

https://tbpl.mozilla.org/?tree=Try&rev=5d630e18ce25 is the current mozilla-aurora pushed to try roughly as though it were mozilla-beta, saying that if we merged today, we'd wind up with permaorange in scoped-style-pseudo-001.html and scoped-style-pseudo-002.html.
Hmm, and https://tbpl.mozilla.org/?tree=Try&rev=ada886f11c52 is aurora with only the update channel set to beta, but without changing the version from 21.0a2 to 21.0, and without the branding changes, passing those tests.
Ah, indeed, the version bump is the key, rather than the update channel, since all.js has:

// Is support for the :scope selector enabled?
#ifdef RELEASE_BUILD
pref("layout.css.scope-pseudo.enabled", false);
#else
pref("layout.css.scope-pseudo.enabled", true);
#endif

and http://hg.mozilla.org/mozilla-central/file/e48e1afb1899/config/rules.mk#l1229 has:

# Set a flag that can be used in pref files to disable features if
# we are not building for Aurora or Nightly.
ifeq (,$(findstring a,$(GRE_MILESTONE)))
PREF_PPFLAGS += -DRELEASE_BUILD
endif

which makes this expected.  I seem to have misremembered how RELEASE_BUILD was set.
Tick tick tick, the merge clock is running, two weeks until this will be causing permaorange on mozilla-beta.
I'll look at this in a week.
Assignee: nobody → cam
Status: NEW → ASSIGNED
Attached patch patchSplinter Review
Set the pref to enable :scope for these tests, as well as scoped-style-pseudo-003.html which doesn't actually fail but which does use :scope too.
Attachment #728809 - Flags: review?(philringnalda)
Comment on attachment 728809 [details] [diff] [review]
patch

r=me (though =tryserver would be more accurate), a=test-only, shipit!
Attachment #728809 - Flags: review?(philringnalda) → review+
https://hg.mozilla.org/mozilla-central/rev/1ace686b691c
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: