Search Box Broken In Preview Looks Fine On Production

RESOLVED WONTFIX

Status

Snippets
General
RESOLVED WONTFIX
3 years ago
8 months ago

People

(Reporter: bensternthal, Assigned: ckprice)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

3 years ago
Created attachment 8683744 [details]
Screen Shot 2015-11-05 at 8.51.35 AM.png

When previewing certain snippets the search button looks broken. This does not occur on production.

Please see attached screenshot. Left is dev, right is prod. Note the JS error 

> ContentSearchUIController is not defined.

Is it possible this hook is not available when using preview and is therefore interrupting the rendering of the page?
(In reply to Ben (:bensternthal) from comment #0)
> Created attachment 8683744 [details]
> Screen Shot 2015-11-05 at 8.51.35 AM.png
> 
> When previewing certain snippets the search button looks broken. This does
> not occur on production.
> 
> Please see attached screenshot. Left is dev, right is prod. Note the JS
> error 
> 
> > ContentSearchUIController is not defined.
> 
> Is it possible this hook is not available when using preview and is
> therefore interrupting the rendering of the page?

Yes so, ContentSearchUIController is not available in preview mode. I am thinking that, below the line that throws the error, the JS adds a class that triggers the correct styling.

And so yes, on production this will be just fine as it actually runs in the context of about:home
This is my experience as well.
This is a valid bug that we won't be fixing because we're moving to Activity Stream which has another preview page where this does not apply. Thank you for the report!
Status: NEW → RESOLVED
Last Resolved: 8 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.