[00:04:04] (03CR) 10Alex Monk: [C: 04-1] "I think this breaks the animation as well actually..." [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/179551 (owner: 10Alex Monk) [00:07:16] (03CR) 10Bartosz Dziewoński: Eventify TemplateDataGenerator and use oojs-ui (035 comments) [extensions/TemplateData] - 10https://gerrit.wikimedia.org/r/167046 (owner: 10Mooeypoo) [00:08:37] mooeypoo: review done, i think, mostly. :) [00:12:21] MatmaRex, awesome, thanks! [00:16:49] Krinkle: https://gerrit.wikimedia.org/r/#/c/177901/ <-- Jenkins took 49 minutes to run tests. :-( [00:17:00] Krinkle: (Also, feel free to merge if you're OK with it.) [00:19:35] James_F: Zuul was stuck for an hour. I think antone was looking into it [00:19:57] Krinkle: Aha, OK. Fun. [00:20:51] (03CR) 10Bartosz Dziewoński: [C: 04-1] "I think these classes actually intentionally don't have @noflip and are supposed to be flipped; they are just badly named. Applying this p" [oojs/ui] - 10https://gerrit.wikimedia.org/r/179565 (owner: 10Amire80) [00:21:35] 3VisualEditor, VisualEditor-InterfaceLanguage, OOjs-UI: VisualEditor page options menu goes off-screen in RTL wikis - https://phabricator.wikimedia.org/T76474#845278 (10matmarex) The real issue is that ClippableElement doesn't handle clipping with the left edge of browser window, only with the right edge. [00:35:07] (03PS1) 10Jforrester: Update VE core submodule to master (6103755) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/179579 [00:43:41] Hey RoanKattouw. :-) [00:43:54] bah [00:44:06] there's something really wrong with ClippableElement [00:44:19] Hello [00:44:19] RoanKattouw: Sadly the native cursoring thing got some pretty damning review from mooey|away and divec is busy trying to fix. [00:44:25] RoanKattouw: No last-minute merge-and-fly on that. [00:44:40] http://i.imgur.com/UcneAb4.png [00:44:45] Apparently my laptop doesn't like the free wifi at SFO, so it's tethering time [00:44:46] To be fair it also went to sleep for being dangerously low on battery... at 93% [00:44:48] MatmaRex: Eww. [00:44:49] Oh oops [00:44:51] Will catch up [00:44:52] Also, I will allegedly have in-flight wifi + power [00:44:58] RoanKattouw: Ha. [00:45:01] to reproduce: open OOUI toolbars demo, open that dropdown, and carefully bring the right edge of browser window close to it [00:45:11] [16:43] James_F [2014-12-12 15:17:54] Krinkle|detached: Did RoanKattouw_away give you CR on your ResourceLoaderInOneFileOMG commit? [00:45:13] No I did not [00:45:16] as you move closer, the dropdown will grow wider. [00:45:23] RoanKattouw: OK, there's your job for the gate wait. :-) [00:45:57] MatmaRex: Sounds… curiously broken. [00:46:10] MatmaRex: Is the update code adding rather than taking away or something? [00:46:13] (03PS1) 10Bartosz Dziewoński: [WIP] ClippableElement: Handle clipping with left edge [oojs/ui] - 10https://gerrit.wikimedia.org/r/179581 [00:46:17] James_F: i don't even [00:46:26] found that when working on this ^ [00:46:27] MatmaRex: :-) [00:46:38] which actually seems to work, i didn't really expect it to. [00:46:52] Hmm. [00:47:37] RoanKattouw, can I ask you a quick question or are you running for your flight? [00:47:44] mooeypoo: Ask. [00:47:49] (03CR) 10Catrope: "Trevor looked at this earlier and said that you couldn't do it this way for pretty much that exact reason, yeah" [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/179551 (owner: 10Alex Monk) [00:48:18] mooeypoo: Ask [00:48:27] I'm waiting for them to finish cleaning the plane [00:49:00] RoanKattouw, the API is giving us answers that have html in them. Sometimes it's good, like when you have a username with link to the user's profile in whatever-wiki, but I have a feeling it is a recipe for disaster. Some of it I'm trying to strip (like the 'credit') but even that, I'm not sure I'm doing right. [00:49:28] this smells fishy to me, I want to verify it's a good way to go at it. I am wrried about Bad Things we receive, since it's really all user generated. [00:49:53] (03CR) 10Amire80: [C: 031] [WIP] ClippableElement: Handle clipping with left edge [oojs/ui] - 10https://gerrit.wikimedia.org/r/179581 (owner: 10Bartosz Dziewoński) [00:49:53] 3OOjs-UI: ClippableElement PopupToolGroup near right side of viewport hilariously broken - https://phabricator.wikimedia.org/T78447#845319 (10matmarex) 3NEW [00:49:55] (03CR) 10Catrope: [C: 032] Check for stopped propagation before showing close dialog [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/179478 (owner: 10Esanders) [00:49:57] so, look for instance at line #470: https://gerrit.wikimedia.org/r/#/c/161342/20/modules/ve-mw/ui/dialogs/ve.ui.MWMediaDialog.js [00:50:17] and line #481 specifically, for the credit [00:50:19] (03Abandoned) 10Amire80: Add noflip to oo-ui-popupToolGroup-left and -right [oojs/ui] - 10https://gerrit.wikimedia.org/r/179565 (owner: 10Amire80) [00:50:27] RoanKattouw, yeah I had no other ideas.. [00:50:37] (03CR) 10Catrope: [C: 032] Update VE core submodule to master (6103755) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/179579 (owner: 10Jforrester) [00:50:51] RoanKattouw: Ta. [00:51:30] mooeypoo: Hmmmm yeah [00:51:31] RoanKattouw, sometimes we get a non-html link (plain text http://blablabla ) and sometimes an and sometimes "Own work". It's lovely how it's all consistent. So I'm testing if it starts with a link (plaintext http) and if it does, I create a link with attr( 'href', $( metadata.Credit.value ).text() ) but if it doesn't, I embed as-is [00:51:41] So, I wonder where that HTML comes from exactly [00:51:51] If it comes from the wikitext parser it's probably relatively sane, security-wise at least [00:51:51] RoanKattouw, users are inputting it into templates [00:51:58] Sure but as wikitext right? [00:52:02] I think so [00:52:17] RoanKattouw, here's the main issue, though. This: if ( metadata.Credit.value.match( /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#= [00:52:18] ]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/ ) ) { [00:52:26] this is searching for whether the result *starts* with a link [00:52:28] mooeypoo: Why make the regex so complicated? Why not just assume that anything that starts with https?:\/\/ is a URL? [00:52:58] (03Merged) 10jenkins-bot: Check for stopped propagation before showing close dialog [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/179478 (owner: 10Esanders) [00:53:02] (03Merged) 10jenkins-bot: Update VE core submodule to master (6103755) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/179579 (owner: 10Jforrester) [00:53:03] I had it before as checking whether it *has* a link, anywhere, but then I found an instance of someone inputting something like "This is from somethingsomething and is awesome" [00:53:32] <_< [00:53:34] so now this ^^ won't get translated to "Credit" with a link, but it WILL be inserted as-is (stripped, since I used .text() ) if that makes sense [00:53:46] so we'll see "This is from somethingsomething and is aewsome" sans link [00:53:54] but I'm really worried appending things as-is like that :\ [00:53:58] then again, I do it for Artist [00:54:17] and we saw that returned some annoyingly huge html-filled result [00:54:24] RoanKattouw, my *main* concern is security though [00:54:56] We'll need to figure out at some point a sane way of stripping stuff, but is it *secure* using the method i am using? embedding things as-is or $( string ).text() [00:55:12] because evcen with .text() I think jQuery is running/parsing it first, right? can that hold a security risk? [00:55:21] it isn't [00:55:23] text is text [00:55:43] okay, and $div.append( $( string ) ) is? [00:55:52] yes [00:55:54] god knows what can be in there. It's user-generated. [00:55:56] (03CR) 10jenkins-bot: [V: 04-1] [WIP] ClippableElement: Handle clipping with left edge [oojs/ui] - 10https://gerrit.wikimedia.org/r/179581 (owner: 10Bartosz Dziewoński) [00:55:58] :\ [00:56:03] So I'll have to strip it all? [00:56:14] .append( document.createTextNode( string ) ) [00:56:23] That's better?? [00:56:32] Well that'll treat it as plain text [00:56:37] well, that doesn't accept HTML in the string? [00:56:43] i think i lack context [00:56:43] hm that won't parse and such [00:56:46] also sleep [00:56:47] Even if it contains like this it'll just render as plain text [00:56:55] so, good night :) [00:57:02] MatmaRex, night! [00:57:05] and thanks for the review :) [00:57:06] mooeypoo: Krinkle knows best, but IIRC .append() isn't totally safe but $.parseHTML() is [00:57:10] Bye MatmaRex! [00:57:14] Mostly wrt