Closed
Bug 872742
Opened 11 years ago
Closed 11 years ago
Work - Separate context bar and add slide in transition
Categories
(Firefox for Metro Graveyard :: App Bar, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 24
People
(Reporter: rsilveira, Assigned: rsilveira)
References
Details
(Whiteboard: feature=work)
Attachments
(1 file, 1 obsolete file)
15.06 KB,
patch
|
fryn
:
review+
|
Details | Diff | Splinter Review |
We need to separate the context app bar and add the slide in transition. This is blocking bug 860899 because a bunch of tests were relying on the transition.
Updated•11 years ago
|
Summary: change - Separate context bar and add slide in transition → Work - Separate context bar and add slide in transition
Whiteboard: feature=work
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #750066 -
Flags: review?(fyan)
Comment 2•11 years ago
|
||
Comment on attachment 750066 [details] [diff] [review] Patch v1 Review of attachment 750066 [details] [diff] [review]: ----------------------------------------------------------------- Looks great. Thanks! r+ with comment addressed. ::: browser/metro/theme/browser.css @@ +547,4 @@ > } > > #contextualactions-tray { > background-color: @metro_orange@; You duplicated a rule here.
Attachment #750066 -
Flags: review?(fyan) → review+
Comment 3•11 years ago
|
||
Comment on attachment 750066 [details] [diff] [review] Patch v1 Review of attachment 750066 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/metro/theme/browser.css @@ +538,5 @@ > + transform: translateY(100%); > +} > + > +#contextappbar[expanded] { > + transform: none; Actually, you could do the following if you'd like: #contextappbar:not([expanded]) { transform: translateY(100%); }
Assignee | ||
Comment 4•11 years ago
|
||
Applied review comments. Also, because we now have 2 appbars, I moved event handling from appbar.xml to appbar.js to trigger actions on the right appbar.
Attachment #750066 -
Attachment is obsolete: true
Attachment #750123 -
Flags: review?(fyan)
Comment 5•11 years ago
|
||
Comment on attachment 750123 [details] [diff] [review] Patch v2 Review of attachment 750123 [details] [diff] [review]: ----------------------------------------------------------------- Nice investigation. :) r+ with comments addressed. ::: browser/metro/base/content/bindings/appbar.xml @@ -11,5 @@ > - <constructor> > - <![CDATA[ > - window.addEventListener('MozContextUIShow', this); > - window.addEventListener('MozContextUIDismiss', this); > - window.addEventListener('MozAppbarDismiss', this); Remove this line. It will result in an infinite loop, I think. @@ -19,5 @@ > - <destructor> > - <![CDATA[ > - window.removeEventListener('MozContextUIShow', this); > - window.removeEventListener('MozContextUIDismiss', this); > - window.removeEventListener('MozAppbarDismiss', this); And this one. @@ +43,5 @@ > <body> > <![CDATA[ > + if (this.isShowing) > + return; > + Could you also add this type of guard for <method name="dismiss"> ? @@ -83,5 @@ > - switch (aEvent.type) { > - case 'MozContextUIShow': > - this.show(); > - break; > - case 'MozAppbarDismiss': And this one.
Comment 6•11 years ago
|
||
Comment on attachment 750123 [details] [diff] [review] Patch v2 Review of attachment 750123 [details] [diff] [review]: ----------------------------------------------------------------- Nice investigation. :) r+ with comments addressed. ::: browser/metro/base/content/bindings/appbar.xml @@ -11,5 @@ > - <constructor> > - <![CDATA[ > - window.addEventListener('MozContextUIShow', this); > - window.addEventListener('MozContextUIDismiss', this); > - window.addEventListener('MozAppbarDismiss', this); Remove this line. It will result in an infinite loop, I think. @@ -19,5 @@ > - <destructor> > - <![CDATA[ > - window.removeEventListener('MozContextUIShow', this); > - window.removeEventListener('MozContextUIDismiss', this); > - window.removeEventListener('MozAppbarDismiss', this); And this one. @@ +43,5 @@ > <body> > <![CDATA[ > + if (this.isShowing) > + return; > + Could you also add this type of guard for <method name="dismiss"> ? @@ -83,5 @@ > - switch (aEvent.type) { > - case 'MozContextUIShow': > - this.show(); > - break; > - case 'MozAppbarDismiss': And this one.
Attachment #750123 -
Flags: review?(fyan) → review+
Comment 7•11 years ago
|
||
Comment on attachment 750123 [details] [diff] [review] Patch v2 Review of attachment 750123 [details] [diff] [review]: ----------------------------------------------------------------- Oh, wait. You did remove those lines! I was reading splinter incorrectly. <facepalm/>
Assignee | ||
Comment 8•11 years ago
|
||
OK, I was struggling to understand what you meant :) I'll add the guard to dismiss and land this. Thanks!
Assignee | ||
Comment 9•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/5f5d8b3adbc6
Comment 10•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/5f5d8b3adbc6
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 24
Updated•10 years ago
|
OS: Windows 8 Metro → Windows 8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•