Bug 1415211 - XHR label are not aligned. Inverted the method name and xhr; r?:nchevobbe draft
authorRobert Pirritano <rpirritano@gmail.com>
Wed, 22 Nov 2017 10:48:45 -0700
changeset 702067 b369c9e55df0d2c4a0371a8d954a80db2bddcc8e
parent 702065 4affa6e0a8c622e4c4152872ffc14b73103830ac
child 741359 1fac70e50979bc2da2ae19a633f0495cd04ae370
push id90371
push userbmo:rpirritano@gmail.com
push dateWed, 22 Nov 2017 17:50:22 +0000
bugs1415211
milestone59.0a1
Bug 1415211 - XHR label are not aligned. Inverted the method name and xhr; r?:nchevobbe MozReview-Commit-ID: BO8F4foNeZk
devtools/client/webconsole/new-console-output/components/message-types/NetworkEventMessage.js
--- a/devtools/client/webconsole/new-console-output/components/message-types/NetworkEventMessage.js
+++ b/devtools/client/webconsole/new-console-output/components/message-types/NetworkEventMessage.js
@@ -91,17 +91,17 @@ function NetworkEventMessage({
     ? dom.span({ className: "xhr" }, l10n.getStr("webConsoleXhrIndicator"))
     : null;
   const requestUrl = dom.a({ className: "url", title: request.url, onClick: toggle },
     request.url.replace(/\?.+/, ""));
   const statusBody = statusInfo
     ? dom.a({ className: "status", onClick: toggle }, statusInfo)
     : null;
 
-  const messageBody = [method, xhr, requestUrl, statusBody];
+  const messageBody = [xhr, method, requestUrl, statusBody];
 
   // API consumed by Net monitor UI components. Most of the method
   // are not needed in context of the Console panel (atm) and thus
   // let's just provide empty implementation.
   // Individual methods might be implemented step by step as needed.
   let connector = {
     viewSourceInDebugger: (url, line) => {
       serviceContainer.onViewSourceInDebugger({url, line});