ChangeLog-2011-06-04 896 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497
  1. 2011-06-04 Sam Weinig <sam@webkit.org>
  2. Reviewed by Anders Carlsson.
  3. Disable WebProcess side display throttling when in a user scroll
  4. <rdar://problem/9517175>
  5. https://bugs.webkit.org/show_bug.cgi?id=62095
  6. Add the ability to disable WebProcess side display throttling that
  7. takes place in DrawingAreaImpl::displayTimerFired. Disable the throttling
  8. when in a user or animated scroll.
  9. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  10. (WebKit::WebChromeClient::didStartRubberBandForFrame):
  11. (WebKit::WebChromeClient::didCompleteRubberBandForFrame):
  12. (WebKit::WebChromeClient::didStartAnimatedScroll):
  13. (WebKit::WebChromeClient::didCompleteAnimatedScroll):
  14. * WebProcess/WebPage/DrawingArea.h:
  15. (WebKit::DrawingArea::enableDisplayThrottling):
  16. (WebKit::DrawingArea::disableDisplayThrottling):
  17. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  18. (WebKit::DrawingAreaImpl::DrawingAreaImpl):
  19. (WebKit::DrawingAreaImpl::enableDisplayThrottling):
  20. (WebKit::DrawingAreaImpl::disableDisplayThrottling):
  21. (WebKit::DrawingAreaImpl::displayTimerFired):
  22. * WebProcess/WebPage/DrawingAreaImpl.h:
  23. * WebProcess/WebPage/WebPage.cpp:
  24. (WebKit::WebPage::wheelEvent):
  25. 2011-06-04 Darin Adler <darin@apple.com>
  26. Reviewed by Anders Carlsson.
  27. [Mac WebKit2] REGRESSION (r86692): Synchronous XMLHttpRequest hangs in credential shim (affects Netgear ReadyNAS admin page)
  28. https://bugs.webkit.org/show_bug.cgi?id=62094
  29. rdar://problem/9539204
  30. * WebKit2.xcodeproj/project.pbxproj: Added new source files.
  31. * WebProcess/mac/CoreIPCClientRunLoop.h: Added.
  32. * WebProcess/mac/CoreIPCClientRunLoop.mm: Added.
  33. (-[WKFunctionAdapter perform]): Added.
  34. (WebKit::createCoreIPCRunLoopModesArray): Added.
  35. (WebKit::coreIPCRunLoopModesArray): Added.
  36. (WebKit::callOnCoreIPCClientRunLoopAndWait): Added.
  37. * WebProcess/mac/KeychainItemShimMethods.mm:
  38. (WebKit::webFreeAttributeListContent): Use callOnCoreIPCClientRunLoopAndWait.
  39. (WebKit::webFreeKeychainItemContent): Ditto.
  40. (WebKit::webSecKeychainItemCopyContent): Ditto.
  41. (WebKit::webSecKeychainItemCreateFromContent): Ditto.
  42. (WebKit::webSecKeychainItemModifyContent): Ditto.
  43. * WebProcess/mac/SecItemShimMethods.mm:
  44. (WebKit::webSecItemCopyMatching): Ditto.
  45. (WebKit::webSecItemAdd): Ditto.
  46. (WebKit::webSecItemUpdate): Ditto.
  47. (WebKit::webSecItemDelete): Ditto.
  48. 2011-06-04 Sam Weinig <sam@webkit.org>
  49. Reviewed by Anders Carlsson.
  50. WebKit2 needs to know when a scroll is happening due to the ScrollAnimator
  51. https://bugs.webkit.org/show_bug.cgi?id=62093
  52. Stub out new ChromeClient functions regarding the start and end of ScrollAnimator
  53. animated scrolls, and update logic for rubber-band ending to check for main frame
  54. now that it is called for all frames.
  55. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  56. (WebKit::WebChromeClient::didStartRubberBandForFrame):
  57. (WebKit::WebChromeClient::didCompleteRubberBandForFrame):
  58. (WebKit::WebChromeClient::didStartAnimatedScroll):
  59. (WebKit::WebChromeClient::didCompleteAnimatedScroll):
  60. * WebProcess/WebCoreSupport/WebChromeClient.h:
  61. 2011-06-03 Brady Eidson <beidson@apple.com>
  62. Reviewed by Steve Falkenburg.
  63. <rdar://problem/9553645> and https://bugs.webkit.org/show_bug.cgi?id=62064
  64. WebBackForwardListItem::setBackForwardData actually appends data
  65. * Shared/WebBackForwardListItem.cpp:
  66. (WebKit::WebBackForwardListItem::setBackForwardData): Clear the Vector out before appending
  67. the replacement data.
  68. 2011-06-03 Anders Carlsson <andersca@apple.com>
  69. Reviewed by Brady Eidson.
  70. Disable the sync message timeout for the Microsoft SharePoint plug-in
  71. https://bugs.webkit.org/show_bug.cgi?id=62043
  72. <rdar://problem/9536303>
  73. * WebProcess/Plugins/PluginProcessConnection.cpp:
  74. (WebKit::defaultSyncMessageTimeout):
  75. 2011-06-03 Andreas Kling <kling@webkit.org>
  76. Reviewed by Benjamin Poulain.
  77. [Qt] TiledDrawingArea: Initialize tiles to transparent.
  78. * UIProcess/qt/TiledDrawingAreaTileQt.cpp:
  79. (WebKit::TiledDrawingAreaTile::incorporateUpdate): When constructing new
  80. back buffers, fill them with transparent pixels.
  81. 2011-06-03 No'am Rosenthal <noam.rosenthal@nokia.com>
  82. Reviewed by Andreas Kling.
  83. [Qt][WK2] Make tiling on WebKit2 more responsive.
  84. https://bugs.webkit.org/show_bug.cgi?id=50064
  85. Instead of creating and destroying pixmaps, and copying them using QPixmap::copy()
  86. or relying on the implicit sharing functionality, we keep the QPixmaps alive
  87. and just make sure their content is synchronized.
  88. This seems to improve responsiveness noticably, as now the UI process doesn't deal
  89. with allocating/deallocating pixmaps, and the copies are done with the optimized
  90. path (QPainter) vs the unoptimized ones (QPixmap::copy().)
  91. * UIProcess/TiledDrawingAreaTile.h:
  92. * UIProcess/qt/TiledDrawingAreaTileQt.cpp:
  93. (WebKit::TiledDrawingAreaTile::TiledDrawingAreaTile):
  94. (WebKit::TiledDrawingAreaTile::isReadyToPaint):
  95. (WebKit::TiledDrawingAreaTile::hasReadyBackBuffer):
  96. (WebKit::TiledDrawingAreaTile::swapBackBufferToFront):
  97. (WebKit::TiledDrawingAreaTile::incorporateUpdate):
  98. 2011-06-03 Mikhail Naganov <mnaganov@chromium.org>
  99. Reviewed by Yury Semikhatsky.
  100. Web Inspector: [Chromium] cpu-profiler-profiling layout test is flaky on Linux Debug.
  101. https://bugs.webkit.org/show_bug.cgi?id=61533
  102. Skip cpu-profiler-profiling in debug, implement a fast headless alternative.
  103. * WebProcess/InjectedBundle/API/c/WKBundleInspector.cpp:
  104. (WKBundleInspectorSetJavaScriptProfilingEnabled):
  105. * WebProcess/InjectedBundle/API/c/WKBundleInspector.h:
  106. * WebProcess/WebPage/WebInspector.cpp:
  107. (WebKit::WebInspector::setJavaScriptProfilingEnabled):
  108. * WebProcess/WebPage/WebInspector.h:
  109. 2011-06-02 Anders Carlsson <andersca@apple.com>
  110. Reviewed by Mark Rowe.
  111. Assert when trying to unload a module that failed to load
  112. https://bugs.webkit.org/show_bug.cgi?id=61980
  113. Remove an invalid ASSERT; it's OK for m_bundle to be null if the bundle failed to load.
  114. * Platform/mac/ModuleMac.mm:
  115. (WebKit::Module::unload):
  116. 2011-06-02 Anders Carlsson <andersca@apple.com>
  117. Reviewed by Simon Fraser.
  118. Add quirk for plug-ins that return a retained CALayer
  119. https://bugs.webkit.org/show_bug.cgi?id=61948
  120. <rdar://problem/9530390>
  121. * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
  122. (WebKit::NetscapePluginModule::determineQuirks):
  123. Set the ReturnsRetainedCoreAnimationLayer quirk for Flash.
  124. * Shared/Plugins/PluginQuirks.h:
  125. Add ReturnsRetainedCoreAnimationLayer quirk.
  126. * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
  127. (WebKit::NPN_GetValue):
  128. Handle WKNVExpectsNonretainedLayer by always returning true, and also
  129. call NetscapePlugin::setPluginReturnsNonretainedLayer(true) to add a way
  130. for plug-ins to opt into returning non-retained layers even if they have
  131. the quirk specified.
  132. * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
  133. (WebKit::NetscapePlugin::NetscapePlugin):
  134. Initialize m_pluginReturnsNonretainedLayer to true.
  135. * WebProcess/Plugins/Netscape/NetscapePlugin.h:
  136. (WebKit::NetscapePlugin::setPluginReturnsNonretainedLayer):
  137. Add setter.
  138. * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
  139. (WebKit::NetscapePlugin::platformPostInitialize):
  140. If m_pluginReturnsNonretainedLayer is false, adopt the layer.
  141. 2011-06-02 Brent Fulgham <bfulgham@webkit.org>
  142. Unreviewed WinCairo build correction.
  143. * UIProcess/win/WebView.cpp: Don't include CG file header
  144. when building without CoreGraphics support.
  145. 2011-06-02 Carlos Garcia Campos <cgarcia@igalia.com>
  146. Reviewed by Martin Robinson.
  147. [GTK] Implement popup menus in Webkit2
  148. https://bugs.webkit.org/show_bug.cgi?id=61854
  149. * GNUmakefile.am: Add new files to compilation.
  150. * UIProcess/API/gtk/PageClientImpl.cpp:
  151. (WebKit::PageClientImpl::createPopupMenuProxy): Create a new
  152. WebPopupMenuProxy.
  153. * UIProcess/gtk/WebPopupMenuProxyGtk.cpp: Added.
  154. (WebKit::WebPopupMenuProxyGtk::WebPopupMenuProxyGtk):
  155. (WebKit::WebPopupMenuProxyGtk::~WebPopupMenuProxyGtk):
  156. (WebKit::WebPopupMenuProxyGtk::showPopupMenu):
  157. (WebKit::WebPopupMenuProxyGtk::hidePopupMenu):
  158. (WebKit::WebPopupMenuProxyGtk::shutdownRunLoop):
  159. (WebKit::WebPopupMenuProxyGtk::menuItemActivated):
  160. (WebKit::WebPopupMenuProxyGtk::menuUnmapped):
  161. * UIProcess/gtk/WebPopupMenuProxyGtk.h: Added.
  162. (WebKit::WebPopupMenuProxyGtk::create):
  163. (WebKit::WebPopupMenuProxyGtk::setActiveItem):
  164. 2011-06-01 Sam Weinig <sam@webkit.org>
  165. Reviewed by Anders Carlsson.
  166. Non-users need access to the mds caches for SSL support.
  167. <rdar://problem/9471799>
  168. * WebProcess/com.apple.WebProcess.sb:
  169. 2011-06-01 Jer Noble <jer.noble@apple.com>
  170. Reviewed by Maciej Stachowiak.
  171. Flash of old video frame at the end of full screen transition
  172. https://bugs.webkit.org/show_bug.cgi?id=61752
  173. Add a new method and message, DisposeOfLayerClient, which will invalidate and release
  174. the WKRemoteLayerClient used during the full-screen animation. This ensures that
  175. the root layer used for the full-screen animation will be in a clean state at the start
  176. of the next transition.
  177. * UIProcess/WebFullScreenManagerProxy.cpp:
  178. (WebKit::WebFullScreenManagerProxy::disposeOfLayerClient): Added.
  179. * UIProcess/WebFullScreenManagerProxy.h:
  180. * UIProcess/mac/WKFullScreenWindowController.mm:
  181. (-[WKFullScreenWindowController exitCompositedModeRepaintCompleted]): Call disposeOfLayerClient.
  182. * WebProcess/FullScreen/WebFullScreenManager.h:
  183. (WebKit::WebFullScreenManager::disposeOfLayerClient): Added.
  184. * WebProcess/FullScreen/WebFullScreenManager.messages.in: Added DisposeOfLayerClient.
  185. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.h:
  186. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
  187. (WebKit::WebFullScreenManagerMac::disposeOfLayerClient): Added, invalidates and clears m_rootLayerClient.
  188. 2011-06-01 Adam Roben <aroben@apple.com>
  189. Build fix after r87831
  190. * UIProcess/win/WebView.cpp:
  191. (WebKit::WebView::enterAcceleratedCompositingMode):
  192. (WebKit::WebView::exitAcceleratedCompositingMode):
  193. Added some HAVE(WKQCA) guards.
  194. 2011-06-01 Adam Roben <aroben@apple.com>
  195. Delete a bunch of dead code in DrawingAreaImpl
  196. LayerTreeHost::participatesInDisplay always returns false now, which means a bunch of code
  197. in DrawingAreaImpl no longer runs.
  198. Cleanup after fixing <http://webkit.org/b/58054>
  199. <rdar://problem/9249839> REGRESSION (WebKit2): Accelerated CSS animations have a lower
  200. framerate than in WebKit1
  201. Reviewed by Anders Carlsson.
  202. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  203. (WebKit::DrawingAreaImpl::forceRepaint):
  204. (WebKit::DrawingAreaImpl::layerHostDidFlushLayers):
  205. (WebKit::DrawingAreaImpl::sendDidUpdateBackingStoreState):
  206. (WebKit::DrawingAreaImpl::didUpdate):
  207. (WebKit::DrawingAreaImpl::enterAcceleratedCompositingMode):
  208. (WebKit::DrawingAreaImpl::exitAcceleratedCompositingMode):
  209. (WebKit::DrawingAreaImpl::scheduleDisplay):
  210. (WebKit::DrawingAreaImpl::displayTimerFired):
  211. (WebKit::DrawingAreaImpl::display):
  212. * WebProcess/WebPage/DrawingAreaImpl.h:
  213. * WebProcess/WebPage/LayerTreeHost.h:
  214. Reverted r82959.
  215. 2011-06-01 Adam Roben <aroben@apple.com>
  216. Render accelerated content into a web process-owned child HWND
  217. This allows us to use WKCACFView's far more efficient kWKCACFViewDrawingDestinationWindow
  218. mode, which gives us asynchronous rendering on a background thread and doesn't require us to
  219. read bits off the GPU back into system memory.
  220. A new class, WKCACFViewWindow, represents the child HWND. The child HWND is placed at the
  221. bottom of the z-order so it won't obscure any other child HWNDs (i.e., windowed plugins).
  222. The child HWND is made transparent to mouse events so that WKView will continue to receive
  223. mouse events even though it is obscured by the child HWND.
  224. There is now a bunch of dead code in DrawingAreaImpl to handle our old rendering model. I'll
  225. remove that in a future patch.
  226. Fixes <http://webkit.org/b/58054> <rdar://problem/9249839> REGRESSION (WebKit2): Accelerated
  227. CSS animations have a lower framerate than in WebKit1
  228. Reviewed by Anders Carlsson.
  229. * Shared/LayerTreeContext.h: Added HWND member on Windows.
  230. * Shared/win/CoalescedWindowGeometriesUpdater.cpp:
  231. (WebKit::CoalescedWindowGeometriesUpdater::updateGeometries):
  232. * Shared/win/CoalescedWindowGeometriesUpdater.h:
  233. Added new BringToTopOrNot argument. Allows the caller to specify that all windows being
  234. updated should also be brought to the top of the z-order.
  235. * Shared/win/LayerTreeContextWin.cpp:
  236. (WebKit::LayerTreeContext::LayerTreeContext):
  237. (WebKit::LayerTreeContext::~LayerTreeContext):
  238. (WebKit::LayerTreeContext::encode):
  239. (WebKit::LayerTreeContext::decode):
  240. (WebKit::LayerTreeContext::isEmpty):
  241. (WebKit::operator==):
  242. Implemented based on new window member.
  243. * UIProcess/win/WebView.cpp:
  244. (WebKit::WebView::WebView): Initialize new member.
  245. (WebKit::WebView::onSizeEvent): Resize the layer host window to cover our entire view, if we
  246. have one.
  247. (WebKit::WebView::enterAcceleratedCompositingMode): Store, position, and show the layer host
  248. window.
  249. (WebKit::WebView::exitAcceleratedCompositingMode): Destroy the layer host window.
  250. (WebKit::WebView::updateChildWindowGeometries): Updated for change to
  251. CoalescedWindowGeometriesUpdater.
  252. * UIProcess/win/WebView.h: Added m_layerHostWindow member.
  253. * WebProcess/WebPage/LayerTreeHost.h: Added scheduleChildWindowGeometryUpdate.
  254. * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.cpp:
  255. (WebKit::LayerTreeHostCAWin::supportsAcceleratedCompositing): Simplified by using
  256. WKCACFViewWindow.
  257. (WebKit::LayerTreeHostCAWin::LayerTreeHostCAWin): Removed initialization of a removed
  258. member.
  259. (WebKit::LayerTreeHostCAWin::platformInitialize): Changed to use WKCACFViewWindow,
  260. kWKCACFViewDrawingDestinationWindow, and to initialize the LayerTreeContext.
  261. (WebKit::LayerTreeHostCAWin::invalidate): Leak our window and tell it to clean up after
  262. itself. The UI process will take care of destroying the window when it finishes switching
  263. out of accelerated compositing mode. Removed a WKCACFViewUpdate call that is now handled by
  264. WKCACFViewWindow.
  265. (WebKit::LayerTreeHostCAWin::scheduleChildWindowGeometryUpdate): Added. Calls through to
  266. m_geometriesUpdater.
  267. (WebKit::LayerTreeHostCAWin::sizeDidChange): Updated to use WKCACFViewWindow.
  268. (WebKit::LayerTreeHostCAWin::contextDidChange): Update child window geometries now to keep
  269. them (almost) in sync with the accelerated content. <http://webkit.org/b/61867> covers the
  270. slight asynchrony that still exists.
  271. (WebKit::LayerTreeHostCAWin::setRootCompositingLayer): Don't flush any changes when we don't
  272. have a root layer. This prevents a flash of white when switching out of compositing mode.
  273. * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.h: Added m_window and m_geometriesUpdater.
  274. Removed code related to the old, synchronous display model.
  275. * WebProcess/WebPage/ca/win/WKCACFViewWindow.cpp: Added.
  276. (WebKit::WKCACFViewWindow::WKCACFViewWindow): Initialize members and create our window.
  277. (WebKit::WKCACFViewWindow::~WKCACFViewWindow): Destroy our window if needed.
  278. (WebKit::WKCACFViewWindow::onCustomDestroy): Just call ::DestroyWindow.
  279. (WebKit::WKCACFViewWindow::onDestroy): Tell our view not to render into our window anymore.
  280. (WebKit::WKCACFViewWindow::onEraseBackground): Tell Windows not to erase us.
  281. (WebKit::WKCACFViewWindow::onNCDestroy): Clear out m_window since it's now pointing to a
  282. destroy window, and destroy ourselves if requested.
  283. (WebKit::WKCACFViewWindow::onPaint): Tell the view to draw, then clear our invalid region.
  284. (WebKit::WKCACFViewWindow::onPrintClient): Tell our view to draw into the given HDC.
  285. (WebKit::WKCACFViewWindow::registerClass): Register our class (duh).
  286. (WebKit::WKCACFViewWindow::staticWndProc): Get the WKCACFViewWindow pointer, or store the
  287. pointer if needed, then call through to wndProc.
  288. (WebKit::WKCACFViewWindow::wndProc): Call out to the appropriate handler function.
  289. * WebProcess/WebPage/ca/win/WKCACFViewWindow.h: Added.
  290. (WebKit::WKCACFViewWindow::setDeletesSelfWhenWindowDestroyed): Simple setter.
  291. (WebKit::WKCACFViewWindow::window): Simple getter.
  292. * WebProcess/WebPage/win/DrawingAreaImplWin.cpp:
  293. (WebKit::DrawingAreaImpl::scheduleChildWindowGeometryUpdate): Let the LayerTreeHost handle
  294. the geometry update, if we have one.
  295. * win/WebKit2.vcproj: Added WKCACFViewWindow files.
  296. 2011-06-01 Adam Roben <aroben@apple.com>
  297. Route plugin window geometry updates through the DrawingArea
  298. This will allow the geometry updates to be handled by the LayerTreeHost in compositing mode
  299. in the future.
  300. More rep work for <http://webkit.org/b/58054> <rdar://problem/9249839> REGRESSION (WebKit2):
  301. Accelerated CSS animations have a lower framerate than in WebKit1
  302. Reviewed by Anders Carlsson.
  303. * WebProcess/Plugins/PluginView.cpp:
  304. (WebKit::PluginView::scheduleWindowedPluginGeometryUpdate): Tell the DrawingArea, not the
  305. WebPage, about the geometry update.
  306. * WebProcess/WebPage/DrawingArea.h:
  307. * WebProcess/WebPage/DrawingAreaImpl.h:
  308. * WebProcess/WebPage/win/DrawingAreaImplWin.cpp: Added.
  309. (WebKit::DrawingAreaImpl::scheduleChildWindowGeometryUpdate):
  310. Moved code here...
  311. * WebProcess/WebPage/WebPage.h:
  312. * WebProcess/WebPage/win/WebPageWin.cpp:
  313. ...from here.
  314. * win/WebKit2.vcproj: Added DrawingAreaImplWin.cpp.
  315. 2011-06-01 Adam Roben <aroben@apple.com>
  316. Move WebView's window geometry updating code to a new class
  317. This will allow us to share this code with LayerTreeHostCAWin.
  318. Prep work for <http://webkit.org/b/58054> <rdar://problem/9249839> REGRESSION (WebKit2):
  319. Accelerated CSS animations have a lower framerate than in WebKit1
  320. Reviewed by Anders Carlsson.
  321. * Shared/win/CoalescedWindowGeometriesUpdater.cpp: Added.
  322. (WebKit::CoalescedWindowGeometriesUpdater::CoalescedWindowGeometriesUpdater):
  323. (WebKit::CoalescedWindowGeometriesUpdater::~CoalescedWindowGeometriesUpdater):
  324. Simple constructor/destructor.
  325. (WebKit::CoalescedWindowGeometriesUpdater::addPendingUpdate):
  326. (WebKit::setWindowRegion):
  327. (WebKit::CoalescedWindowGeometriesUpdater::updateGeometries):
  328. * Shared/win/CoalescedWindowGeometriesUpdater.h: Added.
  329. Moved code here...
  330. * UIProcess/win/WebView.cpp:
  331. (WebKit::WebView::scheduleChildWindowGeometryUpdate):
  332. (WebKit::WebView::updateChildWindowGeometries):
  333. * UIProcess/win/WebView.h:
  334. ...from here.
  335. * win/WebKit2.vcproj: Added new files.
  336. 2011-06-01 Adam Roben <aroben@apple.com>
  337. Windows build fix after r87755
  338. * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.cpp:
  339. (WebKit::LayerTreeHostCAWin::setLayerFlushSchedulingEnabled): Fixed
  340. typo.
  341. 2011-06-01 Oleg Romashin <romaxa@gmail.com>
  342. Reviewed by Kenneth Rohde Christiansen.
  343. platformGeometryDidChange function definition was changed everywhere except Qt.
  344. This is fix for Qt WK2 plugins compilation
  345. https://bugs.webkit.org/show_bug.cgi?id=61832
  346. * PluginProcess/qt/PluginControllerProxyQt.cpp:
  347. (WebKit::PluginControllerProxy::platformGeometryDidChange):
  348. 2011-05-31 Jer Noble <jer.noble@apple.com>
  349. Reviewed by Darin Adler.
  350. Flash of black at the end of full screen transition at apple.com product videos
  351. https://bugs.webkit.org/show_bug.cgi?id=61756
  352. The @"WebKitLayerHostChanged" notification is causing the QTMovie to tear down its layer
  353. (which is good) at the wrong time (which is bad). Send this notification only after
  354. the dragImage snapshot is taken. This exposed another problem, that the snapshot has
  355. a white background. Set the default background color and transparency for the view (making
  356. sure to reset them afterwards) to transparent.
  357. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
  358. (WebKit::WebFullScreenManagerMac::setRootFullScreenLayer):
  359. 2011-03-30 Martin Robinson <mrobinson@igalia.com>
  360. Reviewed by Adam Roben.
  361. [GTK] [WebKit2] Implement a basic WebKitTestRunner
  362. https://bugs.webkit.org/show_bug.cgi?id=57068
  363. Added InjectedBundle support for GTK+.
  364. * WebProcess/InjectedBundle/InjectedBundle.h: Added typedef for GTK+.
  365. * WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp: Added implementation.
  366. (WebKit::InjectedBundle::load):
  367. (WebKit::InjectedBundle::activateMacFontAscentHack):
  368. * WebProcess/WebPage/gtk/WebPageGtk.cpp: Remove unnecessary method definition.
  369. 2011-05-31 Dan Bernstein <mitz@apple.com>
  370. Reviewed by Simon Fraser.
  371. <rdar://problem/9523192> REGRESSION (5.0.5-ToT, WebKit2): Flash to white when navigating between pages on wsj.com, other sites (when navigating away from composited page)
  372. https://bugs.webkit.org/show_bug.cgi?id=61808
  373. WebKit1 has a mechanism to prevent the stale bits from the outgoing page from being erased
  374. until the incoming page has layout. Adapt this in WebKit2 to prevent the composited layer tree
  375. of the outgoing page from being torn down or updated until the incoming page has layout.
  376. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  377. (WebKit::WebFrameLoaderClient::dispatchDidFirstLayout): Unfreeze the layer tree state.
  378. (WebKit::WebFrameLoaderClient::frameLoadCompleted): Ditto.
  379. (WebKit::WebFrameLoaderClient::provisionalLoadStarted): Freeze the layer tree state.
  380. * WebProcess/WebPage/DrawingArea.h:
  381. (WebKit::DrawingArea::setLayerTreeStateIsFrozen): Added.
  382. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  383. (WebKit::DrawingAreaImpl::DrawingAreaImpl): Initialize new member variables.
  384. (WebKit::DrawingAreaImpl::setLayerTreeStateIsFrozen): Added. When freezing, sets the flag and
  385. disables layer flush scheduling and exiting accelerated compositing mode. When unfreezing,
  386. clears the flag and exits compositing mode if needed.
  387. (WebKit::DrawingAreaImpl::setRootCompositingLayer): Reset m_wantsToExitAcceleratedCompositingMode.
  388. (WebKit::DrawingAreaImpl::enterAcceleratedCompositingMode): Ditto.
  389. (WebKit::DrawingAreaImpl::exitAcceleratedCompositingMode): Ditto.
  390. (WebKit::DrawingAreaImpl::exitAcceleratedCompositingModeSoon): If the layer tree state is frozen,
  391. bail out but set m_wantsToExitAcceleratedCompositingMode.
  392. * WebProcess/WebPage/DrawingAreaImpl.h:
  393. * WebProcess/WebPage/LayerTreeHost.h:
  394. * WebProcess/WebPage/ca/LayerTreeHostCA.cpp:
  395. (WebKit::LayerTreeHostCA::LayerTreeHostCA): Initialize m_layerFlushSchedulingEnabled.
  396. * WebProcess/WebPage/ca/LayerTreeHostCA.h:
  397. * WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.h:
  398. * WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.mm:
  399. (WebKit::LayerTreeHostCAMac::scheduleLayerFlush): Bail out if scheduling is not enabled.
  400. (WebKit::LayerTreeHostCAMac::setLayerFlushSchedulingEnabled): Added. Sets the flag. If disabling
  401. flushing, cancels the pending flush.
  402. (WebKit::LayerTreeHostCAMac::flushPendingLayerChangesRunLoopObserverCallback): Added an assertion.
  403. * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.cpp:
  404. (WebKit::LayerTreeHostCAWin::scheduleLayerFlush): Bail out if scheduling is not enabled.
  405. (WebKit::LayerTreeHostCAWin::setLayerFlushSchedulingEnabled): Added. Sets the flag. If disabling
  406. flushing, cancels the pending flush.
  407. * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.h:
  408. 2011-05-31 ChangeLog <james.cooley@nokia.com>
  409. Reviewed by Andreas Kling.
  410. [Qt][WK2] Qt port needs test content for QWKHistory
  411. https://bugs.webkit.org/show_bug.cgi?id=57850
  412. Created data-driven QTestLib tests for existing QWKHistory APIs.
  413. This walks through loading four simple pages, navigating
  414. backwards and forwards.
  415. We check the results at each action by creating expected forward/back
  416. lists and comparing those lists in count and membership to those kept by
  417. WebKit and retrieved via the QWKHistory APIs.
  418. * UIProcess/API/qt/tests/html/a.htm: Added.
  419. * UIProcess/API/qt/tests/html/b.htm: Added.
  420. * UIProcess/API/qt/tests/html/c.htm: Added.
  421. * UIProcess/API/qt/tests/html/d.htm: Added.
  422. Four added simple pages
  423. * UIProcess/API/qt/tests/qwkhistory: Added.
  424. * UIProcess/API/qt/tests/qwkhistory/qwkhistory.pro: Added.
  425. Created qwkhistory folder and pro
  426. * UIProcess/API/qt/tests/qwkhistory/tst_qwkhistory.cpp: Added.
  427. (TestHistoryItem::title):
  428. (TestHistoryItem::url):
  429. (TestHistoryItem::TestHistoryItem):
  430. Utility class to hold expected url,title for test
  431. (tst_QWKHistory::initTestCase):
  432. (tst_QWKHistory::historyFBTest_data):
  433. (tst_QWKHistory::historyFBTest):
  434. init, data, and data-driven test case
  435. * UIProcess/API/qt/tests/tests.pro:
  436. Included qwkhistory in tests.pro
  437. 2011-05-30 No'am Rosenthal <noam.rosenthal@nokia.com>
  438. Reviewed by Simon Hausmann.
  439. WebKit2: Enable serializing of data types needed for cross-process accelerated compositing
  440. https://bugs.webkit.org/show_bug.cgi?id=61694
  441. Create an ArgumentCoder for WebCore::Animation.
  442. * Scripts/webkit2/messages.py:
  443. * Shared/WebCoreArgumentCoders.h:
  444. 2011-05-30 No'am Rosenthal <noam.rosenthal@nokia.com>
  445. Reviewed by Simon Hausmann.
  446. WebKit2: Enable serializing of data types needed for cross-process accelerated compositing
  447. https://bugs.webkit.org/show_bug.cgi?id=61694
  448. Add an ArgumentCoder for WebCore::TimingFunction. This serializer can create the appropriate
  449. TimingFunction subclass based on the type of timing function.
  450. * Scripts/webkit2/messages.py:
  451. * Shared/WebCoreArgumentCoders.h:
  452. 2011-05-30 No'am Rosenthal <noam.rosenthal@nokia.com>
  453. Reviewed by Simon Hausmann.
  454. WebKit2: Enable serializing of data types needed for cross-process accelerated compositing
  455. https://bugs.webkit.org/show_bug.cgi?id=61694
  456. Add WebCore::Length and WebCore::TransformationMatrix to the types that use SimpleArgumentCoder.
  457. * Scripts/webkit2/messages.py:
  458. * Shared/WebCoreArgumentCoders.h:
  459. 2011-05-30 Anders Carlsson <andersca@apple.com>
  460. Reviewed by Simon Fraser.
  461. Remove incorrect asserts from PluginProcessConnection
  462. https://bugs.webkit.org/show_bug.cgi?id=61731
  463. There might be pending incoming messages from a PluginProxy even though we've
  464. destroyed the plug-in and removed it from the m_plugins map, so remove the incorrect assertions.
  465. * WebProcess/Plugins/PluginProcessConnection.cpp:
  466. (WebKit::PluginProcessConnection::didReceiveMessage):
  467. (WebKit::PluginProcessConnection::didReceiveSyncMessage):
  468. 2011-05-30 Carlos Garcia Campos <cgarcia@igalia.com>
  469. Reviewed by Martin Robinson.
  470. [GTK] Initial tooltips implementation for WebKit2
  471. https://bugs.webkit.org/show_bug.cgi?id=59318
  472. * UIProcess/API/gtk/PageClientImpl.cpp:
  473. (WebKit::PageClientImpl::toolTipChanged): Update view's tooltip
  474. text.
  475. * UIProcess/API/gtk/WebKitWebViewBase.cpp:
  476. (webkitWebViewBaseQueryTooltip): Implement GtkWidget::query-tooltip.
  477. (webkit_web_view_base_class_init): Override GtkWidget::query-tooltip.
  478. (webkitWebViewBaseSetTooltipText): Update tooltip text and trigger
  479. GtkWidget::query-tooltip.
  480. * UIProcess/API/gtk/WebKitWebViewBasePrivate.h:
  481. 2011-05-30 Carlos Garcia Campos <cgarcia@igalia.com>
  482. Reviewed by Martin Robinson.
  483. [GTK] Remove some unneeded header includes
  484. https://bugs.webkit.org/show_bug.cgi?id=60536
  485. * Platform/CoreIPC/Connection.cpp: Remove WebProcess.h.
  486. * Platform/CoreIPC/unix/ConnectionUnix.cpp: Remove
  487. ProcessLauncher.h and WebProcessProxy.h. Add <wtf/OwnArrayPtr.h>.
  488. * WebProcess/Plugins/Netscape/NPJSObject.cpp: Remove PluginView.h.
  489. 2011-05-29 Darin Adler <darin@apple.com>
  490. Reviewed by Dan Bernstein.
  491. Race condition in full screen controller, which leads to problem when web process crashes
  492. https://bugs.webkit.org/show_bug.cgi?id=61707
  493. Second try at this. First try could lead to a WKView leak.
  494. * UIProcess/mac/WKFullScreenWindowController.h: Added _isExitingAcceleratedCompositingMode.
  495. Needed to track whether we have retained so we don't leak if the page goes away before
  496. we get the callback.
  497. * UIProcess/mac/WKFullScreenWindowController.mm:
  498. (-[WKFullScreenWindowController exitAcceleratedCompositingMode]): Added code to set
  499. the new variable to YES.
  500. (-[WKFullScreenWindowController exitCompositedModeRepaintCompleted]): Added code to
  501. deal with the new boolean and to release.
  502. (exitCompositedModeRepaintCompleted): Removed the release that was here.
  503. (-[WKFullScreenWindowController close]): Added a call to exitCompositedModeRepaintCompleted
  504. here. We're as complete as we'll ever be when we're closed; we can't get the callback
  505. after that point.
  506. 2011-05-29 Sam Weinig <sam@webkit.org>
  507. Reviewed by Anders Carlsson.
  508. REGRESSION (r87637): nytimes.com freezes after going back to it
  509. <rdar://problem/9521928>
  510. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  511. (WebKit::DrawingAreaImpl::forceRepaint):
  512. Add call to setShouldNotifyAfterNextScheduledLayerFlush(false) to prevent a
  513. redundant call to layerHostDidFlushLayers which would cause the layer state
  514. to get out of sync with the UIProcess.
  515. 2011-05-29 Jer Noble <jer.noble@apple.com>
  516. Reviewed by Simon Fraser.
  517. REGRESSION (r86924): webkitRequestFullScreen does not work properly (black screen, can’t interact)
  518. https://bugs.webkit.org/show_bug.cgi?id=61710
  519. When taking the documentElement full screen, we don't create a RenderFullScreen
  520. object and thus never enter accelerated compositing mode for the animation. Tell
  521. the WKFullScreenWindowController to enter accelerated compositing mode anyway
  522. (with an empty layer context) so as to fulfill its expectations and cause the
  523. full screen animation to complete.
  524. * UIProcess/mac/WKFullScreenWindowController.mm:
  525. (-[WKFullScreenWindowController finishedEnterFullScreenAnimation:]): Added a
  526. comment explaining when we expect the animation to complete.
  527. (-[WKFullScreenWindowController enterAcceleratedCompositingMode:WebKit::]):
  528. Remove an ASSERT which is no longer valid.
  529. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
  530. (WebKit::WebFullScreenManagerMac::beginEnterFullScreenAnimation): Tell the UIProcess
  531. to enter then exit full-screen mode.
  532. (WebKit::WebFullScreenManagerMac::beginExitFullScreenAnimation): Ditto.
  533. 2011-05-29 Darin Adler <darin@apple.com>
  534. Reviewed by Dan Bernstein.
  535. Race condition in full screen controller, which leads to problem when web process crashes
  536. https://bugs.webkit.org/show_bug.cgi?id=61707
  537. Saw this while debugging a crash. We don't have a way to make regression tests for this
  538. kind of issue at this time.
  539. * UIProcess/mac/WKFullScreenWindowController.mm:
  540. (-[WKFullScreenWindowController exitAcceleratedCompositingMode]): Retain the controller
  541. here since we are keeping a pointer to it.
  542. (exitCompositedModeRepaintCompleted): Release the controller here.
  543. 2011-05-29 Anders Carlsson <andersca@apple.com>
  544. Reviewed by Darin Adler.
  545. REGRESSION (87637): Entering WebKit Full Screen mode causes an assertion in DrawingAreaImpl::layerHostDidFlushLayers
  546. https://bugs.webkit.org/show_bug.cgi?id=61706
  547. <rdar://problem/9521970>
  548. If we've already let the UI process know that we're in compositing mode, we just need to force a repaint.
  549. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  550. (WebKit::DrawingAreaImpl::forceRepaint):
  551. 2011-05-29 Beth Dakin <bdakin@apple.com>
  552. Reviewed by Darin Adler.
  553. https://bugs.webkit.org/show_bug.cgi?id=61700
  554. Need WebKit2 API to get the size of the render tree
  555. -and corresponding-
  556. <rdar://problem/9512733>
  557. * UIProcess/API/C/WKPage.cpp:
  558. (WKPageGetRenderTreeSize):
  559. * UIProcess/API/C/WKPage.h:
  560. * UIProcess/WebPageProxy.h:
  561. (WebKit::WebPageProxy::renderTreeSize):
  562. (WebKit::WebPageProxy::setRenderTreeSize):
  563. * UIProcess/WebPageProxy.messages.in:
  564. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  565. (WebKit::WebChromeClient::setRenderTreeSize):
  566. * WebProcess/WebCoreSupport/WebChromeClient.h:
  567. 2011-05-29 Darin Adler <darin@apple.com>
  568. Reviewed by Anders Carlsson and Simon Fraser.
  569. <rdar://problem/9519453>
  570. When calling ForceRepaint on a page with accelerated compositing, we can get
  571. a race condition where the UI process paints the old content, resulting in showing
  572. the previous page. That happens because forceRepaint's callback waits for the next
  573. repaint to happen, but nothing notifies UI process that the page is in accelerated
  574. compositing mode.
  575. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  576. (WebKit::DrawingAreaImpl::forceRepaint): Call layerHostDidFlushLayers instead of
  577. just calling forceRepaint on the layer tree host.
  578. 2011-05-28 Simon Fraser <simon.fraser@apple.com>
  579. Reviewed by Dan Bernstein, Maciej Stachowiak.
  580. Denying access to your keychain on login crashes WebKit2
  581. https://bugs.webkit.org/show_bug.cgi?id=61695
  582. <rdar://problem/9520570>
  583. Fix two sources of crashes if you hit the Deny button when WebKit2 is
  584. doing HTTP authentication.
  585. First, SecKeychainItemRequestData::attributeList() failed to initialize the
  586. length and data members of SecKeychainAttributes in the list if there was no data.
  587. This caused invalid memory reads later.
  588. Second, returning a non-zero error from the SecKeychainItemCopyContent shim method
  589. would cause a later crash in a system framework, which is not set up to handle
  590. errors. Instead, we always return noErr, and allow the authentication to fail.
  591. Finally, paranoically initialize the SecKeychainItemContext in two places
  592. to avoid uninitialized data members, and initialize length and outData
  593. to 0 in secKeychainItemCopyContent() in case SecKeychainItemCopyContent()
  594. fails to set them on error.
  595. * Shared/mac/SecKeychainItemRequestData.cpp:
  596. (WebKit::SecKeychainItemRequestData::attributeList):
  597. * UIProcess/mac/WebProcessProxyMac.mm:
  598. (WebKit::WebProcessProxy::secKeychainItemCopyContent):
  599. * WebProcess/mac/KeychainItemShimMethods.mm:
  600. (WebKit::webSecKeychainItemCopyContent):
  601. (WebKit::webSecKeychainItemCreateFromContent):
  602. 2011-05-28 Anders Carlsson <andersca@apple.com>
  603. Reviewed by Dan Bernstein.
  604. REGRESSION (r86578): Flash content missing from mercurynews.com
  605. https://bugs.webkit.org/show_bug.cgi?id=61691
  606. <rdar://problem/9519893>
  607. If the plug-in doesn't have access to the toplevel URL, make sure to
  608. return *something* to the plug-in.
  609. * PluginProcess/PluginControllerProxy.cpp:
  610. (WebKit::PluginControllerProxy::tryToShortCircuitInvoke):
  611. 2011-05-28 Adam Barth <abarth@webkit.org>
  612. Reviewed by Alexey Proskuryakov.
  613. Audit all uses of KURL::prettyURL
  614. https://bugs.webkit.org/show_bug.cgi?id=61201
  615. Update callers of prettyURL to just call string.
  616. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  617. (WebKit::WebFrameLoaderClient::createPlugin):
  618. * WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp:
  619. (WebKit::cancelledError):
  620. (WebKit::blockedError):
  621. 2011-05-27 Stephanie Lewis <slewis@apple.com>
  622. Unreviewed.
  623. Fix a typo in the order_file flag.
  624. * Configurations/Base.xcconfig:
  625. 2011-05-27 Stephanie Lewis <slewis@apple.com>
  626. Rubber Stamped by Adam Roben.
  627. Add Order File. Use -order_file flag since it can order more of the binary.
  628. * Configurations/Base.xcconfig:
  629. * mac/WebKit2.order: Added.
  630. 2011-05-27 Carlos Garcia Campos <cgarcia@igalia.com>
  631. Reviewed by Martin Robinson.
  632. [CAIRO] Don't copy the surface before drawing it into the context in ShareableBitmap::paint()
  633. https://bugs.webkit.org/show_bug.cgi?id=60757
  634. cairo_image_surface_create_for_data() is already a shallow copy of
  635. the image, so we don't need to copy it again.
  636. * Shared/cairo/ShareableBitmapCairo.cpp:
  637. (WebKit::ShareableBitmap::paint):
  638. 2011-05-26 Jeff Miller <jeffm@apple.com>
  639. Reviewed by Alexey Proskuryakov.
  640. Add a key handling logging channel for WebKit2
  641. https://bugs.webkit.org/show_bug.cgi?id=61588
  642. Added a new LogKeyHandling channel, and logged some key events in WebPageProxy.
  643. I also fixed a misspelling of coalescing in a comment in WebPageProxy.cpp.
  644. * Platform/Logging.cpp:
  645. (WebKit::initializeLogChannelsIfNecessary): Initialize LogKeyHandling channel.
  646. * Platform/Logging.h: Added LogKeyHandling channel.
  647. * UIProcess/WebPageProxy.cpp: Fixed misspelling of coalescing in a comment.
  648. (WebKit::webKeyboardEventTypeString): Added to support logging.
  649. (WebKit::WebPageProxy::handleKeyboardEvent): Log the keyboard event.
  650. (WebKit::WebPageProxy::didReceiveEvent): Log the keyboard event.
  651. 2011-05-26 Chris Fleizach <cfleizach@apple.com>
  652. Reviewed by Darin Adler.
  653. Safari's AXFocusedUIElement attribute returns WebArea object with AXSelectedTextMarkerRange of nil
  654. https://bugs.webkit.org/show_bug.cgi?id=61492
  655. The method for determining which WebPage is actually focused and foreground was faulty. More
  656. extensive checks are required to check which WebPage should be returned as the focusable one.
  657. * WebProcess/WebPage/WebPage.cpp:
  658. (WebKit::WebPage::windowIsFocused):
  659. 2011-05-26 Jon Lee <jonlee@apple.com>
  660. Reviewed by Darin Adler.
  661. REGRESSION (5.0.5-Jazz): Transition to full screen video animates in wrong location when scrolled (61559)
  662. https://bugs.webkit.org/show_bug.cgi?id=61559
  663. <rdar://problem/9496054>
  664. The CALayer that gets animated has a position that is offset by the scroll position of the web view. To
  665. fix this, we set the destination location based on the rect of the full screen, and add a position
  666. animation which keeps the position of the layer centered. This prevents glitches if others
  667. are trying to change the layer position while the animation is running.
  668. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.h: Refactor the calculation of the CALayer windowed
  669. position into a private helper function, as well as the animation setup.
  670. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
  671. (WebKit::WebFullScreenManagerMac::beginEnterFullScreenAnimation):
  672. (WebKit::WebFullScreenManagerMac::beginExitFullScreenAnimation):
  673. (WebKit::WebFullScreenManagerMac::animateFullScreen): Sets up the zoom animation, and the position offset
  674. animation.
  675. (WebKit::WebFullScreenManagerMac::windowedCGTransform): Calculates the placement of the windowed layer
  676. in screen coordinates.
  677. 2011-05-26 Qi Zhang <qi.2.zhang@nokia.com>
  678. Reviewed by Andreas Kling.
  679. WebKitTestRunner needs layoutTestController.setAuthorAndUserStylesEnabled
  680. https://bugs.webkit.org/show_bug.cgi?id=42676
  681. Implemented layoutTestController.setAuthorAndUserStylesEnabled for WebKitTestRunner.
  682. * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
  683. (WKBundleSetAuthorAndUserStylesEnabled):
  684. * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  685. * WebProcess/InjectedBundle/InjectedBundle.cpp:
  686. (WebKit::InjectedBundle::setAuthorAndUserStylesEnabled):
  687. * WebProcess/InjectedBundle/InjectedBundle.h:
  688. 2011-05-25 Brian Weinstein <bweinstein@apple.com>
  689. Reviewed by Adam Roben.
  690. WebKit2: Status bar, toolbar, and menu bar checks should be in the injected bundle
  691. https://bugs.webkit.org/show_bug.cgi?id=61474
  692. <rdar://problem/9468337>
  693. * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
  694. * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
  695. (WebKit::InjectedBundlePageUIClient::statusBarIsVisible): Call the function on the client
  696. if it exists.
  697. (WebKit::InjectedBundlePageUIClient::menuBarIsVisible): Ditto.
  698. (WebKit::InjectedBundlePageUIClient::toolbarsAreVisible): Ditto.
  699. * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
  700. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  701. (WebKit::WebChromeClient::statusbarVisible): Add a possible short-circuit in the injected bundle.
  702. (WebKit::WebChromeClient::menubarVisible): Ditto.
  703. (WebKit::WebChromeClient::toolbarsVisible): Ditto.
  704. 2011-05-26 Steve Falkenburg <sfalken@apple.com>
  705. Reviewed by Adam Roben.
  706. WebKit2 bundle missing localization subdirectories
  707. https://bugs.webkit.org/show_bug.cgi?id=61512
  708. Better fix for this. We just need to specify CFBundleAllowMixedLocalizations.
  709. * win/WebKit2WebProcess.resources/English.lproj: Removed.
  710. * win/WebKit2WebProcess.resources/Info.plist:
  711. * win/WebKit2WebProcess.resources/da.lproj: Removed.
  712. * win/WebKit2WebProcess.resources/de.lproj: Removed.
  713. * win/WebKit2WebProcess.resources/es.lproj: Removed.
  714. * win/WebKit2WebProcess.resources/fi.lproj: Removed.
  715. * win/WebKit2WebProcess.resources/fr.lproj: Removed.
  716. * win/WebKit2WebProcess.resources/it.lproj: Removed.
  717. * win/WebKit2WebProcess.resources/ja.lproj: Removed.
  718. * win/WebKit2WebProcess.resources/ko.lproj: Removed.
  719. * win/WebKit2WebProcess.resources/nb.lproj: Removed.
  720. * win/WebKit2WebProcess.resources/nl.lproj: Removed.
  721. * win/WebKit2WebProcess.resources/pl.lproj: Removed.
  722. * win/WebKit2WebProcess.resources/pt.lproj: Removed.
  723. * win/WebKit2WebProcess.resources/pt_PT.lproj: Removed.
  724. * win/WebKit2WebProcess.resources/ru.lproj: Removed.
  725. * win/WebKit2WebProcess.resources/sv.lproj: Removed.
  726. * win/WebKit2WebProcess.resources/zh_CN.lproj: Removed.
  727. * win/WebKit2WebProcess.resources/zh_TW.lproj: Removed.
  728. 2011-05-26 Steve Falkenburg <sfalken@apple.com>
  729. Reviewed by Adam Roben.
  730. WebKit2 bundle missing localization subdirectories
  731. https://bugs.webkit.org/show_bug.cgi?id=61512
  732. <rdar://problem/9498607>
  733. These lproj directories are intentionally left empty.
  734. Their presence indicates that this exe is localized to this
  735. set of languages.
  736. * win/WebKit2WebProcess.resources/English.lproj: Added.
  737. * win/WebKit2WebProcess.resources/da.lproj: Added.
  738. * win/WebKit2WebProcess.resources/de.lproj: Added.
  739. * win/WebKit2WebProcess.resources/es.lproj: Added.
  740. * win/WebKit2WebProcess.resources/fi.lproj: Added.
  741. * win/WebKit2WebProcess.resources/fr.lproj: Added.
  742. * win/WebKit2WebProcess.resources/it.lproj: Added.
  743. * win/WebKit2WebProcess.resources/ja.lproj: Added.
  744. * win/WebKit2WebProcess.resources/ko.lproj: Added.
  745. * win/WebKit2WebProcess.resources/nb.lproj: Added.
  746. * win/WebKit2WebProcess.resources/nl.lproj: Added.
  747. * win/WebKit2WebProcess.resources/pl.lproj: Added.
  748. * win/WebKit2WebProcess.resources/pt.lproj: Added.
  749. * win/WebKit2WebProcess.resources/pt_PT.lproj: Added.
  750. * win/WebKit2WebProcess.resources/ru.lproj: Added.
  751. * win/WebKit2WebProcess.resources/sv.lproj: Added.
  752. * win/WebKit2WebProcess.resources/zh_CN.lproj: Added.
  753. * win/WebKit2WebProcess.resources/zh_TW.lproj: Added.
  754. * win/WebKit2WebProcessPostBuild.cmd: Copy entire resources directory, exclude .svn directories.
  755. * win/xcopy.excludes: Added. Excludes .svn directories.
  756. 2011-05-25 Qi Zhang <qi.2.zhang@nokia.com>
  757. Reviewed by Simon Hausmann.
  758. WebKitTestRunner needs layoutTestController.setPrivateBrowsingEnabled
  759. https://bugs.webkit.org/show_bug.cgi?id=42697
  760. Implemented layoutTestController.setPrivateBrowsingEnabled for WebKitTestRunner.
  761. * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
  762. (WKBundleSetPrivateBrowsingEnabled):
  763. * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  764. * WebProcess/InjectedBundle/InjectedBundle.cpp:
  765. (WebKit::InjectedBundle::setPrivateBrowsingEnabled):
  766. * WebProcess/InjectedBundle/InjectedBundle.h:
  767. 2011-05-25 Mark Rowe <mrowe@apple.com>
  768. Reviewed by Sam Weinig.
  769. <rdar://problem/9504058> Need some way to query user gesture state from injected bundle
  770. Add WKBundleIsProcessingUserGesture.
  771. * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
  772. (WKBundleIsPageBoxVisible):
  773. (WKBundleIsProcessingUserGesture):
  774. * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  775. * WebProcess/InjectedBundle/InjectedBundle.cpp:
  776. (WebKit::InjectedBundle::isProcessingUserGesture):
  777. * WebProcess/InjectedBundle/InjectedBundle.h:
  778. 2011-05-24 Jer Noble <jer.noble@apple.com>
  779. Reviewed by Darin Adler.
  780. Video fails to play on Vimeo
  781. https://bugs.webkit.org/show_bug.cgi?id=61403
  782. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  783. (InitWebCoreSystemInterface): Added support for wkAVAssetResolvedURL and
  784. wkQTMovieResolvedURL.
  785. 2011-05-25 Jon Honeycutt <jhoneycutt@apple.com>
  786. REGRESSION (WebKit2): Crash in Flash on USA Today photo gallery
  787. https://bugs.webkit.org/show_bug.cgi?id=61428
  788. <rdar://problem/9457006>
  789. Reviewed by Adam Roben.
  790. The crash occurs when Flash posts a message to a window that it
  791. creates, and in processing the message, it calls NPN_Evaluate to
  792. evaluate JavaScript that removes the plug-in from the page. Flash then
  793. crashes when we return to Flash code.
  794. * Platform/WorkItem.h:
  795. (DerefWorkItem::DerefWorkItem):
  796. Initialize m_ptr.
  797. (DerefWorkItem::execute):
  798. Deref the object.
  799. (WorkItem::createDeref):
  800. Create and return a DerefWorkItem.
  801. * WebProcess/Plugins/PluginView.cpp:
  802. (WebKit::PluginView::unprotectPluginFromDestruction):
  803. If the PluginView has only one reference left, deref it asynchronously.
  804. 2011-05-25 Dan Bernstein <mitz@apple.com>
  805. Reviewed by Anders Carlsson.
  806. <rdar://problem/9496795> REGRESSION (r86851): Plug-ins disappear when scrolled with non-1 page scale
  807. https://bugs.webkit.org/show_bug.cgi?id=61448
  808. * WebProcess/Plugins/PluginView.cpp:
  809. (WebKit::PluginView::clipRectInWindowCoordinates): Correct for page scale
  810. after intersecting the two rectangles.
  811. 2011-05-24 Timothy Hatcher <timothy@apple.com>
  812. Make the Web Inspector bring the right window to the front when docked.
  813. rdar://problem/9464685
  814. https://webkit.org/b/61420
  815. Reviewed by Brian Weinstein.
  816. * UIProcess/mac/WebInspectorProxyMac.mm:
  817. (WebKit::WebInspectorProxy::platformBringToFront): Order front the parent window of the Inspector's WKView.
  818. * UIProcess/win/WebInspectorProxyWin.cpp:
  819. (WebKit::WebInspectorProxy::platformBringToFront): Ditto.
  820. 2011-05-24 Keishi Hattori <keishi@webkit.org>
  821. Reviewed by Kent Tamura.
  822. Disable textfield implementation of <input type=color>. Add INPUT_COLOR feature flag. Add input color sanitizer.
  823. https://bugs.webkit.org/show_bug.cgi?id=61273
  824. * Configurations/FeatureDefines.xcconfig: Added INPUT_COLOR feature flag.
  825. 2011-05-24 Maciej Stachowiak <mjs@apple.com>
  826. Reviewed by Dan Bernstein.
  827. Update the WebProcess sandbox exceptions to silence warnings for a file that is accessed uselessly
  828. https://bugs.webkit.org/show_bug.cgi?id=61349
  829. <rdar://problem/9476255>
  830. * WebProcess/com.apple.WebProcess.sb:
  831. 2011-05-24 Mark Rowe <mrowe@apple.com>
  832. Fix the 32-bit build.
  833. Explicitly use uint32_t when encoding / decoding a type that is a typedef of OSType,
  834. as this is declared as different underlying types in 32- and 64-bit (unsigned long
  835. vs unsigned int).
  836. * Shared/mac/KeychainAttribute.cpp:
  837. (CoreIPC::encode):
  838. (CoreIPC::decode):
  839. 2011-05-24 Sam Weinig <sam@webkit.org>
  840. Reviewed by Maciej Stachowiak.
  841. Enable coalesced wheel events
  842. <rdar://problem/9444786>
  843. * UIProcess/WebPageProxy.cpp:
  844. Flip the switch for coalescing wheel events rather than dropping them.
  845. 2011-05-24 Sam Weinig <sam@webkit.org>
  846. Reviewed by Maciej Stachowiak.
  847. Additional sandbox extension required for quarantine database
  848. <rdar://problem/9397494>
  849. https://bugs.webkit.org/show_bug.cgi?id=61405
  850. * WebProcess/com.apple.WebProcess.sb:
  851. Add read-data access for ~/Library/Preferences.
  852. 2011-05-24 Michael Saboff <msaboff@apple.com>
  853. Reviewed by Geoffrey Garen.
  854. Improve handling in WebCore of low memory situations
  855. https://bugs.webkit.org/show_bug.cgi?id=61222
  856. Added call to enable memory pressure handling for Mac case.
  857. * WebProcess/WebProcess.cpp:
  858. (WebKit::WebProcess::initializeWebProcess):
  859. * WebProcess/WebProcess.h:
  860. * WebProcess/mac/WebProcessMac.mm:
  861. (WebKit::WebProcess::platformInitializeWebProcess):
  862. 2011-05-24 Brady Eidson <beidson@apple.com>
  863. Reviewed by Darin Adler.
  864. Part of <rdar://problem/9434311> and https://bugs.webkit.org/show_bug.cgi?id=61334
  865. Should shim a few SecKeychainItem* methods on SnowLeopard
  866. Initialize the KeychainItem shim on SnowLeopard:
  867. * WebProcess/mac/WebProcessMac.mm:
  868. (WebKit::WebProcess::initializeShim):
  869. On SnowLeopard, shim the 4 SecKeychainItem methods:
  870. * WebProcess/mac/WebProcessShim.h:
  871. * WebProcess/mac/WebProcessShim.mm:
  872. (WebKit::shimSecKeychainItemCopyContent):
  873. (WebKit::shimSecKeychainItemCreateFromContent):
  874. (WebKit::shimSecKeychainItemModifyContent):
  875. (WebKit::shimSecKeychainItemFreeContent):
  876. (WebKit::WebKitWebProcessKeychainItemShimInitialize):
  877. * WebProcess/mac/KeychainItemShimMethods.h: Added.
  878. * WebProcess/mac/KeychainItemShimMethods.mm: Added.
  879. Manage a set of shim-controlled AttributeList data:
  880. (WebKit::shimManagedAttributeLists):
  881. (WebKit::freeAttributeListContents):
  882. (WebKit::allocateAttributeListContents):
  883. Manage a set of shim-controlled KeychainItem data:
  884. (WebKit::shimManagedKeychainItemContents):
  885. (WebKit::allocateKeychainItemContentData):
  886. Free any shim-controlled AttributeList or KeychainItem data:
  887. (WebKit::webFreeAttributeListContentOnMainThread):
  888. (WebKit::webFreeAttributeListContent):
  889. (WebKit::webFreeKeychainItemContentOnMainThread):
  890. (WebKit::webFreeKeychainItemContent):
  891. Marshall these 3 KeychainItem methods to the UIProcess:
  892. (WebKit::webSecKeychainItemCopyContentOnMainThread):
  893. (WebKit::webSecKeychainItemCopyContent):
  894. (WebKit::webSecKeychainItemCreateFromContentOnMainThread):
  895. (WebKit::webSecKeychainItemCreateFromContent):
  896. (WebKit::webSecKeychainItemModifyContentOnMainThread):
  897. (WebKit::webSecKeychainItemModifyContent):
  898. (WebKit::initializeKeychainItemShim):
  899. Container for an AttributeList entry that knows how to encode/decode:
  900. * Shared/mac/KeychainAttribute.cpp: Added.
  901. (WebKit::KeychainAttribute::KeychainAttribute):
  902. (CoreIPC::encode):
  903. (CoreIPC::decode):
  904. * Shared/mac/KeychainAttribute.h: Added.
  905. Container for the relevant arguments to the shimmed methods, to send to the UIProcess:
  906. * Shared/mac/SecKeychainItemRequestData.cpp: Added.
  907. (WebKit::SecKeychainItemRequestData::SecKeychainItemRequestData):
  908. (WebKit::SecKeychainItemRequestData::initializeWithAttributeList):
  909. (WebKit::SecKeychainItemRequestData::~SecKeychainItemRequestData):
  910. (WebKit::SecKeychainItemRequestData::attributeList):
  911. (WebKit::SecKeychainItemRequestData::encode):
  912. (WebKit::SecKeychainItemRequestData::decode):
  913. * Shared/mac/SecKeychainItemRequestData.h: Added.
  914. (WebKit::SecKeychainItemRequestData::keychainItem):
  915. (WebKit::SecKeychainItemRequestData::itemClass):
  916. (WebKit::SecKeychainItemRequestData::length):
  917. (WebKit::SecKeychainItemRequestData::data):
  918. Container for the possible output from the shimmed methods, to send back to the WebProcess:
  919. * Shared/mac/SecKeychainItemResponseData.cpp: Added.
  920. (WebKit::SecKeychainItemResponseData::SecKeychainItemResponseData):
  921. (WebKit::SecKeychainItemResponseData::encode):
  922. (WebKit::SecKeychainItemResponseData::decode):
  923. * Shared/mac/SecKeychainItemResponseData.h: Added.
  924. (WebKit::SecKeychainItemResponseData::itemClass):
  925. (WebKit::SecKeychainItemResponseData::data):
  926. (WebKit::SecKeychainItemResponseData::resultCode):
  927. (WebKit::SecKeychainItemResponseData::attributes):
  928. (WebKit::SecKeychainItemResponseData::keychainItem):
  929. Actually implement the calls to the SecKeychainItem* methods in the UIProcess:
  930. * UIProcess/WebProcessProxy.h:
  931. * UIProcess/WebProcessProxy.messages.in:
  932. * UIProcess/mac/WebProcessProxyMac.mm:
  933. (WebKit::WebProcessProxy::secKeychainItemCopyContent):
  934. (WebKit::WebProcessProxy::secKeychainItemCreateFromContent):
  935. (WebKit::WebProcessProxy::secKeychainItemModifyContent):
  936. * WebKit2.xcodeproj/project.pbxproj: Project file stuff
  937. * Configurations/Shim.xcconfig:
  938. 2011-05-24 Jay Civelli <jcivelli@chromium.org>
  939. Rubberstamped by David Kilzer.
  940. Updated some files that I forgot in my previous MHTML CL.
  941. * Configurations/FeatureDefines.xcconfig:
  942. 2011-05-24 Sam Weinig <sam@webkit.org>
  943. Clean up after Geoff and fix the WebKit2 build.
  944. * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.h:
  945. 2011-05-24 Adam Roben <aroben@apple.com>
  946. Invalidate JSNPObjects when they are finalized
  947. This will cause the underlying NPObject to be released at finalization time, rather than at
  948. destruction time (which is unpredictable and could occur after the plugin has been
  949. unloaded).
  950. Test: plugins/npobject-js-wrapper-destroyed-after-plugin-unload.html
  951. Fixes <http://webkit.org/b/61316> <rdar://problem/9489824> Crash in deallocateNPObject when
  952. reloading yahoo.com webarchive in WebKit2
  953. Reviewed by Oliver Hunt.
  954. * WebProcess/Plugins/Netscape/JSNPObject.cpp:
  955. (WebKit::JSNPObject::~JSNPObject): Assert that we've already been invalidated, rather than
  956. trying to perform invalidation now (when the plugin might already be unloaded).
  957. * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
  958. (WebKit::NPRuntimeObjectMap::getOrCreateJSObject):
  959. (WebKit::NPRuntimeObjectMap::invalidate):
  960. Updated for m_jsNPObjects type change.
  961. (WebKit::NPRuntimeObjectMap::finalize): Added. Invalidates the JSNPObject and removes it
  962. from the map.
  963. * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.h: Now inherits from WeakHandleOwner.
  964. Changed m_jsNPObjects from a WeakGCMap to a HashMap of JSC::Weak objects so that we will be
  965. notified when the JSNPObjects are finalized.
  966. 2011-05-24 Qi Zhang <qi.2.zhang@nokia.com>
  967. Reviewed by Adam Roben.
  968. WebKitTestRunner needs layoutTestController.setJavaScriptCanAccessClipboard
  969. https://bugs.webkit.org/show_bug.cgi?id=42669
  970. Fixes a typo issue for patch 94265.
  971. * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
  972. (WKBundleSetJavaScriptCanAccessClipboard):
  973. 2011-05-24 Sam Weinig <sam@webkit.org>
  974. Reviewed by John Sullivan.
  975. WebKit tells client that the page has become unresponsive while the beforeUnloadConfirm dialog is up
  976. https://bugs.webkit.org/show_bug.cgi?id=61372
  977. * UIProcess/WebPageProxy.cpp:
  978. (WebKit::WebPageProxy::runBeforeUnloadConfirmPanel):
  979. Stop the unresponsiveness timer like we do for other client functions that spin a
  980. runloop.
  981. 2011-05-24 Andreas Kling <kling@webkit.org>
  982. Reviewed by Simon Hausmann.
  983. [WK2] Change TiledDrawingArea to use ShareableBitmap instead of UpdateChunk.
  984. https://bugs.webkit.org/show_bug.cgi?id=61296
  985. Pass UpdateInfo containing ShareableBitmaps instead of UpdateChunk for tile updates.
  986. Only the bounds rect and bitmap handle in the UpdateInfo are used since none of the
  987. other parameters are needed for TiledDrawingArea.
  988. * Shared/ShareableBitmap.h:
  989. * Shared/qt/ShareableBitmapQt.cpp:
  990. (WebKit::ShareableBitmap::createQImage):
  991. (WebKit::ShareableBitmap::createGraphicsContext):
  992. (WebKit::ShareableBitmap::paint):
  993. * Shared/qt/UpdateChunk.cpp: Removed.
  994. * Shared/qt/UpdateChunk.h: Removed.
  995. * UIProcess/TiledDrawingAreaProxy.cpp:
  996. (WebKit::TiledDrawingAreaProxy::didReceiveMessage):
  997. (WebKit::TiledDrawingAreaProxy::waitUntilUpdatesComplete):
  998. * UIProcess/TiledDrawingAreaProxy.h:
  999. * UIProcess/TiledDrawingAreaTile.h:
  1000. * UIProcess/qt/TiledDrawingAreaProxyQt.cpp:
  1001. (WebKit::TiledDrawingAreaProxy::snapshotTaken):
  1002. * UIProcess/qt/TiledDrawingAreaTileQt.cpp:
  1003. (WebKit::TiledDrawingAreaTile::incorporateUpdate):
  1004. * WebKit2.pro:
  1005. * WebProcess/WebPage/TiledDrawingArea.cpp:
  1006. (WebKit::TiledDrawingArea::updateTile):
  1007. (WebKit::TiledDrawingArea::didReceiveMessage):
  1008. * WebProcess/WebPage/TiledDrawingArea.h:
  1009. * WebProcess/WebPage/qt/TiledDrawingAreaQt.cpp:
  1010. (WebKit::TiledDrawingArea::paintIntoBitmap):
  1011. 2011-05-24 Brady Eidson <beidson@apple.com>
  1012. Build fix after r87153
  1013. * WebProcess/mac/SecItemShimMethods.mm: Don't compile this code on SnowLeopard.
  1014. 2011-05-23 Brady Eidson <beidson@apple.com>
  1015. Reviewed by Sam Weinig.
  1016. Part of <rdar://problem/9434311> and https://bugs.webkit.org/show_bug.cgi?id=61334
  1017. Should shim a few SecKeychainItem* methods on SnowLeopard
  1018. In preparation for different WebProcess shims depending on platform, move the current
  1019. shim to its own files.
  1020. * WebKit2.xcodeproj/project.pbxproj:
  1021. * WebProcess/mac/WebProcessMac.mm:
  1022. (WebKit::WebProcess::initializeShim): For non-SnowLeopard platforms, call initializeSecItemShim().
  1023. * WebProcess/mac/SecItemShimMethods.h: Added.
  1024. * WebProcess/mac/SecItemShimMethods.mm: Added. Actual webSecItem* methods moved from WebProcessMac.mm.
  1025. (WebKit::webSecItemCopyMatchingMainThread):
  1026. (WebKit::webSecItemCopyMatching):
  1027. (WebKit::webSecItemAddOnMainThread):
  1028. (WebKit::webSecItemAdd):
  1029. (WebKit::webSecItemUpdateOnMainThread):
  1030. (WebKit::webSecItemUpdate):
  1031. (WebKit::webSecItemDeleteOnMainThread):
  1032. (WebKit::webSecItemDelete):
  1033. (WebKit::initializeSecItemShim): Initialize the callbacks via WebKitWebProcessSecItemShimInitialize
  1034. * WebProcess/mac/WebProcessShim.h:
  1035. * WebProcess/mac/WebProcessShim.mm: Wrap all the actual code here in a !BUILDING_ON_SNOW_LEOPARD block
  1036. (WebKit::shimSecItemCopyMatching):
  1037. (WebKit::shimSecItemAdd):
  1038. (WebKit::shimSecItemUpdate):
  1039. (WebKit::shimSecItemDelete):
  1040. (WebKit::WebKitWebProcessSecItemShimInitialize):
  1041. 2011-05-23 Anders Carlsson <andersca@apple.com>
  1042. Reviewed by Sam Weinig.
  1043. Cap painting to 30fps on Windows
  1044. https://bugs.webkit.org/show_bug.cgi?id=61337
  1045. <rdar://problem/9213388>
  1046. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  1047. (WebKit::DrawingAreaImpl::displayTimerFired):
  1048. 2011-05-23 Jeremy Noble <jer.noble@apple.com>
  1049. Reviewed by Darin Adler.
  1050. REGRESSION (r86990:86992): World leak when all windows closed
  1051. https://bugs.webkit.org/show_bug.cgi?id=61311
  1052. Three interlocking problems:
  1053. 1) Calling [WKView fullScreenController] will create the controller if it doesn't all ready
  1054. exist, so move the closing code into WKView, where we can bail early if there isn't a
  1055. controller.
  1056. 2) A retain-cycle exists between WKView and WKFullScreenWindowController. Make sure to break
  1057. the cycle explicitly by clearing the _fullScreenWindowController ivar when closing the
  1058. controller.
  1059. 3) [NSWindowController close] was overridden without calling [super close]. Do that.
  1060. * UIProcess/API/mac/WKView.mm:
  1061. (-[WKView closeFullScreenWindowController]): Moved here from WebFullScreenManagerProxyMac.mm.
  1062. * UIProcess/API/mac/WKViewInternal.h:
  1063. * UIProcess/mac/WKFullScreenWindowController.mm:
  1064. (-[WKFullScreenWindowController close]): Call [super close].
  1065. * UIProcess/mac/WebFullScreenManagerProxyMac.mm:
  1066. (WebKit::WebFullScreenManagerProxy::invalidate):
  1067. 2011-05-20 Jer Noble <jer.noble@apple.com>
  1068. Reviewed by Darin Adler.
  1069. Video looks squished when animating to full screen.
  1070. https://bugs.webkit.org/show_bug.cgi?id=61220
  1071. Instead of scaling between the client sizes of the full-screen element before and after
  1072. entering full-screen, scale between their content boxes. The difference is that the client
  1073. sizes can have different aspect ratios, and thus the animation can end up "squishing" the
  1074. content at one end of the animation. When animating between the two content box sizes, their
  1075. aspect ratios (for the case of video) are equal, so the animation will appear to scale
  1076. smoothly between the two states without "squishing" the content.
  1077. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
  1078. (WebKit::WebFullScreenManagerMac::beginEnterFullScreenAnimation): Set the destination frame
  1079. to be the content box of the current full screen element.
  1080. (WebKit::WebFullScreenManagerMac::beginExitFullScreenAnimation): Ditto.
  1081. 2011-05-23 Sam Weinig <sam@webkit.org>
  1082. Reviewed by Darin Adler.
  1083. Terminating a WebProcess should work even while a page is being closed
  1084. <rdar://problem/8934632>
  1085. https://bugs.webkit.org/show_bug.cgi?id=61299
  1086. * UIProcess/WebPageProxy.cpp:
  1087. (WebKit::WebPageProxy::terminateProcess):
  1088. Change validity check to only check for process validity, since terminating the process of a page that
  1089. is closed or is closing is acceptable behavior.
  1090. 2011-05-23 Jessie Berlin <jberlin@apple.com>
  1091. Reviewed by Darin Adler.
  1092. [Windows] Initial Cookie Accept Policy not set on Deserialized Storage Session.
  1093. https://bugs.webkit.org/show_bug.cgi?id=61255
  1094. * WebProcess/win/WebProcessWin.cpp:
  1095. (WebKit::WebProcess::platformInitializeWebProcess):
  1096. Move the code to set the cookie policy before the early return that is taken when using the
  1097. default storage session from the UI Process.
  1098. Also, remove unnecessary #ifdefs (USE(CFURLSTORAGESESSIONS) is true if USE(CFNETWORK) is
  1099. true) and add a comment explaining the early return.
  1100. 2011-05-23 Qi Zhang <qi.2.zhang@nokia.com>
  1101. Reviewed by Darin Adler.
  1102. WebKitTestRunner needs layoutTestController.setJavaScriptCanAccessClipboard
  1103. https://bugs.webkit.org/show_bug.cgi?id=42669
  1104. Implement setJavaScriptCanAccessClipboard in WebKitTestRunner.
  1105. * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
  1106. (WKBundleSetJavaScriptCanAccessClipboard):
  1107. * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  1108. * WebProcess/InjectedBundle/InjectedBundle.cpp:
  1109. (WebKit::InjectedBundle::setJavaScriptCanAccessClipboard):
  1110. * WebProcess/InjectedBundle/InjectedBundle.h:
  1111. 2011-05-23 Csaba Osztrogonác <ossy@webkit.org>
  1112. [Qt][WK2] Unreviewed trivial fix after r86990.
  1113. * WebKit2.pro: Remove UIProcess/ChunkedUpdateDrawingAreaProxy.h.
  1114. 2011-05-23 Carlos Garcia Campos <cgarcia@igalia.com>
  1115. Unreviewed. Fix WebKit2 GTK build after r86990.
  1116. * GNUmakefile.am: Remove UpdateChunk.cpp and UpdateChunk.h.
  1117. 2011-05-21 John Sullivan <sullivan@apple.com>
  1118. Reviewed by Darin Adler.
  1119. https://bugs.webkit.org/show_bug.cgi?id=61244
  1120. <rdar://problem/9482856>
  1121. Undo operations for a web page linger after page is destroyed
  1122. * UIProcess/WebPageProxy.cpp:
  1123. (WebKit::WebPageProxy::closePage):
  1124. Clear editing commands before telling UI client to close the page (this must be done
  1125. while the page is still in a window so its undo manager can be accessed, so waiting
  1126. for WebPageProxy::close() is too late).
  1127. 2011-05-22 Jeff Miller <jeffm@apple.com>
  1128. Reviewed by Darin Adler.
  1129. Don't call WebKit::initializeLogChannelsIfNecessary if logging is disabled
  1130. https://bugs.webkit.org/show_bug.cgi?id=61249
  1131. * UIProcess/WebContext.cpp:
  1132. (WebKit::WebContext::WebContext): Check #if !LOG_DISABLED, not #ifndef NDEBUG, to decide whether to call WebKit::initializeLogChannelsIfNecessary().
  1133. 2011-05-21 Nancy Piedra <nancy.piedra@nokia.com>
  1134. Reviewed by Andreas Kling.
  1135. [Qt][Symbian] WKStringCopyQString function is not exported
  1136. https://bugs.webkit.org/show_bug.cgi?id=59285
  1137. A few functions were declared twice but without the export macro.
  1138. On Symbian, the linking failed when trying to reference these functions.
  1139. * UIProcess/API/qt/qgraphicswkview.h:
  1140. 2011-05-21 Jeremy Noble <jer.noble@apple.com>
  1141. Reviewed by Eric Carlson.
  1142. WebKit2: fix failing fullscreen/full-screen-remove* tests.
  1143. https://bugs.webkit.org/show_bug.cgi?id=61027
  1144. * WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.cpp:
  1145. (WebKit::InjectedBundlePageFullScreenClient::exitFullScreenForElement): Call the
  1146. exit functions (was calling the enter functions).
  1147. 2011-05-20 Jeremy Noble <jer.noble@apple.com>
  1148. Reviewed by Mark Rowe.
  1149. Crash in WebFullScreenManager::didExitFullScreen when closing a window in Safari.
  1150. https://bugs.webkit.org/show_bug.cgi?id=61228
  1151. Do not attempt to exit full screen if we aren't in full screen to begin with, as the WebProcess
  1152. won't be expecting will/didExitFullScreen notifications.
  1153. * UIProcess/mac/WKFullScreenWindowController.mm:
  1154. (-[WKFullScreenWindowController close]):
  1155. 2011-05-20 Andy Estes <aestes@apple.com>
  1156. Reviewed by Darin Adler.
  1157. WebView loses firstResponder status when entering full-screen mode.
  1158. https://bugs.webkit.org/show_bug.cgi?id=61153
  1159. * UIProcess/mac/WKFullScreenWindowController.mm:
  1160. (-[WKFullScreenWindowController finishedEnterFullScreenAnimation:]): If
  1161. the WebView was a descendant of the browser window's first responder
  1162. when entering full-screen mode, set the full-screen window's first
  1163. responder to that same NSResponder.
  1164. (-[WKFullScreenWindowController beganExitFullScreenAnimation]): Do the
  1165. reverse of what is done in finishedEnterFullScreenAnimation:.
  1166. 2011-05-20 Jeremy Noble <jer.noble@apple.com>
  1167. Reviewed by Maciej Stachowiak.
  1168. WebKit2: Exit full screen mode if the WebProcess crashes.
  1169. https://bugs.webkit.org/show_bug.cgi?id=61151
  1170. If the WebProcess crashes, exit full-screen mode to avoid getting stuck. Move the
  1171. WebFullScreenManagerProxy::invalidate() implementation into the platform-specific
  1172. files, and have them close their respective platform's full-screen window.
  1173. * UIProcess/WebFullScreenManagerProxy.cpp:
  1174. * UIProcess/gtk/WebFullScreenManagerProxyGtk.cpp:
  1175. (WebKit::WebFullScreenManagerProxy::invalidate): Added. Copied from main implementation.
  1176. * UIProcess/mac/WKFullScreenWindowController.h:
  1177. * UIProcess/mac/WKFullScreenWindowController.mm:
  1178. (-[WKFullScreenWindowController close]): Added.
  1179. * UIProcess/mac/WebFullScreenManagerProxyMac.mm:
  1180. (WebKit::WebFullScreenManagerProxy::invalidate): Added.
  1181. * UIProcess/win/WebFullScreenManagerProxyWin.cpp:
  1182. (WebKit::WebFullScreenManagerProxy::invalidate): Added.
  1183. 2011-05-20 Anders Carlsson <andersca@apple.com>
  1184. Reviewed by Dan Bernstein.
  1185. Remove the chunked update drawing area
  1186. https://bugs.webkit.org/show_bug.cgi?id=61216
  1187. The chunked update drawing area is no longer used in any port, so remove all traces of it.
  1188. Qt still uses UpdateChunks for the tiled drawing area so keep the Shared/qt/UpdateChunk.* classes for now.
  1189. * GNUmakefile.am:
  1190. * Shared/DrawingAreaInfo.h:
  1191. * Shared/gtk/UpdateChunk.cpp: Removed.
  1192. * Shared/gtk/UpdateChunk.h: Removed.
  1193. * Shared/mac/UpdateChunk.cpp: Removed.
  1194. * Shared/mac/UpdateChunk.h: Removed.
  1195. * Shared/win/UpdateChunk.cpp: Removed.
  1196. * Shared/win/UpdateChunk.h: Removed.
  1197. * UIProcess/ChunkedUpdateDrawingAreaProxy.cpp: Removed.
  1198. * UIProcess/ChunkedUpdateDrawingAreaProxy.h: Removed.
  1199. * UIProcess/gtk/ChunkedUpdateDrawingAreaProxyGtk.cpp: Removed.
  1200. * UIProcess/mac/ChunkedUpdateDrawingAreaProxyMac.mm: Removed.
  1201. * UIProcess/qt/ChunkedUpdateDrawingAreaProxyQt.cpp: Removed.
  1202. * UIProcess/win/ChunkedUpdateDrawingAreaProxyWin.cpp: Removed.
  1203. * UIProcess/win/WebView.cpp:
  1204. (WebKit::WebView::paint):
  1205. (WebKit::WebView::createDrawingAreaProxy):
  1206. (WebKit::WebView::enterAcceleratedCompositingMode):
  1207. (WebKit::WebView::exitAcceleratedCompositingMode):
  1208. * WebKit2.pro:
  1209. * WebKit2.xcodeproj/project.pbxproj:
  1210. * WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp: Removed.
  1211. * WebProcess/WebPage/ChunkedUpdateDrawingArea.h: Removed.
  1212. * WebProcess/WebPage/DrawingArea.cpp:
  1213. (WebKit::DrawingArea::create):
  1214. * WebProcess/WebPage/mac/ChunkedUpdateDrawingAreaMac.cpp: Removed.
  1215. * WebProcess/WebPage/qt/ChunkedUpdateDrawingAreaQt.cpp: Removed.
  1216. * WebProcess/WebPage/win/ChunkedUpdateDrawingAreaWin.cpp: Removed.
  1217. * win/WebKit2.vcproj:
  1218. 2011-05-20 Matthew Delaney <mdelaney@apple.com>
  1219. Reviewed by Steve Falkenburg.
  1220. Default min DOM Timer interval is not set soon enough for first page to pick it up in WK2
  1221. https://bugs.webkit.org/show_bug.cgi?id=61215
  1222. * WebProcess/WebPage/WebPage.cpp: Simply moving the DOM min timer interval setting to before the first page creation.
  1223. 2011-05-20 Simon Fraser <simon.fraser@apple.com>
  1224. Reviewed by Sam Weinig.
  1225. numberOfActiveAnimations() can include animations from documents in the page cache
  1226. https://bugs.webkit.org/show_bug.cgi?id=53641
  1227. Pass the Frame's document as the one to count animations on.
  1228. * WebProcess/WebPage/WebFrame.cpp:
  1229. (WebKit::WebFrame::numberOfActiveAnimations):
  1230. 2011-05-20 Simon Fraser <simon.fraser@apple.com>
  1231. Reviewed by Sam Weinig.
  1232. WebKitTestRunner needs layoutTestController.pauseTransitionAtTimeOnElementWithId
  1233. https://bugs.webkit.org/show_bug.cgi?id=42550
  1234. Plumb through methods to pause a transition of a given property on an element.
  1235. * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
  1236. (WKBundleFramePauseAnimationOnElementWithId):
  1237. (WKBundleFramePauseTransitionOnElementWithId):
  1238. * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
  1239. * WebProcess/WebPage/WebFrame.cpp:
  1240. (WebKit::WebFrame::pauseTransitionOnElementWithId):
  1241. * WebProcess/WebPage/WebFrame.h:
  1242. 2011-05-20 Sam Weinig <sam@webkit.org>
  1243. Reviewed by Anders Carlsson.
  1244. WebKit2: Media files cannot be saved in the Application Cache due to a sandbox violation
  1245. https://bugs.webkit.org/show_bug.cgi?id=61199
  1246. Instead of using a sandbox extension to give permission to the application cache directory,
  1247. initialize the sandbox with access to it like we do for other databases.
  1248. * Shared/WebProcessCreationParameters.cpp:
  1249. (WebKit::WebProcessCreationParameters::encode):
  1250. (WebKit::WebProcessCreationParameters::decode):
  1251. * Shared/WebProcessCreationParameters.h:
  1252. * UIProcess/WebContext.cpp:
  1253. (WebKit::WebContext::ensureWebProcess):
  1254. * WebProcess/WebProcess.cpp:
  1255. (WebKit::WebProcess::initializeWebProcess):
  1256. * WebProcess/com.apple.WebProcess.sb:
  1257. * WebProcess/mac/WebProcessMac.mm:
  1258. (WebKit::initializeSandbox):
  1259. 2011-05-20 Jer Noble <jer.noble@apple.com>
  1260. Reviewed by Maciej Stachowiak.
  1261. Win: non-full-screen content is briefly seen when entering full-screen mode (and vice versa)
  1262. https://bugs.webkit.org/show_bug.cgi?id=61108
  1263. When the fullScreenController asks us to repaint, make an async repaint request, and when the
  1264. callback is fired, notify the fullScreenController that repaint has completed.
  1265. * UIProcess/win/WebView.cpp:
  1266. (WebKit::fullScreenClientForceRepaintCompleted): Added.
  1267. (WebKit::WebView::fullScreenClientForceRepaint): Added.
  1268. * UIProcess/win/WebView.h:
  1269. 2011-05-19 Adam Roben <aroben@apple.com>
  1270. Don't try to process DownloadProxy messages twice (and robustify code that runs if we do)
  1271. Fixes <http://webkit.org/b/61142> <rdar://problem/9471680> REGRESSION (r86812): Crash
  1272. (preceded by assertion) in fastMalloc when downloading a file
  1273. Reviewed by Darin Adler.
  1274. * Platform/CoreIPC/ArgumentDecoder.cpp:
  1275. (CoreIPC::alignedBufferIsLargeEnoughToContain): Added. This helper function checks that the
  1276. given buffer is large enough to hold |size| bytes (and correctly handles the case where
  1277. we're already at the end or beyond the end of the buffer).
  1278. (CoreIPC::ArgumentDecoder::alignBufferPosition):
  1279. (CoreIPC::ArgumentDecoder::bufferIsLargeEnoughToContain):
  1280. Replaced old code that was vulnerable to underflow with the new helper function.
  1281. * UIProcess/WebProcessProxy.cpp:
  1282. (WebKit::WebProcessProxy::didReceiveSyncMessage): Added back an early return that was
  1283. mistakenly removed in r86812 so that we don't mistakenly pass DownloadProxy messages on to
  1284. a WebPageProxy after we've already handled them.
  1285. 2011-05-19 Jer Noble <jer.noble@apple.com>
  1286. Reviewed by Maciej Stachowiak.
  1287. WebKit2: Flashing when entering and exiting full screen mode
  1288. https://bugs.webkit.org/show_bug.cgi?id=56957
  1289. In the WKFullscreenWindowController, when exiting accelerated compositing mode,
  1290. force a repaint, and don't actually remove the animation layer until the repaint
  1291. completes. Also, move back to parenting the WebView in a layer-backed view, and
  1292. work around the SnowLeopard bug which causes a crash in those situations. We no
  1293. longer need to do a bunch of work in finishedEnterFullScreenAnimation, because
  1294. the animation layer is "hiding" all the drawing happening in the webView underneath.
  1295. In the WebFullScreenManagerMac, when asked to tear down the root layer, instead
  1296. remove all its children, and set its contents to a flattened image of the full
  1297. screen element and its children. This helps patch over the time where everything
  1298. is re-rendering and helps give the appearance of continuousness in the animation.
  1299. * UIProcess/mac/WKFullScreenWindowController.mm:
  1300. (-[WKFullScreenWindowController finishedEnterFullScreenAnimation:]):
  1301. (-[WKFullScreenWindowController beganExitFullScreenAnimation]):
  1302. (-[WKFullScreenWindowController enterAcceleratedCompositingMode:WebKit::]):
  1303. (-[WKFullScreenWindowController exitAcceleratedCompositingMode]):
  1304. (-[WKFullScreenWindowController exitCompositedModeRepaintCompleted]):
  1305. (exitCompositedModeRepaintCompleted):
  1306. (-[WKFullScreenWindowController _page]):
  1307. (-[WKFullScreenWindowController _manager]):
  1308. (-[WKFullScreenWindow initWithContentRect:styleMask:backing:defer:]):
  1309. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
  1310. (WebKit::WebFullScreenManagerMac::setRootFullScreenLayer):
  1311. 2011-05-19 Anders Carlsson <andersca@apple.com>
  1312. Address a review comment by Sam Weinig.
  1313. * UIProcess/WebContext.cpp:
  1314. (WebKit::WebContext::didUpdateHistoryTitle):
  1315. 2011-05-19 Anders Carlsson <andersca@apple.com>
  1316. Reviewed by Sam Weinig.
  1317. Hang UI appears when WebProcess isn't running
  1318. https://bugs.webkit.org/show_bug.cgi?id=61147
  1319. <rdar://problem/9413683>
  1320. This fixes two bugs:
  1321. 1. The HistoryClient related message handlers in WebContext could get invoked for pages that have been closed,
  1322. and thus didn't have any subframes. Since we have a MESSAGE_CHECK that checks that the frame exists, we'd
  1323. mark the currently dispatched message as invalid, which would end up calling Connection::Client::didReceiveInvalidMessage.
  1324. Fix this by checking that the page exists first.
  1325. 2. In the call to WebProcessProxy::didReceiveInvalidMessage we'd first invalidate the CoreIPC connection to make sure
  1326. that we won't get any further messages from this connection. We'd then go ahead and terminate the web process,
  1327. but because we've already invalidated the CoreIPC connection we would never get the Connection::Client::didClose
  1328. callback that would call WebPageProxy::processDidCrash. Fix this by explicitly calling WebProcessProxy::didClose.
  1329. Also, add logging when we receive an invalid message
  1330. * UIProcess/WebContext.cpp:
  1331. (WebKit::WebContext::didNavigateWithNavigationData):
  1332. (WebKit::WebContext::didPerformClientRedirect):
  1333. (WebKit::WebContext::didPerformServerRedirect):
  1334. (WebKit::WebContext::didUpdateHistoryTitle):
  1335. * UIProcess/WebProcessProxy.cpp:
  1336. (WebKit::WebProcessProxy::didReceiveInvalidMessage):
  1337. 2011-05-19 Brian Weinstein <bweinstein@apple.com>
  1338. Reviewed by Adam Roben.
  1339. Crash when detaching Web Inspector when parent is in process of closing.
  1340. https://bugs.webkit.org/show_bug.cgi?id=61141
  1341. <rdar://problem/9470027>
  1342. We were trying to send a WM_SIZE to a window that was in the process of closing. Switch
  1343. to using PostMessage, so the window will finish closing, and then it won't need to
  1344. process the WM_SIZE message anymore.
  1345. * UIProcess/win/WebInspectorProxyWin.cpp:
  1346. (WebKit::WebInspectorProxy::platformAttach): Call PostMessage instead of SendMessage.
  1347. (WebKit::WebInspectorProxy::platformDetach): Ditto.
  1348. 2011-05-19 Robert Hogan <robert@webkit.org>
  1349. Reviewed by Andreas Kling.
  1350. [Qt] Fix plugins/windowless_plugin_paint_test.html
  1351. Call gdk_init_check before gdk_display_get_default().
  1352. If we don't do this, gdk_display_get_default() will hang
  1353. the next time it's called.
  1354. * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
  1355. (WebKit::getPluginDisplay):
  1356. 2011-05-18 Chris Marrin <cmarrin@apple.com>
  1357. Reviewed by Anders Carlsson.
  1358. Plug-ins at YouTube, cnn.com, nytimes vanish when their top/left is scrolled out of view when zoomed
  1359. https://bugs.webkit.org/show_bug.cgi?id=61101
  1360. Scale both bounding boxes sent to m_plugin->geometryDidChange(), not just the frameRect. This fools
  1361. the plugin into thinking it is drawing into an unscaled box with an unscaled view even when scaled.
  1362. * WebProcess/Plugins/PluginView.cpp:
  1363. (WebKit::PluginView::frame):Made this const so it can be used in clipRectInWindowCoordinates()
  1364. (WebKit::PluginView::viewGeometryDidChange):Used IntRect::scale() rather than scaling by hand
  1365. (WebKit::PluginView::clipRectInWindowCoordinates):Added scale of clipRect.
  1366. * WebProcess/Plugins/PluginView.h:
  1367. 2011-05-19 Carlos Garcia Campos <cgarcia@igalia.com>
  1368. Reviewed by Anders Carlsson.
  1369. Fix build with ENABLE_PLUGIN_PROCESS=1 for non-mac platforms after r86578
  1370. https://bugs.webkit.org/show_bug.cgi?id=61113
  1371. * PluginProcess/PluginControllerProxy.cpp:
  1372. (WebKit::PluginControllerProxy::tryToShortCircuitInvoke):
  1373. (WebKit::PluginControllerProxy::tryToShortCircuitEvaluate):
  1374. 2011-05-19 Philippe Normand <pnormand@igalia.com>
  1375. Unreviewed, follow-up fix of the messages python unittests after r86812.
  1376. [WebKit2] handleMessageDelayed leaks replyEncoder if decoding fails
  1377. https://bugs.webkit.org/show_bug.cgi?id=60872
  1378. * Scripts/webkit2/messages_unittest.py:
  1379. 2011-05-18 Brady Eidson <beidson@apple.com>
  1380. As originally reviewed by Anders Carlsson.
  1381. <rdar://problem/9457633> and https://bugs.webkit.org/show_bug.cgi?id=61009
  1382. Processes spawned by SnowLeopard's WebProcess attempt to install WebKit2 shims.
  1383. Restore r86797 to how it was supposed to be using the appropriate #ifdef,
  1384. reverting the temporary r86814 in the process.
  1385. The #ifdef is BUILDING_ON_SNOW_LEOPARD, not BUILDING_ON_SNOWLEOPARD!
  1386. * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
  1387. (WebKit::ProcessLauncher::launchProcess):
  1388. * WebProcess/mac/WebProcessMainMac.mm:
  1389. (WebKit::WebProcessMain):
  1390. 2011-05-18 Brady Eidson <beidson@apple.com>
  1391. Fix the WK2 SnowLeopard layouttests (again) until I can explore on a SnowLeopard machine tomorrow.
  1392. * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
  1393. (WebKit::ProcessLauncher::launchProcess):
  1394. * WebProcess/mac/WebProcessMainMac.mm:
  1395. (WebKit::WebProcessMain):
  1396. 2011-05-18 Darin Adler <darin@apple.com>
  1397. Reviewed by Anders Carlsson.
  1398. [WebKit2] handleMessageDelayed leaks replyEncoder if decoding fails
  1399. https://bugs.webkit.org/show_bug.cgi?id=60872
  1400. Eliminate the concept of SyncReplyMode and instead hand around ownership
  1401. of the reply decoder using an OwnPtr.
  1402. * Platform/CoreIPC/Connection.cpp:
  1403. (CoreIPC::Connection::dispatchSyncMessage): Eliminated comments that say
  1404. the same things the code itself does. Removed code that handles the
  1405. reply mode. Instead, pass the OwnPtr to the message handling function and
  1406. make the call to sendSyncReply conditional on whether the reply encoder
  1407. is still non-null.
  1408. * Platform/CoreIPC/Connection.h: Removed SyncReplyMode. Made
  1409. didReceiveSyncMessage return void, and take OwnPtr<ArgumentEncoder>& for
  1410. the reply encoder.
  1411. * Platform/CoreIPC/HandleMessage.h:
  1412. (CoreIPC::handleMessageDelayed): Take an OwnPtr&. Replaced the call to
  1413. adoptPtr with a call to release.
  1414. * PluginProcess/PluginControllerProxy.h: Updated to take an OwnPtr& and
  1415. not return SyncReplyMode.
  1416. * PluginProcess/WebProcessConnection.cpp:
  1417. (WebKit::WebProcessConnection::didReceiveSyncMessage): Ditto.
  1418. * PluginProcess/WebProcessConnection.h: Ditto.
  1419. * Scripts/webkit2/messages.py: Updated for changes to sync messages.
  1420. Eliminated unneeded return types and use get() when apporopriate to call
  1421. the handleMessage functions.
  1422. * Scripts/webkit2/messages_unittest.py: Tried to update this too.
  1423. I don't know how to run the test, though.
  1424. * Shared/Plugins/NPObjectMessageReceiver.h: Updated to take an OwnPtr& and
  1425. not return SyncReplyMode.
  1426. * Shared/Plugins/NPRemoteObjectMap.cpp:
  1427. (WebKit::NPRemoteObjectMap::didReceiveSyncMessage): Ditto.
  1428. * Shared/Plugins/NPRemoteObjectMap.h: Ditto.
  1429. * UIProcess/Downloads/DownloadProxy.h: Ditto.
  1430. * UIProcess/WebContext.cpp:
  1431. (WebKit::WebContext::didReceiveSyncMessage): Ditto.
  1432. * UIProcess/WebContext.h: Ditto.
  1433. * UIProcess/WebFullScreenManagerProxy.cpp:
  1434. (WebKit::WebFullScreenManagerProxy::didReceiveSyncMessage): Ditto.
  1435. * UIProcess/WebFullScreenManagerProxy.h: Ditto.
  1436. * UIProcess/WebIconDatabase.cpp:
  1437. (WebKit::WebIconDatabase::didReceiveSyncMessage): Ditto.
  1438. * UIProcess/WebIconDatabase.h: Ditto.
  1439. * UIProcess/WebInspectorProxy.h: Ditto.
  1440. * UIProcess/WebPageProxy.cpp:
  1441. (WebKit::WebPageProxy::didReceiveSyncMessage): Ditto.
  1442. * UIProcess/WebPageProxy.h: Ditto.
  1443. * UIProcess/WebProcessProxy.cpp:
  1444. (WebKit::WebProcessProxy::didReceiveSyncMessage): Ditto.
  1445. * UIProcess/WebProcessProxy.h: Ditto.
  1446. * WebProcess/Plugins/Netscape/JSNPObject.cpp: Added a missing include.
  1447. * WebProcess/Plugins/PluginProcessConnection.cpp:
  1448. (WebKit::PluginProcessConnection::didReceiveSyncMessage): Updated to take
  1449. an OwnPtr& and not return SyncReplyMode.
  1450. * WebProcess/Plugins/PluginProcessConnection.h: Ditto.
  1451. * WebProcess/Plugins/PluginProxy.h: Ditto.
  1452. * WebProcess/WebPage/WebPage.cpp:
  1453. (WebKit::WebPage::didReceiveSyncMessage): Ditto.
  1454. * WebProcess/WebPage/WebPage.h: Ditto.
  1455. * WebProcess/WebProcess.cpp:
  1456. (WebKit::WebProcess::didReceiveSyncMessage): Ditto.
  1457. * WebProcess/WebProcess.h: Ditto.
  1458. 2011-05-18 Chris Fleizach <cfleizach@apple.com>
  1459. Reviewed by Maciej Stachowiak.
  1460. WK2: VoiceOver cannot move focus into a web area programmatically
  1461. https://bugs.webkit.org/show_bug.cgi?id=60661
  1462. Add a makeFirstResponder method that will bring focus to the widget view within the UI
  1463. process.
  1464. * UIProcess/API/mac/PageClientImpl.h:
  1465. * UIProcess/API/mac/PageClientImpl.mm:
  1466. (WebKit::PageClientImpl::makeFirstResponder):
  1467. * UIProcess/PageClient.h:
  1468. * UIProcess/WebPageProxy.h:
  1469. * UIProcess/WebPageProxy.messages.in:
  1470. * UIProcess/mac/WebPageProxyMac.mm:
  1471. (WebKit::WebPageProxy::makeFirstResponder):
  1472. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  1473. (WebKit::WebChromeClient::makeFirstResponder):
  1474. * WebProcess/WebCoreSupport/WebChromeClient.h:
  1475. 2011-05-18 Brady Eidson <beidson@apple.com>
  1476. Reviewed by Anders Carlsson.
  1477. <rdar://problem/9457633> and https://bugs.webkit.org/show_bug.cgi?id=61009
  1478. Processes spawned by SnowLeopard's WebProcess attempt to install WebKit2 shims.
  1479. * Platform/unix/EnvironmentUtilities.cpp: Remove an unnecessary #include, as reviewed.
  1480. 2011-05-17 Timothy Hatcher <timothy@apple.com>
  1481. Update the the context menu to reflect the system search provider on Mac.
  1482. <rdar://problem/9198419>
  1483. Reviewed by Sam Weinig.
  1484. * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
  1485. (WebKit::WebContextMenuClient::searchWithGoogle): Add a FIXME about using NSPerformService on Mac.
  1486. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  1487. (InitWebCoreSystemInterface): Added CopyDefaultSearchProviderDisplayName.
  1488. 2011-05-18 Brady Eidson <beidson@apple.com>
  1489. Reviewed by Anders Carlsson.
  1490. <rdar://problem/9457633> and https://bugs.webkit.org/show_bug.cgi?id=61009
  1491. Processes spawned by SnowLeopard's WebProcess attempt to install WebKit2 shims.
  1492. If the WebProcess or PluginProcess forks, it shouldn't pass WebKit2 shims along to the new process
  1493. in the DYLD_INSERT_LIBRARIES environment variable.
  1494. Add Environment Utilities helper to strip unwanted values from an environment variable:
  1495. * Platform/unix/EnvironmentUtilities.cpp: Added.
  1496. (WebKit::EnvironmentUtilities::stripValuesEndingWithString):
  1497. * Platform/unix/EnvironmentUtilities.h: Added.
  1498. * WebKit2.xcodeproj/project.pbxproj:
  1499. Strip PluginProcessShim.dylib from DYLD_INSERT_LIBRARIES:
  1500. * PluginProcess/mac/PluginProcessMainMac.mm:
  1501. (WebKit::PluginProcessMain):
  1502. Strip WebProcessShim.dylib from DYLD_INSERT_LIBRARIES:
  1503. * WebProcess/mac/WebProcessMainMac.mm:
  1504. (WebKit::WebProcessMain):
  1505. Unprotect SnowLeopard now that it will behave and not spawn processes trying to use WebKit2 shims:
  1506. * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
  1507. (WebKit::ProcessLauncher::launchProcess):
  1508. 2011-05-18 Jon Lee <jonlee@apple.com>
  1509. Reviewed by Simon Fraser.
  1510. Crash in injected bundle client
  1511. https://bugs.webkit.org/show_bug.cgi?id=61086
  1512. * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
  1513. (WebKit::InjectedBundlePageUIClient::shouldRubberBandInDirection): Check for existence of method in client prior to calling.
  1514. 2011-05-18 Andreas Kling <kling@webkit.org>
  1515. Reviewed by Kenneth Rohde Christiansen.
  1516. [Qt][WK2] Remove usage of ChunkedUpdateDrawingArea.
  1517. https://bugs.webkit.org/show_bug.cgi?id=60901
  1518. To prepare for the eventual removal of the ChunkedUpdateDrawingArea,
  1519. make QGraphicsWKView's "Simple" backing store type map to DrawingAreaImpl.
  1520. * UIProcess/API/qt/qgraphicswkview.cpp:
  1521. * UIProcess/API/qt/qgraphicswkview.h:
  1522. * UIProcess/API/qt/qwkpage.cpp:
  1523. (QWKPagePrivate::createDrawingAreaProxy):
  1524. 2011-05-18 Andreas Kling <kling@webkit.org>
  1525. Reviewed by Kenneth Rohde Christiansen.
  1526. [Qt][WK2] Don't lie about supporting accelerated compositing.
  1527. https://bugs.webkit.org/show_bug.cgi?id=61054
  1528. Until we have an implementation of LayerTreeHost, we shouldn't lie about it.
  1529. * WebKit2.pro:
  1530. * WebProcess/WebPage/LayerTreeHost.h:
  1531. * WebProcess/WebPage/qt/LayerTreeHostQt.cpp: Added.
  1532. (WebKit::LayerTreeHost::supportsAcceleratedCompositing):
  1533. 2011-05-17 Jeremy Noble <jer.noble@apple.com>
  1534. Reviewed by Darin Adler.
  1535. Exiting full screen will leave up invisible full-screen window, blocking all mouse clicks.
  1536. https://bugs.webkit.org/show_bug.cgi?id=60982
  1537. The GraphicsLayer tree has unparented m_fullScreenRootLayer behind our backs, replacing the
  1538. tiled layer with a normal one. Instead of holding on to a specific layer, assume that the
  1539. w_rootLayer will only have 0 or 1 children, and if a child is present, then that is our full-
  1540. screen layer.
  1541. Additionally, check to see if the animating layer's presentationLayer is nil
  1542. before calling it; asking a nil object for a CATransform3D will give back a struct full of
  1543. garbage.
  1544. In WKFullScreenWindowController, when the exit animation completes, ignore the "completed"
  1545. parameter. This eliminates the possibility that the full screen window will end up left
  1546. on top of the screen if the animation is cancelled and a enter full screen animation isn't
  1547. forthcoming.
  1548. * UIProcess/mac/WKFullScreenWindowController.mm:
  1549. (-[WKFullScreenWindowController finishedExitFullScreenAnimation:]):
  1550. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.h:
  1551. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
  1552. (WebKit::WebFullScreenManagerMac::setRootFullScreenLayer):
  1553. (WebKit::WebFullScreenManagerMac::beginEnterFullScreenAnimation):
  1554. (WebKit::WebFullScreenManagerMac::beginExitFullScreenAnimation):
  1555. 2011-05-17 Dan Bernstein <mitz@apple.com>
  1556. Reviewed by Alice Liu.
  1557. <rdar://problem/9458300> REGRESSION (r86724): Repro crash loading any webpage in WebKit2 on SnowLeopard
  1558. https://bugs.webkit.org/show_bug.cgi?id=61022
  1559. * WebProcess/mac/WebProcessMainMac.mm:
  1560. (WebKit::WebProcessMain): As long as we are not loading the shim on Snow Leopard, we should not
  1561. try to initialize it.
  1562. 2011-05-17 Brady Eidson <beidson@apple.com>
  1563. Rubberstamped by Sam Weinig.
  1564. https://bugs.webkit.org/show_bug.cgi?id=60595
  1565. Fix the rampant WebProcess crashing because we're trying to install the WebProcess shim
  1566. into QTKitServer when we launch it.
  1567. * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
  1568. (WebKit::ProcessLauncher::launchProcess): This is only happening on SnowLeopard, so put
  1569. SnowLeopard build guards around the shim install path.
  1570. 2011-05-17 Sheriff Bot <webkit.review.bot@gmail.com>
  1571. Unreviewed, rolling out r86668.
  1572. http://trac.webkit.org/changeset/86668
  1573. https://bugs.webkit.org/show_bug.cgi?id=61001
  1574. It made 52 tests crash on Qt WK2 bot (Requested by Ossy on
  1575. #webkit).
  1576. * UIProcess/API/qt/qgraphicswkview.cpp:
  1577. * UIProcess/API/qt/qgraphicswkview.h:
  1578. * UIProcess/API/qt/qwkpage.cpp:
  1579. (QWKPagePrivate::createDrawingAreaProxy):
  1580. 2011-05-17 Brian Weinstein <bweinstein@apple.com>
  1581. Build fix after r86717.
  1582. * UIProcess/API/C/win/WKView.h: Add a forward declaration of IDropTarget
  1583. 2011-05-17 Brian Weinstein <bweinstein@apple.com>
  1584. Reviewed by Adam Roben.
  1585. WebKit2: Needs API to set a custom drop target
  1586. https://bugs.webkit.org/show_bug.cgi?id=60991
  1587. <rdar://problem/9090868>
  1588. Add API to set a custom drop target on a WKView.
  1589. * UIProcess/API/C/win/WKView.cpp:
  1590. (WKViewSetCustomDropTarget): Call through to WebView::setCustomDropTarget.
  1591. * UIProcess/API/C/win/WKView.h:
  1592. * UIProcess/win/WebView.cpp:
  1593. (WebKit::WebView::setCustomDropTarget): Revoke the current drop target, and register the
  1594. custom one.
  1595. * UIProcess/win/WebView.h:
  1596. 2011-05-17 Sam Weinig <sam@webkit.org>
  1597. Reviewed by Dan Bernstein.
  1598. Add API to determine if a frame has any form elements without going to javascript
  1599. https://bugs.webkit.org/show_bug.cgi?id=60999
  1600. * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
  1601. (WKBundleFrameContainsAnyFormElements):
  1602. * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
  1603. * WebProcess/WebPage/WebFrame.cpp:
  1604. (WebKit::WebFrame::containsAnyFormElements):
  1605. * WebProcess/WebPage/WebFrame.h:
  1606. Add WKBundleFrameContainsAnyFormElements which does a walk of the document to determine
  1607. if there are any form elements.
  1608. 2011-05-17 Andreas Kling <kling@webkit.org>
  1609. Reviewed by Kenneth Rohde Christiansen.
  1610. [Qt][WK2] Initial support for favicons.
  1611. https://bugs.webkit.org/show_bug.cgi?id=58937
  1612. Add the following API to QWKContext:
  1613. - void setIconDatabasePath(QString)
  1614. - void iconChangedForPageURL(QUrl) [signal]
  1615. - QIcon iconForPageURL(QUrl)
  1616. This is mostly analogous to the QWebSettings/QWebFrame icon API we had in WebKit1.
  1617. * UIProcess/API/qt/ClientImpl.h: Added WKIconDatabaseClient methods.
  1618. * UIProcess/API/qt/ClientImpl.cpp:
  1619. (toQWKContext): Helper to cast from "void* clientInfo" to a QWKContext*.
  1620. (qt_wk_didChangeIconForPageURL): Emits QWKContext::iconChangedForPageURL(QUrl).
  1621. (qt_wk_didRemoveAllIcons): Stub.
  1622. * UIProcess/API/qt/qwkcontext.h:
  1623. * UIProcess/API/qt/qwkcontext_p.h:
  1624. * UIProcess/API/qt/qwkcontext.cpp:
  1625. (QWKContextPrivate::QWKContextPrivate): Set up and register a WKIconDatabaseClient.
  1626. (QWKContext::QWKContext): Minor refactor to avoid code duplication in constructors.
  1627. (QWKContext::setIconDatabasePath): Exactly what it sounds like.
  1628. (QWKContext::iconForPageURL): Retrieves the favicon for a given page URL as a QIcon.
  1629. * WebKit2API.pri: Add WKIconDatabase.cpp and WKIconDatabase.h to build.
  1630. 2011-05-17 Brady Eidson <beidson@apple.com>
  1631. Reviewed by Anders Carlsson.
  1632. Part 4 of <rdar://problem/8814289> and https://bugs.webkit.org/show_bug.cgi?id=60595
  1633. Mac WebKit2 WebProcess needs a shim to make prompts appear to be from the UIProcess
  1634. This patch actually hooks up the shim to the WebProcess shim callbacks, which messages these
  1635. 4 calls up to the UIProcess and returns the result.
  1636. Note that this patch uncovered the fact that CoreIPC can't sync message out from a secondary thread,
  1637. so I filed https://bugs.webkit.org/show_bug.cgi?id=60975 as a followup to allow that.
  1638. * Shared/mac/SecItemResponseData.cpp:
  1639. (WebKit::SecItemResponseData::SecItemResponseData): Reorder the constructor arguments to be
  1640. a little cleaner.
  1641. * Shared/mac/SecItemResponseData.h:
  1642. Call the shim callbacks for each method:
  1643. * WebProcess/mac/WebProcessShim.mm:
  1644. (WebKit::shimSecItemCopyMatching):
  1645. (WebKit::shimSecItemAdd):
  1646. (WebKit::shimSecItemUpdate):
  1647. (WebKit::shimSecItemDelete):
  1648. Implement the shim callbacks, which each marshall to the main thread, which then calls out to CoreIPC:
  1649. * WebProcess/mac/WebProcessMac.mm:
  1650. (WebKit::WebSecItemCopyMatchingMainThread):
  1651. (WebKit::WebSecItemCopyMatching):
  1652. (WebKit::WebSecItemAddOnMainThread):
  1653. (WebKit::WebSecItemAdd):
  1654. (WebKit::WebSecItemUpdateOnMainThread):
  1655. (WebKit::WebSecItemUpdate):
  1656. (WebKit::WebSecItemDeleteOnMainThread):
  1657. (WebKit::WebSecItemDelete):
  1658. Add the 4 messages and their implementations in the UIProcess:
  1659. * UIProcess/WebProcessProxy.h:
  1660. * UIProcess/WebProcessProxy.messages.in:
  1661. * UIProcess/mac/WebProcessProxyMac.mm: Added.
  1662. (WebKit::WebProcessProxy::secItemCopyMatching):
  1663. (WebKit::WebProcessProxy::secItemAdd):
  1664. (WebKit::WebProcessProxy::secItemUpdate):
  1665. (WebKit::WebProcessProxy::secItemDelete):
  1666. * WebKit2.xcodeproj/project.pbxproj:
  1667. 2011-05-17 Anders Carlsson <andersca@apple.com>
  1668. Reviewed by Dan Bernstein.
  1669. Incomplete page painting at dropbox.com
  1670. https://bugs.webkit.org/show_bug.cgi?id=60974
  1671. <rdar://problem/9448213>
  1672. When we're exiting compositing mode and haven't sent an EnterAcceleratedCompositingMode
  1673. message to the UI process, we still need to send the updated bits to the ui process.
  1674. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  1675. (WebKit::DrawingAreaImpl::exitAcceleratedCompositingMode):
  1676. 2011-05-17 Brady Eidson <beidson@apple.com>
  1677. Reviewed by Anders Carlsson.
  1678. Part 3 of <rdar://problem/8814289> and https://bugs.webkit.org/show_bug.cgi?id=60595
  1679. Mac WebKit2 WebProcess needs a shim to make prompts appear to be from the UIProcess
  1680. Add CoreIPC stuff we'll need to marshall the SecItem calls to the UIProcess and back.
  1681. Teach ArgumentCodersCF about CFDateRef, SecKeychainItemRef, and generic CFTypeRefs:
  1682. * Shared/cf/ArgumentCodersCF.cpp:
  1683. (CoreIPC::typeFromCFTypeRef):
  1684. (CoreIPC::encode):
  1685. (CoreIPC::decode):
  1686. * Shared/cf/ArgumentCodersCF.h:
  1687. Serializable object that contains the query CFDictionaryRef and optionally the
  1688. "attributesToMatch" CFDictionaryRef:
  1689. * Shared/mac/SecItemRequestData.cpp: Added.
  1690. (WebKit::SecItemRequestData::SecItemRequestData):
  1691. (WebKit::SecItemRequestData::encode):
  1692. (WebKit::SecItemRequestData::decode):
  1693. * Shared/mac/SecItemRequestData.h: Added.
  1694. (WebKit::SecItemRequestData::query):
  1695. (WebKit::SecItemRequestData::attributesToMatch):
  1696. Serializable object that returns an OSStatus and optionally a "result object" CFTypeRef:
  1697. * Shared/mac/SecItemResponseData.cpp: Added.
  1698. (WebKit::SecItemResponseData::SecItemResponseData):
  1699. (WebKit::SecItemResponseData::encode):
  1700. (WebKit::SecItemResponseData::decode):
  1701. * Shared/mac/SecItemResponseData.h: Added.
  1702. (WebKit::SecItemResponseData::resultObject):
  1703. (WebKit::SecItemResponseData::resultCode):
  1704. * WebKit2.xcodeproj/project.pbxproj:
  1705. 2011-05-17 Brady Eidson <beidson@apple.com>
  1706. Reviewed by Anders Carlsson.
  1707. Part 2 of <rdar://problem/8814289> and https://bugs.webkit.org/show_bug.cgi?id=60595
  1708. Mac WebKit2 WebProcess needs a shim to make prompts appear to be from the UIProcess
  1709. Hookup some of the methods we plan to shim in the patch, but just have them call through
  1710. to the actual implementations for now.
  1711. Also stub-out the future shimmed versions of the methods.
  1712. * WebProcess/mac/WebProcessShim.h: Add the methods to the shim callbacks.
  1713. * WebProcess/mac/WebProcessShim.mm:
  1714. (WebKit::shimSecItemCopyMatching): Call through to the actual function for now.
  1715. (WebKit::shimSecItemAdd): Ditto.
  1716. (WebKit::shimSecItemUpdate): Ditto.
  1717. (WebKit::shimSecItemDelete): Ditto.
  1718. (WebKit::WebKitWebProcessShimInitialize): Copy over the shim callbacks.
  1719. * WebKit2.xcodeproj/project.pbxproj: Link the shim to required frameworks.
  1720. * WebProcess/mac/WebProcessMac.mm:
  1721. (WebKit::WebSecItemCopyMatching): Add placeholders for the future to-be-shimmed functions.
  1722. (WebKit::WebSecItemAdd): Ditto.
  1723. (WebKit::WebSecItemUpdate): Ditto.
  1724. (WebKit::WebSecItemDelete): Ditto.
  1725. (WebKit::WebProcess::initializeShim): Pass along those placeholders to the shim initializer.
  1726. 2011-05-17 Brady Eidson <beidson@apple.com>
  1727. Reviewed by Anders Carlsson.
  1728. Part 1 of <rdar://problem/8814289> and https://bugs.webkit.org/show_bug.cgi?id=60595
  1729. Mac WebKit2 WebProcess needs a shim to make prompts appear to be from the UIProcess
  1730. Add am empty shim for a new WebProcess shim and install it at launch.
  1731. Use the same Shim.xcconfig for both the web and plugin processes:
  1732. * Configurations/PluginProcessShim.xcconfig: Removed.
  1733. * Configurations/Shim.xcconfig: Copied from Configurations/PluginProcessShim.xcconfig.
  1734. * WebKit2.xcodeproj/project.pbxproj:
  1735. * WebProcess/WebProcess.h: Add initializeShim() for Mac-only
  1736. * WebProcess/mac/WebProcessMac.mm:
  1737. (WebKit::WebProcess::initializeShim): Initialize the (empty) shim callbacks.
  1738. * WebProcess/mac/WebProcessMainMac.mm:
  1739. (WebKit::WebProcessMain): Call initializeShim()
  1740. * WebProcess/mac/WebProcessShim.h: Added.
  1741. * WebProcess/mac/WebProcessShim.mm: Added.
  1742. (WebKit::WebKitWebProcessShimInitialize): Empty for now.
  1743. * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
  1744. (WebKit::ProcessLauncher::launchProcess): Install the Plugin Process shim for plugin processes
  1745. and the WebProcess shim for the web content process.
  1746. 2011-05-17 John Sullivan <sullivan@apple.com>
  1747. Reviewed by Adam Roben.
  1748. Loose end from fix for https://bugs.webkit.org/show_bug.cgi?id=60938
  1749. * WebKit2.xcodeproj/project.pbxproj:
  1750. Made new header file "private" instead of "project" so clients can access it.
  1751. 2011-05-17 Andreas Kling <kling@webkit.org>
  1752. Reviewed by Kenneth Rohde Christiansen.
  1753. [Qt][WK2] Remove usage of ChunkedUpdateDrawingArea.
  1754. https://bugs.webkit.org/show_bug.cgi?id=60901
  1755. To prepare for the eventual removal of the ChunkedUpdateDrawingArea,
  1756. make QGraphicsWKView's "Simple" backing store type map to DrawingAreaImpl.
  1757. * UIProcess/API/qt/qgraphicswkview.cpp:
  1758. * UIProcess/API/qt/qgraphicswkview.h:
  1759. * UIProcess/API/qt/qwkpage.cpp:
  1760. (QWKPagePrivate::createDrawingAreaProxy):
  1761. 2011-05-16 Martin Robinson <mrobinson@igalia.com>
  1762. Take another shot at fixing the WinCairo build.
  1763. * Shared/cairo/LayerTreeContextCairo.cpp: Include NotImplemented.h using a framework include.
  1764. 2011-05-16 Sam Weinig <sam@webkit.org>
  1765. Reviewed by Jon Honeycutt.
  1766. Add access to process pid in WebKit2 API
  1767. https://bugs.webkit.org/show_bug.cgi?id=60938
  1768. * UIProcess/API/C/mac/WKPagePrivateMac.cpp: Added.
  1769. (WKPageGetProcessIdentifier):
  1770. * UIProcess/API/C/mac/WKPagePrivateMac.h: Added.
  1771. * UIProcess/WebPageProxy.cpp:
  1772. (WebKit::WebPageProxy::processIdentifier):
  1773. * UIProcess/WebPageProxy.h:
  1774. * WebKit2.xcodeproj/project.pbxproj:
  1775. Add WKPageGetProcessIdentifier as SPI for the mac.
  1776. 2011-05-16 Martin Robinson <mrobinson@igalia.com>
  1777. Add file missing from my previous commit.
  1778. * Shared/cairo/LayerTreeContextCairo.cpp: Added.
  1779. 2011-05-16 Martin Robinson <martin.james.robinson@gmail.com>
  1780. Try to fix the WinCairo build after r86612.
  1781. Move the LayerTreeContextGtk.cpp stub to LayerTreeContextCairo.cpp and add
  1782. it to the WinCairo build.
  1783. * GNUmakefile.am: Update the source list.
  1784. * Shared/cairo/LayerTreeContextCairo.cpp: Renamed from Source/WebKit2/Shared/gtk/LayerTreeContextGtk.cpp.
  1785. * win/WebKit2.vcproj: Update the source list.
  1786. 2011-05-16 Martin Robinson <mrobinson@igalia.com>
  1787. Reviewed by Anders Carlsson.
  1788. [GTK] [WebKit2] Provide a fast version of the backing store for X11
  1789. https://bugs.webkit.org/show_bug.cgi?id=60912
  1790. Instead of allocating the backing store surface directly in WebKit2,
  1791. instantiate the GtkWidgetBackingStore class which abstracts away the
  1792. platform-specific details of maintaining the backing store.
  1793. * UIProcess/BackingStore.h:
  1794. * UIProcess/gtk/BackingStoreGtk.cpp:
  1795. (WebKit::BackingStore::paint): Call into GtkWidgetBackingStore to get the Cairo surface now.
  1796. (WebKit::BackingStore::incorporateUpdate): Ditto.
  1797. (WebKit::BackingStore::scroll): Call into GtkWidgetBackingStore to do the actual backing store scroll.
  1798. 2011-05-16 Chris Marrin <cmarrin@apple.com>
  1799. Reviewed by Darin Adler.
  1800. Plug-in hit testing is broken after zooming
  1801. https://bugs.webkit.org/show_bug.cgi?id=60916
  1802. Construct a WebMouseEvent to send to plugin, adjusting values to take pageScaleFactor
  1803. into account. Also adjusted bounds sent to viewGeometryDidChange to take pageScaleFactor
  1804. into account. Both are needed or the plugin will think the mouse positions are outside
  1805. its bounds.
  1806. * Shared/WebEvent.h:
  1807. * Shared/WebMouseEvent.cpp:Add ctor to clone a WebMouseEvent and add a scaleFactor to values
  1808. (WebKit::WebMouseEvent::WebMouseEvent):
  1809. * WebProcess/Plugins/PluginView.cpp:
  1810. (WebKit::PluginView::handleEvent):Adjust mouse coords to take pageScaleFactor into account
  1811. (WebKit::PluginView::viewGeometryDidChange):Adjust bounds to take pageScaleFactor into account
  1812. 2011-05-16 Martin Robinson <mrobinson@igalia.com>
  1813. Reviewed by Anders Carlsson.
  1814. GTK port of WebKit2 should switch to new DrawingAreaImpl model
  1815. https://bugs.webkit.org/show_bug.cgi?id=59655
  1816. * GNUmakefile.am: Add the files necessary to use the DrawingAreaProxyImpl
  1817. to the source list. The source list also needs the LayerContextTree stubs.
  1818. * Shared/LayerTreeContext.h: This file should not be guarded by
  1819. USE(ACCELERATED_COMPOSITING) as it's needed for the DrawingAreaProxyImpl
  1820. IPC messaging.
  1821. * Shared/gtk/LayerTreeContextGtk.cpp: Added this stub.
  1822. * UIProcess/API/gtk/PageClientImpl.cpp:
  1823. (WebKit::PageClientImpl::createDrawingAreaProxy): Instead of creating the deprecated
  1824. chunked drawing area, create a DrawingAreaProxyImpl.
  1825. (WebKit::PageClientImpl::setViewNeedsDisplay): Here we must now queue a redraw. Previously
  1826. the chunked drawing area was doing this manually. This is the appropriate place though.
  1827. (WebKit::PageClientImpl::scrollView): Add an implementation that just calls into setViewNeedsDisplay.
  1828. * UIProcess/API/gtk/PageClientImpl.h: Added a getter for m_viewWidget.
  1829. (WebKit::PageClientImpl::viewWidget):
  1830. * UIProcess/API/gtk/WebKitWebViewBase.cpp:
  1831. (callDrawingAreaPaintMethod): Added this helper which reduces code duplication between
  1832. GTK+ 2.x and 3.x
  1833. (webkitWebViewBaseExpose): Call the new helper now.
  1834. (webkitWebViewBaseDraw): Ditto.
  1835. * UIProcess/BackingStore.h: Updated to include GTK+ specific types.
  1836. * UIProcess/DrawingAreaProxy.h: Ditto.
  1837. * UIProcess/DrawingAreaProxy.messages.in: Do not the DrawingAreaProxyImpl-specific
  1838. message with USE(ACCELERATED_COMPOSITING).
  1839. * UIProcess/WebPageProxy.cpp: Removed these guards, as DrawingAreProxyImpl is used on all platforms now.
  1840. (WebKit::WebPageProxy::didReceiveMessage): Ditto.
  1841. * UIProcess/WebPageProxy.h: Ditto.
  1842. * UIProcess/gtk/BackingStoreGtk.cpp: Added. This implementation heavily uses Cairo,
  1843. but depends on GTK+/GDK in a few places.
  1844. (WebKit::BackingStore::paint):
  1845. (WebKit::BackingStore::incorporateUpdate):
  1846. (WebKit::BackingStore::scroll):
  1847. * UIProcess/gtk/WebPageProxyGtk.cpp: Added a getting for the viewWidget, which is
  1848. required by BackingStoreGtk. A similar getter exists for Windows and Mac.
  1849. (WebKit::WebPageProxy::viewWidget): Ditto.
  1850. * WebProcess/WebPage/DrawingArea.cpp: Removed these guards as DrawingAreaProxyImpl is used on all platforms now.
  1851. (WebKit::DrawingArea::create): Ditto.
  1852. * WebProcess/WebPage/DrawingArea.h: Ditto.
  1853. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  1854. (WebKit::DrawingAreaImpl::sendDidUpdateBackingStoreState): Do not guard
  1855. this DrawingAreaProxyImpl-specific message with USE(ACCELERATED_COMPOSITING)
  1856. * WebProcess/WebPage/WebPage.cpp: Removed these guards as DrawingAreaProxyImpl is used on all platforms now.
  1857. (WebKit::WebPage::didReceiveMessage): Ditto.
  1858. 2011-05-16 Maciej Stachowiak <mjs@apple.com>
  1859. Reviewed by Sam Weinig.
  1860. Sandbox denies Kerberos authentication
  1861. https://bugs.webkit.org/show_bug.cgi?id=60921
  1862. <rdar://problem/9133872>
  1863. * WebProcess/com.apple.WebProcess.sb:
  1864. 2011-05-16 David Kilzer <ddkilzer@apple.com>
  1865. <http://webkit.org/b/60913> C++ exceptions should not be enabled when building with llvm-gcc-4.2
  1866. <rdar://problem/9446430>
  1867. Reviewed by Mark Rowe.
  1868. * Configurations/Base.xcconfig: Fixed typo.
  1869. 2011-05-16 Anders Carlsson <andersca@apple.com>
  1870. Reviewed by Dan Bernstein.
  1871. If the root compositing layer changes while we're about to exit compositing mode, make sure to enter compositing mode
  1872. https://bugs.webkit.org/show_bug.cgi?id=60905
  1873. <rdar://problem/9365574>
  1874. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  1875. (WebKit::DrawingAreaImpl::setRootCompositingLayer):
  1876. If we have a layer tree host, but haven't yet sent a EnterAcceleratedCompositingMode message (this can happen
  1877. when quickly going in and out of compositing mode), make sure to schedule a notification when the layer tree host
  1878. does it next flush. This will end up sending the EnterAcceleratedCompositingMode message.
  1879. 2011-05-13 Jer Noble <jer.noble@apple.com>
  1880. Reviewed by Simon Fraser.
  1881. Video is blank, controller is misplaced on trailers.apple.com movie in fullscreen (with two screens)
  1882. https://bugs.webkit.org/show_bug.cgi?id=60826
  1883. Emit a notification when moving a CALayer from the WebProcess's main
  1884. layer host to a new context. This allows listeners to invalidate their
  1885. layers which may not support moving between different CAContexts (as is
  1886. the case with QTMovieLayer). In order to allow listeners to determine if they
  1887. are affected, the notification will pass the root CALayer in a userInfo
  1888. dictionary.
  1889. In WebFullScreenManagerMac, move from storing a pointer to a non-refcounted
  1890. class (GraphicsLayer) to a retainable class (PlatformLayer).
  1891. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.h:
  1892. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
  1893. (WebKit::WebFullScreenManagerMac::WebFullScreenManagerMac): No need to initialize
  1894. m_fullScreenRootLayer now that it is a RetainPtr<>.
  1895. (WebKit::WebFullScreenManagerMac::setRootFullScreenLayer): Emit a notification
  1896. after either creating or destroying the full screen layer host.
  1897. (WebKit::WebFullScreenManagerMac::beginEnterFullScreenAnimation):
  1898. (WebKit::WebFullScreenManagerMac::beginExitFullScreenAnimation):
  1899. 2011-05-16 Siddharth Mathur <siddharth.mathur@nokia.com>
  1900. Rubber-stamped by Csaba Osztrogonác.
  1901. [Qt][Wk2][Symbian] Fix build after r86560
  1902. https://bugs.webkit.org/show_bug.cgi?id=60887
  1903. Temporarily fix Symbian build by re-enabling compilation
  1904. of Qt/Gtk common code (as was the case for Symbian before r55875).
  1905. This is a stop gap until the pure Symbian Core IPC and process launching bits land in Bug 55875
  1906. As of this revision, only the native SharedMemory implementation is in trunk.
  1907. * Platform/CoreIPC/Attachment.h: Compile Qt/Gtk common code for Qt-Symbian too
  1908. * Platform/CoreIPC/Connection.h: ditto
  1909. * Platform/SharedMemory.h: ditto
  1910. * Platform/qt/SharedMemorySymbian.cpp: stub implementations of attachment handling
  1911. (WebKit::SharedMemory::Handle::releaseToAttachment):
  1912. (WebKit::SharedMemory::Handle::adoptFromAttachment):
  1913. 2011-05-16 Jon Lee <jonlee@apple.com>
  1914. Reviewed by Simon Fraser.
  1915. Can't horizontally scroll iframes and overflow because wheel events are always accepted
  1916. https://bugs.webkit.org/show_bug.cgi?id=60779
  1917. We keep track of the number of horizontal scrollbars and mouse wheel event handlers in the
  1918. UI process as a means of determining whether horizontal scroll events will be handled
  1919. by the web process.
  1920. * UIProcess/WebPageProxy.cpp:
  1921. (WebKit::WebPageProxy::willHandleHorizontalScrollEvents): Return true if there is at least
  1922. one wheel event handler
  1923. * UIProcess/WebPageProxy.h: Add new variable to cache the count
  1924. (WebKit::WebPageProxy::numWheelEventHandlersChanged): Sets the count
  1925. The rest just provides all the connections.
  1926. * UIProcess/API/C/WKPage.cpp:
  1927. (WKPageWillHandleHorizontalScrollEvents):
  1928. * UIProcess/API/C/WKPage.h:
  1929. * UIProcess/WebPageProxy.messages.in:
  1930. * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
  1931. * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
  1932. (WebKit::InjectedBundlePageUIClient::shouldRubberBandInDirection):
  1933. * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
  1934. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  1935. (WebKit::WebChromeClient::shouldRubberBandInDirection): Forward to injected bundle UI client
  1936. (WebKit::WebChromeClient::updateCountWheelEventHandlers): Updates the web page proxy
  1937. * WebProcess/WebCoreSupport/WebChromeClient.h:
  1938. 2011-05-16 Anders Carlsson <andersca@apple.com>
  1939. Reviewed by Oliver Hunt.
  1940. Silverlight: Selection via keyboard selects the entire plugin instead of the contents of a TextBox
  1941. https://bugs.webkit.org/show_bug.cgi?id=60898
  1942. <rdar://problem/9309903>
  1943. Special-case Command-A and always return true, indicating that the plug-in handled the event.
  1944. This matches WebKit1.
  1945. * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
  1946. (WebKit::NetscapePlugin::platformHandleKeyboardEvent):
  1947. 2011-05-16 Anders Carlsson <andersca@apple.com>
  1948. Reviewed by Oliver Hunt.
  1949. Short-circuit NPRuntime calls made by Flash during plug-in instantiation
  1950. https://bugs.webkit.org/show_bug.cgi?id=60894
  1951. <rdar://problem/8804681>
  1952. During plug-in instantiation, Flash makes a couple of NPRuntime calls to get the
  1953. URL of the current document as well as the URL of the toplevel document. This leads to
  1954. a bunch of IPC traffic that slows down instantiation.
  1955. Since we know what calls Flash is making and what results are expected, we can handle the
  1956. NPRuntime calls directly in the plug-in process and avoid extra IPC overhead.
  1957. * PluginProcess/PluginControllerProxy.cpp:
  1958. (WebKit::PluginControllerProxy::PluginControllerProxy):
  1959. Initialize m_pluginCreationParameters.
  1960. (WebKit::PluginControllerProxy::initialize):
  1961. Set m_pluginCreationParameters to point to the creation parameters right before
  1962. calling Plugin::initialize and restore it back afterwards.
  1963. (WebKit::PluginControllerProxy::tryToShortCircuitInvoke):
  1964. If the plug-in calling NPN_Invoke has the CanShortCircuitSomeNPRuntimeCallsDuringInitialization
  1965. quirk, and we're being initialized, check for the __flash_getWindowLocation and
  1966. __flash_getTopLocation function calls and return the correct values.
  1967. (WebKit::PluginControllerProxy::tryToShortCircuitEvaluate):
  1968. Check if the script string has the definitions of __flash_getWindowLocation or __flash_getTopLocation
  1969. and just ignore them. Note that ignoring them has the effect of not adding them to the window object,
  1970. which could in theory be a backwards compatibility problem if web pages were to assume that these
  1971. functions existed on a page with plug-ins. In practice this is probably not a problem, especially since
  1972. these functions are only used on Mac WebKit.
  1973. * PluginProcess/PluginControllerProxy.h:
  1974. (WebKit::PluginControllerProxy::inInitialize):
  1975. Add helper function.
  1976. * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
  1977. (WebKit::NetscapePluginModule::determineQuirks):
  1978. Add the CanShortCircuitSomeNPRuntimeCallsDuringInitialization quirk for Flash on Mac.
  1979. * Shared/Plugins/PluginQuirks.h:
  1980. Add Mac specific CanShortCircuitSomeNPRuntimeCallsDuringInitialization quirk.
  1981. 2011-05-16 Anders Carlsson <andersca@apple.com>
  1982. Reviewed by Adam Roben.
  1983. Add a returnValue parameter to tryToShortCircuitInvoke
  1984. https://bugs.webkit.org/show_bug.cgi?id=60891
  1985. tryToShortCircuitInvoke needs to be able to indicate that an invoke
  1986. call failed. Add a returnValue parameter and have the real return value
  1987. indicate whether tryToShortCircuitInvoke did short-circuit the invoke or not.
  1988. * PluginProcess/PluginControllerProxy.cpp:
  1989. (WebKit::PluginControllerProxy::tryToShortCircuitInvoke):
  1990. * PluginProcess/PluginControllerProxy.h:
  1991. * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
  1992. (WebKit::NPN_Invoke):
  1993. * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
  1994. (WebKit::NetscapePlugin::tryToShortCircuitInvoke):
  1995. * WebProcess/Plugins/Netscape/NetscapePlugin.h:
  1996. * WebProcess/Plugins/PluginController.h:
  1997. * WebProcess/Plugins/PluginView.cpp:
  1998. (WebKit::PluginView::tryToShortCircuitInvoke):
  1999. * WebProcess/Plugins/PluginView.h:
  2000. 2011-05-16 Siddharth Mathur <siddharth.mathur@nokia.com>
  2001. Reviewed by Csaba Osztrogonác.
  2002. [Qt][Wk2][Symbian] Fix build after r86560
  2003. https://bugs.webkit.org/show_bug.cgi?id=60887
  2004. * Platform/CoreIPC/ArgumentDecoder.cpp:
  2005. (CoreIPC::ArgumentDecoder::~ArgumentDecoder): guard Unix and Gtk code with USE(UNIX_DOMAIN_SOCKETS)
  2006. * Platform/CoreIPC/ArgumentEncoder.cpp:
  2007. (CoreIPC::ArgumentEncoder::~ArgumentEncoder): ditto
  2008. 2011-05-16 Anders Carlsson <andersca@apple.com>
  2009. Reviewed by Adam Roben.
  2010. Add the ability for a plug-in controller to short-circuit calls to NPN_Invoke
  2011. https://bugs.webkit.org/show_bug.cgi?id=60886
  2012. Make it possible for a plug-in controller to intercept calls to NPN_Invoke, which
  2013. will be useful for avoiding sync IPC messages during instantiation.
  2014. * PluginProcess/PluginControllerProxy.cpp:
  2015. (WebKit::PluginControllerProxy::evaluate):
  2016. Call tryToShortCircuitEvaluate. If it returns true, we don't need to call back to
  2017. the web process to ask it to evaluate the script string.
  2018. (WebKit::PluginControllerProxy::tryToShortCircuitInvoke):
  2019. (WebKit::PluginControllerProxy::tryToShortCircuitEvaluate):
  2020. Always return false for now.
  2021. * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
  2022. (WebKit::NPN_Invoke):
  2023. Get the plug-in and call tryToShortCircuitInvoke.
  2024. * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
  2025. (WebKit::NetscapePlugin::tryToShortCircuitInvoke):
  2026. Call the plug-in controller.
  2027. * WebProcess/Plugins/PluginView.cpp:
  2028. (WebKit::PluginView::tryToShortCircuitInvoke):
  2029. Always return false here, since there's no need to short-circuit calls
  2030. for plug-ins that live in the web process.
  2031. 2011-05-16 Siddharth Mathur <siddharth.mathur@nokia.com>
  2032. Reviewed by Laszlo Gombos.
  2033. [Qt][WK2][Symbian] Shared memory implementation for Symbian
  2034. https://bugs.webkit.org/show_bug.cgi?id=55875
  2035. Use global chunks for sharing data between processes.
  2036. This is an initial implementation. An outstanding issue
  2037. is the correct way to close() the chunk in the SharedMemory d'tor
  2038. without triggering a delete by the kernel when the ref-count
  2039. temporarily goes to zero.
  2040. * Platform/SharedMemory.h: platform specific handle and chunk name
  2041. * Platform/qt/SharedMemorySymbian.cpp: Added. Native Symbian OS implementation
  2042. using RChunk.CreateGlobal() for named chunks. The chunk name is serialized
  2043. and sent over the IPC channel and opened by the remote process using
  2044. RChunk.OpenGlobal().
  2045. (WebKit::SharedMemory::Handle::Handle):
  2046. (WebKit::SharedMemory::Handle::~Handle):
  2047. (WebKit::SharedMemory::Handle::isNull):
  2048. (WebKit::SharedMemory::Handle::encode):
  2049. (WebKit::SharedMemory::Handle::decode):
  2050. (WebKit::SharedMemory::create):
  2051. (WebKit::SharedMemory::~SharedMemory):
  2052. (WebKit::SharedMemory::createHandle):
  2053. (WebKit::SharedMemory::systemPageSize):
  2054. * Platform/unix/SharedMemoryUnix.cpp: Exclude Qt-Symbian using HAVE(UNIX_DOMAIN_SOCKETS)
  2055. * WebKit2.pro: Add SharedMemorySymbian.cpp
  2056. 2011-05-16 Carlos Garcia Campos <cgarcia@igalia.com>
  2057. Unreviewed. Fix WebKit2 GTK build after r86489.
  2058. * GNUmakefile.am: Add PluginProcess/PluginCreationParameters.cpp
  2059. and PluginProcess/PluginCreationParameters.h to compilation.
  2060. 2011-05-16 Carlos Garcia Campos <cgarcia@igalia.com>
  2061. Reviewed by Martin Robinson.
  2062. [GTK] Enable building GTK port with ENABLE_PLUGIN_PROCESS=1
  2063. https://bugs.webkit.org/show_bug.cgi?id=58223
  2064. * GNUmakefile.am: Add new files to compilation.
  2065. * PluginProcess/gtk/PluginControllerProxyGtk.cpp: Added.
  2066. (WebKit::PluginControllerProxy::platformInitialize):
  2067. (WebKit::PluginControllerProxy::platformDestroy):
  2068. (WebKit::PluginControllerProxy::platformGeometryDidChange):
  2069. * PluginProcess/gtk/PluginProcessGtk.cpp: Added.
  2070. (WebKit::PluginProcess::platformInitialize):
  2071. * UIProcess/Plugins/gtk/PluginProcessProxyGtk.cpp: Added.
  2072. (WebKit::PluginProcessProxy::platformInitializePluginProcess):
  2073. * WebProcess/Plugins/Netscape/gtk/PluginProxyGtk.cpp: Added.
  2074. (WebKit::PluginProxy::needsBackingStore):
  2075. 2011-05-16 Adam Barth <abarth@webkit.org>
  2076. Attempt to fix the Qt build. (Strict PassOwnPtr fix.)
  2077. * Shared/qt/ShareableBitmapQt.cpp:
  2078. (WebKit::ShareableBitmap::createGraphicsContext):
  2079. 2011-05-15 Michael Saboff <msaboff@apple.com>
  2080. Reviewed by Geoffrey Garen.
  2081. Suboptimal lifetime of BackingStore objects in DrawingAreaProxyImpl
  2082. https://bugs.webkit.org/show_bug.cgi?id=60864
  2083. Implemented reuse of BackingStore's in
  2084. DrawingAreaProxyImpl::didUpdateBackingStoreState when the size needed
  2085. matches the size of the existing BackingStore.
  2086. Also reduced the discardBackingStoreTimer from 5 to 2 seconds.
  2087. These changes reduces memory usage up to 10MB on memory tests.
  2088. * UIProcess/DrawingAreaProxyImpl.cpp:
  2089. (WebKit::DrawingAreaProxyImpl::didUpdateBackingStoreState):
  2090. (WebKit::DrawingAreaProxyImpl::discardBackingStoreSoon):
  2091. 2011-05-15 Anders Carlsson <andersca@apple.com>
  2092. Reviewed by Maciej Stachowiak.
  2093. Pass the window NPObject identifier in the plug-in creation parameters
  2094. https://bugs.webkit.org/show_bug.cgi?id=60865
  2095. This avoids a synchronous call when the plug-in wants to get the NPObject that
  2096. corresponds to the window.
  2097. * PluginProcess/PluginControllerProxy.cpp:
  2098. (WebKit::PluginControllerProxy::initialize):
  2099. Change this to take the PluginCreationParameters. Initialize the window NPObject.
  2100. (WebKit::PluginControllerProxy::windowScriptNPObject):
  2101. Just return the window NPObject; it's already been initialized.
  2102. * PluginProcess/PluginControllerProxy.h:
  2103. * PluginProcess/PluginCreationParameters.cpp:
  2104. (WebKit::PluginCreationParameters::PluginCreationParameters):
  2105. (WebKit::PluginCreationParameters::encode):
  2106. (WebKit::PluginCreationParameters::decode):
  2107. * PluginProcess/PluginCreationParameters.h:
  2108. Add the window NPObject ID.
  2109. * PluginProcess/WebProcessConnection.cpp:
  2110. (WebKit::WebProcessConnection::createPlugin):
  2111. Pass the creation parameters to PluginControllerProxy::initialize.
  2112. * WebProcess/Plugins/PluginProxy.cpp:
  2113. (WebKit::PluginProxy::initialize):
  2114. Initialize the window NPObject ID.
  2115. * WebProcess/Plugins/PluginProxy.messages.in:
  2116. Remove the GetWindowScriptNPObject message.
  2117. 2011-05-15 Anders Carlsson <andersca@apple.com>
  2118. Reviewed by Geoffrey Garen.
  2119. Pass the document URL and toplevel document URL when creating a plug-in
  2120. https://bugs.webkit.org/show_bug.cgi?id=60863
  2121. This is the first of a series of patches intended to reduce the IPC traffic
  2122. during plug-in instantiation.
  2123. * WebProcess/Plugins/Plugin.cpp:
  2124. (WebKit::Plugin::Parameters::encode):
  2125. Encode the URLs.
  2126. (WebKit::Plugin::Parameters::decode):
  2127. Decode the URLs.
  2128. * WebProcess/Plugins/Plugin.h:
  2129. Add the document and toplevel document URLs.
  2130. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  2131. (WebKit::WebFrameLoaderClient::createPlugin):
  2132. Initialize the document and toplevel document URLs.
  2133. 2011-05-13 Oliver Hunt <oliver@apple.com>
  2134. Reviewed by Geoffrey Garen.
  2135. Make GC validation more aggressive
  2136. https://bugs.webkit.org/show_bug.cgi?id=60802
  2137. Add GC_VALIDATION calls to all the JSNPObject methods.
  2138. * WebProcess/Plugins/Netscape/JSNPObject.cpp:
  2139. (WebKit::JSNPObject::invalidate):
  2140. (WebKit::JSNPObject::callMethod):
  2141. (WebKit::JSNPObject::callObject):
  2142. (WebKit::JSNPObject::callConstructor):
  2143. (WebKit::JSNPObject::getCallData):
  2144. (WebKit::JSNPObject::getConstructData):
  2145. (WebKit::JSNPObject::getOwnPropertySlot):
  2146. (WebKit::JSNPObject::getOwnPropertyDescriptor):
  2147. (WebKit::JSNPObject::put):
  2148. (WebKit::JSNPObject::getOwnPropertyNames):
  2149. (WebKit::JSNPObject::propertyGetter):
  2150. (WebKit::JSNPObject::methodGetter):
  2151. 2011-05-13 Oliver Hunt <oliver@apple.com>
  2152. Reviewed by Geoffrey Garen.
  2153. Make GC validation more aggressive
  2154. https://bugs.webkit.org/show_bug.cgi?id=60802
  2155. Add GC_VALIDATION calls to all the JSNPObject methods.
  2156. * WebProcess/Plugins/Netscape/JSNPObject.cpp:
  2157. (WebKit::JSNPObject::invalidate):
  2158. (WebKit::JSNPObject::callMethod):
  2159. (WebKit::JSNPObject::callObject):
  2160. (WebKit::JSNPObject::callConstructor):
  2161. (WebKit::JSNPObject::getCallData):
  2162. (WebKit::JSNPObject::getConstructData):
  2163. (WebKit::JSNPObject::getOwnPropertySlot):
  2164. (WebKit::JSNPObject::getOwnPropertyDescriptor):
  2165. (WebKit::JSNPObject::put):
  2166. (WebKit::JSNPObject::getOwnPropertyNames):
  2167. (WebKit::JSNPObject::propertyGetter):
  2168. (WebKit::JSNPObject::methodGetter):
  2169. 2011-05-14 Alexey Proskuryakov <ap@apple.com>
  2170. Reviewed by Sam Weinig.
  2171. WebKit2: Smart cut&paste is broken
  2172. https://bugs.webkit.org/show_bug.cgi?id=60840
  2173. <rdar://problem/9439927>
  2174. * UIProcess/mac/TextCheckerMac.mm: (WebKit::TextChecker::isSmartInsertDeleteEnabled):
  2175. Match WK1 - this default defaults to YES if not present.
  2176. 2011-05-14 Dan Bernstein <mitz@apple.com>
  2177. Reviewed by Alice Liu.
  2178. WKView does not draw after forced repaint before the first update
  2179. https://bugs.webkit.org/show_bug.cgi?id=60845
  2180. * UIProcess/DrawingAreaProxy.h:
  2181. (WebKit::DrawingAreaProxy::waitForBackingStoreUpdateOnNextPaint): Added.
  2182. * UIProcess/DrawingAreaProxyImpl.cpp:
  2183. (WebKit::DrawingAreaProxyImpl::waitForBackingStoreUpdateOnNextPaint): Set m_hasReceivedFirstUpdate
  2184. to true, ensuring that paint() will wait for an update if needed.
  2185. * UIProcess/DrawingAreaProxyImpl.h:
  2186. * UIProcess/WebPageProxy.cpp:
  2187. (WebKit::WebPageProxy::forceRepaint): Call DrawingAreaProxy::waitForBackingStoreUpdateOnNextPaint().
  2188. 2011-05-14 Anders Carlsson <andersca@apple.com>
  2189. Reviewed by Sam Weinig.
  2190. Document the WantsMozillaUserAgent quirk and make it Windows specific
  2191. https://bugs.webkit.org/show_bug.cgi?id=60843
  2192. * Shared/Plugins/PluginQuirks.h:
  2193. * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
  2194. (WebKit::NetscapePlugin::userAgent):
  2195. 2011-05-14 Anders Carlsson <andersca@apple.com>
  2196. Reviewed by Sam Weinig.
  2197. Consolidate plug-in creation parameters to a single struct
  2198. https://bugs.webkit.org/show_bug.cgi?id=60839
  2199. * PluginProcess/PluginControllerProxy.cpp:
  2200. (WebKit::PluginControllerProxy::create):
  2201. (WebKit::PluginControllerProxy::PluginControllerProxy):
  2202. * PluginProcess/PluginControllerProxy.h:
  2203. * PluginProcess/PluginCreationParameters.cpp: Added.
  2204. (WebKit::PluginCreationParameters::PluginCreationParameters):
  2205. (WebKit::PluginCreationParameters::encode):
  2206. (WebKit::PluginCreationParameters::decode):
  2207. * PluginProcess/PluginCreationParameters.h: Added.
  2208. * PluginProcess/WebProcessConnection.cpp:
  2209. (WebKit::WebProcessConnection::createPlugin):
  2210. * PluginProcess/WebProcessConnection.h:
  2211. * PluginProcess/WebProcessConnection.messages.in:
  2212. * Scripts/webkit2/messages.py:
  2213. * WebKit2.xcodeproj/project.pbxproj:
  2214. * WebProcess/Plugins/PluginProxy.cpp:
  2215. (WebKit::PluginProxy::initialize):
  2216. 2011-05-14 Anders Carlsson <andersca@apple.com>
  2217. Reviewed by Kevin Decker.
  2218. NPP_URLNotify is not called if a URL passed to NPN_GetURLNotify fails to load
  2219. https://bugs.webkit.org/show_bug.cgi?id=60823
  2220. <rdar://problem/9430386>
  2221. If a plug-in stream fails to load before it's been started, we won't destroy the stream.
  2222. * WebProcess/Plugins/Netscape/NetscapePluginStream.cpp:
  2223. (WebKit::NetscapePluginStream::stop):
  2224. Call notifyAndDestroyStream which will call NPP_URLNotify if necessary, and also destroy the stream.
  2225. (WebKit::NetscapePluginStream::notifyAndDestroyStream):
  2226. Pass the request URL to NPP_URLNotify, matching other browsers.
  2227. 2011-05-14 Jer Noble <jer.noble@apple.com>
  2228. Reviewed by Simon Fraser.
  2229. Flashing window frame and graphical glitches after exiting full screen mode.
  2230. https://bugs.webkit.org/show_bug.cgi?id=60825
  2231. A layer-backed WebView throws an exception when moved from a layer-backed parent view
  2232. to a non-layer-backed one, so make the WebView a child of the content view, instead of
  2233. the animation view. There is an unrelated fix in beganExitFullScreen, which was calling
  2234. finishedExitFullScreenAnimation: instead of finishedEnterFullScreenAnimation: when
  2235. notifications come out of order.
  2236. * UIProcess/mac/WKFullScreenWindowController.mm:
  2237. (-[WKFullScreenWindowController finishedEnterFullScreenAnimation:]): Add the _webView
  2238. to the full screen window's content view, instead of the _animationView.
  2239. (-[WKFullScreenWindowController beganExitFullScreenAnimation]): Call
  2240. finishedEnterFullScreenAnimation: instead of finishedExitFullScreenAnimation:.
  2241. (-[WKFullScreenWindowController enterAcceleratedCompositingMode:WebKit::]): Add the
  2242. _layerHostingView to the contentView, instead of the animationView.
  2243. 2011-05-14 Csaba Osztrogonác <ossy@webkit.org>
  2244. Unreviewed, rolling out r86469 and r86471, because they made hundreds tests crash on Qt.
  2245. Make GC validation more aggressive
  2246. https://bugs.webkit.org/show_bug.cgi?id=60802
  2247. * WebProcess/Plugins/Netscape/JSNPObject.cpp:
  2248. (WebKit::JSNPObject::invalidate):
  2249. (WebKit::JSNPObject::callMethod):
  2250. (WebKit::JSNPObject::callObject):
  2251. (WebKit::JSNPObject::callConstructor):
  2252. (WebKit::JSNPObject::getCallData):
  2253. (WebKit::JSNPObject::getConstructData):
  2254. (WebKit::JSNPObject::getOwnPropertySlot):
  2255. (WebKit::JSNPObject::getOwnPropertyDescriptor):
  2256. (WebKit::JSNPObject::put):
  2257. (WebKit::JSNPObject::getOwnPropertyNames):
  2258. (WebKit::JSNPObject::propertyGetter):
  2259. (WebKit::JSNPObject::methodGetter):
  2260. 2011-05-14 Sheriff Bot <webkit.review.bot@gmail.com>
  2261. Unreviewed, rolling out r86476.
  2262. http://trac.webkit.org/changeset/86476
  2263. https://bugs.webkit.org/show_bug.cgi?id=60832
  2264. It made plugins/get-url-notify-with-url-that-fails-to-
  2265. load.html crash on GTK (Requested by Ossy on #webkit).
  2266. * WebProcess/Plugins/Netscape/NetscapePluginStream.cpp:
  2267. (WebKit::NetscapePluginStream::stop):
  2268. (WebKit::NetscapePluginStream::notifyAndDestroyStream):
  2269. 2011-05-13 Enrica Casucci <enrica@apple.com>
  2270. Reviewed by Darin Adler and Brian Weinstein.
  2271. REGRESSION (WK2): Can't drag and drop a link or image from Safari to Desktop
  2272. https://bugs.webkit.org/show_bug.cgi?id=60819
  2273. <rdar://problem/9370689>
  2274. To support drag-and-drop to the desktop and other windows applications,
  2275. we need to support the fileDescriptor and fileContentZero clipboard formats.
  2276. This patch adds the support for serializing these types across the process boundary.
  2277. * Platform/CoreIPC/Arguments.h: Added support for messages with 10 arguments.
  2278. (CoreIPC::Arguments10::Arguments10):
  2279. (CoreIPC::Arguments10::encode):
  2280. (CoreIPC::Arguments10::decode):
  2281. (CoreIPC::In):
  2282. (CoreIPC::Out):
  2283. * Platform/CoreIPC/HandleMessage.h:
  2284. (CoreIPC::callMemberFunction): Added support for memebers with 10 arguments.
  2285. * UIProcess/WebPageProxy.cpp:
  2286. (WebKit::WebPageProxy::startDragDrop):
  2287. * UIProcess/WebPageProxy.h:
  2288. * UIProcess/WebPageProxy.messages.in:
  2289. * WebProcess/WebCoreSupport/win/WebDragClientWin.cpp:
  2290. (WebKit::WebDragClient::startDrag):
  2291. 2011-05-13 Anders Carlsson <andersca@apple.com>
  2292. Reviewed by Sam Weinig.
  2293. NPP_URLNotify is not called if a URL passed to NPN_GetURLNotify fails to load
  2294. https://bugs.webkit.org/show_bug.cgi?id=60823
  2295. <rdar://problem/9430386>
  2296. If a plug-in stream fails to load before it's been started, we won't destroy the stream.
  2297. * WebProcess/Plugins/Netscape/NetscapePluginStream.cpp:
  2298. (WebKit::NetscapePluginStream::stop):
  2299. Call notifyAndDestroyStream which will call NPP_URLNotify if necessary, and also destroy the stream.
  2300. (WebKit::NetscapePluginStream::notifyAndDestroyStream):
  2301. Pass the request URL to NPP_URLNotify, matching other browsers.
  2302. 2011-05-13 Michael Saboff <msaboff@apple.com>
  2303. Reviewed by Geoffrey Garen.
  2304. Backing store may not get discarded due to stopped timer
  2305. https://bugs.webkit.org/show_bug.cgi?id=60816
  2306. Changed the backing store timer to restart if it has been stopped.
  2307. The evaluation is done when the view's state is changed.
  2308. This change appears to be worth ~3MB (one backing store worth)
  2309. during memory tests.
  2310. * UIProcess/DrawingAreaProxyImpl.cpp:
  2311. (WebKit::DrawingAreaProxyImpl::discardBackingStoreSoon):
  2312. * UIProcess/WebPageProxy.cpp:
  2313. (WebKit::WebPageProxy::viewStateDidChange):
  2314. 2011-05-13 Oliver Hunt <oliver@apple.com>
  2315. Reviewed by Geoffrey Garen.
  2316. Make GC validation more aggressive
  2317. https://bugs.webkit.org/show_bug.cgi?id=60802
  2318. Add GC_VALIDATION calls to all the JSNPObject methods.
  2319. * WebProcess/Plugins/Netscape/JSNPObject.cpp:
  2320. (WebKit::JSNPObject::invalidate):
  2321. (WebKit::JSNPObject::callMethod):
  2322. (WebKit::JSNPObject::callObject):
  2323. (WebKit::JSNPObject::callConstructor):
  2324. (WebKit::JSNPObject::getCallData):
  2325. (WebKit::JSNPObject::getConstructData):
  2326. (WebKit::JSNPObject::getOwnPropertySlot):
  2327. (WebKit::JSNPObject::getOwnPropertyDescriptor):
  2328. (WebKit::JSNPObject::put):
  2329. (WebKit::JSNPObject::getOwnPropertyNames):
  2330. (WebKit::JSNPObject::propertyGetter):
  2331. (WebKit::JSNPObject::methodGetter):
  2332. 2011-05-13 Anders Carlsson <andersca@apple.com>
  2333. Reviewed by Sam Weinig.
  2334. NPN_GetURL with a javascript: URL doesn't send back the result in the stream
  2335. https://bugs.webkit.org/show_bug.cgi?id=60810
  2336. In NetscapePluginStream::sendJavaScriptStream, we were incorrectly passing the result URL
  2337. to the stream, instead of the result. Also, store the request URL in the NetscapePluginStream object
  2338. to avoid sending it over the wire.
  2339. * PluginProcess/PluginControllerProxy.cpp:
  2340. (WebKit::PluginControllerProxy::didEvaluateJavaScript):
  2341. * PluginProcess/PluginControllerProxy.h:
  2342. * PluginProcess/PluginControllerProxy.messages.in:
  2343. * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
  2344. (WebKit::NetscapePlugin::loadURL):
  2345. (WebKit::NetscapePlugin::didEvaluateJavaScript):
  2346. (WebKit::NetscapePlugin::manualStreamDidReceiveResponse):
  2347. * WebProcess/Plugins/Netscape/NetscapePlugin.h:
  2348. * WebProcess/Plugins/Netscape/NetscapePluginStream.cpp:
  2349. (WebKit::NetscapePluginStream::NetscapePluginStream):
  2350. (WebKit::NetscapePluginStream::sendJavaScriptStream):
  2351. * WebProcess/Plugins/Netscape/NetscapePluginStream.h:
  2352. (WebKit::NetscapePluginStream::create):
  2353. * WebProcess/Plugins/Plugin.h:
  2354. * WebProcess/Plugins/PluginProxy.cpp:
  2355. (WebKit::PluginProxy::didEvaluateJavaScript):
  2356. * WebProcess/Plugins/PluginProxy.h:
  2357. * WebProcess/Plugins/PluginView.cpp:
  2358. (WebKit::PluginView::performJavaScriptURLRequest):
  2359. 2011-05-13 Jeff Miller <jeffm@apple.com>
  2360. Reviewed by Darin Adler.
  2361. Make some page() member functions const
  2362. https://bugs.webkit.org/show_bug.cgi?id=60794
  2363. * UIProcess/ChunkedUpdateDrawingAreaProxy.h: Make page() const.
  2364. * UIProcess/WebFrameProxy.h:
  2365. (WebKit::WebFrameProxy::page): Make page() const.
  2366. * UIProcess/WebInspectorProxy.h:
  2367. (WebKit::WebInspectorProxy::page): Make page() const.
  2368. * UIProcess/gtk/ChunkedUpdateDrawingAreaProxyGtk.cpp:
  2369. (WebKit::ChunkedUpdateDrawingAreaProxy::page): Make page() const.
  2370. * UIProcess/mac/ChunkedUpdateDrawingAreaProxyMac.mm:
  2371. (WebKit::ChunkedUpdateDrawingAreaProxy::page): Make page() const.
  2372. * UIProcess/qt/ChunkedUpdateDrawingAreaProxyQt.cpp:
  2373. (WebKit::ChunkedUpdateDrawingAreaProxy::page): Make page() const.
  2374. * UIProcess/win/ChunkedUpdateDrawingAreaProxyWin.cpp:
  2375. (WebKit::ChunkedUpdateDrawingAreaProxy::page): Make page() const.
  2376. 2011-05-13 Adam Roben <aroben@apple.com>
  2377. Load plugins in the order they're found
  2378. Fixes <http://webkit.org/b/60788> <rdar://problem/9435787> REGRESSION (r69790): WebKit2
  2379. doesn't prefer plugins in the additional plugins directory
  2380. Reviewed by Anders Carlsson.
  2381. * UIProcess/Plugins/PluginInfoStore.cpp:
  2382. (WebKit::addFromVector):
  2383. Changed to use a ListHashSet instead of a HashSet to store the plugin paths.
  2384. 2011-05-13 Sam Weinig <sam@webkit.org>
  2385. Reviewed by Anders Carlsson.
  2386. Prune #includes from FrameView.h (Part 2)
  2387. https://bugs.webkit.org/show_bug.cgi?id=60748
  2388. - Update files that were depending on FrameView.h #including Frame.h or
  2389. Page.h.
  2390. * WebProcess/Plugins/PluginView.cpp:
  2391. * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
  2392. * WebProcess/WebPage/WebContextMenu.cpp:
  2393. * WebProcess/WebPage/mac/AccessibilityWebPageObject.mm:
  2394. 2011-05-13 Martin Robinson <mrobinson@igalia.com>
  2395. Reviewed by Eric Seidel.
  2396. [GTK] Share the GTK+ key binding code between WebKit1 and WebKit2
  2397. https://bugs.webkit.org/show_bug.cgi?id=59765
  2398. Use the new KeyBindingTranslator class from WebCore/platform/gtk. With this utility
  2399. class we can now share the code with WebKit2.
  2400. * UIProcess/API/gtk/PageClientImpl.cpp:
  2401. (WebKit::PageClientImpl::PageClientImpl): No longer need to initialize keybinding code.
  2402. (WebKit::PageClientImpl::getEditorCommandsForKeyEvent): Use the new utility class.
  2403. * UIProcess/API/gtk/PageClientImpl.h: Remove unnecessary members. Add utility class member.
  2404. 2011-05-12 Pratik Solanki <psolanki@apple.com>
  2405. Reviewed by Antti Koivisto.
  2406. Part of WebCore should use CFNetwork-based loader on Mac
  2407. https://bugs.webkit.org/show_bug.cgi?id=51836
  2408. Use CFRunLoop when using CFNetwork.
  2409. * WebProcess/WebPage/mac/WebPageMac.mm:
  2410. (WebKit::WebPage::platformInitialize):
  2411. 2011-05-12 Sam Weinig <sam@webkit.org>
  2412. Reviewed by Gavin Barraclough.
  2413. WebProcess sandbox denies file:/// accesses after you navigate to a nonexistent file
  2414. <rdar://problem/9427752>
  2415. https://bugs.webkit.org/show_bug.cgi?id=60745
  2416. * WebProcess/WebPage/WebPage.cpp:
  2417. (WebKit::WebPage::SandboxExtensionTracker::didStartProvisionalLoad):
  2418. Don't attempt to re-use a non-existent committed sandbox extension. This can
  2419. happen when the previous load was file: url, but did not require an extension,
  2420. such as an error page.
  2421. 2011-05-12 Jia Pu <jpu@apple.com>
  2422. Reviewed by Darin Adler.
  2423. Regression caused by changeset 86281
  2424. https://bugs.webkit.org/show_bug.cgi?id=60712
  2425. <rdar://problem/9427970>
  2426. Removed the condition variable. [NSSpellChecker dismissCorrectionIndicatorForView:] is blocking.
  2427. So handleAcceptedReplacement() triggered by dismissInternal() will return before dismissInternal()
  2428. returns. So we don't need to use the condition to coordinate between these two function. In fact,
  2429. all callbacks are delivered on main thread. We don't really need any locking here.
  2430. Since now we don't have distinction between dismiss() and dismissSoon(). dismissSoon() has
  2431. been removed.
  2432. * UIProcess/API/mac/PageClientImpl.mm:
  2433. (WebKit::PageClientImpl::dismissCorrectionPanelSoon):
  2434. * UIProcess/mac/CorrectionPanel.h:
  2435. * UIProcess/mac/CorrectionPanel.mm:
  2436. (WebKit::CorrectionPanel::CorrectionPanel):
  2437. (WebKit::CorrectionPanel::show):
  2438. (WebKit::CorrectionPanel::dismiss):
  2439. (WebKit::CorrectionPanel::dismissInternal):
  2440. (WebKit::CorrectionPanel::handleAcceptedReplacement):
  2441. 2011-05-12 Brian Weinstein <bweinstein@apple.com>
  2442. Reviewed by Adam Roben.
  2443. WebKit2: Implement plugin quirk for Mozilla user agent for older Flash
  2444. https://bugs.webkit.org/show_bug.cgi?id=60726
  2445. <rdar://problem/8470824>
  2446. Implement the quirk for versions of Flash before v10 that only request windowless plugins
  2447. if we use a Mozilla user agent.
  2448. * Shared/Plugins/Netscape/win/NetscapePluginModuleWin.cpp:
  2449. (WebKit::NetscapePluginModule::determineQuirks): If we have a plugin that handles the
  2450. "application/x-shockwave-flash" MIME type with a version less than 10, tell it to use
  2451. the Mozilla user agent.
  2452. * Shared/Plugins/PluginQuirks.h:
  2453. * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
  2454. (WebKit::NetscapePlugin::userAgent): Add an early return if the plugin uses the Mozilla user
  2455. agent.
  2456. * win/WebKit2.vcproj: Add PluginQuirks.h.
  2457. 2011-05-12 Anders Carlsson <andersca@apple.com>
  2458. Reviewed by Simon Fraser.
  2459. PluginView::invalidateRect doesn't work for transformed plug-ins
  2460. https://bugs.webkit.org/show_bug.cgi?id=60727
  2461. <rdar://problem/9331244>
  2462. Ask the RenderObject to repaint the plug-in instead of using invalidateContentsAndWindow.
  2463. This matches what we do in WebKit1.
  2464. * WebProcess/Plugins/PluginView.cpp:
  2465. (WebKit::PluginView::invalidateRect):
  2466. 2011-05-12 Jessie Berlin <jberlin@apple.com>
  2467. Reviewed by Darin Adler.
  2468. [Windows WebKit2] Use cookies set in WebKit1
  2469. https://bugs.webkit.org/show_bug.cgi?id=60274
  2470. Properly handle the case where there is no serialized default storage session by not trying
  2471. to encode or decode 0, while still making sure to decode any valid storage session.
  2472. * Shared/WebProcessCreationParameters.cpp:
  2473. (WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
  2474. (WebKit::WebProcessCreationParameters::encode):
  2475. Only encode the storage session if there is one to encode.
  2476. (WebKit::WebProcessCreationParameters::decode):
  2477. Only decode the storage session there is one to decode.
  2478. * Shared/WebProcessCreationParameters.h:
  2479. 2011-05-11 Brian Weinstein <bweinstein@apple.com>
  2480. Reviewed by Anders Carlsson.
  2481. After relaunching an unresponsive web process, web page stops responding to mouse movement
  2482. https://bugs.webkit.org/show_bug.cgi?id=60669
  2483. <rdar://problem/9409934>
  2484. * UIProcess/WebPageProxy.cpp:
  2485. (WebKit::WebPageProxy::processDidCrash): Set m_processingMouseMoveEvent to false when the WebProcess
  2486. crashes.
  2487. 2011-05-10 Tony Gentilcore <tonyg@chromium.org>
  2488. Reviewed by Darin Adler.
  2489. Perform some forward declarations suggested by include-what-you-use
  2490. https://bugs.webkit.org/show_bug.cgi?id=60545
  2491. * WebProcess/WebPage/mac/WebPageMac.mm:
  2492. 2011-05-12 Carlos Garcia Campos <cgarcia@igalia.com>
  2493. Reviewed by Martin Robinson.
  2494. Fix the build with ENABLE_PLUGIN_PROCESS
  2495. https://bugs.webkit.org/show_bug.cgi?id=60628
  2496. * WebProcess/Plugins/PluginProxy.cpp:
  2497. (WebKit::PluginProxy::initialize): Move the call to
  2498. pluginController->isAcceleratedCompositingEnabled() to a #ifdef block.
  2499. * WebProcess/Plugins/PluginProxy.h: Add include for <WebCore/IntRect.h>.
  2500. 2011-05-11 Damian Kaleta <dkaleta@apple.com>
  2501. Reviewed by Brady Eidson.
  2502. Need a new API that will try to restore the scrollbars' position, when navigating in the back/forward history
  2503. https://bugs.webkit.org/show_bug.cgi?id=60674
  2504. * UIProcess/API/C/WKPage.cpp:
  2505. (WKPageTryRestoreScrollPosition):
  2506. * UIProcess/API/C/WKPage.h:
  2507. * UIProcess/WebPageProxy.cpp:
  2508. (WebKit::WebPageProxy::tryRestoreScrollPosition):
  2509. * UIProcess/WebPageProxy.h:
  2510. * WebProcess/WebPage/WebPage.cpp:
  2511. (WebKit::WebPage::tryRestoreScrollPosition):
  2512. * WebProcess/WebPage/WebPage.h:
  2513. * WebProcess/WebPage/WebPage.messages.in:
  2514. 2011-05-11 Sam Weinig <sam@webkit.org>
  2515. Reviewed by Gavin Barraclough.
  2516. WebKit2 doesn't build on Mac with strict PassOwnPtr
  2517. https://bugs.webkit.org/show_bug.cgi?id=60655
  2518. * Platform/CoreIPC/HandleMessage.h:
  2519. (CoreIPC::handleMessageDelayed):
  2520. Add explicit adoptPtr to indicate that the constructor is taking ownership.
  2521. 2011-05-11 Jessie Berlin <jberlin@apple.com>
  2522. Reviewed by Steve Falkenburg.
  2523. [Windows WebKit2] Use cookies set in WebKit1
  2524. https://bugs.webkit.org/show_bug.cgi?id=60274
  2525. Share the default storage session between the UI and Web Processes.
  2526. * Shared/WebProcessCreationParameters.cpp:
  2527. (WebKit::WebProcessCreationParameters::encode):
  2528. Only encode the session parameter if it is valid.
  2529. (WebKit::WebProcessCreationParameters::decode):
  2530. Don't try to decode a null session data.
  2531. * Shared/WebProcessCreationParameters.h:
  2532. Add a parameter for a serialized default storage session, used only on Windows.
  2533. * Shared/win/WebCoreArgumentCodersWin.cpp:
  2534. (CoreIPC::decodeResourceRequest):
  2535. Make sure to set the current storage session on any requests used by the Web
  2536. Process before CFNetwork has to do anything with them, in order for CFNetwork to avoid
  2537. doing anything with the Web Process's default storage session.
  2538. * UIProcess/win/WebContextWin.cpp:
  2539. (WebKit::WebContext::platformInitializeWebProcess):
  2540. Serialize the default storage session in the UI Process and add it to the
  2541. WebProcessCreationParameters.
  2542. * WebProcess/WebPage/win/WebPageWin.cpp:
  2543. (WebKit::cachedResponseForURL):
  2544. Use the cache associated with the current storage session and make sure the request has the
  2545. current storage session set on it before doing anything with it.
  2546. * WebProcess/win/WebProcessWin.cpp:
  2547. (WebKit::WebProcess::platformSetCacheModel):
  2548. Use the default storage session.
  2549. (WebKit::WebProcess::platformClearResourceCaches):
  2550. Ditto.
  2551. (WebKit::WebProcess::platformInitializeWebProcess):
  2552. Deserialize the default storage session passed in by the UI Process and hand it to the
  2553. ResourceHandle.
  2554. 2011-05-11 Jia Pu <jpu@apple.com>
  2555. Reviewed by Darin Adler.
  2556. CorrectionPanel sometimes hangs in dismissSoon().
  2557. https://bugs.webkit.org/show_bug.cgi?id=60599
  2558. <rdar://problem/9313628>
  2559. Make sure dismissSoon() won't wait indefinitely if handleAcceptedReplacement() sets m_resultForSynchronousDismissal
  2560. to nil. Added a designated variable m_isDismissing, instead of piggy-backing m_resultForSynchronousDismissal,
  2561. for condition checking.
  2562. * UIProcess/mac/CorrectionPanel.h:
  2563. * UIProcess/mac/CorrectionPanel.mm:
  2564. (WebKit::CorrectionPanel::CorrectionPanel):
  2565. (WebKit::CorrectionPanel::show):
  2566. (WebKit::CorrectionPanel::dismissSoon):
  2567. (WebKit::CorrectionPanel::dismissInternal):
  2568. (WebKit::CorrectionPanel::handleAcceptedReplacement):
  2569. 2011-05-11 Sheriff Bot <webkit.review.bot@gmail.com>
  2570. Unreviewed, rolling out r86255.
  2571. http://trac.webkit.org/changeset/86255
  2572. https://bugs.webkit.org/show_bug.cgi?id=60660
  2573. REGRESSION (r86255): Lots of tests crashing in
  2574. CFWriteStreamCreateWithAllocatedBuffers on Windows 7 Release
  2575. (WebKit2 Tests) (Requested by aroben on #webkit).
  2576. * Shared/WebProcessCreationParameters.cpp:
  2577. (WebKit::WebProcessCreationParameters::encode):
  2578. (WebKit::WebProcessCreationParameters::decode):
  2579. * Shared/WebProcessCreationParameters.h:
  2580. * Shared/win/WebCoreArgumentCodersWin.cpp:
  2581. (CoreIPC::decodeResourceRequest):
  2582. * UIProcess/win/WebContextWin.cpp:
  2583. (WebKit::WebContext::platformInitializeWebProcess):
  2584. * WebProcess/WebPage/win/WebPageWin.cpp:
  2585. (WebKit::cachedResponseForURL):
  2586. * WebProcess/win/WebProcessWin.cpp:
  2587. (WebKit::WebProcess::platformSetCacheModel):
  2588. (WebKit::WebProcess::platformClearResourceCaches):
  2589. (WebKit::WebProcess::platformInitializeWebProcess):
  2590. 2011-05-11 Adam Roben <aroben@apple.com>
  2591. Don't notify the plugin when a targeted javascript: URL request completes
  2592. This matches Mozilla and WebKit1.
  2593. Fixes <http://webkit.org/b/60568> <rdar://problem/8610657> REGRESSION (WebKit2): Flash
  2594. plugin doesn't appear on a hanes.com page
  2595. Test: plugins/get-targeted-javascript-url.html
  2596. Reviewed by Anders Carlsson.
  2597. * WebProcess/Plugins/PluginView.cpp:
  2598. (WebKit::PluginView::performJavaScriptURLRequest): Don't call back to the plugin if the
  2599. request had a target.
  2600. 2011-05-11 Jessie Berlin <jberlin@apple.com>
  2601. Reviewed by Steve Falkenburg.
  2602. [Windows WebKit2] Use cookies set in WebKit1
  2603. https://bugs.webkit.org/show_bug.cgi?id=60274
  2604. Share the default storage session between the UI and Web Processes.
  2605. * Shared/WebProcessCreationParameters.cpp:
  2606. (WebKit::WebProcessCreationParameters::encode):
  2607. (WebKit::WebProcessCreationParameters::decode):
  2608. * Shared/WebProcessCreationParameters.h:
  2609. Add a parameter for a serialized default storage session, used only on Windows.
  2610. * Shared/win/WebCoreArgumentCodersWin.cpp:
  2611. (CoreIPC::decodeResourceRequest):
  2612. Make sure to set the current storage session on any requests used by the Web
  2613. Process before CFNetwork has to do anything with them, in order for CFNetwork to avoid
  2614. doing anything with the Web Process's default storage session.
  2615. * UIProcess/win/WebContextWin.cpp:
  2616. (WebKit::WebContext::platformInitializeWebProcess):
  2617. Serialize the default storage session in the UI Process and add it to the
  2618. WebProcessCreationParameters.
  2619. * WebProcess/WebPage/win/WebPageWin.cpp:
  2620. (WebKit::cachedResponseForURL):
  2621. Use the cache associated with the current storage session and make sure the request has the
  2622. current storage session set on it before doing anything with it.
  2623. * WebProcess/win/WebProcessWin.cpp:
  2624. (WebKit::WebProcess::platformSetCacheModel):
  2625. Use the default storage session.
  2626. (WebKit::WebProcess::platformClearResourceCaches):
  2627. Ditto.
  2628. (WebKit::WebProcess::platformInitializeWebProcess):
  2629. Deserialize the default storage session passed in by the UI Process and hand it to the
  2630. ResourceHandle.
  2631. 2011-05-11 Sam Weinig <sam@webkit.org>
  2632. Reviewed by Adam Roben.
  2633. WebKit2 should tell app that is unresponsive in more cases
  2634. <rdar://problem/9110151>
  2635. https://bugs.webkit.org/show_bug.cgi?id=60608
  2636. * UIProcess/DrawingAreaProxyImpl.cpp:
  2637. (WebKit::DrawingAreaProxyImpl::didUpdateBackingStoreState):
  2638. (WebKit::DrawingAreaProxyImpl::sendUpdateBackingStoreState):
  2639. Invoke the responsiveness time when forcing a backing store update
  2640. to catch the cases of activating tabs, resizing the window, etc.
  2641. 2011-05-11 Martin Robinson <mrobinson@igalia.com>
  2642. Try to fix the WinCairo build.
  2643. * Shared/ShareableBitmap.h: Correctly include RefPtrCairo here and
  2644. guard it with USE(CAIRO) instead of PLATFORM(CAIRO).
  2645. 2011-05-11 John Sullivan <sullivan@apple.com>
  2646. Reviewed by Darin Adler.
  2647. <https://bugs.webkit.org/show_bug.cgi?id=60631>
  2648. <rdar://problem/9420520>
  2649. WebKit2 doesn't clear the pendingAPIRequestURL on in-page anchor navigation [60631]
  2650. * UIProcess/WebPageProxy.cpp:
  2651. (WebKit::WebPageProxy::didSameDocumentNavigationForFrame):
  2652. Call clearPendingAPIRequestURL().
  2653. 2011-05-11 Adam Roben <aroben@apple.com>
  2654. Turn on strict PassOwnPtr on Windows
  2655. Fixes <http://webkit.org/b/60632> Windows should build with strict PassOwnPtr enabled
  2656. Reviewed by Adam Barth.
  2657. * WebProcess/FullScreen/win/WebFullScreenManagerWin.cpp:
  2658. (WebKit::WebFullScreenManagerWin::setRootFullScreenLayer): Use nullptr instead of 0.
  2659. 2011-05-11 Jessie Berlin <jberlin@apple.com>
  2660. Reviewed by Darin Adler.
  2661. [WebKit2] exceededDatabaseQuota function on WKPageUIClient needs to provide information
  2662. about the usage for both the origin overall and the database in question.
  2663. https://bugs.webkit.org/show_bug.cgi?id=60573
  2664. Add the currentOriginUsage parameter.
  2665. * Platform/CoreIPC/HandleMessage.h:
  2666. (CoreIPC::callMemberFunction):
  2667. * UIProcess/API/C/WKPage.h:
  2668. * UIProcess/WebPageProxy.cpp:
  2669. (WebKit::WebPageProxy::exceededDatabaseQuota):
  2670. * UIProcess/WebPageProxy.h:
  2671. * UIProcess/WebPageProxy.messages.in:
  2672. * UIProcess/WebUIClient.cpp:
  2673. (WebKit::WebUIClient::exceededDatabaseQuota):
  2674. * UIProcess/WebUIClient.h:
  2675. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  2676. (WebKit::WebChromeClient::exceededDatabaseQuota):
  2677. 2011-05-10 Oliver Hunt <oliver@apple.com>
  2678. Reviewed by Geoffrey Garen.
  2679. Assertion failure in JSC::Structure::typeInfo when reloading weather.com video page
  2680. https://bugs.webkit.org/show_bug.cgi?id=60580
  2681. The plugin object map was incorrect trying to implement a weak map itself using
  2682. destructors. Switch to a WeakGCMap and the problem is fixed.
  2683. * WebProcess/Plugins/Netscape/JSNPObject.cpp:
  2684. (WebKit::JSNPObject::~JSNPObject):
  2685. * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
  2686. (WebKit::NPRuntimeObjectMap::getOrCreateJSObject):
  2687. (WebKit::NPRuntimeObjectMap::invalidate):
  2688. * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.h:
  2689. 2011-05-10 Sam Weinig <sam@webkit.org>
  2690. Reviewed by Dan Bernstein.
  2691. Yet more quarantine related sandbox denial when downloading files
  2692. <rdar://problem/9397494>
  2693. * WebProcess/com.apple.WebProcess.sb:
  2694. 2011-05-10 Sam Weinig <sam@webkit.org>
  2695. Reviewed by Anders Carlsson.
  2696. WebKit2: Coalesced wheel events should be saved to hand back to the client on unhandled return
  2697. https://bugs.webkit.org/show_bug.cgi?id=60584
  2698. * UIProcess/WebPageProxy.cpp:
  2699. (WebKit::WebPageProxy::handleWheelEvent):
  2700. (WebKit::canCoalesce):
  2701. (WebKit::coalesce):
  2702. (WebKit::coalescedWheelEvent):
  2703. (WebKit::WebPageProxy::didReceiveEvent):
  2704. (WebKit::WebPageProxy::processDidCrash):
  2705. Reworks coalescing/merging code to happen on didReceiveEvent rather than in
  2706. handleWheelEvent. This means we now store the pending events in a queue, and
  2707. pull them out when we can.
  2708. * UIProcess/WebPageProxy.h:
  2709. Change single event containers to contain all pending/merged/coalesced events
  2710. and remove unused flag.
  2711. 2011-05-09 Jeremy Noble <jer.noble@apple.com>
  2712. Reviewed by Darin Adler.
  2713. WebKit2: Cancelling full screen before animation completes leads to full screen window staying up.
  2714. https://bugs.webkit.org/show_bug.cgi?id=60531
  2715. Remove the (unused) _isAnimating ivar and replace it with two ivars: _isEnteringFullScreen and
  2716. _isExitingFullScreen. These will ensure each is only called once per full screen request, and
  2717. that if one exit/enter request interrupts another, that the required functions are called in
  2718. order.
  2719. * UIProcess/mac/WKFullScreenWindowController.h:
  2720. * UIProcess/mac/WKFullScreenWindowController.mm:
  2721. (-[WKFullScreenWindowController enterFullScreen:]): Removed _isAnimating.
  2722. (-[WKFullScreenWindowController exitFullScreen]): Ditto.
  2723. (-[WKFullScreenWindowController beganEnterFullScreenAnimation]): Gate on _isEnteringFullScreen. Check _isExitingFullScreen
  2724. and call [self finishedExitFullScreenAnimation:] if necessary.
  2725. (-[WKFullScreenWindowController finishedEnterFullScreenAnimation:]): Gate on _isEnteringFullScreen.
  2726. (-[WKFullScreenWindowController beganExitFullScreenAnimation]): Gate on _isExitingFullScreen. Check _isEnteringFullScreen
  2727. and call [self finishedEnterFullScreenAnimation:] if necessary.
  2728. (-[WKFullScreenWindowController finishedExitFullScreenAnimation:]): Gate on _isExitingFullScreen.
  2729. 2011-05-10 Beth Dakin <bdakin@apple.com>
  2730. Reviewed by Darin Adler.
  2731. https://bugs.webkit.org/show_bug.cgi?id=60582
  2732. Crash switching overlay/non-overlay scrollbar preference still possible
  2733. -and corresponding-
  2734. <rdar://problem/9323983>
  2735. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  2736. (InitWebCoreSystemInterface):
  2737. 2011-05-10 Jeff Miller <jeffm@apple.com>
  2738. Reviewed by Anders Carlsson.
  2739. WebKit2: Windows clients need to know if the page overlay is installed
  2740. https://bugs.webkit.org/show_bug.cgi?id=60562
  2741. <rdar://problem/8940164>
  2742. Until we move all the UI for find on page into WebKit on Windows (specifically, drawing the find bouncy),
  2743. WebKit clients need to know whether WebKit is drawing the page overlay or not. Keep track of this in
  2744. the WebPageProxy in the UI process and provide a WebKit2 API to retrieve this information.
  2745. * UIProcess/API/C/win/WKView.cpp:
  2746. (WKViewIsPageOverlayInstalled): Added.
  2747. * UIProcess/API/C/win/WKView.h: Added WKViewIsPageOverlayInstalled().
  2748. * UIProcess/PageClient.h: Added didInstallOrUninstallPageOverlay().
  2749. * UIProcess/WebPageProxy.h: Added didInstallOrUninstallPageOverlay().
  2750. * UIProcess/WebPageProxy.messages.in: Added DidInstallOrUninstallPageOverlay.
  2751. * UIProcess/win/WebPageProxyWin.cpp:
  2752. (WebKit::WebPageProxy::didInstallOrUninstallPageOverlay): Added.
  2753. * UIProcess/win/WebView.cpp:
  2754. (WebKit::WebView::WebView): Initialize m_pageOverlayInstalled.
  2755. (WebKit::WebView::didInstallOrUninstallPageOverlay): Added.
  2756. * UIProcess/win/WebView.h: Added didInstallOrUninstallPageOverlay() and m_pageOverlayInstalled.
  2757. (WebKit::WebView::pageOverlayInstalled): Added.
  2758. * WebProcess/WebPage/WebPage.cpp:
  2759. (WebKit::WebPage::installPageOverlay): Send message to UI process to tell it the page overlay is installed.
  2760. (WebKit::WebPage::uninstallPageOverlay): Send message to UI process to tell it the page overlay is uninstalled.
  2761. 2011-05-10 Anders Carlsson <andersca@apple.com>
  2762. Reviewed by Adam Roben.
  2763. Remove incorrect ASSERTs from CoreIPC::Connection::processIncomingSyncReply
  2764. https://bugs.webkit.org/show_bug.cgi?id=60567
  2765. <rdar://problem/9377845>
  2766. It is possible to receive an incoming sync reply that is for a request we don't know about.
  2767. This could happen if the sync message send timed out for example.
  2768. * Platform/CoreIPC/Connection.cpp:
  2769. (CoreIPC::Connection::processIncomingSyncReply):
  2770. 2011-05-05 Brent Fulgham <bfulgham@webkit.org> and Martin Robinson <mrobinson@igalia.com>
  2771. Reviewed by Anders Carlsson.
  2772. [Cairo][WebKit2] Add an implementation of ShareableBitmap for Cairo
  2773. https://bugs.webkit.org/show_bug.cgi?id=60293
  2774. * GNUmakefile.am: Remove ShareableBitmapGtk in favor of ShareableBitmapCairo.
  2775. * Shared/ShareableBitmap.h: Added a couple Cairo-specific declarations.
  2776. * Shared/cairo/ShareableBitmapCairo.cpp:
  2777. (WebKit::ShareableBitmap::createGraphicsContext): Added.
  2778. (WebKit::ShareableBitmap::paint): Added.
  2779. (WebKit::ShareableBitmap::createCairoSurface): Added.
  2780. (WebKit::ShareableBitmap::releaseSurfaceData): Added.
  2781. 2011-05-10 Anders Carlsson <andersca@apple.com>
  2782. Reviewed by Sam Weinig.
  2783. Extra sign in required to view video on MobileMe Gallery album
  2784. https://bugs.webkit.org/show_bug.cgi?id=60560
  2785. Implement NPN_GetAuthenticationInfo.
  2786. * PluginProcess/PluginControllerProxy.cpp:
  2787. (WebKit::PluginControllerProxy::getAuthenticationInfo):
  2788. Send a GetAuthenticationInfo message to the web process.
  2789. * PluginProcess/PluginControllerProxy.h:
  2790. * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
  2791. (WebKit::initializeProtectionSpace):
  2792. Initialize a WebCore::ProtectionSpace object from NPAPI parameters.
  2793. (WebKit::NPN_GetAuthenticationInfo):
  2794. Make a ProtectionSpace object and then call NetscapePlugin::getAuthenticationInfo.
  2795. Finally, copy the username/password and pass them back to the plug-in.
  2796. * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
  2797. (WebKit::NetscapePlugin::getAuthenticationInfo):
  2798. Call the plug-in controller.
  2799. * WebProcess/Plugins/PluginController.h:
  2800. Add getAuthenticationInfo pure virtual member function.
  2801. * WebProcess/Plugins/PluginProxy.cpp:
  2802. (WebKit::PluginProxy::getAuthenticationInfo):
  2803. Call the real plug-in controller's getAuthenticationInfo member function.
  2804. * WebProcess/Plugins/PluginProxy.messages.in:
  2805. Add GetAuthenticationInfo message.
  2806. * WebProcess/Plugins/PluginView.cpp:
  2807. (WebKit::PluginView::getAuthenticationInfo):
  2808. Try to get the authentication info from the credential storage. Failing that,
  2809. get it from the persistent credential storage.
  2810. 2011-05-10 Adam Roben <aroben@apple.com>
  2811. Use FontSmoothingLevelWindows by default on Windows
  2812. Fixes <http://webkit.org/b/60557> REGRESSION (r86077): Web Inspector uses CG font rendering
  2813. in WebKit2 on Windows
  2814. Reviewed by Darin Adler.
  2815. * Shared/WebPreferencesStore.h: Added and deployed a new DEFAULT_WEBKIT_FONT_SMOOTHING_LEVEL
  2816. macro to let Windows have a different default font smoothing level from other platforms.
  2817. * UIProcess/API/C/WKPreferencesPrivate.h: Updated the comment about the default font
  2818. smoothing level.
  2819. 2011-05-06 Tony Gentilcore <tonyg@chromium.org>
  2820. Reviewed by Darin Adler.
  2821. Fix some unnecessary includes in headers
  2822. https://bugs.webkit.org/show_bug.cgi?id=60388
  2823. * WebProcess/FullScreen/WebFullScreenManager.cpp:
  2824. 2011-05-09 Jeremy Noble <jer.noble@apple.com>
  2825. Reviewed by Darin Adler.
  2826. Command-~/Exposé to another window while <video> is in full screen, breaks Safari, eventually leading to crash
  2827. https://bugs.webkit.org/show_bug.cgi?id=60496
  2828. When animating into and out of full screen, order out and back in the original webView window,
  2829. disabling animations when necessary. The beganExitFullScreenAnimation method was targeting the wrong window,
  2830. as the webView is hosted in the full screen window when we ask for it's parent window.
  2831. * UIProcess/mac/WKFullScreenWindowController.mm:
  2832. (-[WKFullScreenWindowController finishedEnterFullScreenAnimation:]):
  2833. (-[WKFullScreenWindowController beganExitFullScreenAnimation]):
  2834. 2011-05-09 Dan Bernstein <mitz@apple.com>
  2835. Reviewed by Darin Adler.
  2836. A WKView with plug-ins paints white when first moved into a window
  2837. https://bugs.webkit.org/show_bug.cgi?id=60511
  2838. The UI process’s wait for DidUpdateBackingStoreState would always time out because the Web process
  2839. was blocked on a synchronous message the UI process trying to get the connections for plug-ins in
  2840. the view. This is avoided by deferring the call to Page::setCanStartMedia().
  2841. * WebProcess/WebPage/WebPage.cpp:
  2842. (WebKit::WebPage::WebPage): Initialize the new m_setCanStartMediaTimer.
  2843. (WebKit::WebPage::setCanStartMediaTimerFired): Added. Calls setCanStartMedia(true) when the timer
  2844. fires.
  2845. (WebKit::WebPage::setIsInWindow): When going out of a window, stop the timer. When going into a
  2846. window, start it.
  2847. * WebProcess/WebPage/WebPage.h:
  2848. 2011-05-09 Anders Carlsson <andersca@apple.com>
  2849. Reviewed by Dan Bernstein.
  2850. Crash when sending a sync message to a crashed web process
  2851. https://bugs.webkit.org/show_bug.cgi?id=60514
  2852. <rdar://problem/9281270>
  2853. Change WebProcessProxy::sendSync to return false if there's no connection.
  2854. Audit all WebProcessProxy::sendSync call sites to initialize reply parameters.
  2855. * UIProcess/WebPageProxy.cpp:
  2856. (WebKit::WebPageProxy::firstRectForCharacterInSelectedRange):
  2857. (WebKit::WebPageProxy::getSelectedText):
  2858. (WebKit::WebPageProxy::gestureWillBegin):
  2859. * UIProcess/WebProcessProxy.h:
  2860. (WebKit::WebProcessProxy::sendSync):
  2861. * UIProcess/mac/WebPageProxyMac.mm:
  2862. (WebKit::WebPageProxy::insertText):
  2863. (WebKit::WebPageProxy::getMarkedRange):
  2864. (WebKit::WebPageProxy::getSelectedRange):
  2865. (WebKit::WebPageProxy::characterIndexForPoint):
  2866. (WebKit::WebPageProxy::executeKeypressCommands):
  2867. (WebKit::WebPageProxy::writeSelectionToPasteboard):
  2868. (WebKit::WebPageProxy::readSelectionFromPasteboard):
  2869. 2011-05-09 Anders Carlsson <andersca@apple.com>
  2870. Reviewed by Sam Weinig.
  2871. Create a plug-in's MIME types preferences plist if it doesn't exist.
  2872. https://bugs.webkit.org/show_bug.cgi?id=57204
  2873. <rdar://problem/9195048>
  2874. Spawn a plug-in process and let it create the plist. For now, we'll do this on the
  2875. main thread since it's a rare one-time computation and we have an API function,
  2876. WKFrameCanShowMIMEType, which would have to block anyway.
  2877. * PluginProcess/mac/PluginProcessMainMac.mm:
  2878. (WebKit::PluginProcessMain):
  2879. If -createPluginMIMETypesPreferences is one of the command line argument keys,
  2880. the plug-in path will be the argument value. Call NetscapePluginModule::createPluginMIMETypesPreferences
  2881. to create the preferences file and then exit.
  2882. * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
  2883. (WebKit::contentsOfPropertyListAtURL):
  2884. Move code to read a property list out into a helper function.
  2885. (WebKit::getMIMETypesFromPluginBundle):
  2886. If there's no property list file, try to create one.
  2887. (WebKit::NetscapePluginModule::createPluginMIMETypesPreferences):
  2888. Load the plug-in, find the BP_CreatePluginMIMETypesPreferences and call it.
  2889. * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
  2890. (WebKit::PluginProcessProxy::createPropertyListFile):
  2891. Spawn a plug-in process and pass the -createPluginMIMETypesPreferences flag to it and then wait
  2892. for it to exit.
  2893. 2011-05-09 Anders Carlsson <andersca@apple.com>
  2894. Reviewed by Sam Weinig.
  2895. Move EnvironmentVariables out into its own .cpp file
  2896. https://bugs.webkit.org/show_bug.cgi?id=60507
  2897. * UIProcess/Launcher/mac/EnvironmentVariables.cpp: Added.
  2898. (WebKit::EnvironmentVariables::EnvironmentVariables):
  2899. (WebKit::EnvironmentVariables::~EnvironmentVariables):
  2900. (WebKit::EnvironmentVariables::set):
  2901. (WebKit::EnvironmentVariables::get):
  2902. (WebKit::EnvironmentVariables::appendValue):
  2903. (WebKit::EnvironmentVariables::valueIfVariableHasName):
  2904. (WebKit::EnvironmentVariables::createStringForVariable):
  2905. (WebKit::EnvironmentVariables::copyEnvironmentVariables):
  2906. * UIProcess/Launcher/mac/EnvironmentVariables.h: Added.
  2907. (WebKit::EnvironmentVariables::environmentPointer):
  2908. * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
  2909. * WebKit2.xcodeproj/project.pbxproj:
  2910. 2011-05-09 Adam Roben <aroben@apple.com>
  2911. Always set the font rendering mode based on preference values
  2912. WebPage::platformInitialize and WebPage::platformPreferencesDidChange were fighting over the
  2913. font rendering mode. The platformInitialize code predates preference-based font rendering
  2914. mode support, and is now redundant and incorrect.
  2915. Fixes <http://webkit.org/b/60494> WebKit2 uses GDI text instead of CG text when
  2916. FontSmoothing preference is set to kWKFontSmoothingLevelNoSubpixelAntiAliasing in a .plist
  2917. on disk
  2918. Reviewed by Sam Weinig.
  2919. * WebProcess/WebPage/win/WebPageWin.cpp:
  2920. (WebKit::WebPage::platformInitialize): Removed code to set the font rendering mode.
  2921. platformPreferencesDidChange will take care of this for us.
  2922. 2011-05-09 Anders Carlsson <andersca@apple.com>
  2923. Reviewed by John Sullivan.
  2924. Clean up NetscapePluginModule::getPluginInfo
  2925. https://bugs.webkit.org/show_bug.cgi?id=60486
  2926. Make all 'get' functions take a PluginInfoStore::Plugin reference, since getPluginInfoFromPropertyLists
  2927. is going to need it to know the path and plug-in architecture.
  2928. * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
  2929. (WebKit::getPluginArchitecture):
  2930. (WebKit::getPluginInfoFromPropertyLists):
  2931. (WebKit::getPluginInfoFromCarbonResources):
  2932. (WebKit::NetscapePluginModule::getPluginInfo):
  2933. 2011-05-09 Dan Bernstein <mitz@apple.com>
  2934. Reviewed by Darin Adler.
  2935. <rdar://problem/9005982> REGRESSION (r85780): Flash of white when a WKView with composited content moves on-screen
  2936. https://bugs.webkit.org/show_bug.cgi?id=60488
  2937. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  2938. (WebKit::DrawingAreaImpl::sendDidUpdateBackingStoreState): Update m_compositingAccordingToProxyMessages,
  2939. since the DidUpdateBackingStoreState message also changes the compositing state in the proxy.
  2940. 2011-05-09 Benjamin Poulain <benjamin.poulain@nokia.com>
  2941. Reviewed by Andreas Kling.
  2942. Build fix for WebKit 2 on Qt
  2943. Qt treats warnings as errors so it does not build with unused variables. This patch removed two unused variable in WebKit 2.
  2944. * UIProcess/TiledDrawingAreaProxy.cpp:
  2945. (WebKit::TiledDrawingAreaProxy::createTiles):
  2946. * WebProcess/Plugins/PluginView.cpp:
  2947. (WebKit::PluginView::~PluginView):
  2948. 2011-05-07 Dan Bernstein <mitz@apple.com>
  2949. Reviewed by Timothy Hatcher.
  2950. <rdar://problem/9365358> REGRESSION (WebKit2): When clicking in the page, Find overlay fades out instead of disappearing immediately
  2951. * WebProcess/WebPage/FindController.cpp:
  2952. (WebKit::FindController::hideFindUI): Do not fade out the overlay.
  2953. 2011-05-07 Dan Bernstein <mitz@apple.com>
  2954. Avoid copying a header file into the WebKit2 framework wrapper.
  2955. * WebKit2.xcodeproj/project.pbxproj: Corrected the target membership of HTTPCookieAcceptPolicy.h.
  2956. 2011-05-07 Sheriff Bot <webkit.review.bot@gmail.com>
  2957. Unreviewed, rolling out r86016.
  2958. http://trac.webkit.org/changeset/86016
  2959. https://bugs.webkit.org/show_bug.cgi?id=60445
  2960. caused crashes on the WK2 Windows bots (Requested by
  2961. jessieberlin on #webkit).
  2962. * Shared/WebProcessCreationParameters.cpp:
  2963. (WebKit::WebProcessCreationParameters::encode):
  2964. (WebKit::WebProcessCreationParameters::decode):
  2965. * Shared/WebProcessCreationParameters.h:
  2966. * Shared/win/WebCoreArgumentCodersWin.cpp:
  2967. (CoreIPC::decodeResourceRequest):
  2968. * UIProcess/win/WebContextWin.cpp:
  2969. (WebKit::WebContext::platformInitializeWebProcess):
  2970. * WebProcess/WebPage/win/WebPageWin.cpp:
  2971. (WebKit::cachedResponseForURL):
  2972. * WebProcess/win/WebProcessWin.cpp:
  2973. (WebKit::WebProcess::platformSetCacheModel):
  2974. (WebKit::WebProcess::platformClearResourceCaches):
  2975. (WebKit::WebProcess::platformInitializeWebProcess):
  2976. 2011-05-07 Jessie Berlin <jberlin@apple.com>
  2977. Reviewed by Steve Falkenburg.
  2978. [Windows WebKit2] Use cookies set in WebKit1
  2979. https://bugs.webkit.org/show_bug.cgi?id=60274
  2980. Share the default storage session between the UI and Web Processes.
  2981. * Shared/WebProcessCreationParameters.cpp:
  2982. (WebKit::WebProcessCreationParameters::encode):
  2983. (WebKit::WebProcessCreationParameters::decode):
  2984. * Shared/WebProcessCreationParameters.h:
  2985. Add a parameter for a serialized default storage session, used only on Windows.
  2986. * Shared/win/WebCoreArgumentCodersWin.cpp:
  2987. (CoreIPC::decodeResourceRequest):
  2988. Make sure to set the current storage session on any requests used by the Web
  2989. Process before CFNetwork has to do anything with them, in order for CFNetwork to avoid
  2990. doing anything with the Web Process's default storage session.
  2991. * UIProcess/win/WebContextWin.cpp:
  2992. (WebKit::WebContext::platformInitializeWebProcess):
  2993. Serialize the default storage session in the UI Process and add it to the
  2994. WebProcessCreationParameters.
  2995. * WebProcess/WebPage/win/WebPageWin.cpp:
  2996. (WebKit::cachedResponseForURL):
  2997. Use the cache associated with the current storage session and make sure the request has the
  2998. current storage session set on it before doing anything with it.
  2999. * WebProcess/win/WebProcessWin.cpp:
  3000. (WebKit::WebProcess::platformSetCacheModel):
  3001. Use the default storage session.
  3002. (WebKit::WebProcess::platformClearResourceCaches):
  3003. Ditto.
  3004. (WebKit::WebProcess::platformInitializeWebProcess):
  3005. Deserialize the default storage session passed in by the UI Process and hand it to the
  3006. ResourceHandle.
  3007. 2011-05-07 Keith Kyzivat <keith.kyzivat@nokia.com>
  3008. Reviewed by Adam Roben.
  3009. [Qt] Webkit2 PLUGIN_ARCHITECTURE(UNSUPPORTED) configuration broken by r85961
  3010. https://bugs.webkit.org/show_bug.cgi?id=60420
  3011. * WebProcess/Plugins/Netscape/NetscapePluginNone.cpp:
  3012. (WebKit::NetscapePlugin::platformVisibilityDidChange):
  3013. 2011-05-06 Martin Robinson <mrobinson@igalia.com>
  3014. Reviewed by Xan Lopez.
  3015. [GTK] [WebKit2] WebView::windowToScreen needs an implementation
  3016. https://bugs.webkit.org/show_bug.cgi?id=55960
  3017. Add an implementation of PageClient::windowToScreen for GTK+ WebKit2 using
  3018. the newly abstracted widget to screen coordinate translation code in WebCore.
  3019. * UIProcess/API/gtk/PageClientImpl.cpp:
  3020. (WebKit::PageClientImpl::windowToScreen): Added implementation.
  3021. 2011-05-06 Anders Carlsson <andersca@apple.com>
  3022. Reviewed by Dan Bernstein.
  3023. Simplify the PluginInfoStore interface
  3024. https://bugs.webkit.org/show_bug.cgi?id=60406
  3025. Just expose a single API for getting a list of plug-ins from the info store,
  3026. PluginInfoStore::plugins and remove PluginInfoStore::getPlugins and PluginInfoStore::getPluginPaths.
  3027. Also, change the WebContext::pluginInfoStore() getter to return a reference.
  3028. * UIProcess/Plugins/PluginInfoStore.cpp:
  3029. (WebKit::PluginInfoStore::plugins):
  3030. * UIProcess/Plugins/PluginInfoStore.h:
  3031. * UIProcess/Plugins/PluginProcessManager.cpp:
  3032. (WebKit::PluginProcessManager::getPluginProcessConnection):
  3033. * UIProcess/Plugins/PluginProcessManager.h:
  3034. * UIProcess/Plugins/WebPluginSiteDataManager.cpp:
  3035. (WebKit::WebPluginSiteDataManager::GetSitesWithDataState::GetSitesWithDataState):
  3036. (WebKit::WebPluginSiteDataManager::ClearSiteDataState::ClearSiteDataState):
  3037. (WebKit::WebPluginSiteDataManager::getSitesWithData):
  3038. (WebKit::WebPluginSiteDataManager::clearSiteData):
  3039. * UIProcess/WebContext.cpp:
  3040. (WebKit::WebContext::getPlugins):
  3041. (WebKit::WebContext::getPluginPath):
  3042. * UIProcess/WebContext.h:
  3043. (WebKit::WebContext::pluginInfoStore):
  3044. * UIProcess/WebPageProxy.cpp:
  3045. (WebKit::WebPageProxy::canShowMIMEType):
  3046. 2011-05-06 Anders Carlsson <andersca@apple.com>
  3047. Windows build fix.
  3048. * UIProcess/Plugins/win/PluginInfoStoreWin.cpp:
  3049. (WebKit::PluginInfoStore::shouldUsePlugin):
  3050. 2011-05-06 Anders Carlsson <andersca@apple.com>
  3051. Reviewed by Dan Bernstein.
  3052. Make more PluginInfoStore member functions static
  3053. https://bugs.webkit.org/show_bug.cgi?id=60401
  3054. This is a first step towards making PluginInfoStore thread safe.
  3055. * UIProcess/Plugins/PluginInfoStore.cpp:
  3056. (WebKit::PluginInfoStore::loadPluginsIfNecessary):
  3057. (WebKit::PluginInfoStore::loadPlugin):
  3058. * UIProcess/Plugins/PluginInfoStore.h:
  3059. * UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
  3060. (WebKit::PluginInfoStore::shouldUsePlugin):
  3061. * UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp:
  3062. (WebKit::PluginInfoStore::shouldUsePlugin):
  3063. * UIProcess/Plugins/win/PluginInfoStoreWin.cpp:
  3064. (WebKit::PluginInfoStore::shouldUsePlugin):
  3065. 2011-05-06 Adam Roben <aroben@apple.com>
  3066. Mac build fix
  3067. * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm: Added a
  3068. missing #import.
  3069. 2011-05-06 Adam Roben <aroben@apple.com>
  3070. Show/hide windowed plugins according to the plugin element's visibility CSS property
  3071. Fixes <http://webkit.org/b/60285> <rdar://problem/9152400> REGRESSION (WebKit2): A white
  3072. rectangle covers up important UI elements when composing a new message at mail.yahoo.com
  3073. with BrowserPlus! plug-in installed
  3074. Reviewed by Anders Carlsson.
  3075. * PluginProcess/PluginControllerProxy.cpp:
  3076. (WebKit::PluginControllerProxy::isPluginVisible):
  3077. * PluginProcess/PluginControllerProxy.h:
  3078. Stubbed out.
  3079. * Shared/win/WindowGeometry.cpp:
  3080. (WebKit::WindowGeometry::WindowGeometry):
  3081. (WebKit::WindowGeometry::encode):
  3082. (WebKit::WindowGeometry::decode):
  3083. * Shared/win/WindowGeometry.h:
  3084. Added visible member.
  3085. * UIProcess/win/WebView.cpp:
  3086. (WebKit::WebView::updateChildWindowGeometries): Show or hide the window as specified in the
  3087. geometry.
  3088. * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
  3089. (WebKit::NetscapePlugin::visibilityDidChange):
  3090. * WebProcess/Plugins/Netscape/NetscapePlugin.h:
  3091. Added. Calls through to platform-specific code.
  3092. * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
  3093. (WebKit::NetscapePlugin::platformVisibilityDidChange):
  3094. * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
  3095. (WebKit::NetscapePlugin::platformVisibilityDidChange):
  3096. Stubbed out.
  3097. * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
  3098. (WebKit::NetscapePlugin::platformGeometryDidChange): Moved most logic from here to
  3099. scheduleWindowedGeometryUpdate.
  3100. (WebKit::NetscapePlugin::platformVisibilityDidChange): Added. Calls through to
  3101. scheduleWindowedGeometryUpdate.
  3102. (WebKit::NetscapePlugin::scheduleWindowedGeometryUpdate): Added. Code came from
  3103. platformGeometryDidChange. Now also records whether the plugin element is visible.
  3104. * WebProcess/Plugins/Plugin.h: Added visibilityDidChange.
  3105. * WebProcess/Plugins/PluginController.h: Added isPluginVisible.
  3106. * WebProcess/Plugins/PluginProxy.cpp:
  3107. (WebKit::PluginProxy::visibilityDidChange):
  3108. * WebProcess/Plugins/PluginProxy.h:
  3109. Stubbed out.
  3110. * WebProcess/Plugins/PluginView.cpp:
  3111. (WebKit::PluginView::show):
  3112. (WebKit::PluginView::hide):
  3113. Added. These Widget overrides were based on WebCore's PluginView class.
  3114. (WebKit::PluginView::viewVisibilityDidChange): Added. Similar to viewGeometryDidChange.
  3115. Calls down to the plugin if it's been initialized.
  3116. (WebKit::PluginView::isPluginVisible): Added. Just calls up to the Widget base class.
  3117. * WebProcess/Plugins/PluginView.h: Updated for PluginController changes.
  3118. 2011-05-06 Adam Roben <aroben@apple.com>
  3119. Add a WindowGeometry struct for use in the ScheduleChildWindowGeometryUpdate message
  3120. This will make it easier to add more info to this message in the future (like whether the
  3121. window is visible).
  3122. Fixes <http://webkit.org/b/60374> Adding parameters to ScheduleChildWindowGeometryUpdate
  3123. message is tedious
  3124. Reviewed by Anders Carlsson.
  3125. * Scripts/webkit2/messages.py:
  3126. (struct_or_class): Added WindowGeometry to the list of structs.
  3127. * Shared/win/WindowGeometry.cpp: Added.
  3128. * Shared/win/WindowGeometry.h: Added.
  3129. * win/WebKit2.vcproj: Added new files.
  3130. * UIProcess/PageClient.h:
  3131. * UIProcess/WebPageProxy.h:
  3132. * UIProcess/WebPageProxy.messages.in:
  3133. * UIProcess/win/WebPageProxyWin.cpp:
  3134. (WebKit::WebPageProxy::scheduleChildWindowGeometryUpdate):
  3135. * UIProcess/win/WebView.cpp:
  3136. (WebKit::WebView::scheduleChildWindowGeometryUpdate):
  3137. (WebKit::WebView::updateChildWindowGeometries):
  3138. * UIProcess/win/WebView.h:
  3139. * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
  3140. (WebKit::NetscapePlugin::platformGeometryDidChange):
  3141. * WebProcess/Plugins/PluginController.h:
  3142. * WebProcess/Plugins/PluginView.cpp:
  3143. (WebKit::PluginView::scheduleWindowedPluginGeometryUpdate):
  3144. * WebProcess/Plugins/PluginView.h:
  3145. * WebProcess/WebPage/WebPage.h:
  3146. * WebProcess/WebPage/win/WebPageWin.cpp:
  3147. (WebKit::WebPage::scheduleChildWindowGeometryUpdate):
  3148. Changed to use WindowGeometry.
  3149. 2011-05-06 David Kilzer <ddkilzer@apple.com>
  3150. Remove unused GCC_ENABLE_FIX_AND_CONTINUE and ZERO_LINK settings
  3151. Reviewed by Jon Honeycutt.
  3152. This fixes an Xcode 4 warning about using obsolete settings.
  3153. * WebKit2.xcodeproj/project.pbxproj: Removed
  3154. GCC_ENABLE_FIX_AND_CONTINUE and ZERO_LINK settings.
  3155. 2011-05-06 Carlos Garcia Campos <cgarcia@igalia.com>
  3156. Reviewed by Martin Robinson.
  3157. [GTK] Implement NetscapePlugin::platformPaint for GTK platform
  3158. https://bugs.webkit.org/show_bug.cgi?id=60368
  3159. * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
  3160. (WebKit::NetscapePlugin::platformPaint):
  3161. 2011-05-06 Carlos Garcia Campos <cgarcia@igalia.com>
  3162. Reviewed by Martin Robinson.
  3163. Share PluginInfoStore implementation between Qt and GTK ports
  3164. https://bugs.webkit.org/show_bug.cgi?id=60366
  3165. * GNUmakefile.am:
  3166. * UIProcess/Plugins/gtk/PluginInfoStoreGtk.cpp: Removed.
  3167. * UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp: Renamed from Source/WebKit2/UIProcess/Plugins/qt/PluginInfoStoreQt.cpp.
  3168. (WebKit::PluginInfoStore::pluginsDirectories):
  3169. (WebKit::PluginInfoStore::pluginPathsInDirectory):
  3170. (WebKit::PluginInfoStore::individualPluginPaths):
  3171. (WebKit::PluginInfoStore::getPluginInfo):
  3172. (WebKit::PluginInfoStore::shouldUsePlugin):
  3173. * WebKit2.pro:
  3174. 2011-05-06 Carlos Garcia Campos <cgarcia@igalia.com>
  3175. Unreviewed. Fix WebKit2 GTK build after r85860.
  3176. * UIProcess/API/gtk/PageClientImpl.h: Fix typo.
  3177. 2011-05-05 Philippe Normand <pnormand@igalia.com>
  3178. Reviewed by Dimitri Glazkov.
  3179. Implement LayoutTestController::pseudoShadowId()
  3180. https://bugs.webkit.org/show_bug.cgi?id=60034
  3181. * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
  3182. (WKBundleNodeHandleShadowPseudoId):
  3183. * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h:
  3184. * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
  3185. (WebKit::InjectedBundleNodeHandle::elementRemoveShadowRoot):
  3186. (WebKit::InjectedBundleNodeHandle::elementShadowPseudoId):
  3187. * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
  3188. 2011-05-05 Sam Weinig <sam@webkit.org>
  3189. Reviewed by Anders Carlsson.
  3190. REGRESSION (r85689): Unresponsive timer firing when closing background tabs
  3191. <rdar://problem/9385988>
  3192. https://bugs.webkit.org/show_bug.cgi?id=60325
  3193. When calling WKPageTryClose(), if the page close succeeded, the notification to stop
  3194. the responsiveness timer would be dropped because the page was closed by the time it
  3195. got to the UIProcess.
  3196. * UIProcess/WebPageProxy.cpp:
  3197. (WebKit::WebPageProxy::closePage):
  3198. * UIProcess/WebPageProxy.h:
  3199. * UIProcess/WebPageProxy.messages.in:
  3200. Add parameter to closePage stipulating whether or not to stop the responsiveness timer.
  3201. * WebProcess/WebPage/WebPage.cpp:
  3202. (WebKit::WebPage::tryClose):
  3203. (WebKit::WebPage::sendClose):
  3204. Instead of sending a StopResponsivenessTimer message after sending the ClosePage message,
  3205. add a bit to the ClosePage message.
  3206. 2011-05-05 Dan Bernstein <mitz@apple.com>
  3207. Reviewed by Simon Fraser.
  3208. WebKit2 part of <rdar://problem/9155590> Broken animation in iAd producer
  3209. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  3210. (InitWebCoreSystemInterface): Initialize wkExecutableWasLinkedOnOrBeforeSnowLeopard.
  3211. 2011-05-05 Keith Kyzivat <keith.kyzivat@nokia.com>
  3212. Reviewed by Laszlo Gombos.
  3213. [Qt] [WK2] Add method to disable plugins under WK2
  3214. https://bugs.webkit.org/show_bug.cgi?id=57796
  3215. * config.h: Allow PLUGIN_ARCHITECTURE_UNSUPPORTED to be defined on build command line
  3216. 2011-05-05 Anders Carlsson <andersca@apple.com>
  3217. Reviewed by Sam Weinig.
  3218. When an underlay surface is active, paint normal web contents in a transparency layer
  3219. https://bugs.webkit.org/show_bug.cgi?id=60296
  3220. In order for the page contents to correctly blend with the underlay, the page contents
  3221. needs to be painted in a transparency layer.
  3222. * WebProcess/WebPage/WebPage.cpp:
  3223. (WebKit::WebPage::drawRect):
  3224. 2011-05-05 Brian Weinstein <bweinstein@apple.com>
  3225. Reviewed by Timothy Hatcher.
  3226. WebKit2: Docking Web Inspector doesn't respect maximum inspector size
  3227. https://bugs.webkit.org/show_bug.cgi?id=60294
  3228. <rdar://problem/9388518>
  3229. Before we place the inspector and the inspected views, make sure that we have constrained the height
  3230. of the docked inspector. Putting the code here covers both when the inspector is initially attached
  3231. and when a window with the docked inspector is resized.
  3232. * UIProcess/mac/WebInspectorProxyMac.mm:
  3233. (WebKit::WebInspectorProxy::inspectedViewFrameDidChange): Constrain the height before laying out the views.
  3234. * UIProcess/win/WebInspectorProxyWin.cpp:
  3235. (WebKit::WebInspectorProxy::onWebViewWindowPosChangingEvent): Ditto.
  3236. 2011-05-05 Chang Shu <cshu@webkit.org>
  3237. Reviewed by Andreas Kling.
  3238. [Qt][WK2] Support PageGroup in QGraphicsWKView/QWKPage constructors
  3239. https://bugs.webkit.org/show_bug.cgi?id=59638
  3240. Added private constructors for class QGraphicsWKView and QWKPage to support
  3241. WKPageGroupRef.
  3242. * UIProcess/API/qt/qgraphicswkview.cpp:
  3243. (QGraphicsWKView::QGraphicsWKView):
  3244. (QGraphicsWKView::~QGraphicsWKView):
  3245. (QGraphicsWKView::init):
  3246. * UIProcess/API/qt/qgraphicswkview.h:
  3247. * UIProcess/API/qt/qwkpage.cpp:
  3248. (QWKPagePrivate::QWKPagePrivate):
  3249. (QWKPage::QWKPage):
  3250. (QWKPage::~QWKPage):
  3251. (QWKPage::init):
  3252. * UIProcess/API/qt/qwkpage.h:
  3253. * UIProcess/API/qt/qwkpage_p.h:
  3254. 2011-05-05 Brent Fulgham <bfulgham@webkit.org>
  3255. [WinCairo] Unreviewed build fix.
  3256. * WebProcess/WebPage/win/WebPageWin.cpp:
  3257. (WebKit::WebPage::cachedResponseDataForURL): Stub out
  3258. implementation for cURL networking case.
  3259. 2011-05-05 Jeff Miller <jeffm@apple.com>
  3260. Reviewed by Darin Adler.
  3261. Add didNotHandleWheelEvent callback to WKPageUIClient
  3262. https://bugs.webkit.org/show_bug.cgi?id=60203
  3263. Remove Windows-specific WebPageProxy::wheelEventNotHandled() member function and use
  3264. didNotHandleWheelEvent callback in WKPageUIClient instead. It turns out that just
  3265. resending the wheel event to the parent window doesn't provide the client with enough context
  3266. to know that WebKit has already attempted to handle the event.
  3267. * UIProcess/API/C/WKPage.h: Added WKPageDidNotHandleWheelEventCallback typedef and didNotHandleWheelEvent to WKPageUIClient.
  3268. * UIProcess/API/gtk/PageClientImpl.cpp:
  3269. (WebKit::PageClientImpl::didNotHandleWheelEvent): Added, but not implemented.
  3270. * UIProcess/API/gtk/PageClientImpl.h: Added didNotHandleWheelEvent().
  3271. * UIProcess/API/qt/qwkpage.cpp:
  3272. (QWKPage::QWKPage):Stubbed out didNotHandleWheelEvent callback.
  3273. * UIProcess/WebPageProxy.cpp:
  3274. (WebKit::WebPageProxy::didReceiveEvent): Call didNotHandleWheelEvent in WKPageUIClient if wheel event is not handled.
  3275. * UIProcess/WebPageProxy.h: Removed wheelEventNotHandled().
  3276. * UIProcess/WebUIClient.cpp:
  3277. (WebKit::WebUIClient::implementsDidNotHandleWheelEvent): Added.
  3278. (WebKit::WebUIClient::didNotHandleWheelEvent): Added.
  3279. * UIProcess/WebUIClient.h: Added implementsDidNotHandleWheelEvent() and didNotHandleWheelEvent().
  3280. * UIProcess/win/WebPageProxyWin.cpp: Removed wheelEventNotHandled().
  3281. 2011-05-05 Carlos Garcia Campos <cgarcia@igalia.com>
  3282. Reviewed by Martin Robinson.
  3283. [GTK] Return correct GTK version for NPNVToolkit
  3284. https://bugs.webkit.org/show_bug.cgi?id=60275
  3285. * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
  3286. (WebKit::NPN_GetValue): Return always 2 for NPNVToolkit in GTK
  3287. platform.
  3288. 2011-05-05 Carlos Garcia Campos <cgarcia@igalia.com>
  3289. Reviewed by Martin Robinson.
  3290. [GTK] Make native events code more consistent
  3291. https://bugs.webkit.org/show_bug.cgi?id=60258
  3292. Make all other native events code follow the current keyboard
  3293. events approach: use a GOwnPtr for the native event, and use
  3294. const GdkEvent* in the API. We need to implement the copy
  3295. constructors for native events to copy the gdk events with
  3296. gdk_event_copy().
  3297. * Shared/NativeWebMouseEvent.h:
  3298. (WebKit::NativeWebMouseEvent::nativeEvent):
  3299. * Shared/NativeWebWheelEvent.h:
  3300. (WebKit::NativeWebWheelEvent::nativeEvent):
  3301. * Shared/gtk/NativeWebKeyboardEventGtk.cpp:
  3302. (WebKit::NativeWebKeyboardEvent::NativeWebKeyboardEvent):
  3303. * Shared/gtk/NativeWebMouseEventGtk.cpp:
  3304. (WebKit::NativeWebMouseEvent::NativeWebMouseEvent):
  3305. * Shared/gtk/NativeWebWheelEventGtk.cpp:
  3306. (WebKit::NativeWebWheelEvent::NativeWebWheelEvent):
  3307. * Shared/gtk/WebEventFactory.cpp:
  3308. (WebKit::buttonForEvent):
  3309. (WebKit::WebEventFactory::createWebMouseEvent):
  3310. (WebKit::WebEventFactory::createWebWheelEvent):
  3311. (WebKit::WebEventFactory::createWebKeyboardEvent):
  3312. * Shared/gtk/WebEventFactory.h:
  3313. * UIProcess/API/gtk/WebKitWebViewBase.cpp:
  3314. (webkitWebViewBaseScrollEvent):
  3315. 2011-05-05 Carlos Garcia Campos <cgarcia@igalia.com>
  3316. Reviewed by Martin Robinson.
  3317. [GTK] Module::load() should return true when g_module_open() returns a valid pointer
  3318. https://bugs.webkit.org/show_bug.cgi?id=60261
  3319. * Platform/gtk/ModuleGtk.cpp:
  3320. (WebKit::Module::load):
  3321. 2011-05-05 Carlos Garcia Campos <cgarcia@igalia.com>
  3322. Unreviewed. Fix WebKit2 GTK build after r85808.
  3323. * Shared/NativeWebWheelEvent.h:
  3324. * UIProcess/API/gtk/WebKitWebViewBase.cpp:
  3325. (webkitWebViewBaseScrollEvent):
  3326. 2011-05-04 Cris Neckar <cdn@chromium.org>
  3327. Reviewed by Adam Barth.
  3328. Expose WebView directly through ChromeClient.
  3329. https://bugs.webkit.org/show_bug.cgi?id=49902
  3330. * WebProcess/WebCoreSupport/WebChromeClient.h:
  3331. (WebKit::WebChromeClient::webView):
  3332. 2011-05-04 Jeff Miller <jeffm@apple.com>
  3333. Reviewed by Darin Adler.
  3334. Send unhandled wheel events to parent window on Windows
  3335. https://bugs.webkit.org/show_bug.cgi?id=60220
  3336. Keep track of wheel events using NativeWebWheelEvent instead of WebWheelEvent in WebPageProxy
  3337. so we can send the native event to the parent window if WebKit doesn't handle it.
  3338. * UIProcess/API/mac/WKView.mm: Use NativeWebWheelEvent instead of WebWheelEvent.
  3339. * UIProcess/API/qt/qwkpage.cpp:
  3340. (QWKPagePrivate::wheelEvent): Use NativeWebWheelEvent instead of WebWheelEvent.
  3341. * UIProcess/WebPageProxy.cpp:
  3342. (WebKit::WebPageProxy::WebPageProxy): Removed initialization of obsolete m_processingWheelEvent member variable.
  3343. (WebKit::coalesceWheelEvents): Use NativeWebWheelEvent instead of WebWheelEvent and add a note that this won't work if we ever enable MERGE_WHEEL_EVENTS.
  3344. (WebKit::WebPageProxy::handleWheelEvent): Use NativeWebWheelEvent instead of WebWheelEvent, keep track of the current event in m_currentlyProcessedWheelEvent.
  3345. (WebKit::WebPageProxy::didReceiveEvent): Call wheelEventNotHandled() on Windows if wheel event is not handled.
  3346. (WebKit::WebPageProxy::processDidCrash): Clear out m_currentlyProcessedWheelEvent.
  3347. * UIProcess/WebPageProxy.h: Change handleWheelEvent() to take a NativeWebWheelEvent, added wheelEventNotHandled() on Windows, remove m_processingWheelEvent, add m_currentlyProcessedWheelEvent.
  3348. * UIProcess/win/WebPageProxyWin.cpp:
  3349. (WebKit::WebPageProxy::wheelEventNotHandled): Added.
  3350. * UIProcess/win/WebView.cpp:
  3351. (WebKit::WebView::onWheelEvent): Use NativeWebWheelEvent instead of WebWheelEvent.
  3352. 2011-05-04 Anders Carlsson <andersca@apple.com>
  3353. Reviewed by Darin Adler.
  3354. Add bundle API for making a page paint as the background of another page
  3355. https://bugs.webkit.org/show_bug.cgi?id=60227
  3356. * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
  3357. (WKBundlePageSetUnderlayPage):
  3358. Call WebPage::setUnderlayPage.
  3359. * WebProcess/WebPage/WebPage.cpp:
  3360. (WebKit::WebPage::close):
  3361. Null out the underlay page.
  3362. (WebKit::WebPage::layoutIfNeeded):
  3363. Layout the underlay page if necessary.
  3364. (WebKit::WebPage::drawRect):
  3365. Draw the underlay page.
  3366. 2011-05-04 Siddharth Mathur <siddharth.mathur@nokia.com>
  3367. Reviewed by Laszlo Gombos.
  3368. [Qt][Wk2][Symbian] Capabilities for Qt MiniBrowser and QtWebProcess on Symbian
  3369. https://bugs.webkit.org/show_bug.cgi?id=59462
  3370. * WebProcess.pro: Add Symbian OS capabilities to web process executable. Also enable
  3371. data paging flag and prevent application's icon from showing up in the application grid.
  3372. 2011-05-04 Adam Roben <aroben@apple.com>
  3373. Clip and reposition windowed plugins when the UI process paints
  3374. This ensures that their geometry updates in sync with the rest of the page.
  3375. Most of this patch is just plumbing the scheduleWindowedPluginGeometryUpdate and
  3376. scheduleChildWindowGeometryUpdate calls through from NetscapePlugin all the way over to
  3377. WebView. I've tried to call out the other parts below.
  3378. Fixes <http://webkit.org/b/60210> <rdar://problem/8483441> REGRESSION (WebKit2): Windowed
  3379. plugins don't scroll at the same speed as the rest of the page
  3380. Reviewed by Darin Adler and Anders Carlsson.
  3381. * UIProcess/PageClient.h:
  3382. * UIProcess/WebPageProxy.h:
  3383. * UIProcess/WebPageProxy.messages.in:
  3384. * UIProcess/win/WebPageProxyWin.cpp:
  3385. (WebKit::WebPageProxy::scheduleChildWindowGeometryUpdate):
  3386. Added plumbing.
  3387. * UIProcess/win/WebView.cpp:
  3388. (WebKit::WebView::onPaintEvent): Update child windows before painting so that they will stay
  3389. in sync with the rest of the page.
  3390. (WebKit::WebView::scheduleChildWindowGeometryUpdate): Add this update information to the
  3391. set of geometries to update on the next paint.
  3392. (WebKit::setWindowRegion): Moved this helper function here from NetscapePluginWin.cpp.
  3393. (WebKit::WebView::updateChildWindowGeometries): Update the size, position, and clip rects of
  3394. all the child windows with scheduled geometry updates.
  3395. * UIProcess/win/WebView.h: Added new members to track and update child window geometries.
  3396. * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
  3397. (WebKit::NetscapePlugin::platformPostInitialize): Don't show the window immediately. Let the
  3398. UI process take care of it.
  3399. (WebKit::NetscapePlugin::platformGeometryDidChange): Don't update the window's position or
  3400. clip rect. Let the UI process take care of it.
  3401. * WebProcess/Plugins/PluginController.h:
  3402. * WebProcess/Plugins/PluginView.cpp:
  3403. (WebKit::PluginView::scheduleWindowedPluginGeometryUpdate):
  3404. * WebProcess/Plugins/PluginView.h:
  3405. * WebProcess/WebPage/WebPage.h:
  3406. * WebProcess/WebPage/win/WebPageWin.cpp:
  3407. (WebKit::WebPage::scheduleChildWindowGeometryUpdate):
  3408. Added plumbing.
  3409. 2011-05-04 Anders Carlsson <andersca@apple.com>
  3410. Reviewed by Adam Roben.
  3411. WKView on Windows has no equivalent of Mac's -[WKView setDraws[Transparent]Background:]
  3412. https://bugs.webkit.org/show_bug.cgi?id=52009
  3413. <rdar://problem/8829746>
  3414. Add and implement WKViewSetDrawsTransparentBackground on windows.
  3415. * UIProcess/API/C/win/WKView.cpp:
  3416. (WKViewSetDrawsTransparentBackground):
  3417. (WKViewDrawsTransparentBackground):
  3418. Call through to the WebPageProxy object.
  3419. * UIProcess/API/C/win/WKView.h:
  3420. * UIProcess/win/WebView.cpp:
  3421. (WebKit::drawPageBackground):
  3422. Don't fill the rect with white if WebPageProxy::drawsBackground() or
  3423. WebPageProxy::drawsTransparentBackground() returns false. Because of limitations in Win32,
  3424. both drawsBackground and drawsTransparentBackground are pretty much equivalent.
  3425. (WebKit::WebView::paint):
  3426. Pass the WebPageProxy object to drawPageBackground.
  3427. 2011-05-04 Tao Bai <michaelbai@chromium.org>
  3428. Reviewed by David Kilzer.
  3429. Populate touch-icon url to FrameLoaderClient
  3430. https://bugs.webkit.org/show_bug.cgi?id=59143
  3431. Respected the change of FrameLoaderClient.
  3432. Added WebIconURL and WebIconType responding the new IconURL and IconType.
  3433. Supported to get the multiple icon urls.
  3434. * Configurations/FeatureDefines.xcconfig:
  3435. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  3436. (WebKit::WebFrameLoaderClient::dispatchDidChangeIcons):
  3437. * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
  3438. 2011-05-04 Anders Carlsson <andersca@apple.com>
  3439. Reviewed by Dan Bernstein.
  3440. Can't save a link from "Save Linked File to Download" popup menu
  3441. https://bugs.webkit.org/show_bug.cgi?id=60190
  3442. <rdar://problem/9367927>
  3443. Make sure that suggestedFilenameForResourceWithURL and resourceDataForFrame both look
  3444. in the cache if the resource can't be found in the current web page. This matches WebKit1.
  3445. * WebProcess/WebPage/WebFrame.cpp:
  3446. (WebKit::WebFrame::suggestedFilenameForResourceWithURL):
  3447. Call WebPage::cachedSuggestedFilenameForURL if we can't find a resource in the page.
  3448. * WebProcess/WebPage/WebPage.cpp:
  3449. (WebKit::resourceDataForFrame):
  3450. Move code out from getResourceDataFromFrame.
  3451. (WebKit::WebPage::getResourceDataFromFrame):
  3452. Call resourceDataForFrame first and then cachedResponseDataForURL.
  3453. * WebProcess/WebPage/WebPage.h:
  3454. * WebProcess/WebPage/gtk/WebPageGtk.cpp:
  3455. (WebKit::WebPage::platformHasLocalDataForURL):
  3456. (WebKit::WebPage::cachedResponseMIMETypeForURL):
  3457. (WebKit::WebPage::platformCanHandleRequest):
  3458. (WebKit::WebPage::cachedSuggestedFilenameForURL):
  3459. (WebKit::WebPage::cachedResponseDataForURL):
  3460. Add stubs.
  3461. * WebProcess/WebPage/mac/WebPageMac.mm:
  3462. (WebKit::cachedResponseForURL):
  3463. Add helper function.
  3464. (WebKit::WebPage::cachedSuggestedFilenameForURL):
  3465. (WebKit::WebPage::cachedResponseMIMETypeForURL):
  3466. (WebKit::WebPage::cachedResponseDataForURL):
  3467. Call helper function.
  3468. * WebProcess/WebPage/qt/WebPageQt.cpp:
  3469. (WebKit::WebPage::platformHasLocalDataForURL):
  3470. (WebKit::WebPage::cachedResponseMIMETypeForURL):
  3471. (WebKit::WebPage::platformCanHandleRequest):
  3472. (WebKit::WebPage::cachedSuggestedFilenameForURL):
  3473. (WebKit::WebPage::cachedResponseDataForURL):
  3474. Add stubs.
  3475. * WebProcess/WebPage/win/WebPageWin.cpp:
  3476. (WebKit::cachedResponseForURL):
  3477. Add helper function.
  3478. (WebKit::WebPage::platformHasLocalDataForURL):
  3479. (WebKit::WebPage::cachedResponseMIMETypeForURL):
  3480. (WebKit::WebPage::cachedSuggestedFilenameForURL):
  3481. (WebKit::WebPage::cachedResponseDataForURL):
  3482. Call helper function.
  3483. 2011-05-04 Simon Fraser <simon.fraser@apple.com>
  3484. Reviewed by Anders Carlsson.
  3485. WebKit2 flashes if entering and exiting compositing rapidly
  3486. https://bugs.webkit.org/show_bug.cgi?id=60198
  3487. If a page enters then immediately leaves compositing mode, the
  3488. DrawingAreaImpl would send a message to the UI process that it
  3489. had entered compositing even after all the layers had been torn
  3490. down. Fix this by never sending the 'enter' message if we're
  3491. waiting for the 'exit' timer to fire.
  3492. Also fix an assertion in the UI process caused by sending mismatched
  3493. 'enter' and 'leave' messages by keeping track of which messages
  3494. we've sent.
  3495. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  3496. (WebKit::DrawingAreaImpl::DrawingAreaImpl):
  3497. (WebKit::DrawingAreaImpl::layerHostDidFlushLayers):
  3498. (WebKit::DrawingAreaImpl::exitAcceleratedCompositingMode):
  3499. (WebKit::DrawingAreaImpl::exitAcceleratedCompositingModeSoon):
  3500. * WebProcess/WebPage/DrawingAreaImpl.h:
  3501. (WebKit::DrawingAreaImpl::exitAcceleratedCompositingModePending):
  3502. 2011-05-04 Jeff Miller <jeffm@apple.com>
  3503. Fix typo in svn property in r85756.
  3504. * Shared/mac/NativeWebWheelEventMac.mm: Added property svn:eol-style. Removed property snv:eol-style.
  3505. 2011-05-04 Jeff Miller <jeffm@apple.com>
  3506. Reviewed by Darin Adler.
  3507. Add NativeWebWheelEvent class
  3508. https://bugs.webkit.org/show_bug.cgi?id=60182
  3509. This will be needed soon when we start notifying the UI process that a mouse wheel event wasn't handled by WebKit.
  3510. * GNUmakefile.am: Added NativeWebWheelEventGtk.cpp and NativeWebWheelEvent.h.
  3511. * Shared/NativeWebWheelEvent.h: Added.
  3512. (WebKit::NativeWebWheelEvent::nativeEvent): Added.
  3513. * Shared/gtk/NativeWebWheelEventGtk.cpp: Added.
  3514. (WebKit::NativeWebWheelEvent::NativeWebWheelEvent): Added.
  3515. * Shared/mac/NativeWebWheelEventMac.mm: Added.
  3516. (WebKit::NativeWebWheelEvent::NativeWebWheelEvent): Added.
  3517. * Shared/qt/NativeWebWheelEventQt.cpp: Added.
  3518. (WebKit::NativeWebWheelEvent::NativeWebWheelEvent): Added.
  3519. * Shared/win/NativeWebWheelEventWin.cpp: Added.
  3520. (WebKit::NativeWebWheelEvent::NativeWebWheelEvent):Added.
  3521. * WebKit2.pro: Added NativeWebWheelEventQt.cpp and NativeWebWheelEvent.h.
  3522. * WebKit2.xcodeproj/project.pbxproj: Added NativeWebWheelEventMac.mm and NativeWebWheelEvent.h.
  3523. * win/WebKit2.vcproj: Added NativeWebWheelEventWin.cpp and NativeWebWheelEvent.h.
  3524. 2011-05-04 Siddharth Mathur <siddharth.mathur@nokia.com>
  3525. Reviewed by Anders Carlsson.
  3526. ArgumentDecoder should use aligned memory for its internal copy of data
  3527. https://bugs.webkit.org/show_bug.cgi?id=59960
  3528. Since we check for memory alignment when unpacking primitive types from the buffer,
  3529. insure alignment of the base address.
  3530. As uint64_t is the largest type we use in Argument encoder/decoder, use 8 byte alignment.
  3531. * Platform/CoreIPC/ArgumentDecoder.cpp:
  3532. (CoreIPC::ArgumentDecoder::~ArgumentDecoder): free m_alignedBase
  3533. (CoreIPC::roundUpToAlignment): move this up in the source file
  3534. (CoreIPC::ArgumentDecoder::initialize): m_buffer is now guaranteed sizeof(uint64_t) aligned
  3535. * Platform/CoreIPC/ArgumentDecoder.h: add m_alignedBase member which needs to be freed in d'tor
  3536. 2011-05-04 Adam Roben <aroben@apple.com>
  3537. Make ShareableBitmap::makeCGImageCopy use a copy-on-write copy on Windows when possible
  3538. Fixes <http://webkit.org/b/57269> <rdar://problem/9198788> REGRESSION (r82151): Every WKView
  3539. paint now makes an extra copy of the painted bits
  3540. Reviewed by Anders Carlsson.
  3541. * Platform/SharedMemory.h:
  3542. * Platform/win/SharedMemoryWin.cpp:
  3543. (WebKit::SharedMemory::createCopyOnWriteCopy):
  3544. Added this new function. Creates a copy-on-write copy of the first |size| bytes of the
  3545. original SharedMemory.
  3546. * Shared/ShareableBitmap.h: Added createCGImage helper function.
  3547. * Shared/cg/ShareableBitmapCG.cpp:
  3548. (WebKit::ShareableBitmap::makeCGImageCopy): Don't compile this version of this function on
  3549. Windows; we'll provide our own implementation since CGBitmapContextCreateImage isn't smart
  3550. enough to make a copy-on-write copy on Windows.
  3551. (WebKit::ShareableBitmap::makeCGImage): Moved some code from here...
  3552. (WebKit::ShareableBitmap::createCGImage): ...to this new function.
  3553. * Shared/cg/win/ShareableBitmapCGWin.cpp: Added.
  3554. (WebKit::derefSharedMemory): This function is called when the CGDataProvider is finalized.
  3555. All we have to do is deref the SharedMemory that was backing the CGDataProvider.
  3556. (WebKit::ShareableBitmap::makeCGImageCopy): Create a copy-on-write copy of the image data
  3557. when possible. We use the copy-on-write copy to back this ShareableBitmap from here on out,
  3558. and use the original SharedMemory to back the CGImage. This should prevent future
  3559. modifications to the ShareableBitmap from affecting the CGImage. If we can't make a
  3560. copy-on-write copy, we fall back to just copying the data normally.
  3561. * win/WebKit2.vcproj: Added ShareableBitmapCGWin.cpp.
  3562. 2011-05-04 Adam Roben <aroben@apple.com>
  3563. Let transparent windowless plugins draw into a graphics context with an alpha channel
  3564. Fixes <http://webkit.org/b/57647> <rdar://problem/9168462> Flash plugins with
  3565. wmode=transparent have black (instead of transparent) background in WebKit2 on Windows
  3566. I had trouble writing a test case for this, so I split that task out into
  3567. <http://webkit.org/b/60169>.
  3568. Reviewed by Sam Weinig.
  3569. * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
  3570. (WebKit::NetscapePlugin::platformPaint): Give the graphics context an alpha channel if this
  3571. is a transparent windowless plugin.
  3572. 2011-05-03 Adam Roben <aroben@apple.com>
  3573. Remove WebPageProxy::setDrawingArea
  3574. It is unused. It also does a useless equality comparison between OwnPtrs; if they are equal,
  3575. we've already lost.
  3576. Reviewed by Anders Carlsson and Antti Koivisto.
  3577. * UIProcess/WebPageProxy.cpp:
  3578. * UIProcess/WebPageProxy.h:
  3579. Removed setDrawingArea.
  3580. (WebKit::WebPageProxy::drawingArea):
  3581. (WebKit::WebPageProxy::backForwardList):
  3582. Made these functions const while I was at it.
  3583. 2011-05-03 Pratik Solanki <psolanki@apple.com>
  3584. Reviewed by Antti Koivisto.
  3585. Part of WebCore should use CFNetwork-based loader on Mac
  3586. https://bugs.webkit.org/show_bug.cgi?id=51836
  3587. Merge the conflicting definitions of WebCore::privateBrowsingCookieStorage() into one.
  3588. * WebProcess/Cookies/cf/WebCookieManagerCFNet.cpp:
  3589. (WebKit::WebCookieManager::platformSetHTTPCookieAcceptPolicy):
  3590. 2011-05-02 Jer Noble <jer.noble@apple.com>
  3591. Reviewed by Adam Roben.
  3592. Implement FULLSCREEN_API on Windows, Part 3: WebKit2
  3593. https://bugs.webkit.org/show_bug.cgi?id=59845
  3594. Implement a similar full screen mode to WebKit; Re-use the same
  3595. full screen window class used in WebKit in the new WebFullScreenController.
  3596. No animations (yet), so many of the stubs remain unimplemented.
  3597. * UIProcess/win/WebView.cpp:
  3598. (WebKit::WebView::onKeyEvent): Handle VK_ESCAPE and cancel full screen
  3599. mode if caught.
  3600. (WebKit::WebView::fullScreenController): Lazily instantiate m_fullScreenController.
  3601. (WebKit::WebView::fullScreenClientWindow): Added accessor.
  3602. (WebKit::WebView::fullScreenClientParentWindow): Ditto.
  3603. (WebKit::WebView::fullScreenClientSetParentWindow): Ditto.
  3604. (WebKit::WebView::fullScreenClientWillEnterFullScreen): Pass through to WebFullScreenManagerProxy.
  3605. (WebKit::WebView::fullScreenClientDidEnterFullScreen): Ditto.
  3606. (WebKit::WebView::fullScreenClientWillExitFullScreen): Ditto.
  3607. (WebKit::WebView::fullScreenClientDidExitFullScreen): Ditto.
  3608. * UIProcess/win/WebView.h:
  3609. * UIProcess/win/WebFullScreenManagerProxyWin.cpp:
  3610. (WebKit::WebFullScreenManagerProxy::enterFullScreen): Pass through to
  3611. WebFullScreenController.
  3612. (WebKit::WebFullScreenManagerProxy::exitFullScreen): Ditto.
  3613. * UIProcess/win/WebView.cpp:
  3614. (WebKit::WebView::WebView):
  3615. (WebKit::WebView::onKeyEvent): Handle the escape key and exit
  3616. full screen mode when detected.
  3617. (WebKit::WebView::fullScreenWindowController): Added.
  3618. * UIProcess/win/WebView.h:
  3619. * WebProcess/FullScreen/win/WebFullScreenManagerWin.cpp:
  3620. (WebKit::WebFullScreenManagerWin::~WebFullScreenManagerWin):
  3621. (WebKit::WebFullScreenManagerWin::setRootFullScreenLayer): Host the root
  3622. full screen layer if it gets detached.
  3623. * WebProcess/FullScreen/win/WebFullScreenManagerWin.h:
  3624. * win/WebKit2.vcproj:
  3625. 2011-05-03 Brady Eidson <beidson@apple.com>
  3626. Reviewed by Sam Weinig.
  3627. https://bugs.webkit.org/show_bug.cgi?id=60087 and <rdar://problem/9373182>
  3628. WK2 Icon Database should provide access to all image representations in the icon.
  3629. Expose a CFArrayRef of CGImageRefs as API for CG platforms:
  3630. * UIProcess/API/C/cg/WKIconDatabaseCG.cpp:
  3631. (WKIconDatabaseTryCopyCGImageArrayForURL):
  3632. * UIProcess/API/C/cg/WKIconDatabaseCG.h:
  3633. 2011-05-03 Sam Weinig <sam@webkit.org>
  3634. Reviewed by Dan Bernstein.
  3635. WebKit2 should treat API calls that start/stop loads as user gestures for responsiveness timer
  3636. https://bugs.webkit.org/show_bug.cgi?id=60083
  3637. * UIProcess/WebPageProxy.cpp:
  3638. (WebKit::WebPageProxy::reattachToWebProcessWithItem):
  3639. (WebKit::WebPageProxy::tryClose):
  3640. (WebKit::WebPageProxy::loadURL):
  3641. (WebKit::WebPageProxy::loadURLRequest):
  3642. (WebKit::WebPageProxy::loadHTMLString):
  3643. (WebKit::WebPageProxy::loadAlternateHTMLString):
  3644. (WebKit::WebPageProxy::loadPlainTextString):
  3645. (WebKit::WebPageProxy::stopLoading):
  3646. (WebKit::WebPageProxy::reload):
  3647. (WebKit::WebPageProxy::goForward):
  3648. (WebKit::WebPageProxy::goBack):
  3649. (WebKit::WebPageProxy::goToBackForwardItem):
  3650. Start responsiveness timer for load start/stop and close.
  3651. * WebProcess/WebPage/WebPage.cpp:
  3652. (WebKit::SendStopResponsivenessTimer::SendStopResponsivenessTimer):
  3653. (WebKit::SendStopResponsivenessTimer::~SendStopResponsivenessTimer):
  3654. Add simple RAII class to ensure the StopResponsivenessTimer is called.
  3655. (WebKit::WebPage::tryClose):
  3656. (WebKit::WebPage::loadURLRequest):
  3657. (WebKit::WebPage::loadData):
  3658. (WebKit::WebPage::stopLoading):
  3659. (WebKit::WebPage::reload):
  3660. (WebKit::WebPage::goForward):
  3661. (WebKit::WebPage::goBack):
  3662. (WebKit::WebPage::goToBackForwardItem):
  3663. Sends a message back to the UIProcess to indicate the WebProcess
  3664. is still responsive.
  3665. 2011-05-03 Darin Adler <darin@apple.com>
  3666. Reviewed by Sam Weinig.
  3667. <rdar://problem/9250444> Enter key doesn't work in a web text field (but Return key does)
  3668. No test at this time because the WebKit2 eventSender doesn't use this code path.
  3669. * Shared/mac/WebEventFactory.mm:
  3670. (WebKit::WebEventFactory::createWebKeyboardEvent): Copied the code to special-case certain
  3671. keys from the corresponding Mac WebKit1 code path.
  3672. 2011-05-03 Jeff Miller <jeffm@apple.com>
  3673. Reviewed by Darin Adler.
  3674. Unreachable URL is lost when canceling load of a new page
  3675. https://bugs.webkit.org/show_bug.cgi?id=60057
  3676. <rdar://problem/9049135>
  3677. When setting the unreachable URL in the WebFrameProxy, keep track of any previous unreachable URL
  3678. so we can restore it if the page load fails.
  3679. * UIProcess/WebFrameProxy.cpp:
  3680. (WebKit::WebFrameProxy::didFailProvisionalLoad): Restore m_unreachableURL to previous value.
  3681. (WebKit::WebFrameProxy::setUnreachableURL): Keep track of previous unreachable URL in m_lastUnreachableURL.
  3682. * UIProcess/WebFrameProxy.h: Moved setUnreachableURL() implementation to .cpp file, added m_lastUnreachableURL.
  3683. 2011-05-03 Adam Roben <aroben@apple.com>
  3684. Fix most strict PassOwnPtr violations on Windows
  3685. Fixes <http://webkit.org/b/60025> Windows should (almost) build with strict PassOwnPtr
  3686. enabled
  3687. Reviewed by Anders Carlsson.
  3688. * Platform/CoreIPC/win/ConnectionWin.cpp:
  3689. (CoreIPC::Connection::writeEventHandler): Use nullptr.
  3690. 2011-05-03 Julien Chaffraix <jchaffraix@codeaurora.org>
  3691. Reviewed by Dimitri Glazkov.
  3692. Element:shadowRoot & Element::ensureShadowRoot should return ShadowRoot*
  3693. https://bugs.webkit.org/show_bug.cgi?id=58703
  3694. * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp: Added #include for ShadowRoot.h.
  3695. 2011-05-03 Sam Weinig <sam@webkit.org>
  3696. Reviewed by Anders Carlsson.
  3697. More quarantine related sandbox denial when downloading files
  3698. <rdar://problem/9362626>
  3699. * WebProcess/com.apple.WebProcess.sb:
  3700. 2011-05-02 Adam Roben <aroben@apple.com>
  3701. Take advantage of implicit conversion from nullptr_t to PassOwnPtr
  3702. Fixes <http://webkit.org/b/59964> Implicit conversion from std::nullptr_t to PassOwnPtr
  3703. doesn't work, but should
  3704. Reviewed by Adam Barth.
  3705. * Platform/CoreIPC/Connection.cpp:
  3706. * UIProcess/qt/WebContextMenuProxyQt.cpp:
  3707. * WebProcess/InjectedBundle/InjectedBundle.cpp:
  3708. * WebProcess/WebPage/DrawingArea.cpp:
  3709. 2011-05-03 Carlos Garcia Campos <cgarcia@igalia.com>
  3710. Reviewed by Eric Seidel.
  3711. [GTK] Build webkit1 even when webkit2 is enabled
  3712. https://bugs.webkit.org/show_bug.cgi?id=59695
  3713. * GNUmakefile.am:
  3714. 2011-05-02 Yael Aharon <yael.aharon@nokia.com>
  3715. Reviewed by Andreas Kling.
  3716. [Qt] White screen displays when using MiniBrowser with DrawingAreaImpl
  3717. https://bugs.webkit.org/show_bug.cgi?id=60003
  3718. When using DrawingAreaImpl, we need to properly pass the viewSize to the WebPage.
  3719. Otherwise, the dirty rect will always be empty and we will not draw.
  3720. * UIProcess/API/qt/qwkpage.cpp:
  3721. (QWKPagePrivate::viewSize):
  3722. 2011-05-02 Anders Carlsson <andersca@apple.com>
  3723. Fix crash that was introduced in r85515.
  3724. * Platform/CoreIPC/Connection.cpp:
  3725. (CoreIPC::Connection::dispatchSyncMessage):
  3726. If didReceiveSyncMessage returns ManualReply, the client took ownership of the reply
  3727. encoder so we must leak it to avoid a double-free.
  3728. 2011-05-02 Anders Carlsson <andersca@apple.com>
  3729. Reviewed by Sam Weinig.
  3730. The web process locks up when the plug-in process crashes
  3731. https://bugs.webkit.org/show_bug.cgi?id=59999
  3732. <rdar://problem/8889303>
  3733. Add a hash map from plug-in paths to CoreIPC connections to PluginProcessConnectionManager.
  3734. Add PluginProcessConnectionManager::pluginProcessCrashed and make it look up the corresponding
  3735. CoreIPC connection and call postConnectionDidCloseOnConnectionWorkQueue on it.
  3736. * Platform/CoreIPC/Connection.cpp:
  3737. (CoreIPC::Connection::postConnectionDidCloseOnConnectionWorkQueue):
  3738. * Platform/CoreIPC/Connection.h:
  3739. * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
  3740. (WebKit::PluginProcessConnectionManager::getPluginProcessConnection):
  3741. (WebKit::PluginProcessConnectionManager::removePluginProcessConnection):
  3742. (WebKit::PluginProcessConnectionManager::pluginProcessCrashed):
  3743. * WebProcess/Plugins/PluginProcessConnectionManager.h:
  3744. * WebProcess/WebProcess.cpp:
  3745. (WebKit::WebProcess::pluginProcessCrashed):
  3746. 2011-05-02 Anders Carlsson <andersca@apple.com>
  3747. Try to fix Windows build.
  3748. * Scripts/webkit2/messages.py:
  3749. * Scripts/webkit2/messages_unittest.py:
  3750. 2011-05-02 Anders Carlsson <andersca@apple.com>
  3751. Reviewed by Oliver Hunt.
  3752. Dispatch the PluginProcessCrashed on the connection work queue
  3753. https://bugs.webkit.org/show_bug.cgi?id=59996
  3754. * WebProcess/WebProcess.cpp:
  3755. (WebKit::WebProcess::initialize):
  3756. Add the web process as a queue client.
  3757. (WebKit::WebProcess::terminate):
  3758. Remove the web process as a queue client.
  3759. (WebKit::WebProcess::willProcessMessageOnClientRunLoop):
  3760. Try calling willProcessWebProcessMessageOnClientRunLoop.
  3761. * WebProcess/WebProcess.messages.in:
  3762. Add the DispatchOnConnectionQueue attribute to PluginProcessCrashed.
  3763. 2011-05-02 Anders Carlsson <andersca@apple.com>
  3764. Reviewed by Sam Weinig.
  3765. Send a PluginProcessCrashed message to all web processes when a plug-in crashes
  3766. https://bugs.webkit.org/show_bug.cgi?id=59994
  3767. * UIProcess/Plugins/PluginProcessProxy.cpp:
  3768. (WebKit::PluginProcessProxy::didClose):
  3769. Iterate over all contexts and send PluginProcessCrashed to all web processes in each context.
  3770. (WebKit::PluginProcessProxy::didFinishLaunching):
  3771. Call setShouldCloseConnectionOnMachExceptions on the CoreIPC connection.
  3772. * WebProcess/WebProcess.cpp:
  3773. (WebKit::WebProcess::pluginProcessCrashed):
  3774. Add empty stub.
  3775. * WebProcess/WebProcess.messages.in:
  3776. Add message.
  3777. 2011-05-02 Anders Carlsson <andersca@apple.com>
  3778. Reviewed by Simon Fraser.
  3779. Plug-in not completely repainted after a crash
  3780. https://bugs.webkit.org/show_bug.cgi?id=59991
  3781. Call Widget::invalidate().
  3782. * WebProcess/Plugins/PluginView.cpp:
  3783. (WebKit::PluginView::pluginProcessCrashed):
  3784. 2011-05-02 Anders Carlsson <andersca@apple.com>
  3785. Reviewed by Dan Bernstein.
  3786. Make PluginProcessConnectionManager a member of WebProcess
  3787. https://bugs.webkit.org/show_bug.cgi?id=59989
  3788. * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
  3789. * WebProcess/Plugins/PluginProcessConnectionManager.h:
  3790. * WebProcess/Plugins/PluginProxy.cpp:
  3791. (WebKit::PluginProxy::initialize):
  3792. * WebProcess/WebProcess.h:
  3793. (WebKit::WebProcess::pluginProcessConnectionManager):
  3794. 2011-05-02 Mark Rowe <mrowe@apple.com>
  3795. Reviewed by Brady Eidson.
  3796. <rdar://problem/9371289> WebKit2 can persist an invalid current back/forward item index when URLs are filtered from back/forward list
  3797. * UIProcess/cf/WebBackForwardListCF.cpp:
  3798. (WebKit::WebBackForwardList::createCFDictionaryRepresentation): We need to update the current index to account for filtered items
  3799. for all items before the current item in the array.
  3800. 2011-05-02 Anders Carlsson <andersca@apple.com>
  3801. Reviewed by Adam Roben.
  3802. Handle DispatchOnConnectionQueue for asynchronous messages
  3803. https://bugs.webkit.org/show_bug.cgi?id=59959
  3804. If any asynchronous messages have the DispatchOnConnectionQueue attribute,
  3805. create a new willProcess{Receiver}MessageOnClientRunLoop.
  3806. * Scripts/webkit2/messages.py:
  3807. - Fix a regex bug where we would only parse attributes on synchronous messages.
  3808. - Collect messages with the dispatch_on_connection_queue flag set. We only handle
  3809. asynchronous messages currently; sync message support will be added when/if the
  3810. need arises.
  3811. * Scripts/webkit2/messages_unittest.py:
  3812. Update test.
  3813. 2011-05-02 Adam Barth <abarth@webkit.org>
  3814. Reviewed by David Levin.
  3815. PLATFORM(MAC) should (almost!) build with strict PassOwnPtr
  3816. https://bugs.webkit.org/show_bug.cgi?id=59924
  3817. * Platform/CoreIPC/Connection.cpp:
  3818. (CoreIPC::Connection::sendSyncMessage):
  3819. (CoreIPC::Connection::waitForSyncReply):
  3820. (CoreIPC::Connection::dispatchSyncMessage):
  3821. * Platform/CoreIPC/Connection.h:
  3822. (CoreIPC::Connection::Message::releaseArguments):
  3823. - The memory management for this class is very strange. I wrote a
  3824. large comment. Hopefully a kind soul will come by and fix it.
  3825. * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
  3826. (WebKit::NetscapePluginModule::unload):
  3827. * UIProcess/API/mac/WKView.mm:
  3828. (-[WKView _setFindIndicator:fadeOut:]):
  3829. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
  3830. (WebKit::WebFullScreenManagerMac::setRootFullScreenLayer):
  3831. * WebProcess/InjectedBundle/InjectedBundle.cpp:
  3832. (WebKit::toStringVector):
  3833. * WebProcess/Plugins/Netscape/NetscapePluginStream.cpp:
  3834. (WebKit::NetscapePluginStream::stop):
  3835. * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
  3836. (WebKit::WebInspectorFrontendClient::WebInspectorFrontendClient):
  3837. * WebProcess/WebPage/DrawingArea.cpp:
  3838. (WebKit::DrawingArea::create):
  3839. 2011-04-29 Chris Marrin <cmarrin@apple.com>
  3840. Reviewed by Simon Fraser.
  3841. Pages with accelerated compositing do not redraw unless scrolled
  3842. https://bugs.webkit.org/show_bug.cgi?id=59851
  3843. Added a setNeedDisplay on the non-composited content layer after
  3844. the size is changed so it paints the full size of the layer. Called
  3845. only for the areas newly exposed, if any.
  3846. * WebProcess/WebPage/ca/LayerTreeHostCA.cpp:
  3847. (WebKit::LayerTreeHostCA::sizeDidChange):
  3848. 2011-05-02 Anders Carlsson <andersca@apple.com>
  3849. Reviewed by Adam Roben.
  3850. Need a way to handle CoreIPC messages on the connection work queue
  3851. https://bugs.webkit.org/show_bug.cgi?id=59954
  3852. Add a Connection::QueueClient abstract class. This class has a single pure virtual
  3853. member function, willProcessMessageOnClientRunLoop which should return true if the message
  3854. should be forwarded to the next Connection::QueueClient in the list or Connection::Client's
  3855. run loop for processing and false otherwise. Users of Connection can use addQueueClient to
  3856. add clients and all messages will be dispatched to the queue clients first.
  3857. * Platform/CoreIPC/Connection.cpp:
  3858. (CoreIPC::Connection::addQueueClient):
  3859. (CoreIPC::Connection::removeQueueClient):
  3860. (CoreIPC::Connection::processIncomingMessage):
  3861. * Platform/CoreIPC/Connection.h:
  3862. (CoreIPC::Connection::QueueClient::~QueueClient):
  3863. 2011-05-02 Jeff Miller <jeffm@apple.com>
  3864. Reviewed by Adam Roben.
  3865. WebKit2 thinks the web process is unresponsive when a plugin displays a context menu
  3866. https://bugs.webkit.org/show_bug.cgi?id=59124
  3867. <rdar://problem/9318600>
  3868. This is the Windows version of <https://bugs.webkit.org/show_bug.cgi?id=58943>.
  3869. Since we have no control over how long a plugin will take to handle an event, we need
  3870. to tell the UI process to stop its responsive timer when we're about to send an event
  3871. to the plugin. The downside of doing this is that if the plugin does become unresponsive,
  3872. the user won't know this immediately until they click on the web page again. At that point,
  3873. if the web process is unresponsive because of a hung plugin, the responsiveness timer will fire.
  3874. We're only doing this on Windows currently when running plugins in the web process (Anders fixed
  3875. bug 58943 in a different way when running plugins in a separate plugin process on the Mac).
  3876. * PluginProcess/PluginControllerProxy.cpp:
  3877. (WebKit::PluginControllerProxy::willSendEventToPlugin): Added, not used when running plugins in a separate process.
  3878. * PluginProcess/PluginControllerProxy.h: Added willSendEventToPlugin().
  3879. * UIProcess/WebPageProxy.cpp:
  3880. (WebKit::WebPageProxy::stopResponsivenessTimer): Added.
  3881. * UIProcess/WebPageProxy.h: Added stopResponsivenessTimer().
  3882. * UIProcess/WebPageProxy.messages.in: Added StopResponsivenessTimer message.
  3883. * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
  3884. (WebKit::NetscapePlugin::platformPaint): Tell our controller when we're about to send an event to the plugin.
  3885. (WebKit::NetscapePlugin::platformHandleMouseEvent): Ditto.
  3886. (WebKit::NetscapePlugin::platformHandleMouseEnterEvent): Ditto.
  3887. (WebKit::NetscapePlugin::platformHandleMouseLeaveEvent): Ditto.
  3888. * WebProcess/Plugins/PluginController.h: Added willSendEventToPlugin().
  3889. * WebProcess/Plugins/PluginView.cpp:
  3890. (WebKit::PluginView::willSendEventToPlugin): Added, tell the UI process to stop its responsiveness timer.
  3891. * WebProcess/Plugins/PluginView.h: Added willSendEventToPlugin().
  3892. 2011-04-29 Steve Falkenburg <sfalken@apple.com>
  3893. Reviewed by Maciej Stachowiak.
  3894. Plug-in failed to initialize message should be called when Java fails to initialize
  3895. https://bugs.webkit.org/show_bug.cgi?id=59856
  3896. To match the WebKit1 behavior, WebKit2 should dispatch the plug-in failed
  3897. to initialize message when we can't instantiate the Java plug-in.
  3898. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  3899. (WebKit::WebFrameLoaderClient::createJavaAppletWidget):
  3900. 2011-05-02 Sam Weinig <sam@webkit.org>
  3901. Reviewed by Adam Barth.
  3902. Prune some #includes from DOMWindow.h
  3903. https://bugs.webkit.org/show_bug.cgi?id=59907
  3904. * WebProcess/WebPage/WebFrame.cpp:
  3905. Add now missing SecurityOrigin.h #include.
  3906. 2011-04-29 Brian Weinstein <bweinstein@apple.com>
  3907. Reviewed by Dan Bernstein.
  3908. WebKit2: Crash closing tab with docked Web Inspector
  3909. https://bugs.webkit.org/show_bug.cgi?id=59914
  3910. <rdar://problem/9359672>
  3911. When a tab is closed with a docked inspector, invalidate called platformClose, which
  3912. didn't do the tear down that is needed, but is called when we close the web inspector explcitly.
  3913. One part of tear down we weren't doing is removing ourselves as a WindowMessageBrodcaster listener
  3914. on the inspected web view, and this can cause crashes.
  3915. This patch also renames platformClose to platformDidClose, to be clearer about when the function
  3916. is called.
  3917. * UIProcess/WebInspectorProxy.cpp:
  3918. (WebKit::WebInspectorProxy::invalidate): Call didClose instead of platformClose.
  3919. (WebKit::WebInspectorProxy::didClose): Call platformDidClose instead of platformClose.
  3920. * UIProcess/WebInspectorProxy.h:
  3921. * UIProcess/mac/WebInspectorProxyMac.mm:
  3922. (WebKit::WebInspectorProxy::platformDidClose): Renamed from platformClose.
  3923. * UIProcess/win/WebInspectorProxyWin.cpp:
  3924. (WebKit::WebInspectorProxy::platformDidClose): Ditto.
  3925. * UIProcess/gtk/WebInspectorGtk.cpp:
  3926. (WebKit::WebInspectorProxy::platformDidClose): Ditto.
  3927. * UIProcess/qt/WebInspectorProxyQt.cpp:
  3928. (WebKit::WebInspectorProxy::platformDidClose): Ditto.
  3929. 2011-05-01 Sam Weinig <sam@webkit.org>
  3930. Reviewed by Anders Carlsson.
  3931. Prune some unnecessary #includes
  3932. https://bugs.webkit.org/show_bug.cgi?id=59895
  3933. Start getting rid of unnecessary #includes and forward declares.
  3934. * WebProcess/Plugins/PluginView.cpp:
  3935. * WebProcess/WebPage/WebPage.cpp:
  3936. 2011-05-01 Patrick Gansterer <paroga@webkit.org>
  3937. [WIN] Unreviewed buildfix after r85434.
  3938. * UIProcess/WebPageProxy.cpp:
  3939. (WebKit::WebPageProxy::startDragDrop):
  3940. * UIProcess/win/ChunkedUpdateDrawingAreaProxyWin.cpp:
  3941. (WebKit::ChunkedUpdateDrawingAreaProxy::ensureBackingStore):
  3942. (WebKit::ChunkedUpdateDrawingAreaProxy::drawUpdateChunkIntoBackingStore):
  3943. * WebProcess/WebCoreSupport/win/WebDragClientWin.cpp:
  3944. (WebKit::WebDragClient::startDrag):
  3945. * WebProcess/WebPage/win/ChunkedUpdateDrawingAreaWin.cpp:
  3946. (WebKit::ChunkedUpdateDrawingArea::paintIntoUpdateChunk):
  3947. 2011-05-01 Anders Carlsson <andersca@apple.com>
  3948. Reviewed by Sam Weinig.
  3949. Can't open document from skydrive.com in Microsoft Word
  3950. https://bugs.webkit.org/show_bug.cgi?id=59891
  3951. <rdar://problem/9354285>
  3952. Add the AllowHalfBakedQuickDrawSupport quirk for the SharePoint plug-in.
  3953. * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
  3954. (WebKit::NetscapePluginModule::determineQuirks):
  3955. 2011-05-01 Anders Carlsson <andersca@apple.com>
  3956. Reviewed by Sam Weinig.
  3957. Don't try to create a backing store for a 0x0 plug-in
  3958. https://bugs.webkit.org/show_bug.cgi?id=59887
  3959. * WebProcess/Plugins/PluginProxy.cpp:
  3960. (WebKit::PluginProxy::geometryDidChange):
  3961. 2011-05-01 Anders Carlsson <andersca@apple.com>
  3962. Reviewed by Kevin Decker.
  3963. Sandbox violation by WebProcess for DownloadAssessment.plist
  3964. https://bugs.webkit.org/show_bug.cgi?id=59879
  3965. <rdar://problem/9326041>
  3966. * WebProcess/com.apple.WebProcess.sb:
  3967. Allow reading ~/Library/Preferences/com.apple.DownloadAssessment.plist
  3968. 2011-05-01 Ivan Krstić <ike@apple.com>
  3969. Reviewed by Maciej Stachowiak.
  3970. Remove unnecessary keychain and CoreAudio debris from WebProcess sandbox
  3971. https://bugs.webkit.org/show_bug.cgi?id=59873
  3972. These rules have been obsoleted by <rdar://problem/9301520> and
  3973. <rdar://problem/9181468>.
  3974. * WebProcess/com.apple.WebProcess.sb:
  3975. 2011-05-01 Ivan Krstić <ike@apple.com>
  3976. Reviewed by Maciej Stachowiak.
  3977. Simplify WebProcess sandbox with homedir-relative path filters.
  3978. https://bugs.webkit.org/show_bug.cgi?id=59872
  3979. * WebProcess/com.apple.WebProcess.sb:
  3980. 2011-05-01 Ivan Krstić <ike@apple.com>
  3981. Reviewed by Maciej Stachowiak.
  3982. On-demand VPN support for sandboxed WebProcess.
  3983. <rdar://problem/8994181>
  3984. * WebProcess/com.apple.WebProcess.sb:
  3985. 2011-04-30 Ivan Krstić <ike@apple.com>
  3986. Reviewed by Sam Weinig.
  3987. Reindent WebProcess sandbox to standard scheme style
  3988. https://bugs.webkit.org/show_bug.cgi?id=59870
  3989. * WebProcess/com.apple.WebProcess.sb:
  3990. 2011-04-28 Jer Noble <jer.noble@apple.com>
  3991. Reviewed by Jon Honeycutt.
  3992. Implement FULLSCREEN_API on Windows, Part 1: Stubs
  3993. https://bugs.webkit.org/show_bug.cgi?id=59778
  3994. Add Windows specific stubs for WebKit2 full screen APIs.
  3995. * UIProcess/win/WebFullScreenManagerProxyWin.cpp: Added.
  3996. (WebKit::WebFullScreenManagerProxy::enterFullScreen): Added stub.
  3997. (WebKit::WebFullScreenManagerProxy::exitFullScreen): Added stub.
  3998. (WebKit::WebFullScreenManagerProxy::beganEnterFullScreenAnimation): Added stub.
  3999. (WebKit::WebFullScreenManagerProxy::finishedEnterFullScreenAnimation): Added stub.
  4000. (WebKit::WebFullScreenManagerProxy::beganExitFullScreenAnimation): Added stub.
  4001. (WebKit::WebFullScreenManagerProxy::finishedExitFullScreenAnimation): Added stub.
  4002. (WebKit::WebFullScreenManagerProxy::enterAcceleratedCompositingMode): Added stub.
  4003. (WebKit::WebFullScreenManagerProxy::exitAcceleratedCompositingMode): Added stub.
  4004. (WebKit::WebFullScreenManagerProxy::getFullScreenRect): Added stub.
  4005. * WebProcess/FullScreen/win/WebFullScreenManagerWin.cpp: Added.
  4006. (WebKit::WebFullScreenManager::create): Added. Returns a WebFullScreenManagerWin.
  4007. (WebKit::WebFullScreenManagerWin::create): Added.
  4008. (WebKit::WebFullScreenManagerWin::WebFullScreenManagerWin): Added.
  4009. (WebKit::WebFullScreenManagerWin::~WebFullScreenManagerWin): Added.
  4010. (WebKit::WebFullScreenManagerWin::setRootFullScreenLayer): Added stub.
  4011. (WebKit::WebFullScreenManagerWin::beginEnterFullScreenAnimation): Added stub.
  4012. (WebKit::WebFullScreenManagerWin::beginExitFullScreenAnimation): Added stub.
  4013. * WebProcess/FullScreen/win/WebFullScreenManagerWin.h: Added.
  4014. * win/WebKit2.vcproj: Added new classes.
  4015. 2011-04-29 Alexey Proskuryakov <ap@apple.com>
  4016. Reviewed by Simon Fraser and Dan Bernstein.
  4017. WebKit2: WebPluginTypeEnabled key is ignored when enumerating plug-ins
  4018. https://bugs.webkit.org/show_bug.cgi?id=59852
  4019. <rdar://problem/9314011>
  4020. * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
  4021. (WebKit::getPluginInfoFromPropertyLists): Do what WebKit1 does (but in CF dialect). And yes,
  4022. I've seen plists with both numbers and booleans used .
  4023. 2011-04-29 Beth Dakin <bdakin@apple.com>
  4024. Reviewed by Simon Fraser.
  4025. https://bugs.webkit.org/show_bug.cgi?id=59846
  4026. Scrolling causes rounded bottom window corners to become square
  4027. <rdar://problem/9234239>
  4028. Keep track of the m_windowBottomCornerIntersectionRect in WKView.
  4029. Invalidate the rect before scrolling. And if the rect is non-zero during a
  4030. display, mask the corners, then set the rect to zero so that only displays that
  4031. happen right after a scroll bother to do this.
  4032. * UIProcess/API/mac/PageClientImpl.mm:
  4033. (WebKit::PageClientImpl::scrollView):
  4034. * UIProcess/API/mac/WKView.mm:
  4035. (-[WKView displayIfNeeded]):
  4036. (-[WKView _cacheWindowBottomCornerRect]):
  4037. * UIProcess/API/mac/WKViewInternal.h:
  4038. 2011-04-29 Jia Pu <jpu@apple.com>
  4039. Reviewed by Sam Weinig.
  4040. [Mac] Scrolling WK2 window should dismiss autocorrection panel.
  4041. https://bugs.webkit.org/show_bug.cgi?id=59809
  4042. <rdar://problem/9317410>
  4043. * UIProcess/WebPageProxy.cpp:
  4044. (WebKit::WebPageProxy::pageDidScroll): Dimiss autocorrection panel in this function.
  4045. 2011-04-29 Alexey Proskuryakov <ap@apple.com>
  4046. Reviewed by Dan Bernstein.
  4047. WebKit2: Typing with Input methods still enters Roman characters in Safari search field frequently
  4048. https://bugs.webkit.org/show_bug.cgi?id=59829
  4049. <rdar://problem/9336907>
  4050. This patch regresses behavior somewhat in that inline input isn't discarded when something
  4051. happens in an inactive window. This doesn't work well in shipping Safari either.
  4052. * UIProcess/API/mac/WKView.mm:
  4053. (-[WKView _notifyInputContextAboutDiscardedComposition]): Added a method that calls
  4054. -discardMarkedText with a safety check.
  4055. (-[WKView setMarkedText:selectedRange:replacementRange:]): Use it.
  4056. (-[WKView _updateTextInputStateIncludingSecureInputState:]): Use it.
  4057. (-[WKView _resetTextInputState]): Use it.
  4058. 2011-04-29 Chris Fleizach <cfleizach@apple.com>
  4059. Reviewed by Beth Dakin.
  4060. AX: Remote accessibility should build on snow leopard
  4061. https://bugs.webkit.org/show_bug.cgi?id=59767
  4062. * UIProcess/API/mac/WKView.mm:
  4063. (-[WKView _updateRemoteAccessibilityRegistration:]):
  4064. (-[WKView viewDidMoveToWindow]):
  4065. (-[WKView _setAccessibilityWebProcessToken:]):
  4066. * WebProcess/WebPage/mac/WebPageMac.mm:
  4067. (WebKit::WebPage::platformInitialize):
  4068. (WebKit::WebPage::registerUIProcessAccessibilityTokens):
  4069. * WebProcess/mac/WebProcessMainMac.mm:
  4070. (WebKit::WebProcessMain):
  4071. 2011-04-29 Sam Weinig <sam@webkit.org>
  4072. Reviewed by Dan Bernstein.
  4073. Add protection for shared memory failing to allocate
  4074. <rdar://problem/9125287>
  4075. https://bugs.webkit.org/show_bug.cgi?id=59842
  4076. * Platform/mac/SharedMemoryMac.cpp:
  4077. (WebKit::SharedMemory::create):
  4078. Add logging in shared memory failure cases.
  4079. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  4080. (WebKit::DrawingAreaImpl::display):
  4081. Guard against ShareableBitmap failing to create a shared memory
  4082. backing.
  4083. 2011-04-28 Stephanie Lewis <slewis@apple.com>
  4084. Reviewed by Darin Adler.
  4085. https://bugs.webkit.org/show_bug.cgi?id=59776
  4086. <rdar://problem/9287113> REGRESSION: Safari cold/warm launch time 15% to 2x regression
  4087. On the first draw the WebProcess is just going to send us blank bits anyway so don't
  4088. pause waiting for the update. Continue drawing a blank window until the WebProcess
  4089. sends us the update.
  4090. * UIProcess/DrawingAreaProxyImpl.cpp:
  4091. (WebKit::DrawingAreaProxyImpl::DrawingAreaProxyImpl):
  4092. (WebKit::DrawingAreaProxyImpl::paint):
  4093. (WebKit::DrawingAreaProxyImpl::didUpdateBackingStoreState):
  4094. (WebKit::DrawingAreaProxyImpl::sendUpdateBackingStoreState):
  4095. * UIProcess/DrawingAreaProxyImpl.h:
  4096. 2011-04-29 Jon Lee <jonlee@apple.com>
  4097. Reviewed by mitzpettel.
  4098. REGRESSION (WebKit2): (Mac) Selection is gone after switching tabs (59721)
  4099. <rdar://problem/9327332>
  4100. https://bugs.webkit.org/show_bug.cgi?id=59721
  4101. When resigning first responder status, check to see if we need to maintain an inactive
  4102. selection in the web view. If we don't, we clear the selection.
  4103. This also reverts the change made in 83814, since that was a different attempt to solve this same issue.
  4104. * UIProcess/API/C/WKPage.cpp:
  4105. (WKPageSetMaintainsInactiveSelection): Export setMaintainsInactiveSelection()
  4106. * UIProcess/API/C/WKPage.h:
  4107. * UIProcess/API/mac/WKView.mm:
  4108. (-[WKView resignFirstResponder]): Check and see if we need to maintain the selection in the view prior to resigning.
  4109. If not, we clear the selection
  4110. * UIProcess/WebPageProxy.cpp:
  4111. (WebKit::WebPageProxy::clearSelection): Send message across process boundary
  4112. (WebKit::WebPageProxy::setMaintainsInactiveSelection): Sets variable
  4113. * UIProcess/WebPageProxy.h: New member variable to keep track of whether we need to maintain the current selection
  4114. (WebKit::WebPageProxy::maintainsInactiveSelection): Returns variable
  4115. * WebProcess/WebPage/WebPage.cpp:
  4116. (WebKit::WebPage::setFocused): Reverting code to just set the focused bit instead of also clearing the selection
  4117. (WebKit::WebPage::clearSelection):
  4118. * WebProcess/WebPage/WebPage.h:
  4119. * WebProcess/WebPage/WebPage.messages.in: add new ClearSelection() message
  4120. 2011-04-29 Anders Carlsson <andersca@apple.com>
  4121. Reviewed by Darin Adler.
  4122. Application cache doesn't work due to a sandbox violation
  4123. https://bugs.webkit.org/show_bug.cgi?id=59818
  4124. <rdar://problem/9346971>
  4125. Add a sandbox extension for the application cache directory.
  4126. * Shared/WebProcessCreationParameters.cpp:
  4127. (WebKit::WebProcessCreationParameters::encode):
  4128. (WebKit::WebProcessCreationParameters::decode):
  4129. Encode and decode the sandbox extension handle.
  4130. * Shared/WebProcessCreationParameters.h:
  4131. Add a applicationCacheDirectoryExtensionHandle member.
  4132. * UIProcess/WebContext.cpp:
  4133. (WebKit::WebContext::ensureWebProcess):
  4134. If we have a non-empty application cache directory, create a sandbox extension
  4135. and pass it to the creation parameters.
  4136. * WebProcess/WebProcess.cpp:
  4137. (WebKit::WebProcess::initializeWebProcess):
  4138. Create and consume a sandbox extension.
  4139. * WebProcess/WebProcess.h:
  4140. Add an m_applicationCachePathExtension member variable.
  4141. 2011-04-29 Dean Jackson <dino@apple.com>
  4142. Reviewed by Simon Fraser.
  4143. Add ENABLE macro for WebKitAnimation
  4144. https://bugs.webkit.org/show_bug.cgi?id=59729
  4145. Add new feature to toggle WebKit Animation API.
  4146. * Configurations/FeatureDefines.xcconfig:
  4147. 2011-04-29 Anders Carlsson <andersca@apple.com>
  4148. Reviewed by Brian Weinstein.
  4149. Crash when closing a tab that is unresponsive
  4150. https://bugs.webkit.org/show_bug.cgi?id=59810
  4151. <rdar://problem/9329133>
  4152. Back out r84643 - there was no rationale for this change, and it's causing crashes.
  4153. * UIProcess/WebPageProxy.cpp:
  4154. (WebKit::WebPageProxy::close):
  4155. (WebKit::WebPageProxy::processDidCrash):
  4156. 2011-04-29 Carlos Garcia Campos <cgarcia@igalia.com>
  4157. Reviewed by Martin Robinson.
  4158. [GTK] Rename page as pageProxy in WebKitWebViewBase
  4159. https://bugs.webkit.org/show_bug.cgi?id=59790
  4160. To avoid consufion between page client and page proxy. Also rename
  4161. some methods to webkitWebViewBase* for consistency.
  4162. * UIProcess/API/gtk/WebKitWebViewBase.cpp:
  4163. (webkitWebViewBaseFinalize):
  4164. (webkitWebViewBaseExpose):
  4165. (webkitWebViewBaseDraw):
  4166. (webkitWebViewBaseSizeAllocate):
  4167. (webkitWebViewBaseFocusInEvent):
  4168. (webkitWebViewBaseFocusOutEvent):
  4169. (webkitWebViewBaseKeyPressEvent):
  4170. (webkitWebViewBaseKeyReleaseEvent):
  4171. (webkitWebViewBaseButtonPressEvent):
  4172. (webkitWebViewBaseButtonReleaseEvent):
  4173. (webkitWebViewBaseScrollEvent):
  4174. (webkitWebViewBaseMotionNotifyEvent):
  4175. (webkit_web_view_base_class_init):
  4176. (webkitWebViewBaseCreate):
  4177. (webkitWebViewBaseGetPage):
  4178. 2011-04-29 Carlos Garcia Campos <cgarcia@igalia.com>
  4179. Unreviewed. Fix a crash after r85214.
  4180. * UIProcess/API/gtk/WebKitWebViewBase.cpp:
  4181. (webkit_web_view_base_init): Add line to create the page client
  4182. instance, removed by mistake in r85214.
  4183. 2011-04-28 David Levin <levin@chromium.org>
  4184. Reviewed by Adam Barth.
  4185. Remove IMAGE_RESIZER related code.
  4186. https://bugs.webkit.org/show_bug.cgi?id=59735
  4187. * Configurations/FeatureDefines.xcconfig:
  4188. 2011-04-28 Sam Weinig <sam@webkit.org>
  4189. Reviewed by Gavin Barraclough.
  4190. Original patch by Austin Jennings.
  4191. <rdar://problem/9350288>
  4192. Update sandbox profile for extension changes
  4193. * WebProcess/com.apple.WebProcess.sb:
  4194. 2011-04-28 Anders Carlsson <andersca@apple.com>
  4195. Reviewed by Darin Adler.
  4196. Right-clicking on a Flash movie in an iframe shows the browser context menu
  4197. https://bugs.webkit.org/show_bug.cgi?id=59760
  4198. <rdar://problem/9340541>
  4199. Move context menu event handling out into a separate function. Make sure to call
  4200. EventHandler::sendContextMenuEvent on the event handler belonging to the frame of the
  4201. node that was clicked, and not the main frame.
  4202. * WebProcess/WebPage/WebPage.cpp:
  4203. (WebKit::handleContextMenuEvent):
  4204. (WebKit::handleMouseEvent):
  4205. 2011-04-28 Adam Barth <abarth@webkit.org>
  4206. Reviewed by Eric Seidel.
  4207. Remove WML
  4208. https://bugs.webkit.org/show_bug.cgi?id=59678
  4209. Remove WML-related code in WebKit2.
  4210. * Configurations/FeatureDefines.xcconfig:
  4211. * WebProcess/WebPage/WebBackForwardListProxy.cpp:
  4212. * WebProcess/WebPage/WebBackForwardListProxy.h:
  4213. 2011-04-28 Alexey Proskuryakov <ap@apple.com>
  4214. Reviewed by Anders Carlsson.
  4215. WebKit2: Frequent crashes in acceptsFirstMouse
  4216. https://bugs.webkit.org/show_bug.cgi?id=59746
  4217. <rdar://problem/9281270>
  4218. The crash occurred when connection was null (and it can become null at any time).
  4219. Added checks for the proxy being valid in all sync calls that lacked such.
  4220. WebPageProxy::isValid() is not the same as WebProcessProxy::isValid(), but existing checks
  4221. looked at the former, so I used that.
  4222. * UIProcess/WebPageProxy.cpp:
  4223. (WebKit::WebPageProxy::firstRectForCharacterInSelectedRange):
  4224. (WebKit::WebPageProxy::getSelectedText):
  4225. (WebKit::WebPageProxy::gestureWillBegin):
  4226. (WebKit::WebPageProxy::createSnapshotOfVisibleContent):
  4227. * UIProcess/mac/WebPageProxyMac.mm:
  4228. (WebKit::WebPageProxy::setComposition):
  4229. (WebKit::WebPageProxy::confirmComposition):
  4230. (WebKit::WebPageProxy::confirmCompositionWithoutDisturbingSelection):
  4231. (WebKit::WebPageProxy::insertText):
  4232. (WebKit::WebPageProxy::getMarkedRange):
  4233. (WebKit::WebPageProxy::getSelectedRange):
  4234. (WebKit::WebPageProxy::getAttributedSubstringFromRange):
  4235. (WebKit::WebPageProxy::characterIndexForPoint):
  4236. (WebKit::WebPageProxy::firstRectForCharacterRange):
  4237. (WebKit::WebPageProxy::executeKeypressCommands):
  4238. (WebKit::WebPageProxy::writeSelectionToPasteboard):
  4239. (WebKit::WebPageProxy::readSelectionFromPasteboard):
  4240. (WebKit::WebPageProxy::shouldDelayWindowOrderingForEvent):
  4241. (WebKit::WebPageProxy::acceptsFirstMouse):
  4242. 2011-04-27 Brian Weinstein <bweinstein@apple.com>
  4243. Reviewed by Timothy Hatcher.
  4244. Mac side of: WebKit2: Support docked mode for Web Inspector
  4245. https://bugs.webkit.org/show_bug.cgi?id=59134
  4246. <rdar://problem/8739005>
  4247. Implement docking of the Web Inspector on Mac. This matches the Windows (WK1 and WK2) closely,
  4248. where the inspector and the inspected view are siblings.
  4249. * UIProcess/API/C/mac: Added.
  4250. * UIProcess/API/C/mac/WKInspectorMac.h: Added.
  4251. * UIProcess/API/mac/PageClientImpl.h:
  4252. (WebKit::PageClientImpl::wkView): Returns the WKView.
  4253. * UIProcess/PageClient.h:
  4254. * UIProcess/WebInspectorProxy.h: The inspected view is now a WebInspectorWKView, so we can override tag.
  4255. * UIProcess/WebPageProxy.h: Added a getter for the WKView.
  4256. * UIProcess/mac/WebInspectorProxyMac.mm:
  4257. (-[WebInspectorProxyObjCAdapter inspectedViewFrameDidChange:]): Calls through to WebInspectorProxy::inspectedViewFrameDidChange.
  4258. (-[WebInspectorWKView tag]): Returns a constant defined in WKInspectorMac.h.
  4259. (WebKit::WebInspectorProxy::platformCreateInspectorPage): Create a WebInspectorWKView instead of a WKView.
  4260. (WebKit::WebInspectorProxy::platformClose): Removed a FIXME that isn't needed anymore (we always detach before closing).
  4261. (WebKit::WebInspectorProxy::inspectedViewFrameDidChange): Place our inspector and the inspected view next to each other, assuming the
  4262. bottom of the inspector is at the Y origin.
  4263. (WebKit::WebInspectorProxy::platformAttach): Listen for changes to the inspected view's frame, and move the inspectorView from the
  4264. detached inspector window to the superview of the inspected view (to make the inspector and inspected view siblings).
  4265. (WebKit::WebInspectorProxy::platformDetach): Stop listening for changes to the inspected view's frame, and move the inspectorView
  4266. back to the detached inspector window. We also resize the inspected view to take up the space the inspector took up before
  4267. (assuming the bottom of the inspector was at the Y origin).
  4268. (WebKit::WebInspectorProxy::platformSetAttachedWindowHeight): Resize the inspector's view, and call inspectedViewFrameDidChange (which
  4269. syncs the inspector and the inspected view), and call setNeedsDisplay on both views.
  4270. * UIProcess/mac/WebPageProxyMac.mm:
  4271. (WebKit::WebPageProxy::wkView):
  4272. * WebKit2.xcodeproj/project.pbxproj: Add a new file.
  4273. 2011-04-28 Jessie Berlin <jberlin@apple.com>
  4274. Reviewed by Darin Adler.
  4275. Crash under WKPageCreateSnapshotOfVisibleContent if there is no response from the Web Process
  4276. in the allotted time.
  4277. https://bugs.webkit.org/show_bug.cgi?id=59738
  4278. If the handle is null, don't try to create a ShareableBitmap and then a WebImage out of it.
  4279. * UIProcess/WebPageProxy.cpp:
  4280. (WebKit::WebPageProxy::createSnapshotOfVisibleContent):
  4281. 2011-04-28 Xan Lopez <xlopez@igalia.com>
  4282. Reviewed by Martin Robinson.
  4283. [Gtk] Split JSC and WebCore builds
  4284. https://bugs.webkit.org/show_bug.cgi?id=19428
  4285. Build JavaScriptCore as a libtool shared library instead of a
  4286. private convenience library.
  4287. * GNUmakefile.am: adapt to new name for javascriptcore target.
  4288. 2011-04-28 Brady Eidson <beidson@apple.com>
  4289. Reviewed by Sam Weinig.
  4290. <rdar://problem/8773946> and https://bugs.webkit.org/show_bug.cgi?id=59614
  4291. Client certificate authentication in WebKit2
  4292. Project-file stuff:
  4293. * WebKit2.xcodeproj/project.pbxproj:
  4294. Allow WKCredentials to store certificates:
  4295. * UIProcess/Authentication/WebCredential.cpp:
  4296. (WebKit::WebCredential::WebCredential):
  4297. (WebKit::WebCredential::certificateInfo):
  4298. * UIProcess/Authentication/WebCredential.h:
  4299. (WebKit::WebCredential::create):
  4300. * UIProcess/API/C/WKCredential.cpp:
  4301. (WKCredentialCreateWithCertificateInfo):
  4302. * UIProcess/API/C/WKCredential.h:
  4303. Pass the certificate info over the wire to the WebProcess:
  4304. * UIProcess/Authentication/AuthenticationChallengeProxy.cpp:
  4305. (WebKit::AuthenticationChallengeProxy::useCredential):
  4306. Change the WebProcess to prefer certificate info over basic credentials when responding to a challenge:
  4307. * WebProcess/Authentication/AuthenticationManager.cpp:
  4308. (WebKit::AuthenticationManager::tryUsePlatformCertificateInfoForChallenge): Stub for platforms other than Mac,
  4309. as only Mac can currently respond to challenges with certificates.
  4310. (WebKit::AuthenticationManager::useCredentialForChallenge):
  4311. * WebProcess/Authentication/AuthenticationManager.h:
  4312. * WebProcess/Authentication/AuthenticationManager.messages.in:
  4313. * WebProcess/Authentication/mac: Added.
  4314. * WebProcess/Authentication/mac/AuthenticationManager.mac.mm: Added.
  4315. (WebKit::AuthenticationManager::tryUsePlatformCertificateInfoForChallenge): Recreate the identity and certificate
  4316. chain and respond to the challenge with it.
  4317. Add a newly required #include:
  4318. * UIProcess/API/C/WKAuthenticationChallenge.cpp:
  4319. * UIProcess/Authentication/AuthenticationDecisionListener.cpp:
  4320. 2011-04-28 Martin Robinson <mrobinson@igalia.com>
  4321. Reviewed by Xan Lopez.
  4322. [GTK] Click counting logic should be shared between WebKit1 and WebKit2
  4323. https://bugs.webkit.org/show_bug.cgi?id=59715
  4324. Use the GtkClickCounter instead of doing click counting manually. This means that
  4325. the code will now be shared between WebKit1 and WebKit2.
  4326. * UIProcess/API/gtk/WebKitWebViewBase.cpp:
  4327. (webkit_web_view_base_init): Remove private member initialization.
  4328. (webViewButtonPressEvent): Call into GtkClickCounter.
  4329. 2011-04-28 Martin Robinson <mrobinson@igalia.com>
  4330. Build fix after r85197.
  4331. * UIProcess/API/gtk/WebKitWebViewBase.cpp:
  4332. (webViewExpose): Use cr.get() here.
  4333. (webViewDraw): Small clean up.
  4334. 2011-04-28 Carlos Garcia Campos <cgarcia@igalia.com>
  4335. Reviewed by Sam Weinig.
  4336. [GTK] Remove WKURLCreateWithURL()
  4337. https://bugs.webkit.org/show_bug.cgi?id=59691
  4338. The name is a bit confusing and there's already
  4339. WKURLCreateWithUTF8CString() in the C API.
  4340. * UIProcess/API/C/gtk/WKView.cpp:
  4341. * UIProcess/API/C/gtk/WKView.h:
  4342. 2011-04-28 Carlos Garcia Campos <cgarcia@igalia.com>
  4343. Reviewed by Martin Robinson.
  4344. [GTK] Make WebKitWebViewBase public in the API
  4345. https://bugs.webkit.org/show_bug.cgi?id=59689
  4346. Add WebKitWebViewBasePrivate.h and move WebKitWebViewBase inernal
  4347. methods to it. Rename get_type() method, since it's part of the
  4348. public API and should follow gtk coding style.
  4349. * GNUmakefile.am: Add WebKitWebViewBasePrivate.h.
  4350. * UIProcess/API/C/gtk/WKView.cpp: Use WebKitWebViewBasePrivate.h.
  4351. * UIProcess/API/gtk/PageClientImpl.cpp: Ditto.
  4352. * UIProcess/API/gtk/WebKitWebViewBase.cpp:
  4353. (webkitWebViewBaseFinalize):
  4354. (webkit_web_view_base_init):
  4355. (webViewSizeAllocate):
  4356. (webViewFocusInEvent):
  4357. (webViewFocusOutEvent):
  4358. (webViewKeyPressEvent):
  4359. (webViewKeyReleaseEvent):
  4360. (webkit_web_view_base_class_init):
  4361. * UIProcess/API/gtk/WebKitWebViewBase.h:
  4362. * UIProcess/API/gtk/WebKitWebViewBasePrivate.h: Copied from Source/WebKit2/UIProcess/API/C/gtk/WKView.cpp.
  4363. * UIProcess/gtk/ChunkedUpdateDrawingAreaProxyGtk.cpp: Use WebKitWebViewBasePrivate.h.
  4364. 2011-04-28 Carlos Garcia Campos <cgarcia@igalia.com>
  4365. Reviewed by Martin Robinson.
  4366. [GTK] Move WebView to UIProcess/API/gtk
  4367. https://bugs.webkit.org/show_bug.cgi?id=59686
  4368. And rename it as PageClientImpl, since it's a page client
  4369. implementation, not a web view.
  4370. * GNUmakefile.am:
  4371. * UIProcess/API/C/gtk/WKView.cpp:
  4372. * UIProcess/API/gtk/PageClientImpl.cpp: Renamed from Source/WebKit2/UIProcess/gtk/WebView.cpp.
  4373. (WebKit::backspaceCallback):
  4374. (WebKit::selectAllCallback):
  4375. (WebKit::cutClipboardCallback):
  4376. (WebKit::copyClipboardCallback):
  4377. (WebKit::pasteClipboardCallback):
  4378. (WebKit::toggleOverwriteCallback):
  4379. (WebKit::popupMenuCallback):
  4380. (WebKit::showHelpCallback):
  4381. (WebKit::deleteFromCursorCallback):
  4382. (WebKit::moveCursorCallback):
  4383. (WebKit::PageClientImpl::PageClientImpl):
  4384. (WebKit::PageClientImpl::~PageClientImpl):
  4385. (WebKit::PageClientImpl::getEditorCommandsForKeyEvent):
  4386. (WebKit::PageClientImpl::createDrawingAreaProxy):
  4387. (WebKit::PageClientImpl::setViewNeedsDisplay):
  4388. (WebKit::PageClientImpl::displayView):
  4389. (WebKit::PageClientImpl::scrollView):
  4390. (WebKit::PageClientImpl::viewSize):
  4391. (WebKit::PageClientImpl::isViewWindowActive):
  4392. (WebKit::PageClientImpl::isViewFocused):
  4393. (WebKit::PageClientImpl::isViewVisible):
  4394. (WebKit::PageClientImpl::isViewInWindow):
  4395. (WebKit::PageClientImpl::PageClientImpl::processDidCrash):
  4396. (WebKit::PageClientImpl::didRelaunchProcess):
  4397. (WebKit::PageClientImpl::takeFocus):
  4398. (WebKit::PageClientImpl::toolTipChanged):
  4399. (WebKit::PageClientImpl::setCursor):
  4400. (WebKit::PageClientImpl::setViewportArguments):
  4401. (WebKit::PageClientImpl::registerEditCommand):
  4402. (WebKit::PageClientImpl::clearAllEditCommands):
  4403. (WebKit::PageClientImpl::canUndoRedo):
  4404. (WebKit::PageClientImpl::executeUndoRedo):
  4405. (WebKit::PageClientImpl::convertToDeviceSpace):
  4406. (WebKit::PageClientImpl::convertToUserSpace):
  4407. (WebKit::PageClientImpl::windowToScreen):
  4408. (WebKit::PageClientImpl::doneWithKeyEvent):
  4409. (WebKit::PageClientImpl::didNotHandleKeyEvent):
  4410. (WebKit::PageClientImpl::createPopupMenuProxy):
  4411. (WebKit::PageClientImpl::createContextMenuProxy):
  4412. (WebKit::PageClientImpl::setFindIndicator):
  4413. (WebKit::PageClientImpl::pageDidEnterAcceleratedCompositing):
  4414. (WebKit::PageClientImpl::pageDidLeaveAcceleratedCompositing):
  4415. (WebKit::PageClientImpl::didCommitLoadForMainFrame):
  4416. (WebKit::PageClientImpl::didFinishLoadingDataForCustomRepresentation):
  4417. (WebKit::PageClientImpl::customRepresentationZoomFactor):
  4418. (WebKit::PageClientImpl::setCustomRepresentationZoomFactor):
  4419. (WebKit::PageClientImpl::pageClosed):
  4420. (WebKit::PageClientImpl::didChangeScrollbarsForMainFrame):
  4421. (WebKit::PageClientImpl::flashBackingStoreUpdates):
  4422. (WebKit::PageClientImpl::findStringInCustomRepresentation):
  4423. (WebKit::PageClientImpl::countStringMatchesInCustomRepresentation):
  4424. * UIProcess/API/gtk/PageClientImpl.h: Renamed from Source/WebKit2/UIProcess/gtk/WebView.h.
  4425. (WebKit::PageClientImpl::create):
  4426. (WebKit::PageClientImpl::addPendingEditorCommand):
  4427. (WebKit::PageClientImpl::userSpaceScaleFactor):
  4428. * UIProcess/API/gtk/WebKitWebViewBase.cpp:
  4429. (webkitWebViewBaseInit):
  4430. (webkitWebViewBaseCreate):
  4431. * UIProcess/API/gtk/WebKitWebViewBase.h:
  4432. * UIProcess/gtk/ChunkedUpdateDrawingAreaProxyGtk.cpp:
  4433. 2011-04-28 Carlos Garcia Campos <cgarcia@igalia.com>
  4434. Reviewed by Martin Robinson.
  4435. [GTK] Use the WebPage object in WebKitWebViewBase
  4436. https://bugs.webkit.org/show_bug.cgi?id=59683
  4437. It simplifies the implementation of the event callbacks. Remove
  4438. also all the methods from the page client that are no longer
  4439. needed.
  4440. * UIProcess/API/gtk/WebKitWebViewBase.cpp:
  4441. (webkitWebViewBaseInit):
  4442. (webViewExpose):
  4443. (webViewDraw):
  4444. (webViewSizeAllocate):
  4445. (webViewFocusInEvent):
  4446. (webViewFocusOutEvent):
  4447. (webViewKeyPressEvent):
  4448. (webViewKeyReleaseEvent):
  4449. (webViewButtonPressEvent):
  4450. (webViewButtonReleaseEvent):
  4451. (webViewScrollEvent):
  4452. (webViewMotionNotifyEvent):
  4453. * UIProcess/API/gtk/WebKitWebViewBase.h:
  4454. * UIProcess/gtk/WebView.cpp:
  4455. (WebKit::WebView::WebView):
  4456. (WebKit::WebView::createDrawingAreaProxy):
  4457. * UIProcess/gtk/WebView.h:
  4458. 2011-04-28 Carlos Garcia Campos <cgarcia@igalia.com>
  4459. Reviewed by Martin Robinson.
  4460. [GTK] Create the page client in the view widget
  4461. https://bugs.webkit.org/show_bug.cgi?id=59679
  4462. * UIProcess/API/C/gtk/WKView.cpp:
  4463. (WKViewCreate): Simply create a new view widget and return it.
  4464. (WKViewGetPage): Use webkitWebViewBaseGetPage().
  4465. * UIProcess/API/gtk/WebKitWebViewBase.cpp:
  4466. (webkitWebViewBaseFinalize): Use finalize instead of dispose to
  4467. make sure it's called only once, and release the private struct too.
  4468. (webkitWebViewBaseInit): Create the page client.
  4469. (webkitWebViewBaseClassInit): Don't use GObject private data structure.
  4470. (webkitWebViewBaseCreate): New method to create a
  4471. WebKitWebViewBase for a given context and page group.
  4472. (webkitWebViewBaseGetWebViewInstance):
  4473. (webkitWebViewBaseGetPage):
  4474. * UIProcess/API/gtk/WebKitWebViewBase.h:
  4475. * UIProcess/gtk/WebView.cpp:
  4476. (WebKit::WebView::page): Get the page from the view widget.
  4477. (WebKit::WebView::handleFocusInEvent): Ditto.
  4478. (WebKit::WebView::handleFocusOutEvent): Ditto.
  4479. (WebKit::WebView::WebView): Page client is now created with a view widget.
  4480. (WebKit::WebView::paint): Get the page from the view widget.
  4481. (WebKit::WebView::setSize): Ditto.
  4482. (WebKit::WebView::handleKeyboardEvent): Ditto.
  4483. (WebKit::WebView::handleMouseEvent): Ditto.
  4484. (WebKit::WebView::handleWheelEvent): Ditto.
  4485. (WebKit::WebView::close): Ditto.
  4486. (WebKit::WebView::createDrawingAreaProxy): Ditto.
  4487. * UIProcess/gtk/WebView.h:
  4488. (WebKit::WebView::create): The page client will be created as
  4489. private by the view widget, so it doesn't need to be ref counted,
  4490. use PassOwnPtr instead of PassRefPtr.
  4491. 2011-04-28 Carlos Garcia Campos <cgarcia@igalia.com>
  4492. Reviewed by Martin Robinson.
  4493. [GTK] PlatformWebView should be the view widget
  4494. https://bugs.webkit.org/show_bug.cgi?id=59676
  4495. * UIProcess/API/gtk/WebKitWebViewBase.cpp:
  4496. (webkitWebViewBaseGetPage): Return the page of the view.
  4497. * UIProcess/API/gtk/WebKitWebViewBase.h:
  4498. * UIProcess/ChunkedUpdateDrawingAreaProxy.h: Map PlatformWebView
  4499. to WebKitWebViewBase instead of the page client.
  4500. * UIProcess/gtk/ChunkedUpdateDrawingAreaProxyGtk.cpp:
  4501. (WebKit::ChunkedUpdateDrawingAreaProxy::page): Use the view widget
  4502. directly.
  4503. (WebKit::ChunkedUpdateDrawingAreaProxy::ensureBackingStore): Ditto.
  4504. (WebKit::ChunkedUpdateDrawingAreaProxy::drawUpdateChunkIntoBackingStore): Ditto.
  4505. * UIProcess/gtk/WebView.cpp:
  4506. (WebKit::WebView::createDrawingAreaProxy): Pass the view widget to
  4507. the DrawingAreaProxy constructor instead of the page client.
  4508. * UIProcess/gtk/WebView.h: Remove getWebViewWindow() which is no
  4509. longer needed.
  4510. 2011-04-28 Carlos Garcia Campos <cgarcia@igalia.com>
  4511. Reviewed by Martin Robinson.
  4512. [GTK] WKView should be a GtkWidget
  4513. https://bugs.webkit.org/show_bug.cgi?id=59603
  4514. * UIProcess/API/C/gtk/WKAPICastGtk.h: Map WKViewRef to
  4515. WebKitWebViewBase instead of WebView.
  4516. * UIProcess/API/C/gtk/WKView.h: Remove WKViewGetWindow().
  4517. * UIProcess/API/C/gtk/WKView.cpp:
  4518. (WKViewCreate): Return the view instead of the page client.
  4519. (WKViewGetPage): Use WebKitWebViewBase API to get the page client
  4520. containing the page.
  4521. 2011-04-27 Sam Weinig <sam@webkit.org>
  4522. Reviewed by Adam Roben.
  4523. WebKit2 needs to notify the client when a plugin fails to initialize
  4524. https://bugs.webkit.org/show_bug.cgi?id=59657
  4525. Add didFailToInitializePlugin client function and call it when a plugin
  4526. fails to initialize.
  4527. * UIProcess/API/C/WKPage.h:
  4528. * UIProcess/API/qt/qwkpage.cpp:
  4529. (QWKPage::QWKPage):
  4530. * UIProcess/WebLoaderClient.cpp:
  4531. (WebKit::WebLoaderClient::didFailToInitializePlugin):
  4532. * UIProcess/WebLoaderClient.h:
  4533. * UIProcess/WebPageProxy.cpp:
  4534. (WebKit::WebPageProxy::didFailToInitializePlugin):
  4535. * UIProcess/WebPageProxy.h:
  4536. * UIProcess/WebPageProxy.messages.in:
  4537. * WebProcess/Plugins/PluginView.cpp:
  4538. (WebKit::PluginView::initializePlugin):
  4539. 2011-04-27 Pratik Solanki <psolanki@apple.com>
  4540. Reviewed by Antti Koivisto.
  4541. Part of WebCore should use CFNetwork-based loader on Mac
  4542. https://bugs.webkit.org/show_bug.cgi?id=51836
  4543. Add PLATFORM(WIN) ifdef around shouldCacheResponse.
  4544. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  4545. * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
  4546. 2011-04-27 Anders Carlsson <andersca@apple.com>
  4547. Reviewed by Dan Bernstein.
  4548. Hang if a sync message handler invalidates the connection
  4549. https://bugs.webkit.org/show_bug.cgi?id=59627
  4550. If dispatching incoming messages while waiting for the sync reply caused the connection to be invalidated,
  4551. we need to return early or we'll wait forever.
  4552. * Platform/CoreIPC/Connection.cpp:
  4553. (CoreIPC::Connection::waitForSyncReply):
  4554. 2011-04-27 Carlos Garcia Campos <cgarcia@igalia.com>
  4555. Reviewed by Martin Robinson.
  4556. [GTK] Move WebViewWidget to UIProcess/API/gtk
  4557. https://bugs.webkit.org/show_bug.cgi?id=59594
  4558. API files should be under the API directory. This view widget will
  4559. be used by both C and gtk high level API, so it has been renamed
  4560. to WebKitWebViewBase.
  4561. * GNUmakefile.am:
  4562. * UIProcess/API/gtk/WebKitWebViewBase.cpp: Renamed from Source/WebKit2/UIProcess/gtk/WebViewWidget.cpp.
  4563. (webkitWebViewBaseRealize):
  4564. (webkitWebViewBaseContainerAdd):
  4565. (webkitWebViewBaseDispose):
  4566. (webkitWebViewBaseInit):
  4567. (webViewExpose):
  4568. (webViewDraw):
  4569. (webViewSizeAllocate):
  4570. (webViewFocusInEvent):
  4571. (webViewFocusOutEvent):
  4572. (webViewKeyPressEvent):
  4573. (webViewKeyReleaseEvent):
  4574. (getEventTime):
  4575. (webViewButtonPressEvent):
  4576. (webViewButtonReleaseEvent):
  4577. (webViewScrollEvent):
  4578. (webViewMotionNotifyEvent):
  4579. (webkitWebViewBaseClassInit):
  4580. (webkitWebViewBaseGetType):
  4581. (webkitWebViewBaseGetWebViewInstance):
  4582. (webkitWebViewBaseSetWebViewInstance):
  4583. (webkitWebViewBaseGetIMContext):
  4584. * UIProcess/API/gtk/WebKitWebViewBase.h: Renamed from Source/WebKit2/UIProcess/gtk/WebViewWidget.h.
  4585. * UIProcess/gtk/WebView.cpp:
  4586. (WebKit::WebView::WebView):
  4587. 2011-04-26 Chang Shu <cshu@webkit.org>
  4588. Reviewed by Laszlo Gombos.
  4589. WebKitTestRunner needs layoutTestController.addOriginAccessWhitelistEntry
  4590. https://bugs.webkit.org/show_bug.cgi?id=42544
  4591. Also implemented removeOriginAccessWhitelistEntry and resetOriginAccessWhitelists.
  4592. * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
  4593. (WKBundleAddOriginAccessWhitelistEntry):
  4594. (WKBundleRemoveOriginAccessWhitelistEntry):
  4595. (WKBundleResetOriginAccessWhitelists):
  4596. * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  4597. * WebProcess/InjectedBundle/InjectedBundle.cpp:
  4598. (WebKit::InjectedBundle::addOriginAccessWhitelistEntry):
  4599. (WebKit::InjectedBundle::removeOriginAccessWhitelistEntry):
  4600. (WebKit::InjectedBundle::resetOriginAccessWhitelists):
  4601. * WebProcess/InjectedBundle/InjectedBundle.h:
  4602. 2011-04-26 Dan Bernstein <mitz@apple.com>
  4603. Build fix.
  4604. * Configurations/CompilerVersion.xcconfig:
  4605. 2011-04-26 Anders Carlsson <andersca@apple.com>
  4606. Fix 32-bit clang build.
  4607. * PluginProcess/mac/PluginProcessMac.mm:
  4608. (WebKit::windowCoversAnyScreen):
  4609. * UIProcess/API/mac/WKTextInputWindowController.mm:
  4610. (-[WKTextInputPanel init]):
  4611. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
  4612. (WebKit::WebFullScreenManagerMac::beginExitFullScreenAnimation):
  4613. * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
  4614. (WebKit::flipScreenYCoordinate):
  4615. (WebKit::computeFakeWindowBoundsRect):
  4616. * WebProcess/WebPage/mac/AccessibilityWebPageObject.mm:
  4617. (-[AccessibilityWebPageObject accessibilityHitTest:]):
  4618. 2011-04-26 Sam Weinig <sam@webkit.org>
  4619. Reviewed by David Hyatt.
  4620. Remove Datagrid from the tree
  4621. https://bugs.webkit.org/show_bug.cgi?id=59543
  4622. * Configurations/FeatureDefines.xcconfig:
  4623. Remove feature.
  4624. 2011-04-26 Chang Shu <cshu@webkit.org>
  4625. Reviewed by Laszlo Gombos.
  4626. WebKitTestRunner needs layoutTestController.setAllowFileAccessFromFileURLs
  4627. https://bugs.webkit.org/show_bug.cgi?id=57572
  4628. Remove the unnecessary code that updates preference.
  4629. * Shared/WebPreferencesStore.cpp:
  4630. (WebKit::WebPreferencesStore::decode):
  4631. * Shared/WebPreferencesStore.h:
  4632. * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
  4633. (WKBundleSetAllowUniversalAccessFromFileURLs):
  4634. * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  4635. * WebProcess/InjectedBundle/InjectedBundle.cpp:
  4636. (WebKit::InjectedBundle::setAllowUniversalAccessFromFileURLs):
  4637. (WebKit::InjectedBundle::setAllowFileAccessFromFileURLs):
  4638. * WebProcess/InjectedBundle/InjectedBundle.h:
  4639. 2011-04-26 Brian Weinstein <bweinstein@apple.com>
  4640. Reviewed by Steve Falkenburg.
  4641. WebKit2: Docked Inspector doesn't behave well if inspected web view isn't at 0,0
  4642. https://bugs.webkit.org/show_bug.cgi?id=59554
  4643. <rdar://problem/9341188>
  4644. Use GetWindowRect and ScreenToClient to properly place our inspector and inspected
  4645. web views instead of using GetClientRect. We need to correctly handle the case where
  4646. the inspected web view isn't at 0, 0.
  4647. * UIProcess/win/WebInspectorProxyWin.cpp:
  4648. (WebKit::WebInspectorProxy::platformSetAttachedWindowHeight):
  4649. 2011-04-26 Dan Bernstein <mitz@apple.com>
  4650. Reviewed by Mark Rowe.
  4651. Choose the compiler based on the Xcode version for Snow Leopard debug builds.
  4652. * Configurations/Base.xcconfig:
  4653. * Configurations/CompilerVersion.xcconfig: Added.
  4654. 2011-04-26 Balazs Kelemen <kbalazs@webkit.org>
  4655. Unreviewed build fix.
  4656. * Platform/Region.cpp: Need to include stdio.h for printf
  4657. (at least in my Qt-Linux environment).
  4658. 2011-04-26 Mihai Parparita <mihaip@chromium.org>
  4659. Reviewed by Adam Barth.
  4660. Turn off make built-in implicit rules for derived sources makefile
  4661. https://bugs.webkit.org/show_bug.cgi?id=59418
  4662. We don't use any of make's built-in implicit rules, turning them off
  4663. speeds up parsing of the makefile.
  4664. * WebKit2.xcodeproj/project.pbxproj:
  4665. 2011-04-26 Carlos Garcia Campos <cgarcia@igalia.com>
  4666. Unreviewed. Fix WebKit2 GTK build after r84785.
  4667. * UIProcess/gtk/WebInspectorGtk.cpp:
  4668. (WebKit::WebInspectorProxy::platformAttach):
  4669. (WebKit::WebInspectorProxy::platformDetach):
  4670. (WebKit::WebInspectorProxy::platformSetAttachedWindowHeight):
  4671. 2011-04-26 Carlos Garcia Campos <cgarcia@igalia.com>
  4672. Unreviewed. Fix WebKit2 GTK build after r84886
  4673. * Platform/gtk/RunLoopGtk.cpp: Include WorkItem.h
  4674. 2011-04-25 Adam Barth <abarth@webkit.org>
  4675. Reviewed by David Levin.
  4676. WebKit2 should play nice with strict OwnPtrs
  4677. https://bugs.webkit.org/show_bug.cgi?id=59426
  4678. * Platform/CoreIPC/Connection.cpp:
  4679. (CoreIPC::Connection::waitForMessage):
  4680. - Lack of OwnPtr in HashMap is sad face. This code becomes very
  4681. pretty if we could use OwnPtr in HashMap...
  4682. * Platform/RunLoop.cpp:
  4683. (RunLoop::performWork):
  4684. (RunLoop::scheduleWork):
  4685. * Platform/RunLoop.h:
  4686. * Platform/mac/WorkQueueMac.cpp:
  4687. (WorkQueue::executeWorkItem):
  4688. * WebProcess/Plugins/Netscape/NetscapePluginStream.cpp:
  4689. (WebKit::NetscapePluginStream::deliverData):
  4690. 2011-04-25 Brian Weinstein <bweinstein@apple.com>
  4691. Reviewed by Adam Roben.
  4692. WebKit2: Should be able to inspect Web Inspector in Debug Builds
  4693. https://bugs.webkit.org/show_bug.cgi?id=59378
  4694. * UIProcess/WebInspectorProxy.cpp:
  4695. (WebKit::createInspectorPageGroup): Creates an inspector page group and enables
  4696. developer extras in a debug build.
  4697. (WebKit::WebInspectorProxy::inspectorPageGroup): Calls createInspectorPageGroup.
  4698. 2011-04-25 Brian Weinstein <bweinstein@apple.com>
  4699. Reviewed by Timothy Hatcher.
  4700. WebKit2: Web Inspector's style sidebar fails to display when inspecting element
  4701. https://bugs.webkit.org/show_bug.cgi?id=58071
  4702. <rdar://problem/9243093>
  4703. When creating our WebKit2 inspector views, we were creating them on both Mac and Windows
  4704. with the empty rect for their initial size. Before we sized them correctly, the inspector
  4705. was calling window.innerWidth on them, which returned 0, making the sidebar take up 0 pixels.
  4706. * UIProcess/mac/WebInspectorProxyMac.mm:
  4707. (WebKit::WebInspectorProxy::platformCreateInspectorPage): Create the window with the initial window width
  4708. and height.
  4709. * UIProcess/win/WebInspectorProxyWin.cpp:
  4710. (WebKit::WebInspectorProxy::platformCreateInspectorPage): Ditto.
  4711. 2011-04-25 Brian Weinstein <bweinstein@apple.com>
  4712. Reviewed by Adam Roben.
  4713. Windows part of - WebKit2: Support docked mode for Web Inspector
  4714. https://bugs.webkit.org/show_bug.cgi?id=59134
  4715. <rdar://problem/8739005>
  4716. Implement attaching and detaching of the Web Inspector on Windows,
  4717. and also support setAttachedWindowHeight when the user changes the height
  4718. of the docked inspector.
  4719. This patch doesn't remember whether the user prefers attached or detached, and
  4720. doesn't remember the user's preferred docked height, but that will be a separate
  4721. bug.
  4722. * UIProcess/WebInspectorProxy.cpp:
  4723. (WebKit::WebInspectorProxy::attach): Set the attached flag and call platform-specific code.
  4724. (WebKit::WebInspectorProxy::detach): Ditto.
  4725. (WebKit::WebInspectorProxy::setAttachedWindowHeight): Call platform-specific code.
  4726. (WebKit::WebInspectorProxy::didClose): Set m_isVisible before calling platformClose. platformClose
  4727. calls detach if the inspector was docked, and detach needs to know whether or not the window is
  4728. visible.
  4729. * UIProcess/WebInspectorProxy.h:
  4730. * UIProcess/WebInspectorProxy.messages.in: Add new messages.
  4731. * UIProcess/WebPageProxy.h:
  4732. (WebKit::WebPageProxy::pageClient): Add a getter for the page client.
  4733. * UIProcess/win/WebInspectorProxyWin.cpp:
  4734. (WebKit::WebInspectorProxy::windowReceivedMessage): Relay WM_WINDOWPOSCHANGING messages from the inspected
  4735. web view to the WebInspectorProxy.
  4736. (WebKit::WebInspectorProxy::onWebViewWindowPosChangingEvent): Resize the inspected web view to behave well
  4737. with the docked inspector.
  4738. (WebKit::WebInspectorProxy::platformClose): If we are attached, detach before destroying.
  4739. (WebKit::WebInspectorProxy::platformAttach): Set the inspector's host window to be the inspected web view's parent
  4740. window, so the inspected web view and the inspector are siblings.
  4741. (WebKit::WebInspectorProxy::platformDetach): Set the inspector's host window to be the standalone inspector window.
  4742. (WebKit::WebInspectorProxy::platformSetAttachedWindowHeight): Size the views.
  4743. * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
  4744. * WebProcess/WebCoreSupport/WebInspectorClient.h:
  4745. * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
  4746. (WebKit::WebInspectorFrontendClient::attachWindow): Call WebInspector::attach.
  4747. (WebKit::WebInspectorFrontendClient::closeWindow): Add a call to the InspectorController to disconnect the inspector frontend
  4748. from the inspector backend. Without this line, when we close the attached inspector, it won't re-open, because the
  4749. inspector controller still thinks there is a frontend. This matches WebKit1's behavior, although it seems like this is
  4750. something WebCore should handle.
  4751. (WebKit::WebInspectorFrontendClient::detachWindow): Call WebInspector::detach.
  4752. (WebKit::WebInspectorFrontendClient::setAttachedWindowHeight): Call WebInspector::setAttachedWindowHeight.
  4753. * UIProcess/DrawingAreaProxyImpl.cpp:
  4754. (WebKit::DrawingAreaImpl::sendUpdateBackingStoreState): Add an early return if the WebPageProxy's viewSize is empty.
  4755. This can be needed if the inspector takes up the whole view, and it is useful to prevent a possible synchronous message
  4756. from the UIProcess -> WebProcess to update a backing store that isn't visible in the first place.
  4757. * WebProcess/WebPage/WebInspector.cpp:
  4758. (WebKit::WebInspector::attach): Send a message to the UIProcess.
  4759. (WebKit::WebInspector::detach): Ditto.
  4760. (WebKit::WebInspector::setAttachedWindowHeight): Ditto.
  4761. * WebProcess/WebPage/WebInspector.h: Remove some dead code.
  4762. 2011-04-25 Brian Weinstein <bweinstein@apple.com>
  4763. Reviewed by Alice Liu.
  4764. WebKit2: Web Inspector: Support highlighting page elements
  4765. https://bugs.webkit.org/show_bug.cgi?id=59263
  4766. <rdar://problem/8767659>
  4767. Support highlighting of page elements for the inspector in WebKit2 by
  4768. having the WebInspectorClient be a PageOverlay Client and be responsible
  4769. for calling InspectorController::drawNodeHighlight.
  4770. * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
  4771. (WebKit::WebInspectorClient::highlight): Create our overlay if it hasn't been created,
  4772. or call setNeedsDisplay if it has.
  4773. (WebKit::WebInspectorClient::hideHighlight): Uninstall the page overlay if it exists.
  4774. (WebKit::WebInspectorClient::pageOverlayDestroyed):
  4775. (WebKit::WebInspectorClient::willMoveToWebPage): If it's being destroyed (moving to a null
  4776. WebPage), clear the member variable.
  4777. (WebKit::WebInspectorClient::didMoveToWebPage):
  4778. (WebKit::WebInspectorClient::drawRect): Call InspectorController::drawNodeHighlight.
  4779. (WebKit::WebInspectorClient::mouseEvent):
  4780. * WebProcess/WebCoreSupport/WebInspectorClient.h:
  4781. (WebKit::WebInspectorClient::WebInspectorClient): Add a new member variable.
  4782. 2011-04-25 Jon Lee <jonlee@apple.com>
  4783. Reviewed by Maciej Stachowiak.
  4784. Overlay scroller hard to see on pages with dark background (59183)
  4785. https://bugs.webkit.org/show_bug.cgi?id=59183
  4786. <rdar://problem/8975367>
  4787. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  4788. (InitWebCoreSystemInterface): adding method to allow changing style
  4789. * WebProcess/WebPage/WebFrame.cpp:
  4790. (WebKit::WebFrame::getDocumentBackgroundColor): refactoring to use common code for retrieving background color
  4791. 2011-04-24 Dan Bernstein <mitz@apple.com>
  4792. Reviewed by Maciej Stachowiak.
  4793. <rdar://problem/9329741> Reproducible crash in WebChromeClient::invalidateContentsAndWindow() on simonscat.com
  4794. https://bugs.webkit.org/show_bug.cgi?id=59299
  4795. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  4796. (WebKit::WebChromeClient::invalidateContentsAndWindow): Null-check the document.
  4797. (WebKit::WebChromeClient::invalidateContentsForSlowScroll): Ditto.
  4798. 2011-04-23 Sheriff Bot <webkit.review.bot@gmail.com>
  4799. Unreviewed, rolling out r84740.
  4800. http://trac.webkit.org/changeset/84740
  4801. https://bugs.webkit.org/show_bug.cgi?id=59290
  4802. change breaks apple internal builds and is incorrect
  4803. (Requested by smfr on #webkit).
  4804. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  4805. (InitWebCoreSystemInterface):
  4806. 2011-04-22 Jon Lee <jonlee@apple.com>
  4807. Reviewed by Beth Dakin.
  4808. Overlay scroller hard to see on pages with dark background (59183)
  4809. https://bugs.webkit.org/show_bug.cgi?id=59183
  4810. <rdar://problem/8975367>
  4811. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  4812. (InitWebCoreSystemInterface): adding method to allow changing style
  4813. 2011-04-22 Brian Weinstein <bweinstein@apple.com>
  4814. Reviewed by Sam Weinig.
  4815. WebKit2: Stop responsiveness timer before calling runOpenPanel
  4816. https://bugs.webkit.org/show_bug.cgi?id=59268
  4817. <rdar://problem/9327944>
  4818. * UIProcess/WebPageProxy.cpp:
  4819. (WebKit::WebPageProxy::runOpenPanel): Stop the timer before calling WebUIClient::runOpenPanel,
  4820. because runOpenPanel can spin a nested run loop.
  4821. 2011-04-22 Chang Shu <cshu@webkit.org>
  4822. Reviewed by Kenneth Rohde Christiansen.
  4823. WebKitTestRunner needs layoutTestController.setFrameFlatteningEnabled
  4824. https://bugs.webkit.org/show_bug.cgi?id=42536
  4825. * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
  4826. (WKBundleSetFrameFlatteningEnabled):
  4827. * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  4828. * WebProcess/InjectedBundle/InjectedBundle.cpp:
  4829. (WebKit::InjectedBundle::setFrameFlatteningEnabled):
  4830. * WebProcess/InjectedBundle/InjectedBundle.h:
  4831. 2011-04-22 Alejandro G. Castro <alex@igalia.com> and Martin Robinson <mrobinson@igalia.com>
  4832. Reviewed by Xan Lopez.
  4833. [GTK] Use the libWebCore.a convenience library when compiling WebKit2
  4834. https://bugs.webkit.org/show_bug.cgi?id=59258
  4835. * GNUmakefile.am: Remove the libWebKit2 convenience library and use the
  4836. libWebCore convenience library when compiling WebKit2. Not only does this
  4837. maintain the CPPFLAGS isolation, it prevents double-compilation of WebCore
  4838. in some cases.
  4839. 2011-04-19 Jer Noble <jer.noble@apple.com>
  4840. Reviewed by Daniel Bates.
  4841. Full Screen from within an <iframe> does not cause <iframe> to resize.
  4842. https://bugs.webkit.org/show_bug.cgi?id=58638
  4843. Tests: fullscreen/full-screen-frameset-allowed.html
  4844. fullscreen/full-screen-frameset-not-allowed.html
  4845. * UIProcess/mac/WKFullScreenWindowController.mm:
  4846. (-[WKFullScreenWindowController finishedEnterFullScreenAnimation:]): Cancel the background animation
  4847. if the full screen animation finishes first.
  4848. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
  4849. (WebKit::WebFullScreenManagerMac::WebFullScreenManagerMac): m_fullScreenRootLayer was uninitialized.
  4850. 2011-04-22 Sam Weinig <sam@webkit.org>
  4851. Reviewed by Brian Weinstein.
  4852. WebKit2: Implement JavaScript unresponsiveness callback
  4853. https://bugs.webkit.org/show_bug.cgi?id=59248
  4854. Add support for suspending JavaScript in response to a callback.
  4855. * UIProcess/API/C/WKPage.h:
  4856. * UIProcess/API/qt/qwkpage.cpp:
  4857. (QWKPage::QWKPage):
  4858. * UIProcess/WebPageProxy.cpp:
  4859. (WebKit::WebPageProxy::shouldInterruptJavaScript):
  4860. * UIProcess/WebPageProxy.h:
  4861. * UIProcess/WebPageProxy.messages.in:
  4862. * UIProcess/WebUIClient.cpp:
  4863. (WebKit::WebUIClient::shouldInterruptJavaScript):
  4864. * UIProcess/WebUIClient.h:
  4865. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  4866. (WebKit::WebChromeClient::shouldInterruptJavaScript):
  4867. 2011-04-22 Dan Bernstein <mitz@apple.com>
  4868. Reviewed by Sam Weinig.
  4869. Paint the bounding rect of the dirty region instead of individual rectangles when the region
  4870. covers at least 3/4 of its bounds.
  4871. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  4872. (WebKit::shouldPaintBoundsRect): Use floating point math so that the logic that was supposed to
  4873. achieve this actually works.
  4874. 2011-04-22 Jer Noble <jer.noble@apple.com>
  4875. Reviewed by Maciej Stachowiak.
  4876. Crash at WebKit::WebFullScreenManagerMac::beginExitFullScreenAnimation + 79
  4877. https://bugs.webkit.org/show_bug.cgi?id=59225
  4878. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
  4879. (WebKit::WebFullScreenManagerMac::beginEnterFullScreenAnimation): Guard against
  4880. m_fullScreenRootLayer being NULL.
  4881. (WebKit::WebFullScreenManagerMac::beginExitFullScreenAnimation): Ditto.
  4882. 2011-04-22 Jer Noble <jer.noble@apple.com>
  4883. Reviewed by Maciej Stachowiak.
  4884. Allow MediaPlayerPrivateAVFoundation to be disabled via a preference.
  4885. https://bugs.webkit.org/show_bug.cgi?id=59179
  4886. Add API to allow the WebCore Settings preference to be called from the UIProcess.
  4887. * Shared/WebPreferencesStore.h: Added new preference definition macro.
  4888. * UIProcess/API/C/WKPreferences.cpp:
  4889. (WKPreferencesSetAVFoundationEnabled): Added.
  4890. (WKPreferencesGetAVFoundationEnabled): Added.
  4891. * UIProcess/API/C/WKPreferences.h:
  4892. * WebProcess/WebPage/WebPage.cpp:
  4893. (WebKit::WebPage::updatePreferences): Pass new preference along to WebCore
  4894. Settings.
  4895. 2011-04-22 Brian Weinstein <bweinstein@apple.com>
  4896. Reviewed by Sam Weinig.
  4897. WebKit2: Stop Responsiveness Timer when WebPageProxy closes or WebProcess crashes
  4898. https://bugs.webkit.org/show_bug.cgi?id=59210
  4899. * UIProcess/WebPageProxy.cpp:
  4900. (WebKit::WebPageProxy::close): Stop the responsiveness timer.
  4901. (WebKit::WebPageProxy::processDidCrash): Ditto.
  4902. 2011-04-21 Adam Roben <aroben@apple.com>
  4903. Give windowless plugins' context menus an owner window in the same thread as the plugin
  4904. In some cases, plugins pass the WKView's HWND to the ::TrackPopupMenu API. ::TrackPopupMenu
  4905. fails in this case because the WKView's HWND is owned by another process/thread. We work
  4906. around this by hooking the ::TrackPopupMenu API and providing our own window that's in the
  4907. same thread as the plugin instead.
  4908. I couldn't figure out how to write a test for this. :-(
  4909. Fixes <http://webkit.org/b/51063> <rdar://problem/8769281> REGRESSION (WebKit2): No context
  4910. menu appears when right-clicking on windowless Flash plugin
  4911. Reviewed by Brian Weinstein, and looked at suspiciously by Jeff Miller.
  4912. * Platform/Module.h: Added installIATHook on Windows.
  4913. * Platform/win/ModuleWin.cpp:
  4914. (WebKit::overwriteReadOnlyMemory): New helper function. Basically a wrapper around memcpy,
  4915. but uses ::VirtualProtect to allow writing to otherwise-read-only memory.
  4916. (WebKit::findFunctionPointerAddress): New helper function. The first overload iterates over
  4917. the imported modules and functions looking for the given one. If found, returns the address
  4918. of the function pointer that is used when calling that function. The second overload calls
  4919. the first, first passing it an enumerator for the image's imported modules, then passing it
  4920. an iterator for the image's delay-loaded modules.
  4921. (WebKit::Module::installIATHook): Added. Finds the address of the function pointer that's
  4922. used when code in this module calls the given function, then overwrites the function pointer
  4923. with the passed-in one. Future calls to the given function made by code in this module
  4924. should then end up calling to the passed-in function instead of the original one.
  4925. * Shared/Plugins/Netscape/NetscapePluginModule.h:
  4926. (WebKit::NetscapePluginModule::module): Added this simple getter.
  4927. * WebProcess/Plugins/Netscape/NetscapePlugin.h: Added some new Windows-only members.
  4928. * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
  4929. (WebKit::CurrentPluginSetter::CurrentPluginSetter):
  4930. (WebKit::CurrentPluginSetter::~CurrentPluginSetter):
  4931. This RAII class sets/unsets the currentPlugin global.
  4932. (WebKit::registerPluginView): Changed to use instanceHandle() instead of the mysterious
  4933. gInstance.
  4934. (WebKit::NetscapePlugin::platformPostInitialize): For windowless plugins, hook the
  4935. ::TrackPopupMenu API and create a window to be used as the owner for context menus created
  4936. by this plugin. (Also changed the ::CreateWindowExW call for windowed plugins to pass an
  4937. instance handle so that the window will be associated with WebKit.dll instead of
  4938. WebKit2WebProcess.exe. This should have no visible effect, but is more correct.)
  4939. (WebKit::NetscapePlugin::platformDestroy): For windowless plugins, destroy the context menu
  4940. owner window we created above.
  4941. (WebKit::NetscapePlugin::platformPaint):
  4942. (WebKit::NetscapePlugin::platformHandleMouseEvent):
  4943. (WebKit::NetscapePlugin::platformHandleWheelEvent):
  4944. (WebKit::NetscapePlugin::platformSetFocus):
  4945. (WebKit::NetscapePlugin::platformHandleMouseEnterEvent):
  4946. (WebKit::NetscapePlugin::platformHandleMouseLeaveEvent):
  4947. (WebKit::NetscapePlugin::platformHandleKeyboardEvent):
  4948. Set ourselves as the current plugin.
  4949. (WebKit::NetscapePlugin::hookedTrackPopupMenu): Added. This is the function that actually
  4950. gets called when windowless plugins call ::TrackPopupMenu. If the passed-in owner window is
  4951. owned by the current thread, we have nothing to do; ::TrackPopupMenu should work just fine.
  4952. Otherwise, we use the current plugin's context menu owner window as the context menu's
  4953. owner. We also set focus to the new owner window because otherwise weird behavior results
  4954. (e.g., it's possible to scroll the WKView while the context menu is up).
  4955. 2011-04-21 Adam Roben <aroben@apple.com>
  4956. Use WebCore's do-nothing window class instead of creating our own
  4957. Fixes <http://webkit.org/b/59102> WebKit has too many dummy window classes
  4958. Reviewed by Anders Carlsson.
  4959. * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.cpp:
  4960. (WebKit::createDummyWindow): Less code!
  4961. 2011-04-22 Balazs Kelemen <kbalazs@webkit.org>
  4962. Reviewed by Kenneth Rohde Christiansen.
  4963. [Qt][WK2] Cannot play flash with NSPluginWrapper
  4964. https://bugs.webkit.org/show_bug.cgi?id=59125
  4965. * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
  4966. (WebKit::NPN_GetValue): Handle the case when we have been
  4967. called with a null plugin instance.
  4968. 2011-04-22 Andreas Kling <andreas.kling@nokia.com>
  4969. Reviewed by Sam Weinig.
  4970. [Qt][WK2] Implement DrawingAreaImpl for Qt.
  4971. https://bugs.webkit.org/show_bug.cgi?id=59171
  4972. * WebKit2.pro: Build files necessary for DrawingAreaImpl.
  4973. * DerivedSources.pro: Build message receivers for DrawingArea and DrawingAreaProxy.
  4974. * Shared/qt/LayerTreeContextQt.cpp:
  4975. (WebKit::LayerTreeContext::LayerTreeContext): Stub.
  4976. (WebKit::LayerTreeContext::~LayerTreeContext): Stub.
  4977. (WebKit::LayerTreeContext::encode): Stub.
  4978. (WebKit::LayerTreeContext::decode): Stub.
  4979. (WebKit::LayerTreeContext::isEmpty): Stub.
  4980. (WebKit::operator==): Stub.
  4981. * Shared/qt/ShareableBitmapQt.cpp:
  4982. (WebKit::ShareableBitmap::paint): Don't translate the painter to accomodate the
  4983. source rect. The rect is already adjusted at the call site.
  4984. * UIProcess/API/qt/qgraphicswkview.h: Add "Impl" to QGraphicsWKView::BackingStoreType.
  4985. * UIProcess/API/qt/qwkpage.cpp:
  4986. (QWKPagePrivate::createDrawingAreaProxy): Create DrawingAreaProxyImpl if requested.
  4987. (QWKPagePrivate::paint): Call the correct paint() method for DrawingAreaProxyImpl,
  4988. since this drawing area will simple ASSERT_NOT_REACHED() in the "normal" paint().
  4989. * WebProcess/WebPage/DrawingArea.cpp:
  4990. (WebKit::DrawingArea::create): Allow creation of DrawingAreaImpl for Qt.
  4991. * UIProcess/BackingStore.h: Add Qt-specific types and backing store.
  4992. * UIProcess/qt/BackingStoreQt.cpp:
  4993. (WebKit::BackingStore::paint): Implemented.
  4994. (WebKit::BackingStore::incorporateUpdate): Implemented.
  4995. (WebKit::BackingStore::scroll): Implemented using QPixmap::scroll().
  4996. * UIProcess/DrawingAreaProxy.h: Enable drawing area message receivers for Qt.
  4997. * UIProcess/WebPageProxy.cpp:
  4998. (WebKit::WebPageProxy::didReceiveMessage): Ditto.
  4999. * WebProcess/WebPage/DrawingArea.h: Ditto.
  5000. * WebProcess/WebPage/WebPage.cpp:
  5001. (WebKit::WebPage::didReceiveMessage): Ditto.
  5002. 2011-04-22 Jon Honeycutt <jhoneycutt@apple.com>
  5003. WinCairo build fix. Unreviewed.
  5004. * WebProcess/Downloads/curl/DownloadCurl.cpp:
  5005. (WebKit::Download::useCredential):
  5006. Stubbed.
  5007. (WebKit::Download::continueWithoutCredential):
  5008. Stubbed.
  5009. (WebKit::Download::cancelAuthenticationChallenge):
  5010. Stubbed.
  5011. 2011-04-21 Jon Honeycutt <jhoneycutt@apple.com>
  5012. Need to support authentication for downloads in WebKit2 on Windows
  5013. https://bugs.webkit.org/show_bug.cgi?id=59175
  5014. <rdar://problem/9206151>
  5015. <rdar://problem/8958280>
  5016. Reviewed by Maciej Stachowiak.
  5017. * WebProcess/Downloads/Download.cpp:
  5018. Include DownloadAuthenticationClient.h.
  5019. * WebProcess/Downloads/Download.h:
  5020. Declare a function to get or create the authentication client, a member
  5021. var to hold it, and functions that the client can call to use a
  5022. credential, continue without a credential, or cancel an auth challenge.
  5023. * WebProcess/Downloads/DownloadAuthenticationClient.cpp: Added.
  5024. (WebKit::DownloadAuthenticationClient::DownloadAuthenticationClient):
  5025. (WebKit::DownloadAuthenticationClient::receivedCredential):
  5026. Tell the Download to use the credential.
  5027. (WebKit::DownloadAuthenticationClient::receivedRequestToContinueWithoutCredential):
  5028. Tell the Download to continue with credentials.
  5029. (WebKit::DownloadAuthenticationClient::receivedCancellation):
  5030. Tell the Download to cancel the challenge.
  5031. * WebProcess/Downloads/DownloadAuthenticationClient.h: Added.
  5032. (WebKit::DownloadAuthenticationClient::create):
  5033. Return a new DownloadAuthenticationClient.
  5034. (WebKit::DownloadAuthenticationClient::detach):
  5035. Clear the Download.
  5036. (WebKit::DownloadAuthenticationClient::refAuthenticationClient):
  5037. (WebKit::DownloadAuthenticationClient::derefAuthenticationClient):
  5038. * WebProcess/Downloads/cfnet/DownloadCFNet.cpp:
  5039. (WebKit::Download::useCredential):
  5040. Create a CFURLCredentialRef from the WebCore credential, and tell
  5041. CFNetwork to use it for the auth challenge.
  5042. (WebKit::Download::continueWithoutCredential):
  5043. Call CFURLDownloadUseCredential with a null credential.
  5044. (WebKit::Download::cancelAuthenticationChallenge):
  5045. Cancel the download, and clear m_download.
  5046. (WebKit::Download::authenticationClient):
  5047. Create if needed and return a DownloadAuthenticationClient.
  5048. (WebKit::Download::platformInvalidate):
  5049. Detach the DownloadAuthenticationClient.
  5050. (WebKit::didReceiveAuthenticationChallengeCallback):
  5051. Call Download::didReceiveAuthenticationChallenge(), passing a
  5052. WebCore::AuthenticationChallenge with our DownloadAuthenticationClient.
  5053. (WebKit::Download::receivedCredential):
  5054. Get the client from the auth challenge, and call through to it.
  5055. (WebKit::Download::receivedRequestToContinueWithoutCredential):
  5056. Ditto.
  5057. (WebKit::Download::receivedCancellation):
  5058. Ditto.
  5059. * win/WebKit2.vcproj:
  5060. Add new files to project.
  5061. 2011-04-21 Alexey Proskuryakov <ap@apple.com>
  5062. Reviewed by Maciej Stachowiak.
  5063. Minimize synchronous calls during loading
  5064. https://bugs.webkit.org/show_bug.cgi?id=59169
  5065. <rdar://problem/9320128> REGRESSION(r84526): WK2 windows unresponsive
  5066. * UIProcess/API/mac/WKView.mm:
  5067. (-[WKView resignFirstResponder]):
  5068. (-[WKView _resetTextInputState]):
  5069. Made _resetTextInputState deal with client side state only, letting Editor composition be
  5070. discarded more discriminately.
  5071. 2011-04-21 Maciej Stachowiak <mjs@apple.com>
  5072. Reviewed by Adam Roben.
  5073. Add a feature define to allow <details> and <summary> to be disabled
  5074. https://bugs.webkit.org/show_bug.cgi?id=59118
  5075. <rdar://problem/9257045>
  5076. * Configurations/FeatureDefines.xcconfig:
  5077. 2011-04-21 Ivan Krstić <ike@apple.com>
  5078. Reviewed by Maciej Stachowiak.
  5079. <rdar://problem/9311103>
  5080. Remove unnecessary QTKitServer and Apple Events permissions
  5081. from the WebProcess sandbox.
  5082. * WebProcess/com.apple.WebProcess.sb:
  5083. 2011-04-21 Ivan Krstić <ike@apple.com>
  5084. Reviewed by Maciej Stachowiak.
  5085. <rdar://problem/9033535>
  5086. Mute sandbox violations when attempting to read a temporary
  5087. CFNetwork keychain.
  5088. * WebProcess/com.apple.WebProcess.sb:
  5089. 2011-04-21 Ryosuke Niwa <rniwa@webkit.org>
  5090. Reviewed by Sam Weinig.
  5091. Add Frame* to the argument lists of canCopyCut and canPaste
  5092. https://bugs.webkit.org/show_bug.cgi?id=59153
  5093. * WebProcess/WebCoreSupport/WebEditorClient.cpp:
  5094. (WebKit::WebEditorClient::canCopyCut):
  5095. (WebKit::WebEditorClient::canPaste):
  5096. * WebProcess/WebCoreSupport/WebEditorClient.h:
  5097. 2011-04-21 Ivan Krstić <ike@apple.com>
  5098. Reviewed by Maciej Stachowiak.
  5099. <rdar://problem/8774116>
  5100. The WebProcess sandbox should only allow access to the
  5101. parts of the Darwin cache directory needed by the Security
  5102. framework.
  5103. * WebProcess/com.apple.WebProcess.sb:
  5104. 2011-04-21 Ivan Krstić <ike@apple.com>
  5105. Reviewed by Maciej Stachowiak.
  5106. <rdar://problem/9311053>
  5107. The WebProcess sandbox should not allow opening arbitrary
  5108. IOKit user clients. Restrict to a whitelist required for normal
  5109. WebProcess operation, including sound and accelerated graphics.
  5110. * WebProcess/com.apple.WebProcess.sb:
  5111. 2011-04-21 Ivan Krstić <ike@apple.com>
  5112. Reviewed by Maciej Stachowiak.
  5113. <rdar://problem/9311037>
  5114. The WebProcess sandbox should not allow modification of the
  5115. CoreAudio component cache.
  5116. * WebProcess/com.apple.WebProcess.sb:
  5117. 2011-04-21 Ivan Krstić <ike@apple.com>
  5118. Reviewed by Maciej Stachowiak.
  5119. <rdar://problem/9263428>
  5120. The WebProcess sandbox should only allow outbound networking
  5121. to remote destinations and local kernel controls.
  5122. * WebProcess/com.apple.WebProcess.sb:
  5123. 2011-04-21 Sheriff Bot <webkit.review.bot@gmail.com>
  5124. Unreviewed, rolling out r82052.
  5125. http://trac.webkit.org/changeset/82052
  5126. https://bugs.webkit.org/show_bug.cgi?id=59135
  5127. New full screen api should be opt-in, not opt-out. (Requested
  5128. by jernoble on #webkit).
  5129. * Shared/WebPreferencesStore.h:
  5130. 2011-04-21 Beth Dakin <bdakin@apple.com>
  5131. Reviewed by Dan Bernstein.
  5132. https://bugs.webkit.org/show_bug.cgi?id=59048
  5133. Need to track whether overlay scrollbar is currently visible and in lower-
  5134. righthand corner
  5135. -and corresponding-
  5136. <rdar://problem/9211232>
  5137. WebPageProxy now stores an IntRect of the scroller thumb set by WebCore through
  5138. the client.
  5139. _windowResizeMouseLocationIsInVisibleScrollerThumb tests if the parameter point is
  5140. inside the cached scroller thumb rect.
  5141. * UIProcess/API/mac/WKView.mm:
  5142. (-[WKView _windowResizeMouseLocationIsInVisibleScrollerThumb:]):
  5143. Client work to cache the rect.
  5144. * UIProcess/WebPageProxy.cpp:
  5145. (WebKit::WebPageProxy::WebPageProxy):
  5146. (WebKit::WebPageProxy::close):
  5147. (WebKit::WebPageProxy::processDidCrash):
  5148. (WebKit::WebPageProxy::notifyScrollerThumbIsVisibleInRect):
  5149. * UIProcess/WebPageProxy.h:
  5150. (WebKit::WebPageProxy::visibleScrollerThumbRect):
  5151. * UIProcess/WebPageProxy.messages.in:
  5152. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  5153. (WebKit::WebChromeClient::notifyScrollerThumbIsVisibleInRect):
  5154. * WebProcess/WebCoreSupport/WebChromeClient.h:
  5155. New WebSystemInterface is needed by WebCore for this.
  5156. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  5157. (InitWebCoreSystemInterface):
  5158. 2011-04-21 Andreas Kling <andreas.kling@nokia.com>
  5159. Reviewed by Kenneth Rohde Christiansen.
  5160. [Qt][WK2] Emit QWKPage::urlChanged() when navigating within the same document.
  5161. https://bugs.webkit.org/show_bug.cgi?id=59044
  5162. Hook up the didSameDocumentNavigationForFrame callback to QWKPage::urlChanged().
  5163. * UIProcess/API/qt/ClientImpl.cpp:
  5164. (qt_wk_didSameDocumentNavigationForFrame):
  5165. * UIProcess/API/qt/ClientImpl.h:
  5166. * UIProcess/API/qt/qwkpage.cpp:
  5167. (QWKPage::QWKPage):
  5168. 2011-04-20 Alexey Proskuryakov <ap@apple.com>
  5169. Reviewed by Maciej Stachowiak.
  5170. WebKit2: Unconfirmed inline input session persists after reload
  5171. https://bugs.webkit.org/show_bug.cgi?id=59054
  5172. <rdar://problem/9291086>
  5173. Makes the inline input get properly confirmed or discarded when changing selection,
  5174. navigating to another page, focusing another view in the window, or after a web process
  5175. crash.
  5176. * Shared/EditorState.h: (WebKit::EditorState::EditorState):
  5177. * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::editorState):
  5178. Added a variable that Editor sets while processing input method calls. We don't want
  5179. selection changes caused by -setMarkedText: discard the composition!
  5180. * UIProcess/PageClient.h:
  5181. * UIProcess/API/mac/PageClientImpl.h:
  5182. * UIProcess/API/mac/PageClientImpl.mm:
  5183. (WebKit::PageClientImpl::updateTextInputState):
  5184. (WebKit::PageClientImpl::resetTextInputState):
  5185. Extended updateSecureInputState() to potentially confirm the current inline input session.
  5186. Added resetTextInputState, which is to be called when we get out of the current web page.
  5187. * UIProcess/API/mac/WKView.mm:
  5188. (-[WKView resignFirstResponder]): Just call _resetTextInputState instead of dealing with
  5189. input state here.
  5190. (-[WKView _updateSecureInputState]): Use _isFocused to make the code simpler.
  5191. (-[WKView _updateTextInputStateIncludingSecureInputState:]): Confirm the current inline
  5192. input session if selection changed for any other reason but an input method changing the
  5193. composition. We will want to do other work here, like dismissing a dictionary pop-up,
  5194. updating a font panel etc.
  5195. (-[WKView _resetTextInputState]): Added. We don't want secure text input persist after
  5196. navigations, crashes an such, and we also don't want input methods to remember inline input
  5197. state. Relying on selection changed notifications is fragile and insufficient.
  5198. * UIProcess/API/mac/WKViewInternal.h: Added internal functions to keep the build unbroken.
  5199. * UIProcess/WebPageProxy.cpp:
  5200. (WebKit::WebPageProxy::didCommitLoadForFrame): This is the best chance we have to reset input
  5201. state for a new page. This doesn't work well for cached page loads, but WK1 is quite broken
  5202. in that case, too.
  5203. (WebKit::WebPageProxy::editorStateChanged): Moved some logic up to the client, since the
  5204. function now does much more than before.
  5205. * UIProcess/WebPageProxy.h:
  5206. * UIProcess/mac/WebPageProxyMac.mm: (WebKit::WebPageProxy::confirmCompositionWithoutDisturbingSelection):
  5207. * WebProcess/WebPage/WebPage.h:
  5208. * WebProcess/WebPage/WebPage.messages.in:
  5209. * WebProcess/WebPage/mac/WebPageMac.mm: (WebKit::WebPage::confirmCompositionWithoutDisturbingSelection):
  5210. Added confirmCompositionWithoutDisturbingSelection(). When we confirm the composition due
  5211. to selection change, we obvisouly don't want the selection to move back.
  5212. 2011-04-21 Sam Weinig <sam@webkit.org>
  5213. Reviewed by Simon Fraser.
  5214. Remove warnings from DrawingAreaImpl and related classes
  5215. https://bugs.webkit.org/show_bug.cgi?id=59120
  5216. DrawingAreaImpl is mature enough for others to adopt. Remove warnings.
  5217. * UIProcess/BackingStore.cpp:
  5218. * UIProcess/DrawingAreaProxyImpl.cpp:
  5219. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  5220. * WebProcess/WebPage/LayerTreeHost.cpp:
  5221. 2011-04-21 Sam Weinig <sam@webkit.org>
  5222. Reviewed by Simon Fraser.
  5223. Deploy GraphicsContextStateSaver in WebKit2
  5224. https://bugs.webkit.org/show_bug.cgi?id=59116
  5225. * UIProcess/FindIndicator.cpp:
  5226. (WebKit::FindIndicator::draw):
  5227. * WebProcess/Plugins/PluginView.cpp:
  5228. (WebKit::PluginView::paint):
  5229. * WebProcess/WebPage/FindController.cpp:
  5230. (WebKit::FindController::drawRect):
  5231. * WebProcess/WebPage/PageOverlay.cpp:
  5232. (WebKit::PageOverlay::drawRect):
  5233. * WebProcess/WebPage/WebPage.cpp:
  5234. (WebKit::WebPage::drawRect):
  5235. (WebKit::WebPage::drawPageOverlay):
  5236. 2011-04-21 Jessie Berlin <jberlin@apple.com>
  5237. Reviewed by Sam Weinig.
  5238. WebKit2: Need a way to get a snapshot of the visible contents of a page from the UI Process.
  5239. https://bugs.webkit.org/show_bug.cgi?id=59035
  5240. Added a sync call from the UI Process to the Web Process with comments saying that it should
  5241. be removed as soon as possible.
  5242. * UIProcess/API/C/WKPage.cpp:
  5243. (WKPageVisibleContentsSnapshot):
  5244. * UIProcess/API/C/WKPagePrivate.h:
  5245. * UIProcess/WebPageProxy.cpp:
  5246. (WebKit::WebPageProxy::createSnapshotOfVisibleContent):
  5247. * UIProcess/WebPageProxy.h:
  5248. * WebProcess/WebPage/WebPage.cpp:
  5249. (WebKit::WebPage::createSnapshotOfVisibleContent):
  5250. Ask the FrameView for the visibleContentRect, and call scaledSnapshotInDocumentCoordinates
  5251. with a scale factor of 1 (which preserves the current scaling of the page - e.g. if the
  5252. page is already zoomed then the snapshot will reflect the zoomed content).
  5253. * WebProcess/WebPage/WebPage.h:
  5254. * WebProcess/WebPage/WebPage.messages.in:
  5255. 2011-04-20 Dominic Cooney <dominicc@chromium.org>
  5256. Reviewed by Dimitri Glazkov.
  5257. layoutTestController can create and destroy shadow DOM
  5258. https://bugs.webkit.org/show_bug.cgi?id=59058
  5259. Support for new methods in WK2 WebKitTestRunner.
  5260. * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
  5261. (WKBundleNodeHandleCopyElementEnsureShadowRoot):
  5262. (WKBundleNodeHandleRemoveShadowRoot):
  5263. * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h:
  5264. * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
  5265. (WebKit::InjectedBundleNodeHandle::elementShadowRoot):
  5266. (WebKit::InjectedBundleNodeHandle::elementEnsureShadowRoot):
  5267. (WebKit::InjectedBundleNodeHandle::elementRemoveShadowRoot):
  5268. * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
  5269. 2011-04-20 Anders Carlsson <andersca@apple.com>
  5270. Reviewed by Sam Weinig.
  5271. Don't discard backing stores for hung web processes
  5272. https://bugs.webkit.org/show_bug.cgi?id=59039
  5273. <rdar://problem/9237090>
  5274. * UIProcess/WebPageProxy.cpp:
  5275. (WebKit::WebPageProxy::viewStateDidChange):
  5276. (WebKit::WebPageProxy::processDidBecomeUnresponsive):
  5277. (WebKit::WebPageProxy::processDidBecomeResponsive):
  5278. Call updateBackingStoreDiscardableState.
  5279. (WebKit::WebPageProxy::updateBackingStoreDiscardableState):
  5280. Never mark the backing store as discardable if the web process is hung
  5281. 2011-04-20 Maciej Stachowiak <mjs@apple.com>
  5282. Reviewed by Sam Weinig.
  5283. Reproducible crash under WebPageProxy::didReceiveEvent
  5284. https://bugs.webkit.org/show_bug.cgi?id=59036
  5285. <rdar://problem/9252083>
  5286. * UIProcess/API/mac/WKView.mm:
  5287. (-[WKView _resendKeyDownEvent:]): Protect against self-destruction
  5288. when re-dispatching the event.
  5289. * UIProcess/WebProcessProxy.cpp:
  5290. (WebKit::WebProcessProxy::createWebPage): Fixed a type mismatch
  5291. I noticed while debugging.
  5292. 2011-04-20 Timothy Hatcher <timothy@apple.com>
  5293. Make the Web Insepctor come to the front when a breakpoint is hit.
  5294. <https://webkit.org/b/57480> REGRESSION (WebKit2): Inspector doesn't come to the front when a breakpoint is hit in the debugger
  5295. <rdar://problem/9209472>
  5296. Reviewed by Adam Roben.
  5297. * UIProcess/WebInspectorProxy.cpp:
  5298. (WebKit::WebInspectorProxy::bringToFront): Added. Call platformBringToFront.
  5299. * UIProcess/WebInspectorProxy.h:
  5300. * UIProcess/WebInspectorProxy.messages.in: Added BringToFront.
  5301. * UIProcess/mac/WebInspectorProxyMac.mm:
  5302. (WebKit::WebInspectorProxy::platformBringToFront): Added. Call orderFront:.
  5303. * UIProcess/win/WebInspectorProxyWin.cpp:
  5304. (WebKit::WebInspectorProxy::platformBringToFront): Added. Call ShowWindow.
  5305. * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
  5306. (WebKit::WebInspectorFrontendClient::bringToFront): Call WebInspector::bringToFront.
  5307. * WebProcess/WebPage/WebInspector.cpp:
  5308. (WebKit::WebInspector::bringToFront): Added. Send WebInspectorProxy::BringToFront message.
  5309. * WebProcess/WebPage/WebInspector.h: Added bringToFront.
  5310. 2011-04-20 Chris Marrin <cmarrin@apple.com>
  5311. Reviewed by Adam Roben.
  5312. REGRESSION (WebKit2): CSS animations on pages that use accelerated compositing stop after switching tabs
  5313. https://bugs.webkit.org/show_bug.cgi?id=57868
  5314. Subclassed setRootCompositingLayer so it can call ensureAnimationsSubmitted on Win.
  5315. * WebProcess/WebPage/ca/LayerTreeHostCA.h:
  5316. Make setRootCompositingLayer protected so it can be called from subclass
  5317. * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.cpp:
  5318. Override setRootCompositingLayer to add call to root layer's
  5319. PlatformCALayer::ensureAnimationsSubmitted method
  5320. * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.h:
  5321. 2011-04-18 Eric Carlson <eric.carlson@apple.com>
  5322. Reviewed by Dan Bernstein.
  5323. Adopt QTKit API for listing and deleting file in its media cache.
  5324. <rdar://problem/9130029>
  5325. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  5326. (InitWebCoreSystemInterface): Initialize new functions.
  5327. 2011-04-20 Alejandro G. Castro <alex@igalia.com>
  5328. Fixed GTK+ compilation after r84206.
  5329. * GNUmakefile.am:
  5330. 2011-04-20 Adam Roben <aroben@apple.com>
  5331. Remove some unnecessary VS junk related to NativeWebMouseEventWin.cpp
  5332. * win/WebKit2.vcproj:
  5333. 2011-04-20 Balazs Kelemen <kbalazs@webkit.org>
  5334. Reviewed by Csaba Osztrogonác.
  5335. [Qt] Cleanup includepath adjustment for generated files
  5336. https://bugs.webkit.org/show_bug.cgi?id=58869
  5337. * WebKit2.pri: Add the directory of generated files to the include
  5338. path with absolute path to make it valid in the final build step.
  5339. 2011-04-19 Anders Carlsson <andersca@apple.com>
  5340. Reviewed by Sam Weinig.
  5341. UI process thinks the page is unresponsive when a plug-in is showing a context menu
  5342. https://bugs.webkit.org/show_bug.cgi?id=58943
  5343. <rdar://problem/9299901>
  5344. Change the HandleMouseEvent message to have a delayed reply and make the PluginControllerProxy
  5345. respond to it immediately, before even passing the event to the plug-in. Since it doesn't matter
  5346. for mouse events whether the plug-in handled them or not we can do this.
  5347. Another solution could have been to make handleMouseEvent an asynchronous message, but that could
  5348. mess up the message ordering so this seemed like the least intrusive change.
  5349. * PluginProcess/PluginControllerProxy.cpp:
  5350. (WebKit::PluginControllerProxy::handleMouseEvent):
  5351. * PluginProcess/PluginControllerProxy.h:
  5352. * PluginProcess/PluginControllerProxy.messages.in:
  5353. 2011-04-19 Anders Carlsson <andersca@apple.com>
  5354. Reviewed by Dan Bernstein.
  5355. Terminate hung plug-in processes after 45 seconds
  5356. https://bugs.webkit.org/show_bug.cgi?id=58932
  5357. <rdar://problem/8083219>
  5358. * UIProcess/Plugins/PluginProcessManager.cpp:
  5359. (WebKit::PluginProcessManager::pluginSyncMessageSendTimedOut):
  5360. Find the plug-in process proxy and terminate it.
  5361. (WebKit::PluginProcessManager::pluginProcessWithPath):
  5362. Add new helper function.
  5363. (WebKit::PluginProcessManager::getOrCreatePluginProcess):
  5364. Call pluginProcessWithPath.
  5365. * UIProcess/Plugins/PluginProcessProxy.cpp:
  5366. (WebKit::PluginProcessProxy::terminate):
  5367. Terminate the process.
  5368. * UIProcess/Plugins/PluginProcessProxy.h:
  5369. * UIProcess/WebProcessProxy.cpp:
  5370. (WebKit::WebProcessProxy::pluginSyncMessageSendTimedOut):
  5371. Call PluginProcessManager::pluginSyncMessageSendTimedOut.
  5372. * UIProcess/WebProcessProxy.h:
  5373. * UIProcess/WebProcessProxy.messages.in:
  5374. Add PluginSyncMessageSendTimedOut message.
  5375. * WebProcess/Plugins/PluginProcessConnection.cpp:
  5376. (WebKit::defaultSyncMessageTimeout):
  5377. (WebKit::PluginProcessConnection::PluginProcessConnection):
  5378. Set a sync message timeout on the plug-in process connection.
  5379. (WebKit::PluginProcessConnection::syncMessageSendTimedOut):
  5380. Send a message to the web process proxy.
  5381. 2011-04-19 Alexey Proskuryakov <ap@apple.com>
  5382. Reviewed by Adele Peterson.
  5383. WebKit2: Merge SelectionState and TextInputState
  5384. https://bugs.webkit.org/show_bug.cgi?id=58919
  5385. Combined TextInputState and EditorState in one structure, which is updated whenever we get
  5386. a chance to. There is no sense to keep possibly stale SelectionState data when we have already
  5387. requested the most recent data synchronously.
  5388. This also simplifies the code, as we don't need to pass the state around in a separate variable.
  5389. * GNUmakefile.am:
  5390. * Scripts/webkit2/messages.py:
  5391. * Shared/EditorState.h: Copied from Source/WebKit2/Shared/SelectionState.h.
  5392. (WebKit::EditorState::EditorState):
  5393. * Shared/SelectionState.h: Removed.
  5394. * Shared/mac/TextInputState.h: Removed.
  5395. * UIProcess/API/mac/PageClientImpl.h:
  5396. * UIProcess/API/mac/PageClientImpl.mm:
  5397. (WebKit::PageClientImpl::interpretKeyEvent):
  5398. * UIProcess/API/mac/WKView.mm:
  5399. (-[WKView validRequestorForSendType:returnType:]):
  5400. (-[WKView validateUserInterfaceItem:]):
  5401. (-[WKView shouldDelayWindowOrderingForEvent:]):
  5402. (-[WKView doCommandBySelector:]):
  5403. (-[WKView insertText:replacementRange:]):
  5404. (-[WKView _handleStyleKeyEquivalent:]):
  5405. (-[WKView _executeSavedKeypressCommands]):
  5406. (-[WKView inputContext]):
  5407. (-[WKView hasMarkedText]):
  5408. (-[WKView unmarkText]):
  5409. (-[WKView setMarkedText:selectedRange:replacementRange:]):
  5410. (-[WKView attributedSubstringForProposedRange:actualRange:]):
  5411. (-[WKView _interpretKeyEvent:savingCommandsTo:WebCore::]):
  5412. (-[WKView _updateSecureInputState]):
  5413. * UIProcess/API/mac/WKViewInternal.h:
  5414. * UIProcess/PageClient.h:
  5415. * UIProcess/WebPageProxy.cpp:
  5416. (WebKit::WebPageProxy::editorStateChanged):
  5417. * UIProcess/WebPageProxy.h:
  5418. (WebKit::WebPageProxy::editorState):
  5419. (WebKit::WebPageProxy::hasSelectedRange):
  5420. (WebKit::WebPageProxy::isContentEditable):
  5421. * UIProcess/WebPageProxy.messages.in:
  5422. * UIProcess/mac/WebPageProxyMac.mm:
  5423. (WebKit::WebPageProxy::setComposition):
  5424. (WebKit::WebPageProxy::confirmComposition):
  5425. (WebKit::WebPageProxy::insertText):
  5426. (WebKit::WebPageProxy::executeKeypressCommands):
  5427. (WebKit::WebPageProxy::writeSelectionToPasteboard):
  5428. (WebKit::WebPageProxy::readSelectionFromPasteboard):
  5429. (WebKit::WebPageProxy::interpretQueuedKeyEvent):
  5430. * UIProcess/win/WebView.cpp:
  5431. (WebKit::WebView::compositionSelectionChanged):
  5432. (WebKit::WebView::onIMEComposition):
  5433. (WebKit::WebView::onIMEEndComposition):
  5434. (WebKit::WebView::onIMERequestCharPosition):
  5435. (WebKit::WebView::onIMERequest):
  5436. * WebKit2.xcodeproj/project.pbxproj:
  5437. * WebProcess/WebCoreSupport/WebEditorClient.cpp:
  5438. (WebKit::WebEditorClient::respondToChangedSelection):
  5439. * WebProcess/WebPage/WebPage.cpp:
  5440. (WebKit::WebPage::editorState):
  5441. * WebProcess/WebPage/WebPage.h:
  5442. * WebProcess/WebPage/WebPage.messages.in:
  5443. * WebProcess/WebPage/mac/WebPageMac.mm:
  5444. (WebKit::WebPage::handleEditingKeyboardEvent):
  5445. (WebKit::WebPage::setComposition):
  5446. (WebKit::WebPage::confirmComposition):
  5447. (WebKit::WebPage::insertText):
  5448. (WebKit::WebPage::executeKeypressCommands):
  5449. * win/WebKit2.vcproj:
  5450. 2011-04-19 Alexey Proskuryakov <ap@apple.com>
  5451. Reviewed by Timothy Hatcher.
  5452. 100% reproducible crash when right-clicking any element in Web Inspector on any page
  5453. https://bugs.webkit.org/show_bug.cgi?id=58822
  5454. Web Inspector changes selection from JavaScript, and checks in UI process are insufficient
  5455. when selection is changing asynchronously.
  5456. * WebProcess/WebPage/mac/WebPageMac.mm:
  5457. (WebKit::WebPage::writeSelectionToPasteboard): Check that there is a selection, matching WK1
  5458. and UI process side. Perhaps the check should really be in WebCore, but for now, it's a
  5459. WebKit responsibility.
  5460. (WebKit::WebPage::readSelectionFromPasteboard): Same check, for no other reason but consistency.
  5461. 2011-04-19 Anders Carlsson <andersca@apple.com>
  5462. Reviewed by Sam Weinig.
  5463. Add syncMessageSendTimedOut CoreIPC Connection::Client member function
  5464. https://bugs.webkit.org/show_bug.cgi?id=58928
  5465. * Platform/CoreIPC/Connection.cpp:
  5466. (CoreIPC::Connection::waitForSyncReply):
  5467. Call syncMessageSendTimedOut.
  5468. * Platform/CoreIPC/Connection.h:
  5469. Add syncMessageSendTimedOut to Connection::Client.
  5470. * PluginProcess/PluginProcess.cpp:
  5471. * PluginProcess/PluginProcess.h:
  5472. * PluginProcess/WebProcessConnection.cpp:
  5473. * PluginProcess/WebProcessConnection.h:
  5474. * UIProcess/Plugins/PluginProcessProxy.cpp:
  5475. * UIProcess/Plugins/PluginProcessProxy.h:
  5476. * UIProcess/WebProcessProxy.cpp:
  5477. * UIProcess/WebProcessProxy.h:
  5478. * WebProcess/Plugins/PluginProcessConnection.cpp:
  5479. * WebProcess/Plugins/PluginProcessConnection.h:
  5480. * WebProcess/WebProcess.cpp:
  5481. * WebProcess/WebProcess.h:
  5482. Add syncMessageSendTimedOut stubs.
  5483. 2011-04-19 Anders Carlsson <andersca@apple.com>
  5484. Reviewed by Alexey Proskuryakov.
  5485. Replace the didFailToSendSyncMessage Connection::Client function with a flag
  5486. https://bugs.webkit.org/show_bug.cgi?id=58923
  5487. * Platform/CoreIPC/Connection.cpp:
  5488. (CoreIPC::Connection::Connection):
  5489. Initialize m_shouldExitOnSyncMessageSendFailure to false.
  5490. (CoreIPC::Connection::setShouldExitOnSyncMessageSendFailure):
  5491. Set m_didCloseOnConnectionWorkQueueCallback.
  5492. (CoreIPC::Connection::sendSyncMessage):
  5493. Call didFailToSendSyncMessage if we fail to send the sync message for some reason.
  5494. (CoreIPC::Connection::didFailToSendSyncMessage):
  5495. if m_shouldExitOnSyncMessageSendFailure is true, exit.
  5496. * Platform/CoreIPC/Connection.h:
  5497. Remove didFailToSendSyncMessage from Connection::Client.
  5498. * PluginProcess/PluginProcess.cpp:
  5499. * PluginProcess/PluginProcess.h:
  5500. Remove didFailToSendSyncMessage.
  5501. * WebProcess/WebProcess.cpp:
  5502. (WebKit::WebProcess::initialize):
  5503. * WebProcess/WebProcess.h:
  5504. Remove didFailToSendSyncMessage. Call setShouldExitOnSyncMessageSendFailure on our
  5505. UI process connection.
  5506. 2011-04-19 Anders Carlsson <andersca@apple.com>
  5507. Reviewed by Sam Weinig.
  5508. Add a way to set the default sync message timeout for a CoreIPC connection
  5509. https://bugs.webkit.org/show_bug.cgi?id=58908
  5510. * Platform/CoreIPC/Connection.cpp:
  5511. (CoreIPC::Connection::Connection):
  5512. Initialize m_defaultSyncMessageTimeout.
  5513. (CoreIPC::Connection::setDefaultSyncMessageTimeout):
  5514. Set the m_defaultSyncMessageTimeout member variable.
  5515. (CoreIPC::Connection::waitForSyncReply):
  5516. Handle the timeout being one of our two special magic values.
  5517. * Platform/CoreIPC/Connection.h:
  5518. Add a DefaultTimeout constant and change the NoTimeout constant to be -1.
  5519. 2011-04-19 Vsevolod Vlasov <vsevik@chromium.org>
  5520. Reviewed by Pavel Feldman.
  5521. Web Inspector: Rename lengthReceived to encodedDataLength/dataLength
  5522. https://bugs.webkit.org/show_bug.cgi?id=58883
  5523. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  5524. (WebKit::WebFrameLoaderClient::dispatchDidReceiveContentLength):
  5525. * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
  5526. 2011-04-19 Andreas Kling <andreas.kling@nokia.com>
  5527. Reviewed by Antonio Gomes.
  5528. WebKit2: Typo fix in WebPopupMenu::Type.
  5529. https://bugs.webkit.org/show_bug.cgi?id=58891
  5530. Fixed a typo, Seperator -> Separator.
  5531. Also removed m_ prefix on an argument variable name.
  5532. * Shared/WebPopupItem.h:
  5533. * UIProcess/mac/WebPopupMenuProxyMac.mm:
  5534. (WebKit::WebPopupMenuProxyMac::populate):
  5535. * WebProcess/WebCoreSupport/WebPopupMenu.cpp:
  5536. (WebKit::WebPopupMenu::populateItems):
  5537. 2011-04-19 Jon Honeycutt <jhoneycutt@apple.com>
  5538. WKContextDownloadURLRequest() should return a WKDownloadRef
  5539. https://bugs.webkit.org/show_bug.cgi?id=58867
  5540. Part of <rdar://problem/8931717>
  5541. Reviewed by Steve Falkenburg.
  5542. * UIProcess/API/C/WKContext.cpp:
  5543. (WKContextDownloadURLRequest):
  5544. Return the result of calling WebContext::download().
  5545. * UIProcess/API/C/WKContext.h:
  5546. Updated return type of WKContextDownloadURLRequest().
  5547. * UIProcess/WebContext.cpp:
  5548. (WebKit::WebContext::download):
  5549. Return the DownloadProxy returned by createDownloadProxy().
  5550. (WebKit::WebContext::createDownloadProxy):
  5551. Return the DownloadProxy.
  5552. * UIProcess/WebContext.h:
  5553. Changed return type of download() and createDownloadProxy().
  5554. * UIProcess/WebPageProxy.cpp:
  5555. (WebKit::WebPageProxy::receivedPolicyDecision):
  5556. Call the DownloadProxy's downloadID() function to get the ID.
  5557. 2011-04-18 Jia Pu <jpu@apple.com>
  5558. Reviewed by Mark Rowe.
  5559. WebKit needs to stop importing <AppKit/NSTextChecker.h>
  5560. https://bugs.webkit.org/show_bug.cgi?id=58798
  5561. <rdar://problem/9294938>
  5562. Use public header <AppKit/NSSpellChecker.h> instead.
  5563. * UIProcess/mac/CorrectionPanel.h:
  5564. * UIProcess/mac/CorrectionPanel.mm:
  5565. (correctionIndicatorType):
  5566. (WebKit::CorrectionPanel::show):
  5567. (WebKit::CorrectionPanel::dismissInternal):
  5568. (WebKit::CorrectionPanel::handleAcceptedReplacement):
  5569. * UIProcess/mac/TextCheckerMac.mm:
  5570. * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
  5571. 2011-04-05 Jer Noble <jer.noble@apple.com>
  5572. Reviewed by Sam Weinig.
  5573. WebKit2: WKTR should support WebKit2 full screen APIs
  5574. https://bugs.webkit.org/show_bug.cgi?id=56318
  5575. Add a new WKBundlePage API for Full Screen events, and move some of the implementation
  5576. of WebFullScreenManager into the new InjectedBundlePageFullScreenClient class, so that
  5577. the default behavior can be overridden by a WKBundlePageFullScreenClient.
  5578. * WebKit2.xcodeproj/project.pbxproj:
  5579. * WebProcess/FullScreen/WebFullScreenManager.cpp:
  5580. (WebKit::WebFullScreenManager::supportsFullScreen): Moved contents into InjectedBundlePageFullScreenClient.
  5581. (WebKit::WebFullScreenManager::enterFullScreenForElement): Ditto.
  5582. (WebKit::WebFullScreenManager::exitFullScreenForElement): Ditto.
  5583. * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
  5584. (WKBundlePageSetFullScreenClient): Added.
  5585. (WKBundlePageWillEnterFullScreenForElement): Added.
  5586. (WKBundlePageDidEnterFullScreenForElement): Added.
  5587. (WKBundlePageWillExitFullScreenForElement): Added.
  5588. (WKBundlePageDidExitFullScreenForElement): Added.
  5589. * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
  5590. * WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.cpp: Added.
  5591. (WebKit::InjectedBundlePageFullScreenClient::supportsFullScreen): Added.
  5592. (WebKit::InjectedBundlePageFullScreenClient::enterFullScreenForElement): Added.
  5593. (WebKit::InjectedBundlePageFullScreenClient::exitFullScreenForElement): Added.
  5594. * WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.h: Added.
  5595. * WebProcess/WebPage/WebPage.cpp:
  5596. (WebKit::WebPage::initializeInjectedBundleFullScreenClient): Added.
  5597. * WebProcess/WebPage/WebPage.h:
  5598. (WebKit::WebPage::injectedBundleFullScreenClient): Added.
  5599. 2011-04-18 Alexey Proskuryakov <ap@apple.com>
  5600. Reviewed by Maciej Stachowiak.
  5601. Re-add a null check lost in r83081
  5602. https://bugs.webkit.org/show_bug.cgi?id=58846
  5603. * WebProcess/WebPage/mac/WebPageMac.mm:
  5604. (WebKit::WebPage::getSelectedRange):
  5605. 2011-04-18 Andreas Kling <kling@webkit.org>
  5606. Reviewed by Kenneth Rohde Christiansen.
  5607. [Qt][WK2] Clean up tool-tip/status-bar confusion.
  5608. https://bugs.webkit.org/show_bug.cgi?id=58844
  5609. Tool-tips were incorrectly hooked up to the status bar text.
  5610. Chrome::setStatusbarText() now correctly causes the QWKPage::statusBarMessage() signal.
  5611. New API:
  5612. - QWKPage::toolTipChanged(const QString& toolTip) [signal]
  5613. QGraphicsWKView will automatically listen for this and set its own toolTip().
  5614. * UIProcess/API/qt/ClientImpl.cpp:
  5615. (qt_wk_setStatusText):
  5616. * UIProcess/API/qt/ClientImpl.h:
  5617. * UIProcess/API/qt/qgraphicswkview.cpp:
  5618. (QGraphicsWKView::QGraphicsWKView):
  5619. (QGraphicsWKViewPrivate::onToolTipChanged):
  5620. * UIProcess/API/qt/qgraphicswkview.h:
  5621. * UIProcess/API/qt/qwkpage.cpp:
  5622. (QWKPagePrivate::toolTipChanged):
  5623. (QWKPage::QWKPage):
  5624. * UIProcess/API/qt/qwkpage.h:
  5625. 2011-04-18 Maciej Stachowiak <mjs@apple.com>
  5626. Reviewed by Dan Bernstein.
  5627. sandbox violation for ~/Library/Dictionaries
  5628. https://bugs.webkit.org/show_bug.cgi?id=58841
  5629. <rdar://problem/9294770>
  5630. * WebProcess/com.apple.WebProcess.sb: Add to sandbox profile.
  5631. No obvious harm from allowing this, though it's not 100% clear
  5632. why it's needed.
  5633. 2011-04-18 Anders Carlsson <andersca@apple.com>
  5634. Try to fix the Windows build.
  5635. * Scripts/webkit2/messages.py:
  5636. 2011-04-18 Anders Carlsson <andersca@apple.com>
  5637. Reviewed by Dan Bernstein.
  5638. Get rid of WebProcessProxyLegacyMessage
  5639. https://bugs.webkit.org/show_bug.cgi?id=58825
  5640. * GNUmakefile.am:
  5641. * Platform/CoreIPC/MessageID.h:
  5642. * Shared/CoreIPCSupport/WebProcessProxyMessageKinds.h: Removed.
  5643. * UIProcess/WebProcessProxy.cpp:
  5644. * WebKit2.xcodeproj/project.pbxproj:
  5645. * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
  5646. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  5647. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  5648. * WebProcess/WebPage/WebPage.cpp:
  5649. * win/WebKit2.vcproj:
  5650. 2011-04-18 Anders Carlsson <andersca@apple.com>
  5651. Fix build.
  5652. * UIProcess/Plugins/PluginInfoStore.h:
  5653. 2011-04-18 Anders Carlsson <andersca@apple.com>
  5654. Reviewed by Sam Weinig.
  5655. Use the message generator for the GetPluginProcessConnection message
  5656. https://bugs.webkit.org/show_bug.cgi?id=58815
  5657. * Platform/CoreIPC/HandleMessage.h:
  5658. (CoreIPC::callMemberFunction):
  5659. (CoreIPC::handleMessageDelayed):
  5660. Add helper functions.
  5661. * UIProcess/Plugins/PluginInfoStore.h:
  5662. Mark class noncopyable.
  5663. * UIProcess/Plugins/PluginProcessManager.cpp:
  5664. (WebKit::PluginProcessManager::getPluginProcessConnection):
  5665. This now takes a delayed reply.
  5666. * UIProcess/Plugins/PluginProcessProxy.cpp:
  5667. (WebKit::PluginProcessProxy::getPluginProcessConnection):
  5668. This now takes a delayed reply.
  5669. (WebKit::PluginProcessProxy::pluginProcessCrashedOrFailedToLaunch):
  5670. (WebKit::PluginProcessProxy::didCreateWebProcessConnection):
  5671. Call DelayedReply::send.
  5672. * UIProcess/WebProcessProxy.cpp:
  5673. (WebKit::WebProcessProxy::getPluginProcessConnection):
  5674. This now takes a delayed reply.
  5675. (WebKit::WebProcessProxy::didReceiveSyncMessage):
  5676. No need to handle this message here.
  5677. * UIProcess/WebProcessProxy.messages.in:
  5678. Add GetPluginProcessConnection message.
  5679. * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
  5680. (WebKit::PluginProcessConnectionManager::getPluginProcessConnection):
  5681. Don't use deprecatedSendSync.
  5682. 2011-04-18 Anders Carlsson <andersca@apple.com>
  5683. Reviewed by Adam Roben.
  5684. Finish implementing delayed sync replies in the CoreIPC message generator
  5685. https://bugs.webkit.org/show_bug.cgi?id=58814
  5686. Put the DelayedReply function definitions in the .cpp file and fix bugs found by
  5687. actually trying to compile the generated files.
  5688. * Scripts/webkit2/messages.py:
  5689. * Scripts/webkit2/messages_unittest.py:
  5690. 2011-04-18 Anders Carlsson <andersca@apple.com>
  5691. Reviewed by Adam Roben.
  5692. Reproducible crash in Find on Page, on pages that use accelerated compositing
  5693. https://bugs.webkit.org/show_bug.cgi?id=58793
  5694. <rdar://problem/9295870>
  5695. Move the call to PageOverlay::setNeedsDisplay() back to WebPage::installPageOverlay;
  5696. it needs to be called after we've told the drawing area that a page overlay has been installed.
  5697. * WebProcess/WebPage/PageOverlay.cpp:
  5698. (WebKit::PageOverlay::setPage):
  5699. * WebProcess/WebPage/WebPage.cpp:
  5700. (WebKit::WebPage::installPageOverlay):
  5701. 2011-04-18 Jeff Miller <jeffm@apple.com>
  5702. Reviewed by Timothy Hatcher.
  5703. WKFrameLoadState should be a uint32_t to match our API conventions
  5704. https://bugs.webkit.org/show_bug.cgi?id=58785
  5705. * UIProcess/API/C/WKFrame.h: typedef WKFrameLoadState as a uint32_t and define its values as an anonymous enum.
  5706. 2011-04-18 Carlos Garcia Campos <cgarcia@igalia.com>
  5707. Unreviewed. Fix WebKit2 GTK build after 84017.
  5708. * GNUmakefile.am:
  5709. * Shared/NativeWebMouseEvent.h:
  5710. (WebKit::NativeWebMouseEvent::nativeEvent):
  5711. * Shared/gtk/NativeWebMouseEventGtk.cpp: Copied from Source/WebKit2/Shared/NativeWebMouseEvent.h.
  5712. (WebKit::NativeWebMouseEvent::NativeWebMouseEvent):
  5713. * UIProcess/gtk/WebView.cpp:
  5714. (WebKit::WebView::handleMouseEvent):
  5715. 2011-04-17 David Kilzer <ddkilzer@apple.com>
  5716. <http://webkit.org/b/58463> Switch HTTP pipelining from user default to private setting
  5717. <rdar://problem/9268729>
  5718. Reviewed by Dan Bernstein.
  5719. This replaces support for the WebKitEnableHTTPPipelining user
  5720. default with methods on the WebCore::ResourceRequest class in
  5721. WebCore, the WebView class in WebKit1, and the WebContext class
  5722. in WebKit2. It also removes support for the
  5723. WebKitForceHTTPPipeliningPriorityHigh user default which was not
  5724. needed.
  5725. * UIProcess/API/C/WKContext.cpp:
  5726. (_WKContextSetHTTPPipeliningEnabled): Added.
  5727. * UIProcess/API/C/WKContextPrivate.h:
  5728. (_WKContextSetHTTPPipeliningEnabled): Added declaration.
  5729. * UIProcess/WebContext.cpp:
  5730. (WebKit::WebContext::setHTTPPipeliningEnabled): Added.
  5731. (WebKit::WebContext::httpPipeliningEnabled): Added.
  5732. * UIProcess/WebContext.h:
  5733. (WebKit::WebContext::setHTTPPipeliningEnabled): Added declaration.
  5734. (WebKit::WebContext::httpPipeliningEnabled): Added declaration.
  5735. 2011-04-17 Sam Weinig <sam@webkit.org>
  5736. Reviewed by Geoffrey Garen.
  5737. Make more strings in WebKit2 localizable
  5738. https://bugs.webkit.org/show_bug.cgi?id=58757
  5739. * UIProcess/API/mac/PDFViewController.mm:
  5740. (-[WKPDFView menuForEvent:]):
  5741. * UIProcess/API/mac/PageClientImpl.mm:
  5742. (WebKit::PageClientImpl::setViewportArguments):
  5743. (WebKit::PageClientImpl::registerEditCommand):
  5744. * UIProcess/WebEditCommandProxy.cpp:
  5745. (WebKit::WebEditCommandProxy::nameForEditAction):
  5746. * UIProcess/WebEditCommandProxy.h:
  5747. Use WebCore's localization macro to make more strings localizable.
  5748. 2011-04-17 Patrick Gansterer <paroga@webkit.org>
  5749. Reviewed by Adam Barth.
  5750. Rename PLATFORM(CA) to USE(CA)
  5751. https://bugs.webkit.org/show_bug.cgi?id=58742
  5752. * WebProcess/WebPage/LayerTreeHost.cpp:
  5753. * WebProcess/WebPage/win/LayerTreeHostWin.cpp:
  5754. (WebKit::LayerTreeHost::supportsAcceleratedCompositing):
  5755. 2011-04-17 Patrick Gansterer <paroga@webkit.org>
  5756. Reviewed by Adam Barth.
  5757. Rename PLATFORM(CG) to USE(CG)
  5758. https://bugs.webkit.org/show_bug.cgi?id=58729
  5759. * Shared/ShareableBitmap.h:
  5760. * Shared/WebCoreArgumentCoders.cpp:
  5761. * Shared/WebCoreArgumentCoders.h:
  5762. * Shared/WebGraphicsContext.cpp:
  5763. (WebKit::WebGraphicsContext::WebGraphicsContext):
  5764. * Shared/WebGraphicsContext.h:
  5765. * Shared/win/PlatformCertificateInfo.cpp:
  5766. (WebKit::PlatformCertificateInfo::PlatformCertificateInfo):
  5767. * UIProcess/win/WebView.cpp:
  5768. (WebKit::WebView::setFindIndicator):
  5769. * WebProcess/WebPage/WebPage.cpp:
  5770. (WebKit::WebPage::drawRectToPDF):
  5771. (WebKit::WebPage::drawPagesToPDF):
  5772. * WebProcess/WebPage/win/WebPageWin.cpp:
  5773. (WebKit::WebPage::platformPreferencesDidChange):
  5774. * config.h:
  5775. 2011-04-16 Anders Carlsson <andersca@apple.com>
  5776. Reviewed by Sam Weinig.
  5777. Crash when NPP_Write returns -1 when writing the manual stream
  5778. https://bugs.webkit.org/show_bug.cgi?id=58735
  5779. <rdar://problem/9124993>
  5780. If NPP_Write returns -1 we must cancel the stream.
  5781. * WebProcess/Plugins/Netscape/NetscapePluginStream.cpp:
  5782. (WebKit::NetscapePluginStream::deliverDataToPlugin):
  5783. 2011-04-16 Sam Weinig <sam@webkit.org>
  5784. Reviewed by Simon Fraser.
  5785. Pages in the PageCache don't have the correct visited link coloring after being restored
  5786. https://bugs.webkit.org/show_bug.cgi?id=58721
  5787. * WebProcess/WebProcess.cpp:
  5788. (WebKit::WebProcess::visitedLinkStateChanged):
  5789. (WebKit::WebProcess::allVisitedLinkStateChanged):
  5790. Mark all pages in the page cache as needing visited link style recalc
  5791. whenever visited link information changes.
  5792. 2011-04-15 Daniel Bates <dbates@webkit.org>
  5793. Attempt to fix the Qt Linux Release build after changeset 84064 <http://trac.webkit.org/changeset/84064>
  5794. (https://bugs.webkit.org/show_bug.cgi?id=58686).
  5795. * UIProcess/API/qt/qwkpage_p.h: Remove takeFocus().
  5796. 2011-04-15 Shishir Agrawal <shishir@chromium.org>
  5797. Reviewed by James Robinson.
  5798. Add a flag to guard Page Visibility API changes.
  5799. https://bugs.webkit.org/show_bug.cgi?id=58464
  5800. * Configurations/FeatureDefines.xcconfig:
  5801. 2011-04-15 Jeff Miller <jeffm@apple.com>
  5802. Reviewed by Sam Weinig.
  5803. Add takeFocus callback to WKPageUIClient
  5804. https://bugs.webkit.org/show_bug.cgi?id=58686
  5805. On Windows, we need to handle moving focus out of the web view in the client, so add a takeFocus callback to WKPageUIClient
  5806. and stop handling taking focus in the framework in WKView.mm on the Mac.
  5807. * UIProcess/API/C/WKPage.h: Added WKFocusDirection enum and takeFocus to WKPageUIClient.
  5808. * UIProcess/API/mac/PageClientImpl.h: Removed takeFocus().
  5809. * UIProcess/API/mac/PageClientImpl.mm: Removed takeFocus().
  5810. * UIProcess/API/mac/WKView.mm: Removed _takeFocus().
  5811. * UIProcess/API/mac/WKViewInternal.h: Removed _takeFocus().
  5812. * UIProcess/API/qt/ClientImpl.cpp:
  5813. (qt_wk_takeFocus): Added.
  5814. * UIProcess/API/qt/ClientImpl.h: Added qt_wk_takeFocus.
  5815. * UIProcess/API/qt/qwkpage.cpp: Remove takeFocus().
  5816. (QWKPage::QWKPage): Added takeFocus() callback.
  5817. * UIProcess/PageClient.h: Removed takeFocus().
  5818. * UIProcess/WebPageProxy.cpp:
  5819. (WebKit::WebPageProxy::takeFocus): Call m_uiClient to take focus.
  5820. * UIProcess/WebPageProxy.h: Pass FocusDirection as a uint32_t to takeFocus().
  5821. * UIProcess/WebPageProxy.messages.in: Pass FocusDirection as a uint32_t in TakeFocus message.
  5822. * UIProcess/WebUIClient.cpp:
  5823. (WebKit::WebUIClient::takeFocus): Added.
  5824. * UIProcess/WebUIClient.h: Added takeFocus().
  5825. * UIProcess/win/WebView.cpp: Removed takeFocus(), which was never implemented on Windows.
  5826. * UIProcess/win/WebView.h: Removed takeFocus().
  5827. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  5828. (WebKit::WebChromeClient::takeFocus): Pass FocusDirection as a uint32_t in TakeFocus message.
  5829. 2011-04-15 Alexey Proskuryakov <ap@apple.com>
  5830. Reviewed by Sam Weinig.
  5831. WebKit2: Stop using deprecated NSInputManager
  5832. https://bugs.webkit.org/show_bug.cgi?id=58709
  5833. Changed all mouse related functions to give NSInputContext a chance to handle the event,
  5834. added logging. Removed -rightMouseMoved: method, which was added by accident.
  5835. * UIProcess/API/mac/WKView.mm:
  5836. (-[WKView mouseMoved:]):
  5837. (-[WKView mouseDown:]):
  5838. (-[WKView mouseUp:]):
  5839. (-[WKView mouseDragged:]):
  5840. 2011-04-15 Jon Honeycutt <jhoneycutt@apple.com>
  5841. Potential crash getting a JS wrapper.
  5842. <rdar://problem/8988741>
  5843. Reviewed by Brian Weinstein.
  5844. * WebProcess/WebPage/WebFrame.cpp:
  5845. (WebKit::WebFrame::jsWrapperForWorld):
  5846. Ensure that we have a valid m_coreFrame, because it can be cleared by
  5847. invalidate().
  5848. 2011-04-08 Luiz Agostini <luiz.agostini@openbossa.org>
  5849. Reviewed by Kenneth Rohde Christiansen.
  5850. [Qt] QWebPage MIME type handling inconsistency with other web browsers
  5851. https://bugs.webkit.org/show_bug.cgi?id=46968
  5852. Implementing mime type sniffing based on
  5853. http://tools.ietf.org/html/draft-abarth-mime-sniff-06.
  5854. * WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.cpp:
  5855. (WebCore::WebFrameNetworkingContext::WebFrameNetworkingContext):
  5856. (WebCore::WebFrameNetworkingContext::MIMESniffingEnabled):
  5857. * WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.h:
  5858. 2011-04-15 Oliver Hunt <oliver@apple.com>
  5859. GC allocate Structure
  5860. https://bugs.webkit.org/show_bug.cgi?id=58483
  5861. Rolling r83894 r83827 r83810 r83809 r83808 back in with
  5862. a workaround for the gcc bug seen by the gtk bots
  5863. * WebProcess/Plugins/Netscape/JSNPMethod.h:
  5864. (WebKit::JSNPMethod::createStructure):
  5865. * WebProcess/Plugins/Netscape/JSNPObject.h:
  5866. (WebKit::JSNPObject::createStructure):
  5867. 2011-04-15 Anders Carlsson <andersca@apple.com>
  5868. Reviewed by Sam Weinig.
  5869. Add API to get the bundle page overlay fade in fraction.
  5870. * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
  5871. (WKBundlePageOverlayFractionFadedIn):
  5872. * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:
  5873. 2011-04-15 Anders Carlsson <andersca@apple.com>
  5874. Reviewed by Dan Bernstein.
  5875. Fade the find page overlay
  5876. https://bugs.webkit.org/show_bug.cgi?id=58697
  5877. * WebProcess/WebPage/FindController.cpp:
  5878. Make the color components floats.
  5879. (WebKit::overlayBackgroundColor):
  5880. (WebKit::holeShadowColor):
  5881. (WebKit::holeFillColor):
  5882. Add helper functions for returning the colors given the fraction faded in.
  5883. (WebKit::FindController::drawRect):
  5884. Use the new helper functions.
  5885. * WebProcess/WebPage/WebPage.cpp:
  5886. (WebKit::WebPage::installPageOverlay):
  5887. Start the fade animation unless we're replacing an already existing page overlay
  5888. with another.
  5889. 2011-04-15 Anders Carlsson <andersca@apple.com>
  5890. Fix Windows build.
  5891. * WebProcess/WebPage/PageOverlay.cpp:
  5892. (WebKit::PageOverlay::fadeAnimationTimerFired):
  5893. 2011-04-15 Anders Carlsson <andersca@apple.com>
  5894. Reviewed by Sam Weinig.
  5895. Add the ability for PageOverlays to fade in and out
  5896. https://bugs.webkit.org/show_bug.cgi?id=58694
  5897. * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
  5898. (WKBundlePageUninstallPageOverlay):
  5899. WebPage::uninstallPageOverlay now takes a boolean. Default to false for now.
  5900. * WebProcess/WebPage/FindController.cpp:
  5901. (WebKit::FindController::findString):
  5902. Pass false to uninstallPageOverlay.
  5903. (WebKit::FindController::hideFindUI):
  5904. Pass true to uninstallPageOverlay.
  5905. * WebProcess/WebPage/PageOverlay.cpp:
  5906. (WebKit::PageOverlay::PageOverlay):
  5907. Initialize new member variables.
  5908. (WebKit::PageOverlay::bounds):
  5909. Get rid of an unnecessary webPage() getter.
  5910. (WebKit::PageOverlay::setPage):
  5911. Stop the animation timer.
  5912. (WebKit::PageOverlay::startFadeInAnimation):
  5913. Update m_fractionFadedIn and call startFadeAnimation.
  5914. (WebKit::PageOverlay::startFadeOutAnimation):
  5915. Ditto.
  5916. (WebKit::PageOverlay::startFadeAnimation):
  5917. Initialize m_fadeAnimationStartTime and start the fade animation timer.
  5918. (WebKit::PageOverlay::fadeAnimationTimerFired):
  5919. Update m_fractionFadedIn and call setNeedsDisplay().
  5920. * WebProcess/WebPage/PageOverlay.h:
  5921. * WebProcess/WebPage/WebPage.cpp:
  5922. (WebKit::WebPage::uninstallPageOverlay):
  5923. If fadeOut is true, tell the page overlay to start the fade out animation.
  5924. When the fade animation is complete, the page overlay will uninstall itself.
  5925. 2011-04-15 Brian Weinstein <bweinstein@apple.com>
  5926. Reviewed by Adam Roben.
  5927. Views should be made visible before painting in WM_PRINTCLIENT messages
  5928. https://bugs.webkit.org/show_bug.cgi?id=58676
  5929. <rdar://problem/9279211>
  5930. * UIProcess/win/WebView.cpp:
  5931. (WebKit::WebView::onPrintClientEvent): If our view isn't currently visible set it to visible
  5932. before painting, then reset it back to not visible after painting.
  5933. (WebKit::WebView::onShowWindowEvent): Call setIsVisible instead of duplicating logic.
  5934. (WebKit::WebView::setIsVisible): Set the m_isVisible flag and call viewStateDidChange.
  5935. * UIProcess/win/WebView.h:
  5936. 2011-04-15 Jon Lee <jonlee@apple.com>
  5937. Reviewed by Anders Carlsson.
  5938. onClick does not function with <select> elements in WebKit2
  5939. https://bugs.webkit.org/show_bug.cgi?id=57904
  5940. <rdar://problem/9217757>
  5941. Reviewed by Anders Carlsson.
  5942. * Shared/NativeWebMouseEvent.h: Copied from Source/WebKit2/UIProcess/WebPopupMenuProxy.h.
  5943. (WebKit::NativeWebMouseEvent::nativeEvent):
  5944. * Shared/mac/NativeWebMouseEventMac.mm: Added.
  5945. (WebKit::NativeWebMouseEvent::NativeWebMouseEvent):
  5946. * Shared/qt/NativeWebMouseEventQt.cpp: Copied from Source/WebKit2/UIProcess/WebPopupMenuProxy.h.
  5947. (WebKit::NativeWebMouseEvent::NativeWebMouseEvent):
  5948. * Shared/win/NativeWebMouseEventWin.cpp: Copied from Source/WebKit2/UIProcess/WebPopupMenuProxy.h.
  5949. (WebKit::NativeWebMouseEvent::NativeWebMouseEvent):
  5950. * UIProcess/API/mac/WKView.mm:
  5951. (-[WKView mouseMoved:]):
  5952. (-[WKView _mouseHandler:]): Pre-compiler mouse handler calls need to use the new NativeWebMouseEvent class
  5953. * UIProcess/API/qt/qwkpage.cpp:
  5954. (QWKPagePrivate::mouseMoveEvent):
  5955. (QWKPagePrivate::mousePressEvent):
  5956. (QWKPagePrivate::mouseReleaseEvent):
  5957. (QWKPagePrivate::mouseDoubleClickEvent):
  5958. * UIProcess/WebPageProxy.cpp:
  5959. (WebKit::WebPageProxy::handleMouseEvent): keep track of mouse down event in order to be able to send a fake mouse up event on the select element
  5960. (WebKit::WebPageProxy::currentMouseDownEvent): for access by the popup menu proxy to dispatch the fake mouse up event
  5961. (WebKit::WebPageProxy::didReceiveEvent): clear out the cached mouse down event
  5962. (WebKit::WebPageProxy::processDidCrash): clear out the cached events since we assume that didReceiveEvent did not called prior to the crash
  5963. * UIProcess/WebPageProxy.h:
  5964. * UIProcess/WebPopupMenuProxy.h:
  5965. * UIProcess/mac/WebPopupMenuProxyMac.mm:
  5966. (WebKit::WebPopupMenuProxyMac::showPopupMenu): after notifying the popup menu client that the value changed, fake mouse up and mouse move events are posted
  5967. * UIProcess/win/WebPopupMenuProxyWin.cpp:
  5968. (WebKit::WebPopupMenuProxyWin::showPopupMenu): after notifying the popup menu client that the value changed, fake mouse up and mouse move events are posted
  5969. * UIProcess/win/WebView.cpp:
  5970. (WebKit::WebView::onMouseEvent):
  5971. * WebKit2.pro:
  5972. * WebKit2.xcodeproj/project.pbxproj:
  5973. * win/WebKit2.vcproj:
  5974. 2011-04-15 Alexey Proskuryakov <ap@apple.com>
  5975. Qt build fix.
  5976. * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::selectionStateChanged): Wrap the variable
  5977. in PLATFORM(MAC), too, as it's unused on other platforms.
  5978. 2011-04-15 Brady Eidson <beidson@apple.com>
  5979. Reviewed by Dan Bernstein.
  5980. <rdar://problem/9287880> and https://bugs.webkit.org/show_bug.cgi?id=58596
  5981. WK2: Past searches not remembered for <input type=search results="5" autosave="foo">
  5982. Add SaveRecentSearches and LoadRecentSearches messages:
  5983. * UIProcess/WebPageProxy.messages.in:
  5984. * UIProcess/WebPageProxy.h:
  5985. Message up to the UIProcess for the save/load operations:
  5986. * WebProcess/WebCoreSupport/WebSearchPopupMenu.cpp:
  5987. (WebKit::WebSearchPopupMenu::saveRecentSearches):
  5988. (WebKit::WebSearchPopupMenu::loadRecentSearches):
  5989. * WebProcess/WebCoreSupport/WebPopupMenu.h:
  5990. (WebKit::WebPopupMenu::page):
  5991. Save the values to disk CFPreference-style:
  5992. * UIProcess/cf/WebPageProxyCF.cpp:
  5993. (WebKit::autosaveKey):
  5994. (WebKit::WebPageProxy::saveRecentSearches):
  5995. (WebKit::WebPageProxy::loadRecentSearches):
  5996. Stubbed out for non-CF platforms:
  5997. * UIProcess/gtk/WebPageProxyGtk.cpp:
  5998. (WebKit::WebPageProxy::saveRecentSearches):
  5999. (WebKit::WebPageProxy::loadRecentSearches):
  6000. * UIProcess/qt/WebPageProxyQt.cpp:
  6001. (WebKit::WebPageProxy::saveRecentSearches):
  6002. (WebKit::WebPageProxy::loadRecentSearches):
  6003. 2011-04-14 Alexey Proskuryakov <ap@apple.com>
  6004. Reviewed by Dan Bernstein.
  6005. WebKit2: Password field input does not switch to ASCII-compatible source
  6006. https://bugs.webkit.org/show_bug.cgi?id=58583
  6007. <rdar://problem/9059651>
  6008. The implementation is more modern than what we have in WK1. Instead of returning a null
  6009. input context (as in non-editable content), we now set page context's properties.
  6010. * UIProcess/PageClient.h:
  6011. * UIProcess/API/mac/PageClientImpl.h:
  6012. * UIProcess/API/mac/PageClientImpl.mm: (WebKit::PageClientImpl::updateSecureInputState):
  6013. Forward updateSecureInputState() call from WebPageProxy to WKView.
  6014. * UIProcess/API/mac/WKView.mm:
  6015. (-[WKView dealloc]): ASSERT that we didn't somehow leave secure input events enabled.
  6016. (-[WKView becomeFirstResponder]): Update secure event mode.
  6017. (-[WKView resignFirstResponder]): Disable secure event mode.
  6018. (-[WKView setMarkedText:selectedRange:replacementRange:]): Prevent most advanced editing
  6019. behaviors in password fields, matching NSSecureTextInputField.
  6020. (-[WKView attributedSubstringForProposedRange:actualRange:]): Disable TSM Document Access
  6021. in password fields. There is also a check in web process, but it doest't hurt to check twice.
  6022. (-[WKView _windowDidBecomeKey:]): Call _updateSecureInputState.
  6023. (-[WKView _windowDidResignKey:]): Call _updateSecureInputState.
  6024. (-[WKView _updateSecureInputState]): Update secure event mode and allowed input sources.
  6025. * UIProcess/API/mac/WKViewInternal.h: Added _updateSecureInputState.
  6026. * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::selectionStateChanged): Update secure
  6027. input state when going in or out a password field.
  6028. 2011-04-14 Jer Noble <jer.noble@apple.com>
  6029. Reviewed by Eric Carlson.
  6030. REGRESSION: Rendering in <video> element appears to render quickly to catch up if it has been playing in a background tab
  6031. https://bugs.webkit.org/show_bug.cgi?id=58637
  6032. Notify AVFoundation that no one will be rendering when the view or window moves off screen.
  6033. * UIProcess/API/mac/PageClientImpl.mm:
  6034. (WebKit::PageClientImpl::isViewVisible): Return false if the view's window is not visible.
  6035. * UIProcess/API/mac/WKView.mm:
  6036. (-[WKView addWindowObserversForWindow:]): Observe orderOut and orderIn events.
  6037. (-[WKView removeWindowObservers]): Ditto.
  6038. (-[WKView _windowDidOrderOffScreen:]): Added.
  6039. (-[WKView _windowDidOrderOnScreen:]): Added.
  6040. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  6041. (WebKit::DrawingAreaImpl::suspendPainting): Call LayerTreeHost::pauseRendering.
  6042. (WebKit::DrawingAreaImpl::resumePainting): Call LayerTreeHost::resumeRendering.
  6043. * WebProcess/WebPage/LayerTreeHost.h:
  6044. (WebKit::LayerTreeHost::pauseRendering): Added stub.
  6045. (WebKit::LayerTreeHost::resumeRendering): Added stub.
  6046. * WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.h:
  6047. * WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.mm:
  6048. (WebKit::LayerTreeHostCAMac::pauseRendering): Added. Post a notification with our
  6049. intention to stop rendering.
  6050. (WebKit::LayerTreeHostCAMac::resumeRendering): Added. Post a notification with our
  6051. intention to start rendering.
  6052. 2011-04-15 Jessie Berlin <jberlin@apple.com>
  6053. Reviewed by Sam Weinig.
  6054. WebKit2: Need a way to keep the WebProcess alive for testing purposes.
  6055. https://bugs.webkit.org/show_bug.cgi?id=58592
  6056. * UIProcess/API/C/WKContext.cpp:
  6057. (WKContextDisableProcessTermination):
  6058. (WKContextEnableProcessTermination):
  6059. * UIProcess/API/C/WKContextPrivate.h:
  6060. * UIProcess/WebContext.cpp:
  6061. (WebKit::WebContext::WebContext):
  6062. Initialize m_processTerminationEnabled to true.
  6063. (WebKit::WebContext::enableProcessTermination):
  6064. Set m_processTerminationEnabled to true, and try to terminate the web process.
  6065. (WebKit::WebContext::shouldTerminate):
  6066. If !m_processTerminationEnabled, return false.
  6067. * UIProcess/WebContext.h:
  6068. (WebKit::WebContext::disableProcessTermination):
  6069. Set m_processTerminationEnabled to false;
  6070. 2011-04-15 Nancy Piedra <nancy.piedra@nokia.com>
  6071. Reviewed by Laszlo Gombos.
  6072. [Qt][Symbian] Need to export ViewportAttributes class
  6073. https://bugs.webkit.org/show_bug.cgi?id=58651
  6074. On Symbian, if the ViewportAttributes class is not exported we get
  6075. linking errors.
  6076. Since this is a compilation issue, no new tests added.
  6077. * UIProcess/API/qt/qwkpage.h:
  6078. 2011-04-15 Anna Cavender <annacc@chromium.org>
  6079. Reviewed by Eric Carlson.
  6080. Renaming TRACK feature define to VIDEO_TRACK
  6081. https://bugs.webkit.org/show_bug.cgi?id=53556
  6082. * Configurations/FeatureDefines.xcconfig:
  6083. 2011-04-14 Anders Carlsson <andersca@apple.com>
  6084. Reviewed by Sam Weinig.
  6085. Select All context menu item doesn't work in Flash
  6086. https://bugs.webkit.org/show_bug.cgi?id=58615
  6087. <rdar://problem/9225761>
  6088. In some cases, -[NSWindow isKeyWindow] will return false even if
  6089. a window is the key window, so we have to compare our window
  6090. against -[NSApplication keyWindow].
  6091. * UIProcess/API/mac/PageClientImpl.mm:
  6092. (WebKit::PageClientImpl::isViewWindowActive):
  6093. 2011-04-14 Sam Weinig <sam@webkit.org>
  6094. Reviewed by Anders Carlsson.
  6095. Add CFPreference based backend for WebKit2 preferences
  6096. https://bugs.webkit.org/show_bug.cgi?id=58605
  6097. * UIProcess/cf/WebPreferencesCF.cpp:
  6098. (WebKit::cfStringFromWebCoreString):
  6099. (WebKit::makeKey):
  6100. (WebKit::setStringValueIfInUserDefaults):
  6101. (WebKit::setBoolValueIfInUserDefaults):
  6102. (WebKit::setUInt32ValueIfInUserDefaults):
  6103. (WebKit::setDoubleValueIfInUserDefaults):
  6104. (WebKit::WebPreferences::platformInitializeStore):
  6105. (WebKit::WebPreferences::platformUpdateStringValueForKey):
  6106. (WebKit::WebPreferences::platformUpdateBoolValueForKey):
  6107. (WebKit::WebPreferences::platformUpdateUInt32ValueForKey):
  6108. (WebKit::WebPreferences::platformUpdateDoubleValueForKey):
  6109. Implement platform functions using CFPreferences API.
  6110. 2011-04-14 Brady Eidson <beidson@apple.com>
  6111. Reviewed by Sam Weinig.
  6112. <rdar://problem/8665102> and https://bugs.webkit.org/show_bug.cgi?id=58595
  6113. Menu is not displayed for <input type=search results="5">
  6114. * WebProcess/WebCoreSupport/WebSearchPopupMenu.cpp:
  6115. (WebKit::WebSearchPopupMenu::enabled): Return true, like all good search popup menus should.
  6116. * WebProcess/WebCoreSupport/mac/WebPopupMenuMac.mm:
  6117. (WebKit::WebPopupMenu::setUpPlatformData): Remember the shouldPopOver-ness.
  6118. * Shared/PlatformPopupMenuData.cpp:
  6119. (WebKit::PlatformPopupMenuData::encode): Remember the shouldPopOver-ness.
  6120. (WebKit::PlatformPopupMenuData::decode): Remember the shouldPopOver-ness.
  6121. * Shared/PlatformPopupMenuData.h:
  6122. * UIProcess/mac/WebPopupMenuProxyMac.mm:
  6123. (WebKit::WebPopupMenuProxyMac::showPopupMenu): Use the shouldPopOver-ness to adjust display position.
  6124. 2011-04-14 Anders Carlsson <andersca@apple.com>
  6125. Reviewed by Dan Bernstein.
  6126. Crash in NetscapePluginModule::tryGetSitesWithData when NPP_GetSitesWithData returns null
  6127. https://bugs.webkit.org/show_bug.cgi?id=58578
  6128. <rdar://problem/9275201>
  6129. It's OK for NPP_GetSitesWithData to return null.
  6130. * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
  6131. (WebKit::NetscapePluginModule::tryGetSitesWithData):
  6132. 2011-04-14 Sam Weinig <sam@webkit.org>
  6133. Reviewed by Anders Carlsson.
  6134. Make creating WebPreferences lazy
  6135. https://bugs.webkit.org/show_bug.cgi?id=58570
  6136. * UIProcess/WebPageGroup.cpp:
  6137. (WebKit::WebPageGroup::WebPageGroup):
  6138. (WebKit::WebPageGroup::~WebPageGroup):
  6139. (WebKit::WebPageGroup::setPreferences):
  6140. (WebKit::WebPageGroup::preferences):
  6141. * UIProcess/WebPageGroup.h:
  6142. Don't create the WebPreference object until it is requested.
  6143. 2011-04-14 Pratik Solanki <psolanki@apple.com>
  6144. Reviewed by David Kilzer.
  6145. Set minimum priority for fast lane connections
  6146. https://bugs.webkit.org/show_bug.cgi?id=58353
  6147. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  6148. (InitWebCoreSystemInterface): Support for new WKSI method WKSetHTTPPipeliningMinimumFastLanePriority.
  6149. 2011-04-14 Anders Carlsson <andersca@apple.com>
  6150. Clang warning fixes.
  6151. * UIProcess/API/mac/PageClientImpl.h:
  6152. * UIProcess/mac/TextCheckerMac.mm:
  6153. * WebProcess/Downloads/mac/DownloadMac.mm:
  6154. 2011-04-14 Jessie Berlin <jberlin@apple.com>
  6155. Reviewed by Timothy Hatcher.
  6156. WebKit2: Add an option for a PageGroup to be invisible to the History Client.
  6157. https://bugs.webkit.org/show_bug.cgi?id=58547
  6158. * Shared/WebPageGroupData.cpp:
  6159. (WebKit::WebPageGroupData::encode):
  6160. (WebKit::WebPageGroupData::decode):
  6161. * Shared/WebPageGroupData.h:
  6162. * UIProcess/WebInspectorProxy.cpp:
  6163. (WebKit::WebInspectorProxy::inspectorPageGroup):
  6164. The Web Inspector should not be visible to the History Client, because its HTML-based nature
  6165. should not be exposed through the API.
  6166. * UIProcess/WebPageGroup.cpp:
  6167. (WebKit::WebPageGroup::create):
  6168. (WebKit::WebPageGroup::WebPageGroup):
  6169. * UIProcess/WebPageGroup.h:
  6170. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  6171. (WebKit::WebFrameLoaderClient::updateGlobalHistory):
  6172. Do not send the message to the WebContent for the history client.
  6173. (WebKit::WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
  6174. Ditto.
  6175. (WebKit::WebFrameLoaderClient::setTitle):
  6176. Ditto.
  6177. * WebProcess/WebPage/WebPageGroupProxy.h:
  6178. (WebKit::WebPageGroupProxy::isVisibleToHistoryClient):
  6179. 2011-04-14 Balazs Kelemen <kbalazs@webkit.org>
  6180. Reviewed by Andreas Kling.
  6181. [Qt][WK2] Make Qt port compiling with ENABLE_PLUGIN_PROCESS=1
  6182. https://bugs.webkit.org/show_bug.cgi?id=55719
  6183. Guard functionality related to complex text and implementations
  6184. that rely on MachPort with PLATFORM(MAC).
  6185. Based on Oleg Romashin's patch.
  6186. * PluginProcess/PluginControllerProxy.cpp:
  6187. * PluginProcess/PluginControllerProxy.messages.in:
  6188. * PluginProcess/PluginProcess.cpp:
  6189. (WebKit::PluginProcess::createWebProcessConnection):
  6190. * PluginProcess/WebProcessConnection.cpp:
  6191. (WebKit::WebProcessConnection::createPlugin):
  6192. * Shared/Plugins/PluginProcessCreationParameters.cpp:
  6193. (WebKit::PluginProcessCreationParameters::decode): Fix bad C++ that
  6194. does not compile with gcc-linux.
  6195. * UIProcess/Plugins/PluginProcessProxy.cpp:
  6196. (WebKit::PluginProcessProxy::pluginProcessCrashedOrFailedToLaunch):
  6197. (WebKit::PluginProcessProxy::didCreateWebProcessConnection):
  6198. * UIProcess/Plugins/PluginProcessProxy.h:
  6199. * UIProcess/Plugins/PluginProcessProxy.messages.in:
  6200. * WebKit2.pro: Move implementation that does not need external
  6201. visibility from WebKit2API.pri. Adding the headers as well.
  6202. * WebKit2API.pri:
  6203. * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
  6204. (WebKit::PluginProcessConnectionManager::getPluginProcessConnection):
  6205. * WebProcess/WebPage/WebPage.cpp:
  6206. 2011-04-13 James Robinson <jamesr@chromium.org>
  6207. Reviewed by Simon Fraser.
  6208. Allow setting composited backing stores for scrollbars and scroll corners
  6209. https://bugs.webkit.org/show_bug.cgi?id=57202
  6210. Update WebPopupMenuProxyWin to reflect ScrollableArea interface changes.
  6211. * UIProcess/win/WebPopupMenuProxyWin.h:
  6212. (WebKit::WebPopupMenuProxyWin::invalidateScrollCornerRect):
  6213. (WebKit::WebPopupMenuProxyWin::scrollCornerPresent):
  6214. (WebKit::WebPopupMenuProxyWin::scrollCornerRect):
  6215. 2011-04-13 Jon Lee <jonlee@apple.com>
  6216. Reviewed by Maciej Stachowiak.
  6217. REGRESSION(r81880): Paste menu is disabled for many edit fields (yahoo and google search, yahoo mail msg, forms, etc)
  6218. https://bugs.webkit.org/show_bug.cgi?id=58284
  6219. <rdar://problem/9246149>
  6220. * WebProcess/WebPage/WebPage.cpp:
  6221. (WebKit::WebPage::setFocused): Check for whether we are not supposed to be focused AND whether our platform behavior dictates to clear out the selection
  6222. 2011-04-13 Dan Bernstein <mitz@apple.com>
  6223. Reviewed by Sam Weinig.
  6224. Fixed a bug where WKView changed the cursor when the mouse was moving over other views.
  6225. * UIProcess/API/mac/WKView.mm:
  6226. (-[WKView mouseMoved:]): If getting this message because this view is the first responder,
  6227. ignore it unless it is inside the visible rect.
  6228. 2011-04-13 Enrica Casucci <enrica@apple.com>
  6229. Reviewed by Dan Bernstein.
  6230. Should not rely on WKEditableLinkBehavior being in synch
  6231. with WebCore::EditableLinkBehavior.
  6232. https://bugs.webkit.org/show_bug.cgi?id=58473
  6233. Adding conversion routines.
  6234. * UIProcess/API/C/WKAPICast.h:
  6235. (WebKit::toAPI):
  6236. (WebKit::toEditableLinkBehavior):
  6237. * UIProcess/API/C/WKPreferences.cpp:
  6238. (WKPreferencesSetEditableLinkBehavior):
  6239. (WKPreferencesGetEditableLinkBehavior):
  6240. 2011-04-13 Anders Carlsson <andersca@apple.com>
  6241. Reviewed by Dan Bernstein.
  6242. After closing the last window, re-opening my last visited website is over 2X slower
  6243. https://bugs.webkit.org/show_bug.cgi?id=58488
  6244. <rdar://problem/9233518>
  6245. Give the web process a 60 second termination timeout.
  6246. * WebProcess/WebProcess.cpp:
  6247. (WebKit::WebProcess::WebProcess):
  6248. 2011-04-13 Anders Carlsson <andersca@apple.com>
  6249. Reviewed by Adam Roben.
  6250. Convert WebProcess over to using disableTermination/enableTermination
  6251. https://bugs.webkit.org/show_bug.cgi?id=58485
  6252. * PluginProcess/PluginProcess.cpp:
  6253. (WebKit::PluginProcess::getSitesWithData):
  6254. (WebKit::PluginProcess::clearSiteData):
  6255. Use the LocalTerminationDisabler RAII class.
  6256. * Shared/ChildProcess.h:
  6257. (WebKit::ChildProcess::LocalTerminationDisabler::LocalTerminationDisabler):
  6258. (WebKit::ChildProcess::LocalTerminationDisabler::~LocalTerminationDisabler):
  6259. Add RAII class for calling disableTermination/enableTermination.
  6260. * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
  6261. (WebKit::WebApplicationCacheManager::getApplicationCacheOrigins):
  6262. (WebKit::WebApplicationCacheManager::deleteEntriesForOrigin):
  6263. (WebKit::WebApplicationCacheManager::deleteAllEntries):
  6264. Use the LocalTerminationDisabler RAII class.
  6265. * WebProcess/Cookies/WebCookieManager.cpp:
  6266. (WebKit::WebCookieManager::getHostnamesWithCookies):
  6267. (WebKit::WebCookieManager::deleteCookiesForHostname):
  6268. (WebKit::WebCookieManager::deleteAllCookies):
  6269. (WebKit::WebCookieManager::startObservingCookieChanges):
  6270. (WebKit::WebCookieManager::setHTTPCookieAcceptPolicy):
  6271. (WebKit::WebCookieManager::getHTTPCookieAcceptPolicy):
  6272. Use the LocalTerminationDisabler RAII class.
  6273. * WebProcess/Downloads/Download.cpp:
  6274. (WebKit::Download::Download):
  6275. Call disableTermination().
  6276. (WebKit::Download::~Download):
  6277. Call enableTermination().
  6278. * WebProcess/Downloads/DownloadManager.cpp:
  6279. (WebKit::DownloadManager::downloadFinished):
  6280. Remove call to terminateIfPossible.
  6281. * WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp:
  6282. (WebKit::WebKeyValueStorageManager::getKeyValueStorageOrigins):
  6283. (WebKit::WebKeyValueStorageManager::deleteEntriesForOrigin):
  6284. (WebKit::WebKeyValueStorageManager::deleteAllEntries):
  6285. Use the LocalTerminationDisabler RAII class.
  6286. * WebProcess/MediaCache/WebMediaCacheManager.cpp:
  6287. (WebKit::WebMediaCacheManager::getHostnamesWithMediaCache):
  6288. (WebKit::WebMediaCacheManager::clearCacheForHostname):
  6289. (WebKit::WebMediaCacheManager::clearCacheForAllHostnames):
  6290. Use the LocalTerminationDisabler RAII class.
  6291. * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
  6292. (WebKit::WebResourceCacheManager::getCacheOrigins):
  6293. (WebKit::WebResourceCacheManager::clearCacheForOrigin):
  6294. (WebKit::WebResourceCacheManager::clearCacheForAllOrigins):
  6295. Use the LocalTerminationDisabler RAII class.
  6296. * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
  6297. (WebKit::WebDatabaseManager::getDatabasesByOrigin):
  6298. (WebKit::WebDatabaseManager::getDatabaseOrigins):
  6299. (WebKit::WebDatabaseManager::deleteDatabaseWithNameForOrigin):
  6300. (WebKit::WebDatabaseManager::deleteDatabasesForOrigin):
  6301. (WebKit::WebDatabaseManager::deleteAllDatabases):
  6302. (WebKit::WebDatabaseManager::setQuotaForOrigin):
  6303. Use the LocalTerminationDisabler RAII class.
  6304. * WebProcess/WebProcess.cpp:
  6305. (WebKit::WebProcess::createWebPage):
  6306. Call disableTermination().
  6307. (WebKit::WebProcess::removeWebPage):
  6308. Call enableTermination().
  6309. (WebKit::WebProcess::shouldTerminate):
  6310. Move logic from terminateIfPossible over here.
  6311. (WebKit::WebProcess::terminate):
  6312. Move logic from terminateIfPossible over here.
  6313. (WebKit::WebProcess::getSitesWithPluginData):
  6314. (WebKit::WebProcess::clearPluginSiteData):
  6315. Use the LocalTerminationDisabler RAII class.
  6316. * WebProcess/WebProcess.h:
  6317. Publically inherit from ChildProcess, LocalTerminationDisabler needs to be accessible
  6318. from the WebProcess class.
  6319. 2011-04-13 Steve Falkenburg <sfalken@apple.com>
  6320. Reviewed by Adam Roben.
  6321. Follow-up to: WebKit2 will load two copies of the same plugin, but should not
  6322. https://bugs.webkit.org/show_bug.cgi?id=49075
  6323. Use pathGetFileName instead of Win32 PathFindFileNameW.
  6324. * UIProcess/Plugins/win/PluginInfoStoreWin.cpp:
  6325. (WebKit::PluginInfoStore::shouldUsePlugin):
  6326. 2011-04-13 Sam Weinig <sam@webkit.org>
  6327. Reviewed by Gavin Barraclough.
  6328. WebKit2 doesn't keep overlay scrollers shown while scroll gesture held
  6329. <rdar://problem/9260518>
  6330. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  6331. (InitWebCoreSystemInterface):
  6332. Initialize new WKSI functions.
  6333. 2011-04-13 Steve Falkenburg <sfalken@apple.com>
  6334. Reviewed by Oliver Hunt.
  6335. WebKit2 will load two copies of the same plugin, but should not
  6336. https://bugs.webkit.org/show_bug.cgi?id=49075
  6337. <rdar://problem/8635947>
  6338. * UIProcess/Plugins/win/PluginInfoStoreWin.cpp:
  6339. (WebKit::PluginInfoStore::shouldUsePlugin): Don't use a plug-in if we've already allowed a plug-in with the same filename.
  6340. 2011-04-13 Timothy Hatcher <timothy@apple.com>
  6341. Hide the dictionary panel when navigating or crashing.
  6342. <rdar://problem/9261202>
  6343. Reviewed by Sam Weinig.
  6344. * UIProcess/API/mac/PageClientImpl.h:
  6345. * UIProcess/API/mac/PageClientImpl.mm:
  6346. (WebKit::PageClientImpl::dismissDictionaryLookupPanel): Added. Call WKHideWordDefinitionWindow.
  6347. * UIProcess/PageClient.h:
  6348. * UIProcess/WebPageProxy.cpp:
  6349. (WebKit::WebPageProxy::didCommitLoadForFrame): Call PageClient::dismissDictionaryLookupPanel.
  6350. (WebKit::WebPageProxy::processDidCrash): Call dismissCorrectionPanel and PageClient::dismissDictionaryLookupPanel.
  6351. 2011-04-13 Anders Carlsson <andersca@apple.com>
  6352. Reviewed by Adam Roben.
  6353. Add support for disabling/enabling termination to ChildProcess
  6354. https://bugs.webkit.org/show_bug.cgi?id=58476
  6355. Add ChildProcess::disableTermination and ChildProcess::enableTermination and convert
  6356. the PluginProcess class over to using them.
  6357. * PluginProcess/PluginProcess.cpp:
  6358. (WebKit::PluginProcess::PluginProcess):
  6359. The child process now takes a terminationTimeout argument. Get rid of the shutdown timer.
  6360. (WebKit::PluginProcess::removeWebProcessConnection):
  6361. Call enableTermination().
  6362. (WebKit::PluginProcess::shouldTerminate):
  6363. Always return true.
  6364. (WebKit::PluginProcess::createWebProcessConnection):
  6365. Call disableTermination().
  6366. (WebKit::PluginProcess::getSitesWithData):
  6367. Call disableTermination()/enableTermination().
  6368. (WebKit::PluginProcess::clearSiteData):
  6369. Ditto.
  6370. * Shared/ChildProcess.cpp:
  6371. (WebKit::ChildProcess::disableTermination):
  6372. Increment the counter and stop the timer.
  6373. (WebKit::ChildProcess::enableTermination):
  6374. Decrement the counter; if it's zero, start the timer.
  6375. (WebKit::ChildProcess::terminationTimerFired):
  6376. Call shouldTerminate(). If it returns true, call terminate().
  6377. (WebKit::ChildProcess::terminate):
  6378. Call RunLoop::quit().
  6379. * WebProcess/WebProcess.cpp:
  6380. (WebKit::WebProcess::WebProcess):
  6381. Just initialize the termination timeout to 0 for now.
  6382. (WebKit::WebProcess::shouldTerminate):
  6383. Always return true; this isn't used yet.
  6384. * WebProcess/WebProcess.h:
  6385. 2011-04-13 Enrica Casucci <enrica@apple.com>
  6386. Reviewed by Dan Bernstein.
  6387. REGRESSION: Links are clickable when a contentEditable is set to true.
  6388. https://bugs.webkit.org/show_bug.cgi?id=58473
  6389. <rdar://problem/9256793>
  6390. Added support for editable link behavior property.
  6391. * Shared/WebPreferencesStore.cpp:
  6392. * Shared/WebPreferencesStore.h:
  6393. * UIProcess/API/C/WKPreferences.cpp:
  6394. (WKPreferencesSetEditableLinkBehavior):
  6395. (WKPreferencesGetEditableLinkBehavior):
  6396. * UIProcess/API/C/WKPreferencesPrivate.h:
  6397. * WebProcess/WebPage/WebPage.cpp:
  6398. (WebKit::WebPage::updatePreferences):
  6399. 2011-04-12 Alexey Proskuryakov <ap@apple.com>
  6400. Reviewed by Oliver Hunt.
  6401. REGRESSION (WebKit2): Input methods are active in non-editable content
  6402. https://bugs.webkit.org/show_bug.cgi?id=58404
  6403. <rdar://problem/9275940>
  6404. * UIProcess/API/mac/WKView.mm:
  6405. (-[WKView insertText:]): Re-add the old variant of this function, because it's not only part
  6406. of deprecated NSTextInput protocol, but it's also part of NSResponder, and it's called when
  6407. the input context in nil.
  6408. (-[WKView inputContext]): Return nil when not in editable content.
  6409. 2011-04-12 Brady Eidson <beidson@apple.com>
  6410. Reviewed by Maciej Stachowiak.
  6411. <rdar://problem/9029193> and https://bugs.webkit.org/show_bug.cgi?id=58406
  6412. Bringing up the context menu on a link might also follow the link.
  6413. This patch adds a flag that is set just before the WebProcess tells the UIProcess to show a context menu.
  6414. As long as this flag is set, the WebProcess will ignore any other mouse events that might have queued up
  6415. by the time the UIProcess gets around to showing the menu.
  6416. After the UIProcess is done showing the menu, it messages back telling the WebProcess to clear the flag
  6417. and resume normal MouseEvent handling.
  6418. * UIProcess/WebPageProxy.cpp:
  6419. (WebKit::WebPageProxy::showContextMenu): No matter what internalShowContextMenu does, always notify
  6420. the WebProcess that any context menu is now hidden.
  6421. (WebKit::WebPageProxy::internalShowContextMenu):
  6422. * UIProcess/WebPageProxy.h:
  6423. * WebProcess/WebPage/WebContextMenu.cpp:
  6424. (WebKit::WebContextMenu::show): Since we're telling the UIProcess to show the menu, tell the WebPage a
  6425. context menu is showing so it will stop handling mouse events.
  6426. * WebProcess/WebPage/WebPage.cpp:
  6427. (WebKit::WebPage::WebPage):
  6428. (WebKit::WebPage::mouseEvent): Don't try to handle mouse events if a context menu is flagged as showing.
  6429. Add accessors to twiddle the "context menu showing" flag:
  6430. * WebProcess/WebPage/WebPage.h:
  6431. (WebKit::WebPage::contextMenuShowing):
  6432. (WebKit::WebPage::contextMenuHidden):
  6433. * WebProcess/WebPage/WebPage.messages.in: Add the ContextMenuHidden message.
  6434. 2011-04-12 Sam Weinig <sam@webkit.org>
  6435. Reviewed by Maciej Stachowiak.
  6436. Quarantine related sandbox denial when downloading files
  6437. <rdar://problem/9203736>
  6438. * WebProcess/com.apple.WebProcess.sb:
  6439. 2011-04-12 Sam Weinig <sam@webkit.org>
  6440. Reviewed by Anders Carlsson.
  6441. Sandbox violations dragging an image to the desktop.
  6442. <rdar://problem/9261834>
  6443. * WebProcess/com.apple.WebProcess.sb:
  6444. 2011-04-12 Sam Weinig <sam@webkit.org>
  6445. Reviewed by Cameron Zwarich.
  6446. Sandbox violations trying to access ~/Library/Keyboard Layouts and ~/Library/Input Methods
  6447. <rdar://problem/8973159>
  6448. * WebProcess/com.apple.WebProcess.sb:
  6449. 2011-04-12 Enrica Casucci <enrica@apple.com>
  6450. Reviewed by Alexey Proskuryakov and Sam Weinig.
  6451. Implement non-activating clicks to allow dragging out of a background window.
  6452. https://bugs.webkit.org/show_bug.cgi?id=55053
  6453. <rdar://problem/9042197>
  6454. Added methods to WKView to support non activating click. Unfortunately both
  6455. methods require a synchronous call to the WebProcess to decide what to do.
  6456. acceptFirstMouse is called only if shouldDelayWindowOrderingForEvent returns
  6457. true. In order to minimize the number of synchronous calls, we send the request
  6458. only if our window is not the key window.
  6459. * UIProcess/API/mac/WKView.mm:
  6460. (-[WKView acceptsFirstMouse:]):
  6461. (-[WKView shouldDelayWindowOrderingForEvent:]):
  6462. * UIProcess/WebPageProxy.h:
  6463. * UIProcess/mac/WebPageProxyMac.mm:
  6464. (WebKit::WebPageProxy::shouldDelayWindowOrderingForEvent):
  6465. (WebKit::WebPageProxy::acceptsFirstMouse):
  6466. * WebProcess/WebPage/WebPage.h:
  6467. * WebProcess/WebPage/WebPage.messages.in:
  6468. * WebProcess/WebPage/mac/WebPageMac.mm:
  6469. (WebKit::WebPage::shouldDelayWindowOrderingEvent):
  6470. (WebKit::WebPage::acceptsFirstMouse):
  6471. 2011-04-12 Alexey Proskuryakov <ap@apple.com>
  6472. Reviewed by Oliver Hunt.
  6473. Crash when serializing a null AttributedString
  6474. https://bugs.webkit.org/show_bug.cgi?id=58393
  6475. <rdar://problem/9275326>
  6476. * Shared/mac/AttributedString.mm:
  6477. (WebKit::AttributedString::encode):
  6478. (WebKit::AttributedString::decode):
  6479. Prefix the serialized value with an isNull tag.
  6480. 2011-04-12 Enrica Casucci <enrica@apple.com>
  6481. Reviewed by Alexey Proskuryakov.
  6482. Infinite recursion in WebHTMLView executeSavedKeypressCommands.
  6483. https://bugs.webkit.org/show_bug.cgi?id=58382
  6484. <rdar://problem/9239370>
  6485. Execution of some editing commands could trigger a call to selectedRange that
  6486. internally calls executeSavedKeypressCommands creating an infinite recursion.
  6487. * UIProcess/API/mac/WKView.mm:
  6488. (-[WKView _executeSavedKeypressCommands]): Added flag to avoid recursion.
  6489. (-[WKView _interpretKeyEvent:withCachedTextInputState:savingCommandsTo:WebCore::]):
  6490. Added flag initialization.
  6491. 2011-04-12 Chris Marrin <cmarrin@apple.com>
  6492. Reviewed by Simon Fraser.
  6493. Page tears and stutters in WebKit2 when page is > 2048 pixels wide
  6494. https://bugs.webkit.org/show_bug.cgi?id=58330
  6495. Turn off tiling for nonCompositedContentLayer to avoid tearing when
  6496. scrolling very wide (> 2048) windows.
  6497. * WebProcess/WebPage/ca/LayerTreeHostCA.cpp:
  6498. (WebKit::LayerTreeHostCA::initialize):
  6499. 2011-04-12 Anders Carlsson <andersca@apple.com>
  6500. Reviewed by Adam Roben.
  6501. Assertion in DrawingAreaImpl::resumePainting() (m_isPaintingSuspended) when clicking a link at twitter.com
  6502. https://bugs.webkit.org/show_bug.cgi?id=58377
  6503. <rdar://problem/8976531>
  6504. Remove the assertion.
  6505. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  6506. (WebKit::DrawingAreaImpl::resumePainting):
  6507. 2011-04-11 Stephanie Lewis <slewis@apple.com>
  6508. Reviewed by Oliver Hunt.
  6509. https://bugs.webkit.org/show_bug.cgi?id=58280
  6510. <rdar://problem/9252824> javascript in an inconsistent state due to serialization returning an un-handled exception
  6511. Change use of SerializedScriptValue::Create to use the same api as the rest of WebKit2. This has the benefit
  6512. of handling any exceptions so Javascript is not in an inconsistent state.
  6513. * Shared/API/c/WKSerializedScriptValue.h: fix a typo
  6514. * WebProcess/WebPage/WebPage.cpp:
  6515. (WebKit::WebPage::runJavaScriptInMainFrame):
  6516. 2011-04-12 Jeff Miller <jeffm@apple.com>
  6517. Reviewed by Adam Roben.
  6518. WebKit2: Pressing Tab in Web Inspector's console does not cycle through completion options
  6519. https://bugs.webkit.org/show_bug.cgi?id=56020
  6520. Safari was always calling TranslateMessage() on key events since it has no way to know whether
  6521. WebKit handled the event without a PageUIClient (which Safari only installs on pages inside
  6522. a Safari window), which was generating a WM_CHAR message containing the tab in this case. The fix
  6523. is for Safari to never call TranslateMessage() on key events outside of a Safari window, but this
  6524. means the WebPageProxy needs to do this for unhandled key events if there is no didNotHandleKeyEvent
  6525. callback in the PageUIClient.
  6526. * UIProcess/WebPageProxy.cpp:
  6527. (WebKit::WebPageProxy::didReceiveEvent): Call TranslateMessage() on Windows for unhandled key events that can't be handled by the PageUIClient.
  6528. * UIProcess/WebUIClient.cpp:
  6529. (WebKit::WebUIClient::canNotHandleKeyEvent): Added.
  6530. * UIProcess/WebUIClient.h: Added canNotHandleKeyEvent().
  6531. 2011-04-12 Alice Liu <alice.liu@apple.com>
  6532. Reviewed by Sam Weinig.
  6533. https://bugs.webkit.org/show_bug.cgi?id=58292
  6534. Provide new setting to allow site icon loading despite disabling automatic image loading in general.
  6535. * Shared/WebPreferencesStore.h: Add macro for setting default value.
  6536. * UIProcess/API/C/WKPreferences.cpp:
  6537. (WKPreferencesSetLoadsSiteIconsIgnoringImageLoadingPreference): Added setter.
  6538. (WKPreferencesGetLoadsSiteIconsIgnoringImageLoadingPreference): Added getter.
  6539. * UIProcess/API/C/WKPreferences.h:
  6540. * WebProcess/WebPage/WebPage.cpp:
  6541. (WebKit::WebPage::updatePreferences): Add to list of WebCore settings that get propagated to WebKit preferences.
  6542. 2011-04-12 Jessie Berlin <jberlin@apple.com>
  6543. Reviewed by Anders Carlsson.
  6544. WebKit2: Spelling and Grammar Checking: Make sure to remove the markings from the document
  6545. when spelling and/or grammar checking is disabled.
  6546. https://bugs.webkit.org/show_bug.cgi?id=58350
  6547. * UIProcess/API/mac/WKView.mm:
  6548. (-[WKView toggleContinuousSpellChecking:]):
  6549. Move the call to unmark the errors to the WebProcess.
  6550. (-[WKView setGrammarCheckingEnabled:]):
  6551. Ditto.
  6552. (-[WKView toggleGrammarChecking:]):
  6553. Ditto.
  6554. * UIProcess/WebPageProxy.cpp:
  6555. Remove unused functions.
  6556. * UIProcess/WebPageProxy.h:
  6557. Ditto.
  6558. * WebProcess/WebPage/WebPage.messages.in:
  6559. Ditto.
  6560. * WebProcess/WebPage/WebPage.h:
  6561. * WebProcess/WebProcess.cpp:
  6562. (WebKit::WebProcess::setTextCheckerState):
  6563. If grammar or spelling checking is disabled, unmark all the pages.
  6564. Doing it here allows makes it possible to unmark all pages in a cross-platform way that is
  6565. triggered both by selecting the the context menu items and by any other methods of updating
  6566. the enabled / disabled state.
  6567. 2011-04-12 Anders Carlsson <andersca@apple.com>
  6568. Reviewed by Sam Weinig.
  6569. Cisco Meeting Center will not download or launch from Safari
  6570. https://bugs.webkit.org/show_bug.cgi?id=58366
  6571. <rdar://problem/8987139>
  6572. It's OK if a plug-in has less (or more) MIME type descriptions than actual MIME types.
  6573. * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
  6574. (WebKit::getPluginInfoFromCarbonResources):
  6575. 2011-04-12 Anders Carlsson <andersca@apple.com>
  6576. Reviewed by Sam Weinig.
  6577. Call PluginControllerProxy::platformGeometryDidChange before Plugin::geometryDidChange
  6578. https://bugs.webkit.org/show_bug.cgi?id=58361
  6579. Since Plugin::geometryDidChange ends up calling plug-in code it can resize the plug-in which causes
  6580. platformGeometryDidChange to be called with the wrong rect.
  6581. * PluginProcess/PluginControllerProxy.cpp:
  6582. (WebKit::PluginControllerProxy::geometryDidChange):
  6583. Call platformGeometryDidChange.
  6584. * PluginProcess/PluginControllerProxy.h:
  6585. * PluginProcess/mac/PluginControllerProxyMac.mm:
  6586. (WebKit::PluginControllerProxy::platformGeometryDidChange):
  6587. Remove the parameters to platformGeometryDidChange and just use m_frameRect instead.
  6588. 2011-04-12 Anders Carlsson <andersca@apple.com>
  6589. Reviewed by Sam Weinig.
  6590. Move three Mac specific functions to PluginControllerProxyMac.mm.
  6591. 2011-04-12 Anders Carlsson <andersca@apple.com>
  6592. Reviewed by Sam Weinig.
  6593. Cache the window and plug-in element NPObjects
  6594. https://bugs.webkit.org/show_bug.cgi?id=58355
  6595. * PluginProcess/PluginControllerProxy.cpp:
  6596. (WebKit::PluginControllerProxy::PluginControllerProxy):
  6597. (WebKit::PluginControllerProxy::~PluginControllerProxy):
  6598. (WebKit::PluginControllerProxy::windowScriptNPObject):
  6599. (WebKit::PluginControllerProxy::pluginElementNPObject):
  6600. * PluginProcess/PluginControllerProxy.h:
  6601. 2011-04-12 Alejandro G. Castro <alex@igalia.com>
  6602. Fixed GTK compilation after r83454.
  6603. * UIProcess/gtk/WebView.cpp:
  6604. (WebKit::WebView::findStringInCustomRepresentation):
  6605. (WebKit::WebView::countStringMatchesInCustomRepresentation):
  6606. * UIProcess/gtk/WebView.h:
  6607. 2011-04-11 Daniel Bates <dbates@webkit.org>
  6608. Attempt to fix the Qt Linux Release build after changeset 83550 <http://trac.webkit.org/changeset/83550>
  6609. (https://bugs.webkit.org/show_bug.cgi?id=54159).
  6610. * WebKit2API.pri: Append UIProcess/API/C/WKResourceCacheManager.cpp to the list WEBKIT2_API_SOURCES.
  6611. 2011-04-11 Sam Weinig <sam@webkit.org>
  6612. Reviewed by Anders Carlsson.
  6613. Move focus management out of WebKit via the UIClient
  6614. <rdar://problem/8784068>
  6615. https://bugs.webkit.org/show_bug.cgi?id=58278
  6616. * UIProcess/API/C/WKPage.h:
  6617. * UIProcess/API/mac/PageClientImpl.h:
  6618. * UIProcess/API/mac/PageClientImpl.mm:
  6619. * UIProcess/API/qt/qwkpage.cpp:
  6620. (QWKPage::QWKPage):
  6621. * UIProcess/API/qt/qwkpage_p.h:
  6622. * UIProcess/PageClient.h:
  6623. * UIProcess/WebPageProxy.cpp:
  6624. (WebKit::WebPageProxy::setFocus):
  6625. * UIProcess/WebUIClient.cpp:
  6626. (WebKit::WebUIClient::focus):
  6627. (WebKit::WebUIClient::unfocus):
  6628. * UIProcess/WebUIClient.h:
  6629. * UIProcess/gtk/WebView.cpp:
  6630. * UIProcess/gtk/WebView.h:
  6631. * UIProcess/win/WebView.h:
  6632. Remove PageClient::setFocus() in favor of WebUIClient::focus and WebUIClient::unfocus.
  6633. 2011-04-11 Alexey Proskuryakov <ap@apple.com>
  6634. Reviewed by Maciej Stachowiak.
  6635. WebKit2: Cannot use Ctrl-Delete as a custom keyboard shortcut
  6636. https://bugs.webkit.org/show_bug.cgi?id=58265
  6637. <rdar://problem/9221468>
  6638. * WebProcess/WebPage/WebPage.cpp:
  6639. (WebKit::WebPage::keyEvent): Added a comment explaining that doing work after DOM event
  6640. dispatch isn't great.
  6641. * WebProcess/WebPage/mac/WebPageMac.mm:
  6642. (WebKit::WebPage::performNonEditingBehaviorForSelector): Added a comment explaining how this
  6643. might be moved down to WebCore.
  6644. (WebKit::WebPage::performDefaultBehaviorForKeyEvent): This is now empty, since both Space
  6645. and Backspace behaviors are implemented in WebCore.
  6646. 2011-04-11 Anders Carlsson <andersca@apple.com>
  6647. Try to fix the Windows build.
  6648. * UIProcess/win/WebInspectorProxyWin.cpp:
  6649. (WebKit::WebInspectorProxy::platformCreateInspectorPage):
  6650. 2011-04-11 Alexey Proskuryakov <ap@apple.com>
  6651. Reviewed by Dan Bernstein.
  6652. REGRESSION (r83081): Esc key no longer removes current Kotoeri text operation
  6653. https://bugs.webkit.org/show_bug.cgi?id=58274
  6654. <rdar://problem/9263683>
  6655. * WebProcess/WebPage/mac/WebPageMac.mm: (WebKit::WebPage::getMarkedRange): Wrap the returned
  6656. temporary in RefPtr.
  6657. 2011-04-11 Anders Carlsson <andersca@apple.com>
  6658. Reviewed by Sam Weinig.
  6659. Remove m_urlAtProcessExit from WebPageProxy
  6660. https://bugs.webkit.org/show_bug.cgi?id=58275
  6661. Get rid of m_urlAtProcessExit and replace some zeros with nullptrs.
  6662. * UIProcess/WebPageProxy.cpp:
  6663. (WebKit::WebPageProxy::processDidCrash):
  6664. * UIProcess/WebPageProxy.h:
  6665. 2011-04-11 Anders Carlsson <andersca@apple.com>
  6666. Reviewed by Adam Roben.
  6667. Remove the WebContext member variable from WebPageProxy
  6668. https://bugs.webkit.org/show_bug.cgi?id=58271
  6669. <rdar://problem/9148125>
  6670. * UIProcess/API/C/WKPage.cpp:
  6671. (WKPageGetContext):
  6672. * UIProcess/WebPageProxy.cpp:
  6673. (WebKit::WebPageProxy::create):
  6674. (WebKit::WebPageProxy::WebPageProxy):
  6675. (WebKit::WebPageProxy::process):
  6676. (WebKit::WebPageProxy::reattachToWebProcess):
  6677. (WebKit::WebPageProxy::canShowMIMEType):
  6678. (WebKit::WebPageProxy::receivedPolicyDecision):
  6679. (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
  6680. (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame):
  6681. (WebKit::WebPageProxy::didFailProvisionalLoadForFrame):
  6682. (WebKit::WebPageProxy::didCommitLoadForFrame):
  6683. (WebKit::WebPageProxy::didFinishDocumentLoadForFrame):
  6684. (WebKit::WebPageProxy::didFinishLoadForFrame):
  6685. (WebKit::WebPageProxy::didFailLoadForFrame):
  6686. (WebKit::WebPageProxy::didSameDocumentNavigationForFrame):
  6687. (WebKit::WebPageProxy::didReceiveTitleForFrame):
  6688. (WebKit::WebPageProxy::didFirstLayoutForFrame):
  6689. (WebKit::WebPageProxy::didFirstVisuallyNonEmptyLayoutForFrame):
  6690. (WebKit::WebPageProxy::didRemoveFrameFromHierarchy):
  6691. (WebKit::WebPageProxy::didDisplayInsecureContentForFrame):
  6692. (WebKit::WebPageProxy::didRunInsecureContentForFrame):
  6693. (WebKit::WebPageProxy::decidePolicyForNavigationAction):
  6694. (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
  6695. (WebKit::WebPageProxy::decidePolicyForResponse):
  6696. (WebKit::WebPageProxy::unableToImplementPolicy):
  6697. (WebKit::WebPageProxy::willSubmitForm):
  6698. (WebKit::WebPageProxy::mouseDidMoveOverElement):
  6699. (WebKit::WebPageProxy::showContextMenu):
  6700. (WebKit::WebPageProxy::contextMenuItemSelected):
  6701. * UIProcess/WebPageProxy.h:
  6702. * UIProcess/WebProcessProxy.cpp:
  6703. (WebKit::WebProcessProxy::createWebPage):
  6704. * UIProcess/mac/WebInspectorProxyMac.mm:
  6705. (WebKit::WebInspectorProxy::platformCreateInspectorPage):
  6706. 2011-04-11 Eric Carlson <eric.carlson@apple.com>
  6707. Reviewed by Adam Roben.
  6708. Ignore context change callbacks when not on the main thread
  6709. https://bugs.webkit.org/show_bug.cgi?id=58256
  6710. <rdar://problem/9266090>
  6711. * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.cpp:
  6712. (WebKit::LayerTreeHostCAWin::contextDidChangeCallback): Do nothing when not called
  6713. on the main thread. This should only happen when no changes have actually
  6714. been committed to the context, eg. when a video frame has been added to an image
  6715. queue, so return without triggering animations etc.
  6716. 2011-04-11 Anders Carlsson <andersca@apple.com>
  6717. Reviewed by Sam Weinig.
  6718. First step towards simplifying WebPageProxy/WebProcessProxy/WebContext ownership
  6719. https://bugs.webkit.org/show_bug.cgi?id=58266
  6720. <rdar://problem/9148125>
  6721. With this patch, the WKView holds a strong reference to a WebPageProxy. The
  6722. WebPageProxy in turn holds a strong reference to its WebProcessProxy. Finally,
  6723. The WebProcessProxy holds a strong reference to its WebContext.
  6724. The WebContext holds a strong reference to the running WebProcessProxy which results
  6725. in a reference cycle that's broken when the web process exits.
  6726. The reason for is to avoid crashes where WebPageProxy::process() returns null if the web process
  6727. has crashed but has not yet been relaunched.
  6728. * UIProcess/WebContext.cpp:
  6729. (WebKit::WebContext::disconnectProcess):
  6730. Add comment.
  6731. (WebKit::WebContext::createWebPage):
  6732. Return a PassRefPtr.
  6733. (WebKit::WebContext::relaunchProcessIfNecessary):
  6734. Change this to return a WebPageProxy.
  6735. * UIProcess/WebPageProxy.cpp:
  6736. (WebKit::WebPageProxy::create):
  6737. This now takes a PassRefPtr<WebProcessProxy>.
  6738. (WebKit::WebPageProxy::WebPageProxy):
  6739. Ditto.
  6740. (WebKit::WebPageProxy::~WebPageProxy):
  6741. Call close() if necessary.
  6742. (WebKit::WebPageProxy::reattachToWebProcess):
  6743. Replace the current process with the new process.
  6744. * UIProcess/WebProcessProxy.cpp:
  6745. (WebKit::WebProcessProxy::create):
  6746. Take a PassRefPtr<WebContext>.
  6747. (WebKit::WebProcessProxy::WebProcessProxy):
  6748. Ditto.
  6749. (WebKit::WebProcessProxy::webPage):
  6750. Remove .get() now that the page map uses weak references.
  6751. (WebKit::WebProcessProxy::createWebPage):
  6752. This now returns the created web page proxy.
  6753. 2011-04-11 Adam Roben <aroben@apple.com>
  6754. Dispatch sent messages to windows owned by the web process when waiting a sync CoreIPC reply
  6755. On Windows, windowed plugins' HWNDs are created as children of the WKView's window. This
  6756. creates a cross-process window hierarchy, which in turn attaches the input states of the UI
  6757. process's and web process's main threads (as if ::AttachThreadInput has been called). Having
  6758. the input states attached means that changes to the input state (e.g., changing the focus
  6759. window) can result in synchronous window messages being sent between the processes. This can
  6760. result in deadlocks if the UI process changes the input state while handling a synchronous
  6761. CoreIPC message from the web process. Since the web process isn't running its message loop
  6762. while waiting for the reply, it never processes the messages Windows is sending it from the
  6763. UI process.
  6764. The solution taken in this patch is to continue to dispatch sent (not posted) messages to
  6765. windows created by the web process while waiting for a sync CoreIPC reply. Someday we can
  6766. hopefully reduce the number of cases in which the UI process modifies the thread's input
  6767. state while handling a synchronous message; see the bug for details.
  6768. Fixes <http://webkit.org/b/58239> <rdar://problem/8769302> REGRESSION (WebKit2): Deadlock
  6769. clicking Flash plugin
  6770. Reviewed by Anders Carlsson.
  6771. * Platform/CoreIPC/BinarySemaphore.h:
  6772. (CoreIPC::BinarySemaphore::event): Added. Simple getter to expose the underlying event
  6773. HANDLE.
  6774. * Platform/CoreIPC/Connection.cpp:
  6775. (CoreIPC::Connection::SyncMessageState::waitWhileDispatchingSentMessages): New Windows-only
  6776. function that is used instead of wait() so that sent messages will continue to be
  6777. dispatched.
  6778. (CoreIPC::Connection::waitForSyncReply): Use waitWhileDispatchingSentMessages instead of
  6779. wait on Windows. Our Client gives us the set of windows that need to have windows delivered
  6780. to them.
  6781. * Platform/CoreIPC/Connection.h: Added new
  6782. windowsToReceiveSentMessagesWhileWaitingForSyncReply function to Client.
  6783. * Platform/RunLoop.h: Added new dispatchSentMessagesUntil function to be used while waiting
  6784. for a sync CoreIPC reply.
  6785. * Platform/win/RunLoopWin.cpp:
  6786. (RunLoop::dispatchSentMessagesUntil): Added. If we have no windows to dispatch messages to,
  6787. then just wait on the semaphore. Otherwise spin a ::MsgWaitForMultipleObjectsEx loop to
  6788. detect when the semaphore is signaled, the timeout elapses, or sent messages are available,
  6789. and handle each case appropriately.
  6790. * UIProcess/WebProcessProxy.h: Added new CoreIPC::Connection::Client function.
  6791. * UIProcess/win/WebProcessProxyWin.cpp: Added.
  6792. (WebKit::WebProcessProxy::windowsToReceiveSentMessagesWhileWaitingForSyncReply): Just return
  6793. an empty Vector. The web process never modifies the thread's input state while responding to
  6794. a synchronous message, so we don't have anything to worry about here.
  6795. * WebProcess/WebProcess.h: Added new CoreIPC::Connection::Client function.
  6796. * WebProcess/win/WebProcessWin.cpp:
  6797. (WebKit::addWindowToVectorIfOwnedByCurrentThread): New helper function to be called by
  6798. ::EnumThreadWindows/::EnumChildWindows. Does what it says.
  6799. (WebKit::WebProcess::windowsToReceiveSentMessagesWhileWaitingForSyncReply): Added. Returns
  6800. all top-level windows created by this thread, descendants of those windows created by this
  6801. thread, and descendants of WKViews' windows created by this thread.
  6802. * win/WebKit2.vcproj: Added WebProcessProxyWin.cpp.
  6803. 2011-04-11 Jessie Berlin <jberlin@apple.com>
  6804. Reviewed by Anders Carlsson.
  6805. WebKit2: Implement TextChecker on Windows
  6806. https://bugs.webkit.org/show_bug.cgi?id=57862
  6807. Part 7: Implement getGuessesForWord, learnWord, and ignoreWord.
  6808. * UIProcess/API/C/win/WKTextChecker.cpp:
  6809. (WKTextCheckerChangeSpellingToWord):
  6810. * UIProcess/API/C/win/WKTextChecker.h:
  6811. * UIProcess/WebPageProxy.cpp:
  6812. (WebKit::WebPageProxy::changeSpellingToWord):
  6813. Make this function const since it does not modify the WebPageProxy and making it const
  6814. allows WebTextChecker::changeSpellingToWord to take a const WebPageProxy.
  6815. (WebKit::WebPageProxy::learnWord):
  6816. * UIProcess/WebPageProxy.h:
  6817. * UIProcess/TextChecker.h:
  6818. * UIProcess/win/TextCheckerWin.cpp:
  6819. (WebKit::TextChecker::getGuessesForWord):
  6820. Ask the TextCheckerClient for the guesses.
  6821. (WebKit::TextChecker::learnWord):
  6822. Tell the TextCheckerClient.
  6823. (WebKit::TextChecker::ignoreWord):
  6824. Ditto.
  6825. * UIProcess/gtk/TextCheckerGtk.cpp:
  6826. (WebKit::TextChecker::learnWord):
  6827. Add an unused param that is necessary for Windows.
  6828. * UIProcess/mac/TextCheckerMac.mm:
  6829. (WebKit::TextChecker::learnWord):
  6830. Ditto.
  6831. * UIProcess/qt/TextCheckerQt.cpp:
  6832. (WebKit::TextChecker::learnWord):
  6833. Ditto.
  6834. * UIProcess/win/WebTextChecker.cpp:
  6835. (WebKit::WebTextChecker::changeSpellingToWord):
  6836. Tell the page.
  6837. * UIProcess/win/WebTextChecker.h:
  6838. * UIProcess/win/WebTextCheckerClient.cpp:
  6839. (WebKit::WebTextCheckerClient::guessesForWord):
  6840. (WebKit::WebTextCheckerClient::learnWord):
  6841. (WebKit::WebTextCheckerClient::ignoreWord):
  6842. * UIProcess/win/WebTextCheckerClient.h:
  6843. 2011-04-11 Anders Carlsson <andersca@apple.com>
  6844. Reviewed by Sam Weinig.
  6845. Remove unused WebProcessProxy functions
  6846. https://bugs.webkit.org/show_bug.cgi?id=58262
  6847. * UIProcess/WebProcessProxy.cpp:
  6848. * UIProcess/WebProcessProxy.h:
  6849. 2011-04-11 Anders Carlsson <andersca@apple.com>
  6850. Reviewed by Sam Weinig.
  6851. Crash in WebPageProxy::countStringMatches
  6852. https://bugs.webkit.org/show_bug.cgi?id=58255
  6853. <rdar://problem/9243837>
  6854. * UIProcess/WebPageProxy.cpp:
  6855. (WebKit::WebPageProxy::countStringMatches):
  6856. Return early if the page is not valid.
  6857. 2011-04-11 Sam Weinig <sam@webkit.org>
  6858. Reviewed by Anders Carlsson.
  6859. WebKit2: links don’t update to look visited
  6860. <rdar://problem/8806254>
  6861. https://bugs.webkit.org/show_bug.cgi?id=58252
  6862. * WebProcess/WebProcess.cpp:
  6863. (WebKit::WebProcess::visitedLinkStateChanged):
  6864. (WebKit::WebProcess::allVisitedLinkStateChanged):
  6865. * WebProcess/WebProcess.h:
  6866. Remove use of vestigial sharedPageGroup and instead iterate set of
  6867. page groups in use by the process.
  6868. 2011-04-11 Brian Weinstein <bweinstein@apple.com>
  6869. Reviewed by Adam Roben.
  6870. WebKit2: Windows 7 Gestures Window Bounce shouldn't require a sync message
  6871. https://bugs.webkit.org/show_bug.cgi?id=58167
  6872. <rdar://problem/9259813>
  6873. Instead of making GestureDidScroll sync, have WebPageWin call from WebProcess ->
  6874. UIProcess when the gesture causes the page to scroll to the beginning or the
  6875. end of the document.
  6876. * UIProcess/PageClient.h:
  6877. * UIProcess/WebPageProxy.cpp:
  6878. (WebKit::WebPageProxy::gestureDidScroll): Not a sync message anymore.
  6879. (WebKit::WebPageProxy::setGestureScrollingLimitReached): Tell the page client that the gesture
  6880. scrolling limnit was reached.
  6881. * UIProcess/WebPageProxy.h:
  6882. * UIProcess/WebPageProxy.messages.in: Add a new message.
  6883. * UIProcess/win/WebView.cpp:
  6884. (WebKit::WebView::WebView): Initialize new variable.
  6885. (WebKit::WebView::onGesture): Use the state of the member variable, not the response from
  6886. the sync message.
  6887. * UIProcess/win/WebView.h:
  6888. (WebKit::WebView::setGestureScrollingLimitReached):
  6889. * WebProcess/WebPage/WebPage.h:
  6890. * WebProcess/WebPage/WebPage.messages.in:
  6891. * WebProcess/WebPage/win/WebPageWin.cpp:
  6892. (WebKit::scrollbarAtTopOfBottomOrDocument): Returns whether or not the scrollbar is at the
  6893. top or bottom of the document.
  6894. (WebKit::WebPage::gestureDidScroll): Track whether or not we started at the beginning
  6895. or end of the document, and whether or not we ended at the beginning or end of the document,
  6896. and send a message if the value changed.
  6897. 2011-04-04 Jer Noble <jer.noble@apple.com>
  6898. Reviewed by Maciej Stachowiak.
  6899. WK2: PDF: Find in page
  6900. https://bugs.webkit.org/show_bug.cgi?id=57765
  6901. Support searching text within PDF documents. Find requests must be routed from the
  6902. WebPageProxy, through the PageClient, and to the WKView, where they can be passed to
  6903. the PDFViewController.
  6904. * UIProcess/API/mac/PDFViewController.h:
  6905. * UIProcess/API/mac/PDFViewController.mm:
  6906. (_PDFSelectionsAreEqual): Copied from WebPDFView.
  6907. (-[WKPDFView _nextMatchFor:direction:caseSensitive:wrap:fromSelection:startInSelection:]): Copied from WebPDFView.
  6908. (-[WKPDFView _countMatches:caseSensitive:]): Added.
  6909. (WebKit::PDFViewController::findString): Added.
  6910. (WebKit::PDFViewController::countStringMatches): Added.
  6911. * UIProcess/PageClient.h:
  6912. * UIProcess/API/mac/PageClientImpl.h:
  6913. * UIProcess/API/mac/PageClientImpl.mm:
  6914. (WebKit::PageClientImpl::findStringInCustomRepresentation): Added.
  6915. (WebKit::PageClientImpl::countStringMatchesInCustomRepresentation): Added.
  6916. * UIProcess/API/mac/WKViewInternal.h:
  6917. * UIProcess/API/mac/WKView.mm:
  6918. (-[WKView _findStringInCustomRepresentation:withFindOptions:maxMatchCount:]): Added.
  6919. (-[WKView _countStringMatchesInCustomRepresentation:withFindOptions:maxMatchCount:]): Added.
  6920. * UIProcess/WebPageProxy.h: Moved a number of find-related functions from private: to public: so
  6921. they could be called from PDFViewController.
  6922. * UIProcess/WebPageProxy.cpp:
  6923. (WebKit::WebPageProxy::findString): Added.
  6924. (WebKit::WebPageProxy::countStringMatches): Added.
  6925. * UIProcess/win/WebView.cpp:
  6926. (WebKit::WebView::findStringInCustomRepresentation): Added stub.
  6927. (WebKit::WebView::countStringMatchesInCustomRepresentation): Ditto.
  6928. * UIProcess/win/WebView.h:
  6929. * UIProcess/API/qt/qwkpage_p.h:
  6930. (QWKPagePrivate::findStringInCustomRepresentation): Added stub.
  6931. (QWKPagePrivate::countStringMatchesInCustomRepresentation): Added stub.
  6932. 2011-04-11 Jessie Berlin <jberlin@apple.com>
  6933. Reviewed by Anders Carlsson.
  6934. WebKit2: Implement TextChecker on Windows
  6935. https://bugs.webkit.org/show_bug.cgi?id=57862
  6936. Part 6: Update the Spelling UI with the spelling and grammar mistakes.
  6937. * UIProcess/API/C/win/WKAPICastWin.h:
  6938. (WebKit::toAPI):
  6939. Make it possible to go from a WebCore::GrammarDetail to a WebGrammarDetail.
  6940. * UIProcess/API/C/win/WKGrammarDetail.cpp:
  6941. (WKGrammarDetailCreate):
  6942. (WKGrammarDetailGetLocation):
  6943. (WKGrammarDetailGetLength):
  6944. (WKGrammarDetailCopyGuesses):
  6945. (WKGrammarDetailCopyUserDescription):
  6946. * UIProcess/API/C/win/WKGrammarDetail.h:
  6947. * UIProcess/API/C/win/WKTextChecker.cpp:
  6948. (WKTextCheckerCheckSpelling):
  6949. Tell the WebTextChecker.
  6950. * UIProcess/API/C/win/WKTextChecker.h:
  6951. * UIProcess/WebPageProxy.cpp:
  6952. (WebKit::WebPageProxy::contextMenuItemSelected):
  6953. If the show/hide spelling UI is selected and the spelling UI is not showing, make sure to
  6954. advance to the next misspelling (in this case, the first).
  6955. This behavior matches that in WebCore and WKView.mm.
  6956. (WebKit::WebPageProxy::advanceToNextMisspelling):
  6957. Make this function const since it does not modify the WebPageProxy and making it const
  6958. allows WebTextChecker::checkSpelling to take a const WebPageProxy.
  6959. (WebKit::WebPageProxy::spellDocumentTag):
  6960. (WebKit::WebPageProxy::updateSpellingUIWithMisspelledWord):
  6961. (WebKit::WebPageProxy::updateSpellingUIWithGrammarString):
  6962. * UIProcess/WebPageProxy.h:
  6963. * UIProcess/TextChecker.h:
  6964. * UIProcess/win/TextCheckerWin.cpp:
  6965. (WebKit::TextChecker::uniqueSpellDocumentTag):
  6966. Tell the TextCheckerClient which WebPageProxy this tag is for.
  6967. (WebKit::TextChecker::updateSpellingUIWithMisspelledWord):
  6968. Tell the TextCheckerClient.
  6969. (WebKit::TextChecker::updateSpellingUIWithGrammarString):
  6970. Ditto.
  6971. * UIProcess/mac/TextCheckerMac.mm:
  6972. (WebKit::TextChecker::uniqueSpellDocumentTag):
  6973. Add the new argument that is unused by this port.
  6974. (WebKit::TextChecker::updateSpellingUIWithMisspelledWord):
  6975. Ditto.
  6976. (WebKit::TextChecker::updateSpellingUIWithGrammarString):
  6977. Ditto.
  6978. * UIProcess/gtk/TextCheckerGtk.cpp:
  6979. (WebKit::TextChecker::uniqueSpellDocumentTag):
  6980. Ditto.
  6981. (WebKit::TextChecker::updateSpellingUIWithMisspelledWord):
  6982. Ditto.
  6983. (WebKit::TextChecker::updateSpellingUIWithGrammarString):
  6984. Ditto.
  6985. * UIProcess/qt/TextCheckerQt.cpp:
  6986. (WebKit::TextChecker::uniqueSpellDocumentTag):
  6987. Ditto.
  6988. (WebKit::TextChecker::updateSpellingUIWithMisspelledWord):
  6989. Ditto.
  6990. (WebKit::TextChecker::updateSpellingUIWithGrammarString):
  6991. Ditto.
  6992. * UIProcess/win/WebGrammarDetail.cpp:
  6993. (WebKit::WebGrammarDetail::create):
  6994. (WebKit::WebGrammarDetail::WebGrammarDetail):
  6995. (WebKit::WebGrammarDetail::guesses):
  6996. * UIProcess/win/WebGrammarDetail.h:
  6997. (WebKit::WebGrammarDetail::location):
  6998. (WebKit::WebGrammarDetail::length):
  6999. (WebKit::WebGrammarDetail::userDescription):
  7000. * UIProcess/win/WebTextChecker.cpp:
  7001. (WebKit::WebTextChecker::checkSpelling):
  7002. Tell the page to advance to the next misspelling. This matches the WK1 WebView.cpp logic.
  7003. * UIProcess/win/WebTextChecker.h:
  7004. * UIProcess/win/WebTextCheckerClient.cpp:
  7005. (WebKit::WebTextCheckerClient::uniqueSpellDocumentTag):
  7006. (WebKit::WebTextCheckerClient::toggleSpellingUIIsShowing):
  7007. (WebKit::WebTextCheckerClient::updateSpellingUIWithMisspelledWord):
  7008. (WebKit::WebTextCheckerClient::updateSpellingUIWithGrammarString):
  7009. * UIProcess/win/WebTextCheckerClient.h:
  7010. 2011-04-10 Maciej Stachowiak <mjs@apple.com>
  7011. Not reviewed.
  7012. Remove extra inadvertantly commiteed changes from last change.
  7013. * WebProcess/com.apple.WebProcess.sb:
  7014. 2011-04-10 Maciej Stachowiak <mjs@apple.com>
  7015. Reviewed by Dan Bernstein.
  7016. REGRESSION: WebProcess spews sandboxing violations for outbound network traffic
  7017. https://bugs.webkit.org/show_bug.cgi?id=58215
  7018. <rdar://problem/9251695>
  7019. * WebProcess/com.apple.WebProcess.sb: Restore some previously removed rules.
  7020. 2011-04-10 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>
  7021. Reviewed by Eric Seidel.
  7022. Require no undefined symbols during compilation.
  7023. [Qt] [WK2] WebKitTestRunner, QtWebProcess and WTRInjectBundle should fail to compile when there's undefined symbols
  7024. https://bugs.webkit.org/show_bug.cgi?id=54896
  7025. Add -Wl,--no-undefined to catch missing symbols early.
  7026. * WebProcess.pro:
  7027. 2011-04-09 Geoffrey Garen <ggaren@apple.com>
  7028. Not reviewed.
  7029. Try recommitting some things svn left out of my last commit.
  7030. * WebProcess/Plugins/Netscape/NPJSObject.h:
  7031. 2011-04-09 Geoffrey Garen <ggaren@apple.com>
  7032. Not reviewed.
  7033. Try recommitting some things svn left out of my last commit.
  7034. * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
  7035. (WebKit::NPRuntimeObjectMap::evaluate):
  7036. 2011-04-08 Alexey Proskuryakov <ap@apple.com>
  7037. Reviewed by Darin Adler.
  7038. WebKit2: Safari doesn't respect cmd-arrows (and variations) as custom keyboard shortcuts
  7039. https://bugs.webkit.org/show_bug.cgi?id=58175
  7040. <rdar://problem/9060555>
  7041. The problem is that command handling should be different for events that come as keyDown:
  7042. and those that come as performKeyEquivalent:. WebKit1 only tries custom "key bindings"
  7043. when handling a keyDown:, letting a performKeyEquivalent: run through the whole responder
  7044. chain first.
  7045. This would be very difficult to implement in WebKit2 because of how it re-sends the same
  7046. event after web process handling. Luckily, we can both fix the bug and make the behavior
  7047. more robust by not hardcoding key combinations.
  7048. * WebProcess/WebPage/WebPage.h: Edit performNonEditingBehaviorForSelector.
  7049. * WebProcess/WebPage/mac/WebPageMac.mm:
  7050. (WebKit::WebPage::executeKeypressCommandsInternal): When executing commands, also try
  7051. executing editor commands in their non-editing meaning, which is usually scrolling.
  7052. (WebKit::WebPage::performNonEditingBehaviorForSelector): Naive implementation with a chain
  7053. of ifs, which is hopefully ok performance-wise for a dozen check.
  7054. (WebKit::WebPage::performDefaultBehaviorForKeyEvent): Only kept two commands here that I
  7055. couldn't easily move.
  7056. 2011-04-08 Jessie Berlin <jberlin@apple.com>
  7057. Reviewed by Anders Carlsson.
  7058. WebKit2: Show the substitutions panel on Mac and make sure the menu items titles are
  7059. updated correctly.
  7060. https://bugs.webkit.org/show_bug.cgi?id=58179
  7061. * UIProcess/API/mac/WKView.mm:
  7062. (-[WKView validateUserInterfaceItem:]):
  7063. The title of the context menu item should be opposite of whether or not the spelling panel
  7064. is visible.
  7065. * UIProcess/WebPageProxy.cpp:
  7066. (WebKit::WebPageProxy::contextMenuItemSelected):
  7067. If the "Show/Hide" Substitutions item is selected, call toggleSubstitutionsPanelIsShowing.
  7068. (WebKit::WebPageProxy::substitutionsPanelIsShowing):
  7069. Ask the TextChecker.
  7070. * UIProcess/WebPageProxy.h:
  7071. * UIProcess/WebPageProxy.messages.in:
  7072. * UIProcess/TextChecker.h:
  7073. * UIProcess/mac/TextCheckerMac.mm:
  7074. (WebKit::TextChecker::substitutionsPanelIsShowing):
  7075. As the shared NSSpellChecker if the substitutionsPanel is visible.
  7076. (WebKit::TextChecker::toggleSubstitutionsPanelIsShowing):
  7077. Order the substitutionsPanel out or front (copied from WKView.mm).
  7078. * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
  7079. (WebKit::WebEditorClient::substitutionsPanelIsShowing):
  7080. Send a sync message to the UI process to find out.
  7081. It needs to be sync because the editor code relies on the value returned.
  7082. 2011-04-08 Dan Bernstein <mitz@apple.com>
  7083. Reviewed by Adele Peterson.
  7084. Fixed a bug where right-to-left frames incorrectly reported that they were pinned to the left
  7085. when they were actually not.
  7086. * WebProcess/WebPage/WebPage.cpp:
  7087. (WebKit::WebPage::didChangeScrollOffsetForMainFrame): Do not assume that the minimum scroll offset
  7088. is zero, because it is not.
  7089. 2011-04-08 Anders Carlsson <andersca@apple.com>
  7090. Fix the Windows build.
  7091. * UIProcess/win/WebView.cpp:
  7092. (WebKit::WebView::Drop):
  7093. 2011-04-08 Jessie Berlin <jberlin@apple.com>
  7094. Reviewed by Anders Carlsson.
  7095. WebKit2: Implement TextChecker on Windows
  7096. https://bugs.webkit.org/show_bug.cgi?id=57862
  7097. Part 5: Implement the code show and hide the Spelling UI via the context menu item (both
  7098. Windows and Mac).
  7099. * UIProcess/API/C/win/WKTextChecker.h:
  7100. Add the new WKTextCheckerClient funtions.
  7101. * UIProcess/API/mac/WKView.mm:
  7102. (-[WKView validateUserInterfaceItem:]):
  7103. The title of the context menu item should be opposite of whether or not the spelling panel
  7104. is visible.
  7105. * UIProcess/WebPageProxy.cpp:
  7106. (WebKit::WebPageProxy::contextMenuItemSelected):
  7107. If the "Show/Hide Spelling and Grammar" item is selected, call toggleSpellingUIIsShowing.
  7108. (WebKit::WebPageProxy::spellingUIIsShowing):
  7109. Call through to TextChecker.
  7110. * UIProcess/WebPageProxy.h:
  7111. * UIProcess/WebPageProxy.messages.in:
  7112. * UIProcess/TextChecker.h:
  7113. * UIProcess/win/TextCheckerWin.cpp:
  7114. (WebKit::TextChecker::spellingUIIsShowing):
  7115. Call the TextCheckerClient.
  7116. (WebKit::TextChecker::toggleSpellingUIIsShowing):
  7117. Ditto.
  7118. * UIProcess/mac/TextCheckerMac.mm:
  7119. (WebKit::TextChecker::spellingUIIsShowing):
  7120. Ask the shared NSSpellChecker if the spellingPanel is visible.
  7121. (WebKit::TextChecker::toggleSpellingUIIsShowing):
  7122. Order the spellingPanel out or front (copied from WKView.mm).
  7123. * UIProcess/qt/TextCheckerQt.cpp:
  7124. (WebKit::TextChecker::spellingUIIsShowing):
  7125. Call notImplemented.
  7126. (WebKit::TextChecker::toggleSpellingUIIsShowing):
  7127. Ditto.
  7128. * UIProcess/gtk/TextCheckerGtk.cpp:
  7129. (WebKit::TextChecker::spellingUIIsShowing):
  7130. Ditto.
  7131. (WebKit::TextChecker::toggleSpellingUIIsShowing):
  7132. Ditto.
  7133. * UIProcess/win/WebTextCheckerClient.cpp:
  7134. (WebKit::WebTextCheckerClient::spellingUIIsShowing):
  7135. Call the client.
  7136. (WebKit::WebTextCheckerClient::toggleSpellingUIIsShowing):
  7137. Ditto.
  7138. * UIProcess/win/WebTextCheckerClient.h:
  7139. * WebProcess/WebCoreSupport/WebEditorClient.cpp:
  7140. (WebKit::WebEditorClient::spellingUIIsShowing):
  7141. Send a sync message to the UI process to find out.
  7142. It needs to be sync because the Editor code relies on the value returned.
  7143. 2011-04-08 Anders Carlsson <andersca@apple.com>
  7144. Reviewed by Dan Bernstein.
  7145. Sandboxing doesn't work if a local file is dropped on the content area
  7146. https://bugs.webkit.org/show_bug.cgi?id=58177
  7147. <rdar://problem/9019253>
  7148. When performing a drag and the dragging pasteboard contains a local file, create a
  7149. sandbox extension and pass it along. If we end up loading the file, the sandbox extension
  7150. tracker will consume the extension.
  7151. * UIProcess/API/mac/WKView.mm:
  7152. (maybeCreateSandboxExtensionFromPasteboard):
  7153. Add helper function.
  7154. (-[WKView performDragOperation:]):
  7155. Create a sandbox extension handle and pass it to performDrag.
  7156. * UIProcess/WebPageProxy.cpp:
  7157. (WebKit::WebPageProxy::dragEntered):
  7158. (WebKit::WebPageProxy::dragUpdated):
  7159. (WebKit::WebPageProxy::dragExited):
  7160. Pass an empty sandbox extension handle to performDragControllerAction.
  7161. (WebKit::WebPageProxy::performDrag):
  7162. Pass the sandbox extension handle along to performDragControllerAction.
  7163. (WebKit::WebPageProxy::performDragControllerAction):
  7164. Send along the sandbox extension handle.
  7165. * WebProcess/WebCoreSupport/WebDragClient.cpp:
  7166. (WebKit::WebDragClient::willPerformDragDestinationAction):
  7167. If the destination action is a load action, call WebPage::willPerformLoadDragDestinationAction.
  7168. * WebProcess/WebPage/WebPage.cpp:
  7169. (WebKit::WebPage::performDragControllerAction):
  7170. Create a sandbox extension.
  7171. (WebKit::WebPage::willPerformLoadDragDestinationAction):
  7172. If we have a sandbox extension, pass it along to the sandbox extension tracker.
  7173. (WebKit::WebPage::SandboxExtensionTracker::willPerformLoadDragDestinationAction):
  7174. Call setPendingProvisionalSandboxExtension.
  7175. (WebKit::WebPage::SandboxExtensionTracker::beginLoad):
  7176. Call setPendingProvisionalSandboxExtension.
  7177. (WebKit::WebPage::SandboxExtensionTracker::setPendingProvisionalSandboxExtension):
  7178. Factor code from beginLoad out into a separate function.
  7179. * WebProcess/WebPage/WebPage.messages.in:
  7180. PerformDragControllerAction now takes a sandbox extension handle.
  7181. 2011-04-08 Alice Liu <alice.liu@apple.com>
  7182. Reviewed by Adam Roben.
  7183. https://bugs.webkit.org/show_bug.cgi?id=58151
  7184. Crash after closing a Webview, in WebKit!WebCore::WindowMessageBroadcaster::SubclassedWndProc
  7185. * UIProcess/win/WebView.cpp:
  7186. (WebKit::WebView::close):
  7187. Resolve a difference between old WebKit WebView and WebKit2 WebView by destroying and clearing
  7188. out WebKit2 WebView's HWND when closing. Not doing so was causing the WebView to remain in the
  7189. list of WindowMessageBroadcaster listeners, and after closing the WebView, WindowMessageBroadcaster
  7190. would message a dead WebView and crash.
  7191. 2011-04-08 Anders Carlsson <andersca@apple.com>
  7192. Reviewed by Adam Roben.
  7193. Make the drag operations be different functions
  7194. https://bugs.webkit.org/show_bug.cgi?id=58169
  7195. Since we want performDrag to take a sandbox extension, separate the four
  7196. drag operations out into different functions. No functionality change.
  7197. * UIProcess/API/mac/WKView.mm:
  7198. (-[WKView draggingEntered:]):
  7199. (-[WKView draggingUpdated:]):
  7200. (-[WKView draggingExited:]):
  7201. (-[WKView performDragOperation:]):
  7202. * UIProcess/WebPageProxy.cpp:
  7203. (WebKit::WebPageProxy::dragEntered):
  7204. (WebKit::WebPageProxy::dragUpdated):
  7205. (WebKit::WebPageProxy::dragExited):
  7206. (WebKit::WebPageProxy::performDrag):
  7207. * UIProcess/WebPageProxy.h:
  7208. * UIProcess/win/WebView.cpp:
  7209. (WebKit::WebView::DragEnter):
  7210. (WebKit::WebView::DragOver):
  7211. (WebKit::WebView::DragLeave):
  7212. (WebKit::WebView::Drop):
  7213. 2011-04-08 Anders Carlsson <andersca@apple.com>
  7214. Reviewed by Adam Roben.
  7215. Parse 'DispatchOnConnectionQueue' in messages.in files
  7216. https://bugs.webkit.org/show_bug.cgi?id=58168
  7217. Handle parsing multiple, space-separated attributes in .messages.in files. Keep track of
  7218. 'DispatchOnConnectionQueue' and rename 'delayed' to 'Delayed'.
  7219. * Scripts/webkit2/messages.py:
  7220. * Scripts/webkit2/messages_unittest.py:
  7221. 2011-04-08 Alpha Lam <hclam@chromium.org>
  7222. Unreviewed, rolling out r83335.
  7223. http://trac.webkit.org/changeset/83335
  7224. https://bugs.webkit.org/show_bug.cgi?id=53556
  7225. GTK and QT bots are broken
  7226. * Configurations/FeatureDefines.xcconfig:
  7227. 2011-04-07 Anna Cavender <annacc@chromium.org>
  7228. Reviewed by Eric Carlson.
  7229. Setup ENABLE(TRACK) feature define
  7230. https://bugs.webkit.org/show_bug.cgi?id=53556
  7231. * Configurations/FeatureDefines.xcconfig:
  7232. 2011-04-07 Alexey Proskuryakov <ap@apple.com>
  7233. Reviewed by Darin Alder.
  7234. REGRESSION (WebKit2): AppKit thinks that web views don't support DocumentAccess
  7235. https://bugs.webkit.org/show_bug.cgi?id=58102
  7236. <rdar://problem/9223246>
  7237. * UIProcess/API/mac/WKView.h:
  7238. * UIProcess/API/mac/WKView.mm:
  7239. (-[WKView doCommandBySelector:]):
  7240. (-[WKView insertText:replacementRange:]):
  7241. (-[WKView validAttributesForMarkedText]):
  7242. (-[WKView setMarkedText:selectedRange:replacementRange:]):
  7243. (-[WKView attributedSubstringForProposedRange:actualRange:]):
  7244. (-[WKView firstRectForCharacterRange:actualRange:]):
  7245. Switch to NSTextInputClient, opting out of optimizations and optional features for now.
  7246. 2011-04-08 Siddharth Mathur <siddharth.mathur@nokia.com>
  7247. Reviewed by Martin Robinson.
  7248. [Qt][WK2][Symbian] Remove use of stack arrays with variable size
  7249. https://bugs.webkit.org/show_bug.cgi?id=57877
  7250. For better compiler portability, use new/delete for arrays when size
  7251. isn't known at compile time. Also fix one compiler warning about bitshift
  7252. operations on signed integer
  7253. * Platform/CoreIPC/unix/ConnectionUnix.cpp:
  7254. (CoreIPC::Connection::readyReadHandler):
  7255. (CoreIPC::Connection::sendOutgoingMessage):
  7256. 2011-04-08 Martin Robinson <mrobinson@igalia.com>
  7257. Reviewed by Xan Lopez.
  7258. [GTK] Fix the WebKit2 build for older versions of GTK+
  7259. https://bugs.webkit.org/show_bug.cgi?id=58095
  7260. * UIProcess/gtk/ChunkedUpdateDrawingAreaProxyGtk.cpp: Include the GtkVersioning.h header.
  7261. 2011-04-07 Balazs Kelemen <kbalazs@webkit.org>
  7262. Reviewed by Kenneth Rohde Christiansen.
  7263. [WK2][Qt][GTK] Introduce common use flag for the shared UNIX domain socket IPC implementation
  7264. https://bugs.webkit.org/show_bug.cgi?id=58030
  7265. Replace "PLATFORM(QT) || PLATFORM(GTK)" conditions in IPC code with
  7266. USE(UNIX_DOMAIN_SOCKETS).
  7267. * Platform/CoreIPC/Attachment.h:
  7268. * Platform/CoreIPC/Connection.h:
  7269. * Platform/SharedMemory.h:
  7270. 2011-04-07 Anders Carlsson <andersca@apple.com>
  7271. Reviewed by Simon Fraser.
  7272. Clicks not recognized on http://www.nibblestutorials.net/ which uses Silverlight
  7273. https://bugs.webkit.org/show_bug.cgi?id=58108
  7274. <rdar://problem/9167611>
  7275. Change platformHandleMouseEvent to return true, which means that the plug-in has handled the
  7276. event. Some plug-ins (like Silverlight) will return false from NPP_HandleEvent even though the
  7277. event has been handled. In this case it lead to a very subtle bug where the plug-in element would
  7278. lose focus right after a mouse down even had been sent.
  7279. * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
  7280. (WebKit::NetscapePlugin::platformHandleMouseEvent):
  7281. 2011-04-07 Adam Roben <aroben@apple.com>
  7282. Pass NPP_SetWindow a null window handle during plugin destruction on non-Mac platforms
  7283. This matches WebKit1.
  7284. Fixes <http://webkit.org/b/47009> WebKit2 needs to call NPP_SetWindow when destroying a
  7285. plugin
  7286. Reviewed by Anders Carlsson.
  7287. * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
  7288. (WebKit::NetscapePlugin::destroy): Null out our NPWindow's window handle and pass it to
  7289. NPP_SetWindow (unless we're on Mac).
  7290. 2011-04-08 Jamie Cooley <james.cooley@nokia.com>
  7291. Reviewed by Benjamin Poulain.
  7292. [Qt][WK2] Make sure qwkhistory.h is copied into includes/WebKit2
  7293. https://bugs.webkit.org/show_bug.cgi?id=57945
  7294. * UIProcess/API/qt/WKView.h:
  7295. * UIProcess/API/qt/qwkhistory.h:
  7296. 2011-04-08 Carlos Garcia Campos <cgarcia@igalia.com>
  7297. Reviewed by Martin Robinson.
  7298. [GTK] Do not destroy WorkQueue event sources unless they have been cancelled
  7299. https://bugs.webkit.org/show_bug.cgi?id=57611
  7300. * Platform/WorkQueue.h:
  7301. * Platform/gtk/WorkQueueGtk.cpp:
  7302. (WorkQueue::EventSource::EventSource): Remove unused member
  7303. m_dispatchSource.
  7304. (WorkQueue::EventSource::executeEventSource): Make it return void
  7305. instead of boolean since we are always ignoring the return value.
  7306. (WorkQueue::EventSource::performWork): Return FALSE from the
  7307. callback only when the source has been cancelled (condition = 0)
  7308. to make sure it's destroyed when the even source handler is
  7309. unregistered.
  7310. (WorkQueue::registerEventSourceHandler): Use GRefPtr for the
  7311. source, to avoid leaking it.
  7312. (WorkQueue::scheduleWorkOnSource): Receive the source callback as
  7313. parameter so that it can be used by scheduleWorkOnTermination() too.
  7314. (WorkQueue::scheduleWork):
  7315. (WorkQueue::scheduleWorkAfterDelay):
  7316. (WorkQueue::scheduleWorkOnTermination): Use
  7317. scheduleWorkOnSource().
  7318. 2011-04-08 Carlos Garcia Campos <cgarcia@igalia.com>
  7319. Reviewed by Martin Robinson.
  7320. [GTK] Close connection when web process finishes
  7321. https://bugs.webkit.org/show_bug.cgi?id=57540
  7322. * Platform/CoreIPC/Connection.h:
  7323. * Platform/CoreIPC/unix/ConnectionUnix.cpp:
  7324. * Platform/PlatformProcessIdentifier.h: Use GPid as process
  7325. identifier.
  7326. * Platform/WorkQueue.h:
  7327. * Platform/gtk/WorkQueueGtk.cpp:
  7328. (WorkQueue::EventSource::EventSource): Add cancellable parameter.
  7329. (WorkQueue::EventSource::cancel): New method to cancel the source.
  7330. (WorkQueue::EventSource::performWorkOnTermination): New method to
  7331. execute a work item called when child process has finished.
  7332. (WorkQueue::registerEventSourceHandler): Create a GCancellable for
  7333. the socket source.
  7334. (WorkQueue::unregisterEventSourceHandler): Cancel the source
  7335. instead of destroying it, this will cause the source to trigger
  7336. with condition = 0, which makes the callback return FALSE and the
  7337. source is destroyed.
  7338. (WorkQueue::scheduleWorkOnSource): Pass NULL as cancellable for
  7339. idle and timeout sources.
  7340. (WorkQueue::scheduleWorkOnTermination): Create a child watch
  7341. source to monitor the child process.
  7342. * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
  7343. (WebKit::ProcessLauncher::launchProcess): Use GPid instead of int
  7344. as process identifier.
  7345. * UIProcess/WebProcessProxy.cpp:
  7346. (WebKit::WebProcessProxy::didFinishLaunching): Call
  7347. WorkQueue::scheduleWorkOnTermination() for GTK platform too when
  7348. web process has been launched.
  7349. 2011-04-08 Carlos Garcia Campos <cgarcia@igalia.com>
  7350. Reviewed by Martin Robinson.
  7351. [GTK] Implement scheduleWorkAfterDelay() in WorkQueueGtk
  7352. https://bugs.webkit.org/show_bug.cgi?id=57434
  7353. * Platform/WorkQueue.h:
  7354. * Platform/gtk/WorkQueueGtk.cpp:
  7355. (WorkQueue::EventSource::executeEventSource): This new method
  7356. contains the common code to execute a work item.
  7357. (WorkQueue::EventSource::performWorkOnce): Use
  7358. executeEventSource() to execute the work item.
  7359. (WorkQueue::EventSource::performWork): Use executeEventSource() to
  7360. execute the work item.
  7361. (WorkQueue::registerEventSourceHandler): Use a GSocket instead of
  7362. a GIOChannel since the API is newer and allows us to pass a
  7363. cancellable object to be able to cancel the source.
  7364. (WorkQueue::scheduleWorkOnSource): This new method contains the
  7365. common code to attach a source to a context. It doesn't use a lock
  7366. anymore, since g_source_attach() uses its own mutex internally.
  7367. (WorkQueue::scheduleWork): Use an idle source instead of a timeout
  7368. one, changing the priority to G_PRIORITY_DEFAULT.
  7369. (WorkQueue::scheduleWorkAfterDelay): Implement it using a timeout
  7370. source with the given delay.
  7371. 2011-04-08 Carlos Garcia Campos <cgarcia@igalia.com>
  7372. Reviewed by Martin Robinson.
  7373. [GTK] Use glib API instead of fork + execl in ProcessLauncherGtk
  7374. https://bugs.webkit.org/show_bug.cgi?id=57234
  7375. * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
  7376. (WebKit::childSetupFunction): close the socket and use prctl()
  7377. when platform is Linux to kill the child process when the parent
  7378. finishes.
  7379. (WebKit::ProcessLauncher::launchProcess): Use g_spawn_async() to
  7380. launch the web process.
  7381. 2011-04-07 Geoffrey Garen <ggaren@apple.com>
  7382. Some Handle<T> cleanup
  7383. https://bugs.webkit.org/show_bug.cgi?id=58109
  7384. * WebProcess/Plugins/Netscape/NPJSObject.cpp:
  7385. (WebKit::NPJSObject::NPJSObject): Updated for new null constructor.
  7386. 2011-04-07 Jessie Berlin <jberlin@apple.com>
  7387. Max build fix.
  7388. * WebProcess/WebCoreSupport/WebEditorClient.cpp:
  7389. (WebKit::WebEditorClient::checkSpellingOfString):
  7390. Do not risk an overflow.
  7391. (WebKit::WebEditorClient::checkGrammarOfString):
  7392. Ditto.
  7393. 2011-04-07 Jessie Berlin <jberlin@apple.com>
  7394. Reviewed by Brian Weinstein.
  7395. WebKit2: Implement TextChecker on Windows
  7396. https://bugs.webkit.org/show_bug.cgi?id=57862
  7397. Part 4: Implement checkGrammarOfString.
  7398. * Scripts/webkit2/messages.py:
  7399. The generated files should include TextCheckerClient.h for WebCore::GrammarDetail.
  7400. * Shared/API/c/win/WKBaseWin.h:
  7401. * Shared/APIObject.h:
  7402. * UIProcess/API/C/win/WKAPICastWin.h:
  7403. * UIProcess/API/C/win/WKGrammarDetail.cpp: Added.
  7404. (WKGrammarDetailGetTypeID):
  7405. (WKGrammarDetailCreate):
  7406. * UIProcess/API/C/win/WKGrammarDetail.h: Added.
  7407. * UIProcess/API/C/win/WKTextChecker.h:
  7408. Add the checkGrammarOfString WKTextCheckerClient function.
  7409. * UIProcess/WebPageProxy.cpp:
  7410. (WebKit::WebPageProxy::checkGrammarOfString):
  7411. * UIProcess/WebPageProxy.h:
  7412. * UIProcess/WebPageProxy.messages.in:
  7413. * UIProcess/TextChecker.h:
  7414. * UIProcess/win/TextCheckerWin.cpp:
  7415. (WebKit::TextChecker::checkGrammarOfString):
  7416. Call the TextCheckerClient.
  7417. * UIProcess/mac/TextCheckerMac.mm:
  7418. (WebKit::TextChecker::checkSpellingOfString):
  7419. Add a comment about this not being used on Mac.
  7420. (WebKit::TextChecker::checkGrammarOfString):
  7421. Ditto, and call notImplemented.
  7422. * UIProcess/gtk/TextCheckerGtk.cpp:
  7423. (WebKit::TextChecker::checkGrammarOfString):
  7424. Call notImplemented.
  7425. * UIProcess/qt/TextCheckerQt.cpp:
  7426. (WebKit::TextChecker::checkGrammarOfString):
  7427. Ditto.
  7428. * UIProcess/win/WebGrammarDetail.cpp: Added.
  7429. (WebKit::WebGrammarDetail::create):
  7430. (WebKit::WebGrammarDetail::WebGrammarDetail):
  7431. Initialize the underlying WebCore::GrammarDetail.
  7432. * UIProcess/win/WebGrammarDetail.h: Added.
  7433. (WebKit::WebGrammarDetail::grammarDetail):
  7434. (WebKit::WebGrammarDetail::type):
  7435. * UIProcess/win/WebTextCheckerClient.cpp:
  7436. (WebKit::WebTextCheckerClient::checkGrammarOfString):
  7437. Populate the Vector of WebCore::GrammarDetails with the WebGrammarDetails.
  7438. * UIProcess/win/WebTextCheckerClient.h:
  7439. * WebProcess/WebCoreSupport/WebEditorClient.cpp:
  7440. (WebKit::WebEditorClient::checkSpellingOfString):
  7441. Use WTF::notFound as the initial value for resultLocation.
  7442. (WebKit::WebEditorClient::checkGrammarOfString):
  7443. Send a sync message to the UI Process (similar to checkSpellingOfString and checkTextOfParagraph).
  7444. * win/WebKit2.vcproj:
  7445. Add WKGrammarDetail.h/.cpp and WebGrammarDetail.h/.cpp.
  7446. * win/WebKit2Generated.make:
  7447. Copy over WKGrammarDetail.h.
  7448. 2011-04-07 Enrica Casucci <enrica@apple.com>
  7449. Reviewed by Oliver Hunt.
  7450. REGRESSION(WebKit2): execCommand('undo') doesn't work (Windows).
  7451. https://bugs.webkit.org/show_bug.cgi?id=58056
  7452. <rdar://problem/8862023>
  7453. Adding support for execCommand('undo') and execCommand('redo')
  7454. in WebKit2 for Windows.
  7455. * UIProcess/API/C/win/WKView.h:
  7456. * UIProcess/win/WebUndoClient.cpp:
  7457. (WebKit::WebUndoClient::canUndoRedo):
  7458. (WebKit::WebUndoClient::executeUndoRedo):
  7459. * UIProcess/win/WebUndoClient.h:
  7460. * UIProcess/win/WebView.cpp:
  7461. (WebKit::WebView::canUndoRedo):
  7462. (WebKit::WebView::executeUndoRedo):
  7463. 2011-04-07 Andrew Scherkus <scherkus@chromium.org>
  7464. Revert ENABLE_TRACK patch due to compile failures.
  7465. * Configurations/FeatureDefines.xcconfig:
  7466. 2011-04-07 Martin Robinson <mrobinson@igalia.com>
  7467. Fix the WebKit2 GTK+ build for older versions of GTK+.
  7468. * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp: Include the GtkVersioning.h header.
  7469. 2011-04-07 Amruth Raj <amruthraj@motorola.com> and Martin Robinson <mrobinson@igalia.com>
  7470. Reviewed by Kenneth Rohde Christiansen.
  7471. [GTK] Implement SharedMemory for WebKit2
  7472. https://bugs.webkit.org/show_bug.cgi?id=49791
  7473. Share the SharedMemory, Attachment and Connection implementations with the Qt port.
  7474. Both implementation are, in fact, general Unix implementations using standard Unix
  7475. domain sockets and sendmsg / recvmsg. This should reduce the amount of duplicated code
  7476. greatly and lay the groundwork for GTK+/Qt implementations for other operating systems.
  7477. * GNUmakefile.am: Replaced GTK+ versions of files with the Unix ones.
  7478. * Platform/CoreIPC/ArgumentDecoder.cpp: Extended Qt #ifdefs to include GTK.
  7479. (CoreIPC::ArgumentDecoder::~ArgumentDecoder):
  7480. * Platform/CoreIPC/ArgumentEncoder.cpp: Ditto.
  7481. (CoreIPC::ArgumentEncoder::~ArgumentEncoder):
  7482. * Platform/CoreIPC/Attachment.h: Ditto.
  7483. * Platform/CoreIPC/Connection.h: Combined the GTK+ and Qt sections.
  7484. * Platform/CoreIPC/unix/AttachmentUnix.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/qt/AttachmentQt.cpp.
  7485. * Platform/CoreIPC/unix/ConnectionUnix.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/qt/ConnectionQt.cpp.
  7486. * Platform/unix/SharedMemoryUnix.cpp: Renamed from Source/WebKit2/Platform/qt/SharedMemoryQt.cpp.
  7487. * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
  7488. (WebKit::ProcessLauncher::launchProcess): Use SOCK_DGRAM instead of SOCK_STREAM to match Qt.
  7489. * WebKit2.pro: Updated source list to reflect file renaming.
  7490. 2011-04-07 Alexey Proskuryakov <ap@apple.com>
  7491. Reviewed by Brian Weinstein.
  7492. REGRESSION (r83081): Use of deallocated memory in WebEditorClient::respondToChangedSelection()
  7493. https://bugs.webkit.org/show_bug.cgi?id=58082
  7494. * WebProcess/WebCoreSupport/WebEditorClient.cpp: (WebKit::WebEditorClient::respondToChangedSelection):
  7495. Now that the Range is used outside the full expression where it's created, it needs to be
  7496. protected with RefPtr.
  7497. 2011-04-07 Mark Rowe <mrowe@apple.com>
  7498. Reviewed by Dan Bernstein.
  7499. <rdar://problem/9251566> WebBackForwardList::createCFDictionaryRepresentation's current item index
  7500. doesn't account for items removed by filter callback.
  7501. * UIProcess/cf/WebBackForwardListCF.cpp:
  7502. (WebKit::WebBackForwardList::createCFDictionaryRepresentation): Update the current item index
  7503. when we omit an item due to the filter callback.
  7504. 2011-04-07 Alexey Proskuryakov <ap@apple.com>
  7505. Reviewed by Anders Carlsson.
  7506. REGRESSION (WebKit2): Reverse conversion doesn't work in Kotoeri
  7507. https://bugs.webkit.org/show_bug.cgi?id=58066
  7508. <rdar://problem/8965302>
  7509. * Scripts/webkit2/messages.py:
  7510. * Shared/mac/AttributedString.h: Added.
  7511. * Shared/mac/AttributedString.mm: Added.
  7512. (WebKit::AttributedString::encode):
  7513. (WebKit::AttributedString::decode):
  7514. Added an class that wraps NSAttributedString. As far as I can tell, one can't pass a CF
  7515. or NS object to another process without wrapping it in a C++ one.
  7516. * Shared/mac/ArgumentCodersMac.h: Added.
  7517. * Shared/mac/ArgumentCodersMac.mm: Added.
  7518. Added coders for Foundation objects, similar to ArgumentCodersCF. There are two reasons why
  7519. these are needed:
  7520. 1) Even though most Foundation objects are toll free bridged with CF, CFGetTypeID() doesn't
  7521. work properly for them (I've been just getting 1).
  7522. 2) NSColor isn't toll free bridged to CF.
  7523. This adds just the types necessary for editing NSAttributedString (and I don't yet know what
  7524. happens with attachments).
  7525. * UIProcess/API/mac/WKView.mm: (-[WKView attributedSubstringFromRange:]):
  7526. * UIProcess/WebPageProxy.h:
  7527. * UIProcess/mac/WebPageProxyMac.mm:
  7528. (WebKit::WebPageProxy::getAttributedSubstringFromRange):
  7529. * WebKit2.xcodeproj/project.pbxproj:
  7530. * WebProcess/WebPage/WebPage.h:
  7531. * WebProcess/WebPage/WebPage.messages.in:
  7532. Boilerplate code for making a sync call to web process.
  7533. * WebProcess/WebPage/mac/WebPageMac.mm: (WebKit::WebPage::getAttributedSubstringFromRange):
  7534. Ported from WebHTMLView.
  7535. 2011-04-07 Jeff Miller <jeffm@apple.com>
  7536. Mac build fix.
  7537. * Shared/WebString.h:
  7538. (WebKit::WebString::getCharacters): Add explict cast when using std::min().
  7539. 2011-04-07 Jeff Miller <jeffm@apple.com>
  7540. Reviewed by Adam Roben.
  7541. Replace WKStringGetCharactersPtr() with WKStringGetCharacters()
  7542. https://bugs.webkit.org/show_bug.cgi?id=58058
  7543. WKStringGetCharactersPtr() exposes the internal implementation of WKString, so change this to WKStringGetCharacters(), which makes a UTF-16 copy.
  7544. * Shared/API/c/WKString.cpp:
  7545. (WKStringGetCharacters): Added, replaces WKStringGetCharactersPtr().
  7546. * Shared/API/c/WKString.h: Replaced WKStringGetCharactersPtr() with WKStringGetCharacters().
  7547. * Shared/WebString.h:
  7548. (WebKit::WebString::getCharacters): Added.
  7549. 2011-04-07 Brian Weinstein <bweinstein@apple.com>
  7550. Reviewed by Adam Roben.
  7551. WebKit2: Support window bounce when panning.
  7552. https://bugs.webkit.org/show_bug.cgi?id=58065
  7553. <rdar://problem/9244367>
  7554. Make gestureDidScroll synchronous, as once we scroll, we need to know
  7555. whether or not we are at the beginning or end of the scrollable document.
  7556. If we are at either end of the scrollable document, we call the Windows 7
  7557. API to bounce the window to give an indication that you are past an end
  7558. of the document.
  7559. * UIProcess/WebPageProxy.cpp:
  7560. (WebKit::WebPageProxy::gestureDidScroll): Pass a boolean for the reply, and return it.
  7561. * UIProcess/WebPageProxy.h:
  7562. * UIProcess/win/WebView.cpp:
  7563. (WebKit::WebView::WebView): Inititalize a new variable.
  7564. (WebKit::WebView::onGesture): Once we send the message to scroll, check if have gone to
  7565. an end of the document, and if we have, bounce the window.
  7566. * UIProcess/win/WebView.h:
  7567. * WebProcess/WebPage/WebPage.h:
  7568. * WebProcess/WebPage/WebPage.messages.in: GestureDidScroll is now sync.
  7569. * WebProcess/WebPage/win/WebPageWin.cpp:
  7570. (WebKit::WebPage::gestureDidScroll): When we are done scrolling, check if we have a vertical
  7571. scrollbar and if we are at the beginning or the end of the scrollable document.
  7572. 2011-04-07 Chang Shu <cshu@webkit.org>
  7573. Reviewed by Darin Adler.
  7574. WebKitTestRunner needs layoutTestController.isPageBoxVisible
  7575. https://bugs.webkit.org/show_bug.cgi?id=42695
  7576. * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
  7577. (WKBundleIsPageBoxVisible):
  7578. * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  7579. * WebProcess/InjectedBundle/InjectedBundle.cpp:
  7580. (WebKit::InjectedBundle::isPageBoxVisible):
  7581. * WebProcess/InjectedBundle/InjectedBundle.h:
  7582. 2011-04-07 Enrica Casucci <enrica@apple.com>
  7583. Reviewed by Oliver Hunt.
  7584. REGRESSION(WebKit2): execCommand('undo') doesn't work (Mac).
  7585. https://bugs.webkit.org/show_bug.cgi?id=58055
  7586. <rdar://problem/8862023>
  7587. Adding support for execCommand('undo') and execCommand('redo')
  7588. in WebKit2 for Mac.
  7589. * UIProcess/API/mac/PageClientImpl.h:
  7590. * UIProcess/API/mac/PageClientImpl.mm:
  7591. (WebKit::PageClientImpl::canUndoRedo): Added interaction with undomanager.
  7592. (WebKit::PageClientImpl::executeUndoRedo): Added interaction with undomanager.
  7593. Added new empty PageClient methods for other platforms.
  7594. * UIProcess/API/qt/qwkpage.cpp:
  7595. (QWKPagePrivate::canUndoRedo):
  7596. (QWKPagePrivate::executeUndoRedo):
  7597. * UIProcess/API/qt/qwkpage_p.h:
  7598. * UIProcess/PageClient.h:
  7599. * UIProcess/gtk/WebView.cpp:
  7600. (WebKit::WebView::canUndoRedo):
  7601. (WebKit::WebView::executeUndoRedo):
  7602. * UIProcess/gtk/WebView.h:
  7603. * UIProcess/win/WebView.cpp:
  7604. (WebKit::WebView::canUndoRedo):
  7605. (WebKit::WebView::executeUndoRedo):
  7606. * UIProcess/win/WebView.h:
  7607. * UIProcess/WebEditCommandProxy.cpp:
  7608. (WebKit::WebEditCommandProxy::unapply): Added flag to allow dispatching
  7609. of asychronous messages while waiting for a sync message reply.
  7610. (WebKit::WebEditCommandProxy::reapply): Same as above.
  7611. * UIProcess/WebPageProxy.cpp:
  7612. (WebKit::WebPageProxy::canUndoRedo):
  7613. (WebKit::WebPageProxy::executeUndoRedo):
  7614. * UIProcess/WebPageProxy.h:
  7615. * UIProcess/WebPageProxy.messages.in:
  7616. * WebProcess/WebCoreSupport/WebEditorClient.cpp: Added missing implementation.
  7617. (WebKit::WebEditorClient::canUndo):
  7618. (WebKit::WebEditorClient::canRedo):
  7619. (WebKit::WebEditorClient::undo):
  7620. (WebKit::WebEditorClient::redo):
  7621. 2011-04-07 Brady Eidson <beidson@apple.com>
  7622. Reviewed by Maciej Stachowiak.
  7623. <rdar://problem/9250368> and https://bugs.webkit.org/show_bug.cgi?id=58062
  7624. * UIProcess/API/C/WKIconDatabase.cpp:
  7625. (WKIconDatabaseClose):
  7626. * UIProcess/API/C/WKIconDatabase.h:
  7627. * UIProcess/WebIconDatabase.cpp:
  7628. (WebKit::WebIconDatabase::close):
  7629. * UIProcess/WebIconDatabase.h:
  7630. 2011-04-07 Jessie Berlin <jberlin@apple.com>
  7631. Reviewed by Adam Roben.
  7632. WebKit2: Implement TextChecker on Windows
  7633. https://bugs.webkit.org/show_bug.cgi?id=57862
  7634. Part 3: Implement checkSpellingOfString
  7635. In WebCore, checkTextOfParagraph is only defined and used on platforms where
  7636. WTF_USE_UNIFIED_TEXT_CHECKING is defined (which right now is only non-Leopard and non-Tiger
  7637. Mac builds).
  7638. On other platforms, checkSpellingOfString and checkGrammarOfString (coming in a separate
  7639. patch in an attempt to keep things easier to review) are used.
  7640. * UIProcess/API/C/win/WKTextChecker.h:
  7641. * UIProcess/TextChecker.h:
  7642. Surround checkTextOfParagraph by #if USE(UNIFIED_TEXT_CHECKING) and add
  7643. checkSpellingOfString.
  7644. * UIProcess/WebPageProxy.cpp:
  7645. (WebKit::WebPageProxy::checkTextOfParagraph):
  7646. Surround this by #if USE(UNIFIED_TEXT_CHECKING).
  7647. (WebKit::WebPageProxy::checkSpellingOfString):
  7648. Call through to the client.
  7649. * UIProcess/WebPageProxy.h:
  7650. * UIProcess/WebPageProxy.messages.in:
  7651. Surround checkTextOfParagraph by #if USE(UNIFIED_TEXT_CHECKING) and add
  7652. checkSpellingOfString.
  7653. * UIProcess/win/TextCheckerWin.cpp:
  7654. (WebKit::TextChecker::checkSpellingOfString):
  7655. Call through to the WebTextCheckerClient.
  7656. * UIProcess/mac/TextCheckerMac.mm:
  7657. (WebKit::TextChecker::checkTextOfParagraph):
  7658. Surround this by #if USE(UNIFIED_TEXT_CHECKING) for clarity.
  7659. (WebKit::TextChecker::checkSpellingOfString):
  7660. Add a call to notImplemented.
  7661. * UIProcess/qt/TextCheckerQt.cpp:
  7662. (WebKit::TextChecker::checkSpellingOfString):
  7663. Ditto, and remove the implementation for checkTextOfParagraph.
  7664. * UIProcess/gtk/TextCheckerGtk.cpp:
  7665. (WebKit::TextChecker::checkSpellingOfString):
  7666. Ditto.
  7667. * UIProcess/win/WebTextCheckerClient.cpp:
  7668. (WebKit::WebTextCheckerClient::checkSpellingOfString):
  7669. * UIProcess/win/WebTextCheckerClient.h:
  7670. * WebProcess/WebCoreSupport/WebEditorClient.cpp:
  7671. (WebKit::WebEditorClient::checkSpellingOfString):
  7672. Send a sync message to the UI Process (similar to the sync message used for
  7673. checkTextOfParagraph).
  7674. 2011-04-07 Siddharth Mathur <siddharth.mathur@nokia.com>
  7675. Reviewed by Laszlo Gombos.
  7676. [Qt][WK2][Symbian] Temporary build fix until native Symbian IPC is done. Implement fake socketpair() as it's not available.
  7677. https://bugs.webkit.org/show_bug.cgi?id=57877
  7678. * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
  7679. (WebKit::socketpair): socketpair() which returns -1
  7680. 2011-04-07 Michael Saboff <msaboff@apple.com>
  7681. Reviewed by Maciej Stachowiak.
  7682. WebKit2: Memory leak in decodeResourceError
  7683. https://bugs.webkit.org/show_bug.cgi?id=58004
  7684. Release the local NSError after it is used to create a ResourceError
  7685. object assigned to the reference argument.
  7686. * Shared/mac/WebCoreArgumentCodersMac.mm:
  7687. (CoreIPC::decodeResourceError):
  7688. 2011-04-07 Maciej Stachowiak <mjs@apple.com>
  7689. Reviewed by Adam Barth.
  7690. Remove temporary WebProcess sandbox rules that are unnecessary now that plugins are in their own process
  7691. https://bugs.webkit.org/show_bug.cgi?id=58023
  7692. * WebProcess/com.apple.WebProcess.sb:
  7693. 2011-04-07 Maciej Stachowiak <mjs@apple.com>
  7694. Reviewed by Dan Bernstein.
  7695. Remove some no longer needed WebProcess sandbox allowances
  7696. https://bugs.webkit.org/show_bug.cgi?id=58015
  7697. <rdar://problem/9232592>
  7698. * WebProcess/com.apple.WebProcess.sb: Remove no-longer needed extra network
  7699. and launching privileges, since the bugs that required them are fixed.
  7700. 2011-04-06 Chang Shu <cshu@webkit.org>
  7701. Reviewed by Darin Adler.
  7702. WebKitTestRunner needs layoutTestController.pageSizeAndMarginsInPixels
  7703. https://bugs.webkit.org/show_bug.cgi?id=57984
  7704. * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
  7705. (WKBundlePageSizeAndMarginsInPixels):
  7706. * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  7707. * WebProcess/InjectedBundle/InjectedBundle.cpp:
  7708. (WebKit::InjectedBundle::pageSizeAndMarginsInPixels):
  7709. * WebProcess/InjectedBundle/InjectedBundle.h:
  7710. 2011-04-06 Siddharth Mathur <siddharth.mathur@nokia.com>
  7711. Reviewed by Benjamin Poulain.
  7712. [Qt][WK2][Symbian] Remove use of stack arrays with variable size
  7713. https://bugs.webkit.org/show_bug.cgi?id=57877
  7714. For better compiler portability, use new/delete for arrays when size
  7715. isn't known at compile time. Also fix one compiler warning about bitshift
  7716. operations on signed integers.
  7717. * Platform/CoreIPC/qt/ConnectionQt.cpp:
  7718. (CoreIPC::Connection::readyReadHandler):
  7719. (CoreIPC::Connection::sendOutgoingMessage):
  7720. 2011-04-06 Brian Weinstein <bweinstein@apple.com>
  7721. Reviewed by Adam Roben.
  7722. WebKit2: Support Windows 7 Gestures
  7723. https://bugs.webkit.org/show_bug.cgi?id=49824
  7724. <rdar://problem/8689728>
  7725. Port code from WebKit1 -> WebKit2 to handle Windows 7 gestures.
  7726. The UIProcess gets a WM_GESTURENOTIFY message, it sends a sync message to the WebProcess to ask
  7727. if we should allow panning. The WebProcess checks if we're in a scrollable area, and the mouse
  7728. isn't over a scrollbar.
  7729. The UIProcess then gets a WM_GESTURE message, and if it is a pan gesture, it sends a message to
  7730. the WebProcess to scroll by the amount fingers have moved since the last WM_GESTURE messeage. The
  7731. X and Y are reversed because panning up -> moving the page down, and vice versa.
  7732. * UIProcess/WebPageProxy.cpp:
  7733. (WebKit::WebPageProxy::gestureWillBegin): Send a sync message to the WebProcess
  7734. to initialize the gesture. The WebProcess returns whether or not we can start a pan
  7735. gesture from where we are.
  7736. (WebKit::WebPageProxy::gestureDidScroll): Send a message to the WebProcess to scroll by
  7737. pan gesture.
  7738. (WebKit::WebPageProxy::gestureDidEnd): Send a message to the WebProcess that the gesture has ended.
  7739. * UIProcess/WebPageProxy.h:
  7740. * UIProcess/win/WebView.cpp:
  7741. (WebKit::WebView::wndProc): Add WM_GESTURE and WM_GESTURENOTIFY handlers.
  7742. (WebKit::WebView::WebView): Initialize two new variables.
  7743. (WebKit::WebView::onGestureNotify): Figure out which gestures we should support based on where
  7744. the gesture is beginning.
  7745. (WebKit::WebView::onGesture): Support starting a gesture, ending a gesture, and panning.
  7746. * UIProcess/win/WebView.h:
  7747. * WebProcess/WebPage/WebPage.h:
  7748. * WebProcess/WebPage/WebPage.messages.in: Add messages needed for gestures.
  7749. * WebProcess/WebPage/win/WebPageWin.cpp:
  7750. (WebKit::WebPage::gestureWillBegin): Set the node that the gesture started on (so we
  7751. know which layer to scroll if the user pans), and determine whether or not we should allow
  7752. panning. If the page can't scroll, or the user is on a scrollbar, disallow panning.
  7753. (WebKit::WebPage::gestureDidScroll): Scroll the enclosing layer of the element the gesture
  7754. started on.
  7755. (WebKit::WebPage::gestureDidEnd): Clear the node the gesture started on.
  7756. 2011-04-06 Jeff Miller <jeffm@apple.com>
  7757. Reviewed by Adam Roben.
  7758. Add WKStringGetCharactersPtr() and WKStringGetLength() to WebKit2 C API
  7759. https://bugs.webkit.org/show_bug.cgi?id=57989
  7760. Note that WKChar, which is returned by WKStringGetCharactersPtr(), is defined the same way we define JSChar in JSStringRef.h.
  7761. * Shared/API/c/WKString.cpp:
  7762. (WKStringGetLength): Added.
  7763. (WKStringGetCharactersPtr): Added.
  7764. * Shared/API/c/WKString.h: Define WKChar and added WKStringGetLength() and WKStringGetCharactersPtr().
  7765. * Shared/WebString.h:
  7766. (WebKit::WebString::length): Added.
  7767. (WebKit::WebString::characters): Added.
  7768. 2011-04-06 Anders Carlsson <andersca@apple.com>
  7769. Reviewed by Oliver Hunt.
  7770. Dock stays in front of Hulu.com full screen video output
  7771. https://bugs.webkit.org/show_bug.cgi?id=57988
  7772. <rdar://problem/9216260>
  7773. Instead of using -[NSMenu setMenuBarVisible:] to toggle full screen, use
  7774. -[NSApp setPresentationOptions:]. Also, make the UI process the front most app before
  7775. setting the presentation options when exiting full screen, otherwise the dock won't
  7776. be restored correctly.
  7777. * PluginProcess/mac/PluginProcessShim.mm:
  7778. Remove some shim functions that aren't needed.
  7779. * UIProcess/Plugins/PluginProcessProxy.cpp:
  7780. (WebKit::PluginProcessProxy::PluginProcessProxy):
  7781. Initialize m_preFullscreenAppPresentationOptions.
  7782. * UIProcess/Plugins/PluginProcessProxy.h:
  7783. Add m_preFullscreenAppPresentationOptions.
  7784. * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
  7785. (WebKit::PluginProcessProxy::enterFullscreen):
  7786. Change the presentation options for the app.
  7787. (WebKit::PluginProcessProxy::exitFullscreen):
  7788. Restore the presentation options.
  7789. 2011-04-06 Mark Rowe <mrowe@apple.com>
  7790. Reviewed by Darin Adler.
  7791. Expose the original URL of a WKBackForwardListItem.
  7792. Needed for <rdar://problem/9074651>.
  7793. * UIProcess/API/C/WKBackForwardListItem.cpp:
  7794. (WKBackForwardListItemCopyOriginalURL):
  7795. * UIProcess/API/C/WKBackForwardListItem.h:
  7796. 2011-04-06 Brady Eidson <beidson@apple.com>
  7797. Reviewed by Anders Carlsson.
  7798. https://bugs.webkit.org/show_bug.cgi?id=57973 and https://bugs.webkit.org/show_bug.cgi?id=57973
  7799. WK2 icon database should be able to get a CGImage of a specific size
  7800. * UIProcess/API/C/cg/WKIconDatabaseCG.cpp:
  7801. (WKIconDatabaseTryGetCGImageForURL): Change this API to take a requested size, and find the first matching
  7802. CGImage in the icon.
  7803. * UIProcess/API/C/cg/WKIconDatabaseCG.h:
  7804. 2011-04-06 Jessie Berlin <jberlin@apple.com>
  7805. Reviewed by Anders Carlsson.
  7806. WebKit2: Implement TextChecker on Windows
  7807. https://bugs.webkit.org/show_bug.cgi?id=57862
  7808. Part 2: Implement uniqueSpellDocumentTag and closeSpellDocumentWithTag.
  7809. * UIProcess/API/C/win/WKTextChecker.h:
  7810. * UIProcess/win/TextCheckerWin.cpp:
  7811. (WebKit::TextChecker::uniqueSpellDocumentTag):
  7812. (WebKit::TextChecker::closeSpellDocumentWithTag):
  7813. * UIProcess/win/WebTextCheckerClient.cpp:
  7814. (WebKit::WebTextCheckerClient::uniqueSpellDocumentTag):
  7815. (WebKit::WebTextCheckerClient::closeSpellDocumentWithTag):
  7816. * UIProcess/win/WebTextCheckerClient.h:
  7817. 2011-04-06 Robert Sesek <rsesek@chromium.org>
  7818. Reviewed by Alexey Proskuryakov.
  7819. Move code duplicated between the WebKit/mac and WebKit2 down to WebCore because Chromium will need it too
  7820. https://bugs.webkit.org/show_bug.cgi?id=54969
  7821. * WebProcess/WebCoreSupport/WebEditorClient.cpp:
  7822. (WebKit::WebEditorClient::respondToChangedSelection): Moved duplicated code to WebCore
  7823. * WebProcess/WebPage/mac/WebPageMac.mm: Moved duplicated code to WebCore
  7824. (WebKit::WebPage::getMarkedRange):
  7825. (WebKit::WebPage::getSelectedRange):
  7826. (WebKit::WebPage::characterIndexForPoint):
  7827. (WebKit::WebPage::performDictionaryLookupAtLocation):
  7828. 2011-04-06 Chang Shu <cshu@webkit.org>
  7829. Reviewed by Darin Adler.
  7830. WebKitTestRunner needs layoutTestController.pageNumberForElementById
  7831. https://bugs.webkit.org/show_bug.cgi?id=42329
  7832. * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
  7833. (WKBundlePageNumberForElementById):
  7834. * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  7835. * WebProcess/InjectedBundle/InjectedBundle.cpp:
  7836. (WebKit::InjectedBundle::pageNumberForElementById):
  7837. * WebProcess/InjectedBundle/InjectedBundle.h:
  7838. 2011-04-05 Enrica Casucci <enrica@apple.com>
  7839. Reviewed by Darin Adler.
  7840. REGRESSION: Drag & Drop Gmail Attachments doesn't work.
  7841. https://bugs.webkit.org/show_bug.cgi?id=57909
  7842. <rdar://problem/9103220>
  7843. Added _hitTest method to support drag and drop when the drag types cannot be matched.
  7844. This is the case for elements that do not place content
  7845. in the drag pasteboard automatically when the drag start (i.e. dragging a DIV element).
  7846. * UIProcess/API/mac/WKView.mm:
  7847. (-[WKView _hitTest:dragTypes:]): Added.
  7848. 2011-04-06 Csaba Osztrogonác <ossy@webkit.org>
  7849. Reviewed by Darin Adler.
  7850. Fix using UNUSED_PARAM introduced in r82907
  7851. https://bugs.webkit.org/show_bug.cgi?id=57940
  7852. * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
  7853. (WebKit::WebResourceCacheManager::clearCacheForOrigin):
  7854. 2011-04-06 Jessie Berlin <jberlin@apple.com>
  7855. Reviewed by Anders Carlsson.
  7856. WebKit2: Implement TextChecker on Windows
  7857. https://bugs.webkit.org/show_bug.cgi?id=57862
  7858. Part 1: Get and set the state.
  7859. * Shared/API/c/win/WKBaseWin.h:
  7860. * Shared/APIObject.h:
  7861. * UIProcess/API/C/win/WKAPICastWin.h:
  7862. * UIProcess/API/C/win/WKTextChecker.cpp: Added.
  7863. (WKTextCheckerSetClient):
  7864. (WKTextCheckerContinuousSpellCheckingEnabledStateChanged):
  7865. (WKTextCheckerGrammarCheckingEnabledStateChanged):
  7866. * UIProcess/API/C/win/WKTextChecker.h: Added.
  7867. * UIProcess/TextChecker.h:
  7868. * UIProcess/win/TextCheckerWin.cpp:
  7869. (WebKit::TextChecker::state):
  7870. Do the initalization for the state only once so that it is not necessary to call the client
  7871. every time the state is requested.
  7872. (WebKit::TextChecker::isContinuousSpellCheckingAllowed):
  7873. Call the client.
  7874. (WebKit::TextChecker::setContinuousSpellCheckingEnabled):
  7875. Update the state and tell the client.
  7876. (WebKit::TextChecker::setGrammarCheckingEnabled):
  7877. Ditto.
  7878. (WebKit::TextChecker::continuousSpellCheckingEnabledStateChanged):
  7879. Update the state.
  7880. (WebKit::TextChecker::grammarCheckingEnabledStateChanged):
  7881. Update the state.
  7882. * UIProcess/win/WebTextChecker.cpp: Added.
  7883. (WebKit::WebTextChecker::shared):
  7884. Make the WebTextChecker available globally.
  7885. (WebKit::WebTextChecker::WebTextChecker):
  7886. (WebKit::WebTextChecker::setClient):
  7887. (WebKit::updateStateForAllWebProcesses):
  7888. (WebKit::WebTextChecker::continuousSpellCheckingEnabledStateChanged):
  7889. Tell the TextChecker that the state has changed, and then tell the
  7890. WebProcessProxies to send the new state to the WebProcesses.
  7891. (WebKit::WebTextChecker::grammarCheckingEnabledStateChanged):
  7892. Ditto.
  7893. * UIProcess/win/WebTextChecker.h: Added.
  7894. (WebKit::WebTextChecker::client):
  7895. (WebKit::WebTextChecker::type):
  7896. * UIProcess/win/WebTextCheckerClient.cpp: Added.
  7897. (WebKit::WebTextCheckerClient::continuousSpellCheckingAllowed):
  7898. (WebKit::WebTextCheckerClient::continuousSpellCheckingEnabled):
  7899. (WebKit::WebTextCheckerClient::setContinuousSpellCheckingEnabled):
  7900. (WebKit::WebTextCheckerClient::grammarCheckingEnabled):
  7901. (WebKit::WebTextCheckerClient::setGrammarCheckingEnabled):
  7902. * UIProcess/win/WebTextCheckerClient.h: Added.
  7903. * win/WebKit2.vcproj:
  7904. Add WKTextChecker.h/.cpp, WebTextChecker.h/.cpp, and WebTextCheckerClient.h/.cpp.
  7905. * win/WebKit2Generated.make:
  7906. Copy over WKTextChecker.h.
  7907. 2011-04-05 Chang Shu <cshu@webkit.org>
  7908. Reviewed by Darin Adler.
  7909. WebKitTestRunner needs layoutTestController.numberOfPages
  7910. https://bugs.webkit.org/show_bug.cgi?id=42694
  7911. * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
  7912. (WKBundleNumberOfPages):
  7913. * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  7914. * WebProcess/InjectedBundle/InjectedBundle.cpp:
  7915. (WebKit::InjectedBundle::numberOfPages):
  7916. * WebProcess/InjectedBundle/InjectedBundle.h:
  7917. 2011-04-05 Darin Adler <darin@apple.com>
  7918. Reviewed by Alexey Proskuryakov.
  7919. [Mac] WebKit2: Escape key does not stop page loads when focus is on the web page
  7920. https://bugs.webkit.org/show_bug.cgi?id=57893
  7921. <rdar://problem/9130486>
  7922. * UIProcess/API/mac/PageClientImpl.h: Added executeSavedCommandBySelector.
  7923. * UIProcess/API/mac/PageClientImpl.mm: Renamed internal Objective-C classes to use
  7924. the WebKit2 Objective-C class prefix, WK, rather than the WebKit1 Objective-C class
  7925. prefix, Web. Removed some unneeded explicit WebKit namespace prefixes.
  7926. (-[WKEditCommandObjC initWithWebEditCommandProxy:]): Removed unneeded WebKit
  7927. namespace prefix.
  7928. (-[WKEditCommandObjC command]): Ditto.
  7929. (-[WKEditorUndoTargetObjC undoEditing:]): Updated for new class name.
  7930. (-[WKEditorUndoTargetObjC redoEditing:]): Ditto.
  7931. (WebKit::PageClientImpl::PageClientImpl): Ditto.
  7932. (WebKit::PageClientImpl::registerEditCommand): Ditto.
  7933. (WebKit::PageClientImpl::executeSavedCommandBySelector): Added.
  7934. * UIProcess/API/mac/WKView.mm: Renamed internal Objective-C categories to use the
  7935. WebKit2 Objective-C prefix, WK, rather than the WebKit1 Objective-C prefix, Web,
  7936. or no prefix at all. Tweaked use of extern "C" a little.
  7937. (-[WKView doCommandBySelector:]): Tweaked the comment.
  7938. (-[WKView _executeSavedCommandBySelector:]): Added. For use when command is not handled
  7939. by WebCore.
  7940. (-[WKResponderChainSink initWithResponderChain:]): Added. Based on the
  7941. WebResponderChainSink class in WebKit1.
  7942. (-[WKResponderChainSink detach]): Added.
  7943. (-[WKResponderChainSink didReceiveUnhandledCommand]): Added.
  7944. (-[WKResponderChainSink noResponderFor:]): Added.
  7945. (-[WKResponderChainSink doCommandBySelector:]): Added.
  7946. (-[WKResponderChainSink tryToPerform:with:]): Added.
  7947. * UIProcess/API/mac/WKViewInternal.h: Added declaration of _executeSavedCommandBySelector:
  7948. method. Also removed unneeded includes.
  7949. * UIProcess/PageClient.h: Added executeSavedCommandBySelector.
  7950. * UIProcess/WebPageProxy.h: Added executeSavedCommandBySelector.
  7951. * UIProcess/WebPageProxy.messages.in: Added ExecuteSavedCommandBySelector.
  7952. * UIProcess/mac/WebFullScreenManagerProxyMac.mm: Updated includes.
  7953. * UIProcess/mac/WebPageProxyMac.mm:
  7954. (WebKit::WebPageProxy::executeSavedCommandBySelector): Added.
  7955. * WebProcess/WebPage/mac/WebPageMac.mm:
  7956. (WebKit::WebPage::executeKeypressCommandsInternal): Send the synchronous
  7957. ExecuteSavedCommandBySelector message when a command is not handled by WebCore.
  7958. 2011-04-05 Anders Carlsson <andersca@apple.com>
  7959. Reviewed by Alexey Proskuryakov.
  7960. Some plug-in content is displayed upside down in Unity plug-in
  7961. https://bugs.webkit.org/show_bug.cgi?id=57895
  7962. <rdar://problem/9212003>
  7963. Create the flipped geometry layer in the web process instead of the plug-in process,
  7964. which matches what we do in WebKit1.
  7965. * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
  7966. (WebKit::NetscapePlugin::platformPostInitialize):
  7967. * WebProcess/Plugins/Netscape/mac/PluginProxyMac.mm:
  7968. (WebKit::PluginProxy::pluginLayer):
  7969. 2011-04-05 Anders Carlsson <andersca@apple.com>
  7970. Reviewed by Darin Adler.
  7971. Assertion failure when navigating quickly between file URLs
  7972. https://bugs.webkit.org/show_bug.cgi?id=57884
  7973. <rdar://problem/9080559>
  7974. Remove bogus assertion. The pending provisional sandbox extension can be
  7975. non-null if the current provisional load fails because we're about to load a new
  7976. page that also has a sandbox extension.
  7977. * WebProcess/WebPage/WebPage.cpp:
  7978. (WebKit::WebPage::SandboxExtensionTracker::didFailProvisionalLoad):
  7979. 2011-04-05 Anders Carlsson <andersca@apple.com>
  7980. Reviewed by Adam Roben.
  7981. Grant the web process access to ~/Library/Preferences/com.apple.universalaccess.plist
  7982. https://bugs.webkit.org/show_bug.cgi?id=57879
  7983. The web process needs access to the unviersal access preferences to determine if full keyboard
  7984. access is enabled. I've filed <rdar://problem/9237619> which tracks reading this preference in the UI
  7985. process and sending it over to the web process whenever it changes.
  7986. * WebProcess/com.apple.WebProcess.sb:
  7987. 2011-04-05 Dean Jackson <dino@apple.com>
  7988. Reviewed by Simon Fraser.
  7989. Add parentheses around && within || to avoid clang warning.
  7990. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  7991. (WebKit::DrawingAreaImpl::sendDidUpdateBackingStoreState):
  7992. 2011-04-05 Anders Carlsson <andersca@apple.com>
  7993. Reviewed by Adam Roben.
  7994. Add two more entries to the sandbox profile
  7995. https://bugs.webkit.org/show_bug.cgi?id=57875
  7996. Allow read-access to /Library/Dictionaries since WebCore::nextBreakablePosition
  7997. ends up calling into ICU which accesses the dictionary.
  7998. Allow Mach access to com.apple.networkd since it's used by CFNetwork.
  7999. * WebProcess/com.apple.WebProcess.sb:
  8000. 2011-04-05 Anders Carlsson <andersca@apple.com>
  8001. Reviewed by Oliver Hunt.
  8002. Invalidate callbacks if the WebPageProxy is no longer valid
  8003. https://bugs.webkit.org/show_bug.cgi?id=57873
  8004. <rdar://problem/9059717>
  8005. Audit all function calls that take callbacks and make sure to invalidate the callbacks
  8006. if the web page is no longer valid.
  8007. * UIProcess/WebPageProxy.cpp:
  8008. (WebKit::WebPageProxy::runJavaScriptInMainFrame):
  8009. (WebKit::WebPageProxy::getRenderTreeExternalRepresentation):
  8010. (WebKit::WebPageProxy::getSourceForFrame):
  8011. (WebKit::WebPageProxy::getContentsAsString):
  8012. (WebKit::WebPageProxy::getSelectionOrContentsAsString):
  8013. (WebKit::WebPageProxy::getMainResourceDataOfFrame):
  8014. (WebKit::WebPageProxy::getResourceDataFromFrame):
  8015. (WebKit::WebPageProxy::getWebArchiveOfFrame):
  8016. (WebKit::WebPageProxy::forceRepaint):
  8017. (WebKit::WebPageProxy::computePagesForPrinting):
  8018. (WebKit::WebPageProxy::drawRectToPDF):
  8019. (WebKit::WebPageProxy::drawPagesToPDF):
  8020. 2011-04-05 Adam Roben <aroben@apple.com>
  8021. Disable accelerated compositing on Windows machines that don't support it
  8022. This includes machines without the necessary graphics hardware, and machines without
  8023. WebKitQuartzCoreAdditions (like the Windows 7 Release (WebKit2 Tests) bots).
  8024. Fixes <http://webkit.org/b/57870> REGRESSION (r82960): Lots of tests crashing in
  8025. DrawingAreaImpl::enterAcceleratedCompositingMode on Windows 7 Release (WebKit2 Tests)
  8026. Reviewed by Anders Carlsson.
  8027. * WebProcess/WebPage/LayerTreeHost.h:
  8028. (WebKit::LayerTreeHost::supportsAcceleratedCompositing): Added. On platforms other than
  8029. Windows, this always returns true.
  8030. * WebProcess/WebPage/WebPage.cpp:
  8031. (WebKit::WebPage::updatePreferences): Only enable accelerated compositing-related
  8032. preferences if the machine supports accelerated compositing.
  8033. * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.cpp:
  8034. (WebKit::LayerTreeHostCAWin::supportsAcceleratedCompositing): Added. Creates a view, asks it
  8035. if it can draw, and returns the result.
  8036. * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.h: Added supportsAcceleratedCompositing.
  8037. * WebProcess/WebPage/win/LayerTreeHostWin.cpp: Added.
  8038. (WebKit::LayerTreeHost::supportsAcceleratedCompositing): Added. Calls through to
  8039. LayerTreeHostCAWin in configurations that support that class. Otherwise just returns false.
  8040. * win/WebKit2.vcproj: Added LayerTreeHostWin.cpp. Let VS reorder some other files.
  8041. 2011-04-05 Adam Roben <aroben@apple.com>
  8042. Make accelerated compositing work in WebKit2 on Windows
  8043. LayerTreeHostCAWin uses WKCACFView to render each frame to an image, then has
  8044. DrawingAreaImpl send that image over to the UI process (just like it does for
  8045. non-accelerated rendering). It's unfortunate that this requires reading every frame back
  8046. from the GPU into system memory. More efficient solutions can be explored in the future.
  8047. Fixes <http://webkit.org/b/45567>.
  8048. Reviewed by Anders Carlsson.
  8049. * DerivedSources.make: Added $(WebKit2) to the VPATH so that DerivedSources.make can be
  8050. found when used as a target dependency. Added rules to generate a HeaderDetection.h file on
  8051. Windows. If we can find WebKitQuartzCoreAdditions headers, we define HAVE_WKQCA in
  8052. HeaderDetection.h.
  8053. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  8054. (WebKit::DrawingAreaImpl::setLayerHostNeedsDisplay):
  8055. * WebProcess/WebPage/DrawingAreaImpl.h:
  8056. Added setLayerHostNeedsDisplay. Lets the layer host tell the DrawingAreaImpl that it has a
  8057. new frame to render. This should only be called by layer hosts that participate in
  8058. DrawingAreaImpl's display mechanism.
  8059. * WebProcess/WebPage/LayerTreeHost.cpp:
  8060. (WebKit::LayerTreeHost::create): Only try to instantiate LayerTreeHostCAWin if we have
  8061. WebKitQuartzCoreAdditions, since it depends on that library.
  8062. * WebProcess/WebPage/WebPage.cpp:
  8063. (WebKit::WebPage::updatePreferences): Removed code that forced accelerated compositing to be
  8064. disabled on Windows.
  8065. * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.cpp:
  8066. (WebKit::registerDummyWindowClass): Registers the window class we use for the dummy window.
  8067. (WebKit::createDummyWindow): Creates the dummy window we pass to WKCACFView so that D3D can
  8068. determine the display mode, etc. (The window is never shown on screen.)
  8069. (WebKit::LayerTreeHostCAWin::LayerTreeHostCAWin): Initialize new members.
  8070. (WebKit::LayerTreeHostCAWin::platformInitialize): Create our dummy window and view and
  8071. associate the two. We set ourselves as the view's context's user data so that
  8072. PlatformCALayer can get our AbstractCACFLayerTreeHost pointer as needed.
  8073. (WebKit::LayerTreeHostCAWin::invalidate): Cancel any pending flushes, tear down our view,
  8074. and destroy the dummy window if no other layer host is using it.
  8075. (WebKit::LayerTreeHostCAWin::scheduleLayerFlush): Ask LayerChangesFlusher to call us back
  8076. soon to perform the flush.
  8077. (WebKit::LayerTreeHostCAWin::participatesInDisplay): Added. Returns true, since we render
  8078. each frame to an image.
  8079. (WebKit::LayerTreeHostCAWin::needsDisplay): Added. Returns true if it's now time to
  8080. displayReturns true if it's now time to display.
  8081. (WebKit::LayerTreeHostCAWin::timeUntilNextDisplay): Added. Returns how many seconds remain
  8082. before we need to display again.
  8083. (WebKit::size): Added. Helper function to get the size of a WKCACFImage.
  8084. (WebKit::toShareableBitmap): Added. Helper function to convert a WKCACFImage to a
  8085. ShareableBitmap.
  8086. (WebKit::LayerTreeHostCAWin::display): Added. Renders the next frame to an image and stuffs
  8087. the image into the UpdateInfo struct.
  8088. (WebKit::LayerTreeHostCAWin::sizeDidChange): Added. Tells the view about the new size.
  8089. (WebKit::LayerTreeHostCAWin::forceRepaint): Added. Flushes any pending changes to the view.
  8090. (WebKit::LayerTreeHostCAWin::contextDidChangeCallback): Added. WKCACFView calls this
  8091. whenever any changes made to the view or its layer tree have been flushed. Just calls
  8092. through to contextDidChange.
  8093. (WebKit::LayerTreeHostCAWin::contextDidChange): Added. Tells layers that they've started
  8094. animating, and tells the DrawingAreaImpl that we need to display again.
  8095. (WebKit::LayerTreeHostCAWin::rootLayer): Added. Gets the root layer's PlatformCALayer.
  8096. (WebKit::LayerTreeHostCAWin::addPendingAnimatedLayer): Added. Stores the layer so that we
  8097. can tell it animations have started the next time we get a contextDidChange callback.
  8098. (WebKit::LayerTreeHostCAWin::layerTreeDidChange): Added. Schedules a flush, unless we're
  8099. already in the process of flushing. This code came from WebCore::WKCACFViewLayerTreeHost.
  8100. (WebKit::LayerTreeHostCAWin::flushPendingLayerChangesNow): Added. Performs the flush. This
  8101. code was adapted from WebCore::WKCACFViewLayerTreeHost.
  8102. * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.h: Wrapped this whole header in HAVE(WKQCA),
  8103. since this class only works when WebKitQuartzCoreAdditions is available. Added a bunch of
  8104. new members.
  8105. 2011-04-04 Adam Roben <aroben@apple.com>
  8106. Add a way for LayerTreeHost to participate in DrawingAreaImpl's normal display mechanism
  8107. When LayerTreeHost participates in display, it renders each frame into a bitmap.
  8108. DrawingAreaImpl sends the bitmap to the UI process in an Update message, just like in
  8109. non-accelerated compositing mode. The UI process never knows that accelerated compositing is
  8110. going on. (When LayerTreeHost does not participate in display, as on Mac, it is responsible
  8111. for getting bits from the web process to the UI process.)
  8112. No LayerTreeHost uses this mechanism (yet). This patch should cause no change in behavior.
  8113. Fixes <http://webkit.org/b/57792> LayerTreeHost needs a way to render frames to a bitmap
  8114. Reviewed by Anders Carlsson.
  8115. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  8116. (WebKit::DrawingAreaImpl::forceRepaint): If the layer tree host participates in display,
  8117. perform a display (like in the non-accelerated case).
  8118. (WebKit::DrawingAreaImpl::layerHostDidFlushLayers): Don't send an
  8119. EnterAcceleratedCompositing message to the UI process if the layer tree host participates in
  8120. display. In that case, the UI process doesn't even need to know we're using accelerated
  8121. compositing in the web process.
  8122. (WebKit::DrawingAreaImpl::sendDidUpdateBackingStoreState): Go through the normal display
  8123. mechanism if we have a layer tree host that participates in display.
  8124. (WebKit::DrawingAreaImpl::didUpdate): Don't ignore DidUpdate messages when we have a layer
  8125. tree host that participates in display.
  8126. (WebKit::DrawingAreaImpl::enterAcceleratedCompositingMode): If the new layer tree host
  8127. participates in display, let the display timer continue to run and continue to expect
  8128. DidUpdate messages so that we don't interrupt the normal display mechanism. We still clear
  8129. out m_dirtyRegion, m_scrollRect, and m_scrollOffset, though, because the layer tree host is
  8130. still responsible for keeping track of those things even when it participates in display.
  8131. (WebKit::DrawingAreaImpl::exitAcceleratedCompositingMode): If the outgoing layer tree host
  8132. was participating in display, just send another Update message instead of an
  8133. ExitAcceleratedCompositing message, since the UI process never even knew we were using
  8134. accelerated compositing.
  8135. (WebKit::DrawingAreaImpl::displayTimerFired): If we have a layer tree host that's
  8136. participating in display, ask it when it next needs to display when scheduling our timer.
  8137. (WebKit::DrawingAreaImpl::scheduleDisplay):
  8138. (WebKit::DrawingAreaImpl::display):
  8139. If we have a layer tree host that's participating in display, it will keep track of its own
  8140. dirty region, so ask it if it needs display rather than checking our own dirty region.
  8141. (WebKit::DrawingAreaImpl::display): If we have a layer tree host that's participating in
  8142. display, don't bail out. Instead, tell it to display rather than asking the page to paint.
  8143. Moved the setting of updateInfo.viewSize earlier so that it will be set even when the layer
  8144. tree host is displaying. Other changes are just due to indentation.
  8145. * WebProcess/WebPage/LayerTreeHost.h:
  8146. (WebKit::LayerTreeHost::participatesInDisplay):
  8147. (WebKit::LayerTreeHost::needsDisplay):
  8148. (WebKit::LayerTreeHost::timeUntilNextDisplay):
  8149. (WebKit::LayerTreeHost::display):
  8150. Stubbed out these functions. Derived classes can override them to participate in display.
  8151. 2011-04-04 MORITA Hajime <morrita@google.com>
  8152. Reviewed by Ryosuke Niwa.
  8153. [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
  8154. https://bugs.webkit.org/show_bug.cgi?id=56085
  8155. * WebProcess/WebCoreSupport/WebEditorClient.cpp:
  8156. (WebKit::WebEditorClient::requestCheckingOfString):
  8157. * WebProcess/WebCoreSupport/WebEditorClient.h:
  8158. * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
  8159. (WebKit::WebEditorClient::checkTextOfParagraph):
  8160. 2011-04-05 Alejandro G. Castro <alex@igalia.com>
  8161. Another compilation fix after r82929 horrible patch merge.
  8162. * UIProcess/WebPageProxy.messages.in:
  8163. 2011-04-05 Alejandro G. Castro <alex@igalia.com>
  8164. Fix compilation error after r82929.
  8165. * WebProcess/WebPage/WebPage.h:
  8166. 2011-04-05 Amruth Raj <amruthraj@motorola.com>, Ravi Phaneendra Kasibhatla <ravi.kasibhatla@motorola.com> and Alejandro G. Castro <alex@igalia.com>
  8167. Reviewed by Martin Robinson.
  8168. [GTK] Implement WebPage class for WebKit2
  8169. https://bugs.webkit.org/show_bug.cgi?id=54230
  8170. Added functions to handle the generation of commands from the
  8171. keycodes.
  8172. * GNUmakefile.am:
  8173. * Scripts/webkit2/messages.py:
  8174. * UIProcess/PageClient.h:
  8175. * UIProcess/WebPageProxy.h:
  8176. * UIProcess/WebPageProxy.messages.in:
  8177. * UIProcess/gtk/WebPageProxyGtk.cpp:
  8178. (WebKit::WebPageProxy::getEditorCommandsForKeyEvent):
  8179. * UIProcess/gtk/WebView.cpp:
  8180. (WebKit::backspaceCallback):
  8181. (WebKit::selectAllCallback):
  8182. (WebKit::cutClipboardCallback):
  8183. (WebKit::copyClipboardCallback):
  8184. (WebKit::pasteClipboardCallback):
  8185. (WebKit::toggleOverwriteCallback):
  8186. (WebKit::popupMenuCallback):
  8187. (WebKit::showHelpCallback):
  8188. (WebKit::deleteFromCursorCallback):
  8189. (WebKit::moveCursorCallback):
  8190. (WebKit::WebView::WebView):
  8191. (WebKit::WebView::getEditorCommandsForKeyEvent):
  8192. * UIProcess/gtk/WebView.h:
  8193. (WebKit::WebView::addPendingEditorCommand):
  8194. * WebProcess/WebCoreSupport/WebEditorClient.cpp:
  8195. * WebProcess/WebCoreSupport/WebEditorClient.h:
  8196. * WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp: Added.
  8197. (WebKit::WebEditorClient::getEditorCommandsForKeyEvent):
  8198. (WebKit::WebEditorClient::executePendingEditorCommands):
  8199. (WebKit::WebEditorClient::handleKeyboardEvent):
  8200. (WebKit::WebEditorClient::handleInputMethodKeydown):
  8201. * WebProcess/WebPage/WebPage.cpp:
  8202. * WebProcess/WebPage/WebPage.h:
  8203. * WebProcess/WebPage/gtk/WebPageGtk.cpp: Added.
  8204. (WebKit::WebPage::platformInitialize):
  8205. (WebKit::WebPage::platformPreferencesDidChange):
  8206. (WebKit::scroll):
  8207. (WebKit::WebPage::performDefaultBehaviorForKeyEvent):
  8208. (WebKit::WebPage::platformHasLocalDataForURL):
  8209. (WebKit::WebPage::cachedResponseMIMETypeForURL):
  8210. (WebKit::WebPage::platformCanHandleRequest):
  8211. 2011-04-05 Csaba Osztrogonác <ossy@webkit.org>
  8212. Remove duplicate API from WKContext
  8213. <rdar://problem/8727879>
  8214. https://bugs.webkit.org/show_bug.cgi?id=57815
  8215. Unreviewed buildfix after r82906.
  8216. Add UNUSED_PARAM to resourceCachesToClear, because
  8217. it is only used within #if USE(CFURLCACHE) guard.
  8218. * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
  8219. (WebKit::WebResourceCacheManager::clearCacheForOrigin):
  8220. 2011-04-04 Sam Weinig <sam@webkit.org>
  8221. Reviewed by Brian Weinstein.
  8222. Remove duplicate API from WKContext
  8223. <rdar://problem/8727879>
  8224. https://bugs.webkit.org/show_bug.cgi?id=57815
  8225. - Remove WKContextClearResourceCaches and WKContextClearApplicationCache in favor
  8226. of their more modern counterparts WKResourceCacheManagerClearCacheForAllOrigins
  8227. and WKApplicationCacheManagerDeleteAllEntries.
  8228. - Expand clearing functionality of WKResourceCacheManager by adding type of resources
  8229. to clear.
  8230. * Shared/WebProcessCreationParameters.cpp:
  8231. (WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
  8232. (WebKit::WebProcessCreationParameters::encode):
  8233. (WebKit::WebProcessCreationParameters::decode):
  8234. * Shared/WebProcessCreationParameters.h:
  8235. Remove clearing bools.
  8236. * UIProcess/API/C/WKAPICast.h:
  8237. (WebKit::toResourceCachesToClear):
  8238. Update for new name of enum.
  8239. * UIProcess/API/C/WKContext.cpp:
  8240. * UIProcess/API/C/WKContext.h:
  8241. Remove WKContextClearResourceCaches and WKContextClearApplicationCache.
  8242. * UIProcess/API/C/WKResourceCacheManager.cpp:
  8243. (WKResourceCacheManagerClearCacheForOrigin):
  8244. (WKResourceCacheManagerClearCacheForAllOrigins):
  8245. * UIProcess/API/C/WKResourceCacheManager.h:
  8246. Add WKResourceCachesToClear enum and use it in the clearing functions.
  8247. * UIProcess/WebContext.cpp:
  8248. (WebKit::WebContext::WebContext):
  8249. (WebKit::WebContext::ensureWebProcess):
  8250. * UIProcess/WebContext.h:
  8251. * WebProcess/WebProcess.messages.in:
  8252. Remove clearing functions and setting of bools for clear on launch.
  8253. * UIProcess/WebFullScreenManagerProxy.cpp:
  8254. Remove unnecessary #include.
  8255. * UIProcess/WebResourceCacheManagerProxy.cpp:
  8256. (WebKit::WebResourceCacheManagerProxy::clearCacheForOrigin):
  8257. (WebKit::WebResourceCacheManagerProxy::clearCacheForAllOrigins):
  8258. * UIProcess/WebResourceCacheManagerProxy.h:
  8259. * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
  8260. (WebKit::WebResourceCacheManager::clearCacheForOrigin):
  8261. (WebKit::WebResourceCacheManager::clearCacheForAllOrigins):
  8262. * WebProcess/ResourceCache/WebResourceCacheManager.h:
  8263. * WebProcess/ResourceCache/WebResourceCacheManager.messages.in:
  8264. Add enum parameter describing what type of caches to clear.
  8265. * WebProcess/WebProcess.cpp:
  8266. (WebKit::WebProcess::initializeWebProcess):
  8267. (WebKit::WebProcess::clearResourceCaches):
  8268. * WebProcess/WebProcess.h:
  8269. No longer need to use opaque type now that it is not a message receiver.
  8270. 2011-04-04 David Kilzer <ddkilzer@apple.com>
  8271. <http://webkit.org/b/57384> CFNetwork and WebCore load priorities should match
  8272. Reviewed by Alexey Proskuryakov.
  8273. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  8274. (InitWebCoreSystemInterface): Added initialization for
  8275. wkSetHTTPPipeliningMaximumPriority().
  8276. 2011-04-04 Anders Carlsson <andersca@apple.com>
  8277. Reviewed by Darin Adler.
  8278. Send NPCocoaEventFlagsChanged events
  8279. https://bugs.webkit.org/show_bug.cgi?id=57811
  8280. <rdar://problem/9215600>
  8281. * Shared/WebEvent.h:
  8282. (WebKit::WebEvent::capsLockKey):
  8283. Add CapsLock modifier and getter.
  8284. * Shared/mac/WebEventFactory.mm:
  8285. (WebKit::modifiersForEvent):
  8286. Check for NSAlphaShiftKeyMask and set the CapsLockKey modifier.
  8287. * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
  8288. (WebKit::modifierFlags):
  8289. Check for CapsLockKey and set NSAlphaShiftKeyMask.
  8290. (WebKit::isFlagsChangedEvent):
  8291. Return whether a given event is a Cocoa flags changed event.
  8292. (WebKit::initializeKeyboardEvent):
  8293. If this is a flags changed event, set the event type to NPCocoaEventFlagsChanged.
  8294. 2011-04-04 Anders Carlsson <andersca@apple.com>
  8295. Reviewed by Darin Adler.
  8296. Don't discard the backing stores of WKViews in the key window
  8297. https://bugs.webkit.org/show_bug.cgi?id=57808
  8298. <rdar://problem/9110793>
  8299. <rdar://problem/9194284>
  8300. <rdar://problem/9222216>
  8301. * UIProcess/DrawingAreaProxy.h:
  8302. (WebKit::DrawingAreaProxy::setBackingStoreIsDiscardable):
  8303. Add empty stub.
  8304. * UIProcess/DrawingAreaProxyImpl.cpp:
  8305. (WebKit::DrawingAreaProxyImpl::DrawingAreaProxyImpl):
  8306. Initialize m_isBackingStoreDiscardable to true.
  8307. (WebKit::DrawingAreaProxyImpl::setBackingStoreIsDiscardable):
  8308. Set m_isBackingStoreDiscardable and schedule or stop the discard backing store timer.
  8309. (WebKit::DrawingAreaProxyImpl::discardBackingStoreSoon):
  8310. Don't start the timer if m_isBackingStoreDiscardable is false.
  8311. * UIProcess/DrawingAreaProxyImpl.h:
  8312. Add m_isBackingStoreDiscardable.
  8313. * UIProcess/WebPageProxy.cpp:
  8314. (WebKit::WebPageProxy::viewStateDidChange):
  8315. Mark the backing store as discardable if the view is hidden or if the containing window
  8316. is not active.
  8317. 2011-04-04 Jade Han <jade.han@nokia.com>
  8318. Reviewed by Csaba Osztrogonác.
  8319. Symbian build fix.
  8320. https://bugs.webkit.org/show_bug.cgi?id=54977
  8321. * config.h:
  8322. 2011-04-04 Brady Eidson <beidson@apple.com>
  8323. Rubberstamped by Adam Roben.
  8324. Add WKIconDatabase* headers to the WebKit2 export for Windows:
  8325. * win/WebKit2Generated.make:
  8326. 2011-04-04 Anders Carlsson <andersca@apple.com>
  8327. Reviewed by Dan Bernstein.
  8328. Get rid of WebContext::process() in more places
  8329. https://bugs.webkit.org/show_bug.cgi?id=57787
  8330. Migrate calls to WebContext::process() over to sendToAllProcesses and
  8331. sendToAllProcessesRelaunchingThemIfNecessary.
  8332. Add FIXMEs for things that need to be fixed in order to support multiple web processes.
  8333. * UIProcess/Downloads/DownloadProxy.cpp:
  8334. (WebKit::DownloadProxy::cancel):
  8335. * UIProcess/Plugins/WebPluginSiteDataManager.cpp:
  8336. (WebKit::WebPluginSiteDataManager::getSitesWithData):
  8337. (WebKit::WebPluginSiteDataManager::clearSiteData):
  8338. * UIProcess/VisitedLinkProvider.cpp:
  8339. (WebKit::VisitedLinkProvider::pendingVisitedLinksTimerFired):
  8340. * UIProcess/WebApplicationCacheManagerProxy.cpp:
  8341. (WebKit::WebApplicationCacheManagerProxy::getApplicationCacheOrigins):
  8342. (WebKit::WebApplicationCacheManagerProxy::deleteEntriesForOrigin):
  8343. (WebKit::WebApplicationCacheManagerProxy::deleteAllEntries):
  8344. * UIProcess/WebCookieManagerProxy.cpp:
  8345. (WebKit::WebCookieManagerProxy::getHostnamesWithCookies):
  8346. (WebKit::WebCookieManagerProxy::getHTTPCookieAcceptPolicy):
  8347. * UIProcess/WebDatabaseManagerProxy.cpp:
  8348. (WebKit::WebDatabaseManagerProxy::getDatabasesByOrigin):
  8349. (WebKit::WebDatabaseManagerProxy::getDatabaseOrigins):
  8350. (WebKit::WebDatabaseManagerProxy::deleteDatabaseWithNameForOrigin):
  8351. (WebKit::WebDatabaseManagerProxy::deleteDatabasesForOrigin):
  8352. (WebKit::WebDatabaseManagerProxy::deleteAllDatabases):
  8353. (WebKit::WebDatabaseManagerProxy::setQuotaForOrigin):
  8354. * UIProcess/WebGeolocationManagerProxy.cpp:
  8355. (WebKit::WebGeolocationManagerProxy::providerDidChangePosition):
  8356. (WebKit::WebGeolocationManagerProxy::providerDidFailToDeterminePosition):
  8357. * UIProcess/WebIconDatabase.cpp:
  8358. (WebKit::WebIconDatabase::getLoadDecisionForIconURL):
  8359. (WebKit::WebIconDatabase::didFinishURLImport):
  8360. * UIProcess/WebKeyValueStorageManagerProxy.cpp:
  8361. (WebKit::WebKeyValueStorageManagerProxy::getKeyValueStorageOrigins):
  8362. (WebKit::WebKeyValueStorageManagerProxy::deleteEntriesForOrigin):
  8363. (WebKit::WebKeyValueStorageManagerProxy::deleteAllEntries):
  8364. * UIProcess/WebMediaCacheManagerProxy.cpp:
  8365. (WebKit::WebMediaCacheManagerProxy::getHostnamesWithMediaCache):
  8366. (WebKit::WebMediaCacheManagerProxy::clearCacheForHostname):
  8367. (WebKit::WebMediaCacheManagerProxy::clearCacheForAllHostnames):
  8368. * UIProcess/WebResourceCacheManagerProxy.cpp:
  8369. (WebKit::WebResourceCacheManagerProxy::getCacheOrigins):
  8370. (WebKit::WebResourceCacheManagerProxy::clearCacheForOrigin):
  8371. (WebKit::WebResourceCacheManagerProxy::clearCacheForAllOrigins):
  8372. 2011-04-04 Alexey Proskuryakov <ap@apple.com>
  8373. Reviewed by Dan Bernstein.
  8374. REGRESSION (WebKit2): Caps-Lock indicator sometimes doesn't appear in WebKit2
  8375. https://bugs.webkit.org/show_bug.cgi?id=51230
  8376. <rdar://problem/8780989>
  8377. <rdar://problem/9015250> REGRESSION (WebKit2): Key events not fired for modifier keys
  8378. * UIProcess/API/mac/WKView.mm:
  8379. (-[WKView flagsChanged:]): Ported from WebHTMLView.
  8380. (-[WKView _interpretKeyEvent:withCachedTextInputState:savingCommandsTo:WebCore::]):
  8381. AppKit isn't happy about attempts to interpret NSFlagsChanged, but WK2 lacked the check.
  8382. 2011-04-04 Steve Falkenburg <sfalken@apple.com>
  8383. Reviewed by Adam Roben.
  8384. Remove unused AnalyzeWithLargeStack code from Windows build files
  8385. https://bugs.webkit.org/show_bug.cgi?id=57771
  8386. This was used for us to build with prefast automatically,
  8387. but it is out-of-date and hasn't been used for some time.
  8388. Removing completely for now.
  8389. * win/WebKitPreBuild.cmd:
  8390. 2011-04-04 Anders Carlsson <andersca@apple.com>
  8391. Attempt to fix the Windows build.
  8392. * UIProcess/win/WebContextWin.cpp:
  8393. (WebKit::WebContext::setShouldPaintNativeControls):
  8394. 2011-04-04 Anders Carlsson <andersca@apple.com>
  8395. Reviewed by Adam Roben.
  8396. Make it easier to send a message to all processes in a context
  8397. https://bugs.webkit.org/show_bug.cgi?id=57776
  8398. Add WebContext::sendToAllProcesses and WebContext::sendToAllProcessesRelaunchingThemIfNecessary
  8399. as a first step towards getting rid of WebContext::process() and getting rid of a class of crashers
  8400. where WebContext::process() is null.
  8401. * UIProcess/WebContext.cpp:
  8402. (WebKit::WebContext::initializeHistoryClient):
  8403. (WebKit::WebContext::languageChanged):
  8404. (WebKit::WebContext::setAlwaysUsesComplexTextCodePath):
  8405. (WebKit::WebContext::registerURLSchemeAsEmptyDocument):
  8406. (WebKit::WebContext::registerURLSchemeAsSecure):
  8407. (WebKit::WebContext::setDomainRelaxationForbiddenForURLScheme):
  8408. (WebKit::WebContext::setCacheModel):
  8409. (WebKit::WebContext::setDefaultRequestTimeoutInterval):
  8410. (WebKit::WebContext::clearResourceCaches):
  8411. (WebKit::WebContext::clearApplicationCache):
  8412. (WebKit::WebContext::setEnhancedAccessibility):
  8413. (WebKit::WebContext::startMemorySampler):
  8414. Use sendToAllProcesses.
  8415. (WebKit::WebContext::stopMemorySampler):
  8416. Use sendToAllProcesses. This is a slight policy change where we now create a sandbox extension even
  8417. if there's no process around. Since this is a debugging tool it seems OK to do this.
  8418. * UIProcess/WebContext.h:
  8419. Get rid of hasValidProcess.
  8420. (WebKit::WebContext::sendToAllProcesses):
  8421. If we have a process and we can send messages to it, then do so.
  8422. (WebKit::WebContext::sendToAllProcessesRelaunchingThemIfNecessary):
  8423. Relaunch the web process and send the message.
  8424. * UIProcess/WebCookieManagerProxy.cpp:
  8425. (WebKit::WebCookieManagerProxy::deleteCookiesForHostname):
  8426. (WebKit::WebCookieManagerProxy::deleteAllCookies):
  8427. (WebKit::WebCookieManagerProxy::startObservingCookieChanges):
  8428. (WebKit::WebCookieManagerProxy::stopObservingCookieChanges):
  8429. (WebKit::WebCookieManagerProxy::setHTTPCookieAcceptPolicy):
  8430. Use sendToAllProcesses and sendToAllProcessesRelaunchingThemIfNecessary.
  8431. 2011-04-04 Adam Roben <aroben@apple.com>
  8432. Move a teensy bit of non-Mac-specific code up to LayerTreeHostCA
  8433. Fixes <http://webkit.org/b/57774> LayerTreeHostCA should know how to flip the root layer
  8434. Reviewed by Anders Carlsson.
  8435. * WebProcess/WebPage/ca/LayerTreeHostCA.cpp:
  8436. (WebKit::LayerTreeHostCA::initialize): Cross-platformized and moved some code here...
  8437. * WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.mm:
  8438. (WebKit::LayerTreeHostCAMac::platformInitialize): ...from here.
  8439. 2011-04-01 Enrica Casucci <enrica@apple.com>
  8440. Reviewed by Darin Adler.
  8441. WK2: Reproducible crash when dragging out of or over Safari window.
  8442. https://bugs.webkit.org/show_bug.cgi?id=57654
  8443. <rdar://problem/9139755>
  8444. AppKit does not retain the owner given to the pasteboard, therefore we
  8445. need to give the ownership of the retained pointer to NSPasteboard.
  8446. Also, dragImage will release the NSFilePromiseDragSource object, therefore
  8447. we retain it before calling dragImage to be able to control its lifetime.
  8448. * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
  8449. (WebKit::WebDragClient::declareAndWriteDragImage): Passing ownership
  8450. of the pointer to AppKit when providing the owner pointer to the NSPasteboard
  8451. object.
  8452. * WebProcess/WebPage/mac/WebPageMac.mm:
  8453. (WebKit::WebPage::platformDragEnded): Retaining the NSFilePromiseDragSource
  8454. since dragImage will release it.
  8455. 2011-03-30 Jer Noble <jer.noble@apple.com>
  8456. Reviewed by Dan Bernstein.
  8457. WebKit2: No "open in preview" contextual menu item for PDFs
  8458. https://bugs.webkit.org/show_bug.cgi?id=57527
  8459. Add support for opening a PDF in the associated application from the
  8460. context menu.
  8461. * UIProcess/API/mac/PDFViewController.mm:
  8462. (_applicationInfoForMIMEType): Added, copied from WebKit/WebPDFView.mm
  8463. (-[WKPDFView _openWithFinder:]): Added.
  8464. (-[WKPDFView hitTest:]): Added, copied from WebKit/WebPDFView.mm.
  8465. (-[WKPDFView menuForEvent:]): Added, adapted from WebKit/WebPDFVie.mm.
  8466. (-[WKPDFView validateUserInterfaceItem:]): Added.
  8467. 2011-04-04 Chang Shu <cshu@webkit.org>
  8468. Reviewed by Darin Adler.
  8469. WebKitTestRunner needs layoutTestController.setAllowFileAccessFromFileURLs
  8470. https://bugs.webkit.org/show_bug.cgi?id=57572
  8471. * Shared/WebPreferencesStore.cpp:
  8472. (WebKit::WebPreferencesStore::decode):
  8473. (WebKit::WebPreferencesStore::overrideAllowFileAccessFromFileURLsForTestRunner):
  8474. * Shared/WebPreferencesStore.h:
  8475. * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
  8476. (WKBundleSetAllowFileAccessFromFileURLs):
  8477. * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  8478. * WebProcess/InjectedBundle/InjectedBundle.cpp:
  8479. (WebKit::InjectedBundle::setAllowFileAccessFromFileURLs):
  8480. * WebProcess/InjectedBundle/InjectedBundle.h:
  8481. 2011-04-04 Brady Eidson <beidson@apple.com>
  8482. Reviewed by Darin Adler.
  8483. https://bugs.webkit.org/show_bug.cgi?id=57683
  8484. Flesh out WK2 Icon Database API
  8485. For now the new API will add a client interface where the WK1 version used NSNotifications.
  8486. If we decide we'd like the granularity of specific callback functions later,
  8487. they can easily be added on.
  8488. Project file nonsense:
  8489. * GNUmakefile.am:
  8490. * WebKit2.pro:
  8491. * WebKit2.xcodeproj/project.pbxproj:
  8492. * win/WebKit2.vcproj:
  8493. Add a WKIconDatabaseClient and some new API:
  8494. * UIProcess/API/C/WKIconDatabase.cpp:
  8495. (WKIconDatabaseSetIconDatabaseClient):
  8496. (WKIconDatabaseRemoveAllIcons):
  8497. (WKIconDatabaseCheckIntegrityBeforeOpening):
  8498. * UIProcess/API/C/WKIconDatabase.h:
  8499. * UIProcess/API/C/cg/WKIconDatabaseCG.cpp:
  8500. (WKIconDatabaseTryGetCGImageForURL): Renamed to "try" for subtle clarification.
  8501. * UIProcess/API/C/cg/WKIconDatabaseCG.h:
  8502. Implementations for the new APIs:
  8503. * UIProcess/WebIconDatabase.cpp:
  8504. (WebKit::WebIconDatabase::retainIconForPageURL): Remove excessive logging.
  8505. (WebKit::WebIconDatabase::releaseIconForPageURL): Ditto.
  8506. (WebKit::WebIconDatabase::imageForPageURL):
  8507. (WebKit::WebIconDatabase::removeAllIcons):
  8508. (WebKit::WebIconDatabase::checkIntegrityBeforeOpening):
  8509. (WebKit::WebIconDatabase::initializeIconDatabaseClient):
  8510. (WebKit::WebIconDatabase::didImportIconURLForPageURL): Dispatch a client callback,
  8511. much like the WK1 API uses notifications.
  8512. (WebKit::WebIconDatabase::didImportIconDataForPageURL): Ditto.
  8513. (WebKit::WebIconDatabase::didChangeIconForPageURL): Ditto.
  8514. (WebKit::WebIconDatabase::didRemoveAllIcons): Ditto.
  8515. * UIProcess/WebIconDatabase.h:
  8516. * UIProcess/WebIconDatabaseClient.cpp: Added.
  8517. (WebKit::WebIconDatabaseClient::didChangeIconForPageURL):
  8518. (WebKit::WebIconDatabaseClient::didRemoveAllIcons):
  8519. * UIProcess/WebIconDatabaseClient.h: Added.
  8520. 2011-04-04 Carlos Garcia Campos <cgarcia@igalia.com>
  8521. Reviewed by Martin Robinson.
  8522. [GTK] Main loop sources are leaked in RunLoopGtk
  8523. https://bugs.webkit.org/show_bug.cgi?id=57618
  8524. * Platform/RunLoop.h:
  8525. (RunLoop::TimerBase::isRepeating):
  8526. * Platform/gtk/RunLoopGtk.cpp:
  8527. (RunLoop::~RunLoop): Make sure main loop is currently running
  8528. before calling g_main_loop_quit(), RunLoop::stop() might have been
  8529. called.
  8530. (RunLoop::wakeUp): Use an idle source with default priority
  8531. instead of a timeout one with a 0 interval.
  8532. (RunLoop::TimerBase::clearTimerSource): New method to clear the
  8533. timer.
  8534. (RunLoop::TimerBase::destroyNotifyCallback): Destroy notify
  8535. callback called when the source is destroyed to clear the timer.
  8536. (RunLoop::TimerBase::timerFiredCallback): Use the same callback for
  8537. repeating and no repeating timers.
  8538. (RunLoop::TimerBase::start): g_source_attach() increments the
  8539. source reference counter, so use GRefPtr to make sure the source
  8540. is freed.
  8541. (RunLoop::TimerBase::stop): Use clearTimerSource().
  8542. 2011-04-03 Dan Bernstein <mitz@apple.com>
  8543. Build fix.
  8544. * Shared/DictionaryPopupInfo.cpp:
  8545. (WebKit::DictionaryPopupInfo::encode):
  8546. (WebKit::DictionaryPopupInfo::decode):
  8547. * Shared/DictionaryPopupInfo.h:
  8548. 2011-04-03 Dan Bernstein <mitz@apple.com>
  8549. Reviewed by Maciej Stachowiak.
  8550. <rdar://problem/9227839> REGRESSION: Reproducible crash in Snow Leopard when trying to show the Dictionary panel or application
  8551. https://bugs.webkit.org/show_bug.cgi?id=57739
  8552. * Shared/DictionaryPopupInfo.cpp:
  8553. (WebKit::DictionaryPopupInfo::encode): Do not encode the options dictionary on Snow Leopard.
  8554. (WebKit::DictionaryPopupInfo::decode): Do not decode the options dictionary on Snow Leopard.
  8555. * Shared/DictionaryPopupInfo.h: Removed the options member variable on Snow Leopard.
  8556. * Shared/Plugins/PluginQuirks.h:
  8557. * WebProcess/WebPage/mac/WebPageMac.mm:
  8558. (WebKit::WebPage::performDictionaryLookupForRange): Do not set the options member variable on
  8559. Snow Leopard.
  8560. 2011-04-02 Sam Weinig <sam@webkit.org>
  8561. Reviewed by Beth Dakin.
  8562. https://bugs.webkit.org/show_bug.cgi?id=57605
  8563. Frame::pageScaleFactor() should not affect getBoundingClientRect() or
  8564. getClientRects()
  8565. -and corresponding-
  8566. <rdar://problem/9194541>
  8567. Add DRT support for the scaleWebView SPI.
  8568. * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
  8569. (WKBundlePageSetScaleAtOrigin):
  8570. * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
  8571. 2011-04-02 Sam Weinig <sam@webkit.org>
  8572. Reviewed by Oliver Hunt.
  8573. "Search in Spotlight" broken in WebKit2
  8574. https://bugs.webkit.org/show_bug.cgi?id=57712
  8575. Proxy spotlight searching to the UIProcess.
  8576. * UIProcess/WebPageProxy.messages.in:
  8577. Add new message. Re-organize messages to put all mac specific ones together.
  8578. * UIProcess/WebPageProxy.h:
  8579. * UIProcess/mac/WebPageProxyMac.mm:
  8580. (WebKit::WebPageProxy::speak):
  8581. (WebKit::WebPageProxy::searchWithSpotlight):
  8582. Moved code to trigger spotlight here. Use WTF::String -> NSString conversion function
  8583. instead of relying on the built in conversion since it doesn't always work in the UIProcess.
  8584. * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
  8585. (WebKit::WebContextMenuClient::searchWithSpotlight):
  8586. Post message to the UIProcess to do the searching.
  8587. 2011-04-02 Jeff Miller <jeffm@apple.com>
  8588. Reviewed by Dan Bernstein.
  8589. WebKit2: Specify the certificate store in WKBundleSetClientCertificate()
  8590. https://bugs.webkit.org/show_bug.cgi?id=57707
  8591. Include the name of the system certificate store that the client certificate came from in WKBundleSetClientCertificate().
  8592. The PCCERT_CONTEXT for the client certificate we create from the message from the UI process doesn't contain enough information to actually use it in a request, we need to get the real certificate from the certificate store (which is typically the "MY" store).
  8593. * WebProcess/InjectedBundle/API/c/win/WKBundlePrivateWin.cpp:
  8594. (WKBundleSetClientCertificate): Add certificateSystemStoreName to parameters.
  8595. * WebProcess/InjectedBundle/API/c/win/WKBundlePrivateWin.h: Add certificateSystemStoreName to WKBundleSetClientCertificate() parameters.
  8596. * WebProcess/InjectedBundle/InjectedBundle.h: Add certificateSystemStoreName to setClientCertificate() parameters.
  8597. * WebProcess/InjectedBundle/win/InjectedBundleWin.cpp:
  8598. (WebKit::InjectedBundle::setClientCertificate): Read the real certificate from the certificate store.
  8599. 2011-04-02 Sam Weinig <sam@webkit.org>
  8600. Reviewed by Dan Bernstein.
  8601. Implement WKBundleFrameHasHorizontalScrollbar/WKBundleFrameHasVerticalScrollbar
  8602. <rdar://problem/9225772>
  8603. https://bugs.webkit.org/show_bug.cgi?id=57709
  8604. * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
  8605. (WKBundleFrameHasHorizontalScrollbar):
  8606. (WKBundleFrameHasVerticalScrollbar):
  8607. * WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
  8608. * WebProcess/WebPage/WebFrame.cpp:
  8609. (WebKit::WebFrame::hasHorizontalScrollbar):
  8610. (WebKit::WebFrame::hasVerticalScrollbar):
  8611. * WebProcess/WebPage/WebFrame.h:
  8612. 2011-04-01 Jon Lee <jonlee@apple.com>
  8613. Reviewed by Darin Adler.
  8614. WebKit2: Type-to-select doesn't work in open <select> menu (53023)
  8615. https://bugs.webkit.org/show_bug.cgi?id=53023
  8616. <rdar://problem/8907678>
  8617. * UIProcess/WebPageProxy.h:
  8618. * UIProcess/WebPageProxy.messages.in: adding new setPopupMenuSelectedIndex message for windows platform
  8619. * UIProcess/win/WebPageProxyWin.cpp:
  8620. (WebKit::WebPageProxy::setPopupMenuSelectedIndex):
  8621. * UIProcess/win/WebPopupMenuProxyWin.h: moving setFocusedIndex() into public method
  8622. * WebProcess/WebCoreSupport/WebPopupMenu.cpp:
  8623. (WebKit::WebPopupMenu::updateFromElement): send message back to UIProcess to update the selected element
  8624. 2011-04-01 Alexey Proskuryakov <ap@apple.com>
  8625. Reviewed by Darin Adler.
  8626. REGRESSION: Assertion failure when executing a complex custom key binding
  8627. https://bugs.webkit.org/show_bug.cgi?id=57681
  8628. Also completes a fix for
  8629. <rdar://problem/9063782> WebKit2: Text fields in Safari don't honor custom key bindings
  8630. * UIProcess/API/mac/WKView.mm: (-[WKView hasMarkedText]): There is no need to execute saved
  8631. commands when they can't possibly change the result.
  8632. 2011-04-01 Brian Weinstein <bweinstein@apple.com>
  8633. Reviewed by Anders Carlsson.
  8634. Crash when calling WebPageProxy::setMemoryCacheClientCallsEnabled with an invalid Web Process
  8635. https://bugs.webkit.org/show_bug.cgi?id=57680
  8636. <rdar://problem/9202909>
  8637. * UIProcess/WebPageProxy.cpp:
  8638. (WebKit::WebPageProxy::setMemoryCacheClientCallsEnabled): Add an isValid check before sending
  8639. the message.
  8640. 2011-03-31 Jer Noble <jer.noble@apple.com>
  8641. Reviewed by Dan Bernstein.
  8642. WebKit2: Save as PDF in Safari provides Untitled as default file name
  8643. https://bugs.webkit.org/show_bug.cgi?id=57529
  8644. Set the NSPrintOperation's jobTitle to the printing frame's title.
  8645. * UIProcess/API/mac/WKView.mm:
  8646. (-[WKView printOperationWithPrintInfo:forFrame:]):
  8647. 2011-04-01 Jer Noble <jer.noble@apple.com>
  8648. Reviewed by Darin Adler.
  8649. WebKit2: Link from PDF opens in a new tab instead of in the same tab
  8650. https://bugs.webkit.org/show_bug.cgi?id=57528
  8651. Notify the WebProcess that a link has been clicked so that the normal policy
  8652. lookup can occur.
  8653. * Shared/WebEvent.cpp:
  8654. (WebKit::WebEvent::WebEvent): Initialize ivars in the default constructor.
  8655. * Shared/WebEvent.h: Add WebEvent::NoType to Type enum.
  8656. * Shared/WebMouseEvent.cpp:
  8657. (WebKit::WebMouseEvent::WebMouseEvent): Ditto.
  8658. * UIProcess/API/mac/PDFViewController.mm:
  8659. (-[WKPDFView PDFViewWillClickOnLink:withURL:]): Handle the delegate
  8660. function and override the PDFView default behavior.
  8661. * UIProcess/WebPageProxy.cpp:
  8662. (WebKit::WebPageProxy::didReceiveEvent): Handle the new WebEvent::NoType enum.
  8663. (WebKit::WebPageProxy::linkClicked): Added. Send event through to WebPage.
  8664. * UIProcess/WebPageProxy.h:
  8665. * WebProcess/WebPage/WebPage.cpp:
  8666. (WebKit::WebPage::linkClicked): Added. Call loadFrameRequest().
  8667. * WebProcess/WebPage/WebPage.h:
  8668. * WebProcess/WebPage/WebPage.messages.in: Added LinkClicked.
  8669. 2011-04-01 Sam Weinig <sam@webkit.org>
  8670. Reviewed by Adam "Keyword Slasher" Roben.
  8671. Remove unnecessary static keyword.
  8672. * UIProcess/API/cpp/WKRetainPtr.h:
  8673. (WebKit::adoptWK):
  8674. 2011-04-01 Sam Weinig <sam@webkit.org>
  8675. Reviewed by Adam Roben.
  8676. Add adoptWK to WKRetainPtr.h
  8677. https://bugs.webkit.org/show_bug.cgi?id=57670
  8678. * UIProcess/API/cpp/WKRetainPtr.h:
  8679. (WebKit::adoptWK):
  8680. Add shared implementation of adoptWK. Previously both WebKitTestRunner
  8681. and TestWebKitAPI had separate versions of it.
  8682. 2011-04-01 Anders Carlsson <andersca@apple.com>
  8683. Reviewed by Sam Weinig.
  8684. Shockwave plug-in doesn't accept mouse events
  8685. https://bugs.webkit.org/show_bug.cgi?id=57653
  8686. <rdar://problem/8483273>
  8687. Add a missing break.
  8688. * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
  8689. (WebKit::NetscapePlugin::convertPoint):
  8690. 2011-04-01 Sam Weinig <sam@webkit.org>
  8691. Reviewed by Anders Carlsson.
  8692. WebKitTestRunner needs layoutTestController.shadowRoot
  8693. https://bugs.webkit.org/show_bug.cgi?id=57661
  8694. * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
  8695. (WKBundleNodeHandleGetRenderRect):
  8696. (WKBundleNodeHandleGetElementBounds):
  8697. (WKBundleNodeHandleCopyElementShadowRoot):
  8698. * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h:
  8699. * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
  8700. (WebKit::InjectedBundleNodeHandle::elementShadowRoot):
  8701. * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
  8702. Add accessor for the shadowRoot of an element in the bundle.
  8703. 2011-04-01 Alexey Proskuryakov <ap@apple.com>
  8704. Reviewed by Darin Adler.
  8705. Make WebKit2 text input handling more like WebKit1
  8706. https://bugs.webkit.org/show_bug.cgi?id=57649
  8707. We now send more sync messages from UI process to Web process for NSTextInput protocol
  8708. methods. Some of the exchanges are avoided by pre-calculating the responses before asking
  8709. UI process to interpret key events, and also with each sync message sent during
  8710. interpretation, and which could change the state.
  8711. * Platform/CoreIPC/HandleMessage.h: (CoreIPC::callMemberFunction): Added a missing
  8712. specialization for a function with 6 arguments and 2 returned values.
  8713. * Scripts/webkit2/messages.py: Added TextInputState to struct list.
  8714. * Shared/WebCoreArgumentCoders.h: Fixed a bug in CompositionUnderline encoding, which only
  8715. encoded a part of Color field, and didn't match decoder.
  8716. * Shared/mac/TextInputState.h: Added. This is state that's needed for IM machinery and that
  8717. we don't want to send sync messages for. This is similar to SelectionState, but the latter
  8718. is only updated asynchronously, and is thus less reliable.
  8719. * UIProcess/API/mac/PageClientImpl.h: We don't "intercept", we "interpret".
  8720. * UIProcess/API/mac/PageClientImpl.mm: (WebKit::PageClientImpl::interpretKeyEvent): Pass
  8721. current text input state, and don't expect anything input method related in return, as input
  8722. methods are now sync.
  8723. * UIProcess/API/mac/WKView.mm:
  8724. (-[WKView doCommandBySelector:]):
  8725. (-[WKView insertText:]):
  8726. (-[WKView keyDown:]):
  8727. (-[WKView _executeSavedKeypressCommands]):
  8728. (-[WKView inputContext]):
  8729. (-[WKView selectedRange]):
  8730. (-[WKView hasMarkedText]):
  8731. (-[WKView unmarkText]):
  8732. (-[WKView setMarkedText:selectedRange:]):
  8733. (-[WKView markedRange]):
  8734. (-[WKView attributedSubstringFromRange:]):
  8735. (-[WKView characterIndexForPoint:]):
  8736. (-[WKView firstRectForCharacterRange:]):
  8737. (-[WKView _interpretKeyEvent:withCachedTextInputState:savingCommandsTo:WebCore::]):
  8738. * UIProcess/API/mac/WKViewInternal.h:
  8739. * UIProcess/PageClient.h:
  8740. * UIProcess/WebPageProxy.h:
  8741. * UIProcess/WebPageProxy.messages.in:
  8742. * UIProcess/mac/WebPageProxyMac.mm:
  8743. (WebKit::WebPageProxy::setComposition):
  8744. (WebKit::WebPageProxy::confirmComposition):
  8745. (WebKit::WebPageProxy::insertText):
  8746. (WebKit::WebPageProxy::getSelectedRange):
  8747. (WebKit::WebPageProxy::executeKeypressCommands):
  8748. (WebKit::WebPageProxy::interpretQueuedKeyEvent):
  8749. * WebKit2.xcodeproj/project.pbxproj:
  8750. * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
  8751. (WebKit::WebEditorClient::handleKeyboardEvent):
  8752. (WebKit::WebEditorClient::handleInputMethodKeydown):
  8753. * WebProcess/WebPage/WebPage.cpp:
  8754. (WebKit::WebPage::WebPage):
  8755. * WebProcess/WebPage/WebPage.h:
  8756. (WebKit::WebPage::viewFrameInWindowCoordinates):
  8757. * WebProcess/WebPage/WebPage.messages.in:
  8758. * WebProcess/WebPage/mac/WebPageMac.mm:
  8759. (WebKit::createSelectorExceptionMap):
  8760. (WebKit::commandNameForSelectorName):
  8761. (WebKit::currentTextInputState):
  8762. (WebKit::frameForEvent):
  8763. (WebKit::WebPage::executeKeypressCommandsInternal):
  8764. (WebKit::WebPage::handleEditingKeyboardEvent):
  8765. (WebKit::WebPage::setComposition):
  8766. (WebKit::WebPage::confirmComposition):
  8767. (WebKit::WebPage::insertText):
  8768. (WebKit::WebPage::getSelectedRange):
  8769. (WebKit::convertToRange):
  8770. (WebKit::WebPage::executeKeypressCommands):
  8771. (WebKit::WebPage::performDefaultBehaviorForKeyEvent):
  8772. Rewrote to be more like WebKit1.
  8773. 2011-04-01 Chang Shu <cshu@webkit.org>
  8774. Reviewed by Darin Adler.
  8775. WebKitTestRunner needs layoutTestController.setDatabaseQuota
  8776. https://bugs.webkit.org/show_bug.cgi?id=57568
  8777. * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
  8778. (WKBundleSetDatabaseQuota):
  8779. * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  8780. * WebProcess/InjectedBundle/InjectedBundle.cpp:
  8781. (WebKit::InjectedBundle::setDatabaseQuota):
  8782. * WebProcess/InjectedBundle/InjectedBundle.h:
  8783. * WebProcess/WebCoreSupport/WebDatabaseManager.h:
  8784. 2011-04-01 Timothy Hatcher <timothy@apple.com>
  8785. Make momentum scroll event latching work in WebKit2 on Mac.
  8786. <rdar://problem/8751861>
  8787. Reviewed by Darin Adler.
  8788. * Shared/mac/WebEventFactory.mm:
  8789. (WebKit::momentumPhaseForEvent): Return a phase on older Mac system by using WKGetNSEventMomentumPhase.
  8790. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  8791. (InitWebCoreSystemInterface): Remove IsLatchingWheelEvent, add GetNSEventMomentumPhase.
  8792. 2011-04-01 Alexey Proskuryakov <ap@apple.com>
  8793. Reviewed by Anders Carlsson.
  8794. Assertion failure (type == event.type()) after a web process crash
  8795. https://bugs.webkit.org/show_bug.cgi?id=56228
  8796. <rdar://problem/8806106>
  8797. This partially un-confuses the UI process about key processing state after a web process
  8798. crash. It may not be pefect yet - sending a KeyUp to a new process that never saw a KeyDown
  8799. seems weird.
  8800. * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::processDidCrash):
  8801. 2011-04-01 Adam Roben <aroben@apple.com>
  8802. Cairo build fix
  8803. * WebProcess/WebPage/LayerTreeHost.cpp: Only pull in the LayerTreeHostCA derived classes for
  8804. PLATFORM(CA) ports.
  8805. 2011-03-31 Adam Roben <aroben@apple.com>
  8806. Split LayerTreeHostCA into a base class and derived Mac and Win classes
  8807. This will make it easier to customize the Mac and Windows implementations without adding too
  8808. many #ifdefs.
  8809. Fixes <http://webkit.org/b/57606> Windows and Mac should use separate LayerTreeHost classes
  8810. Reviewed by Anders Carlsson.
  8811. * WebKit2.xcodeproj/project.pbxproj: Added LayerTreeHostCAMac.h.
  8812. * WebProcess/WebPage/LayerTreeHost.cpp:
  8813. (WebKit::LayerTreeHost::create): Create a LayerTreeHostCAMac on Mac, and LayerTreeHostCAWin
  8814. on Windows.
  8815. * WebProcess/WebPage/ca/LayerTreeHostCA.cpp:
  8816. (WebKit::LayerTreeHostCA::LayerTreeHostCA): Moved some code from here...
  8817. (WebKit::LayerTreeHostCA::initialize): ...to here. This function will be called after the
  8818. constructor returns, and thus can safely call functions that are pure virtual in this class
  8819. and its base class. We now pass our LayerTreeContext to platformInitialize so that our
  8820. derived classes can initialize it.
  8821. (WebKit::LayerTreeHostCA::~LayerTreeHostCA): Removed Mac-specific code.
  8822. (WebKit::LayerTreeHostCA::invalidate):
  8823. (WebKit::LayerTreeHostCA::sizeDidChange):
  8824. (WebKit::LayerTreeHostCA::forceRepaint):
  8825. (WebKit::LayerTreeHostCA::didPerformScheduledLayerFlush):
  8826. Removed platform* calls. Derived classes can just override these functions to do what they
  8827. need.
  8828. * WebProcess/WebPage/ca/LayerTreeHostCA.h: Removed Mac-specific pieces. Made some functions
  8829. virtual so that derived classes can override them.
  8830. * WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.h: Added.
  8831. * WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.mm:
  8832. (WebKit::LayerTreeHostCAMac::create): Create and initialize a host.
  8833. (WebKit::LayerTreeHostCAMac::LayerTreeHostCAMac): Simple constructor.
  8834. (WebKit::LayerTreeHostCAMac::~LayerTreeHostCAMac): Moved code here from LayerTreeHostCA
  8835. destructor.
  8836. (WebKit::LayerTreeHostCAMac::platformInitialize): Removed direct uses of LayerTreeHostCA
  8837. data members.
  8838. (WebKit::LayerTreeHostCAMac::invalidate):
  8839. (WebKit::LayerTreeHostCAMac::sizeDidChange):
  8840. (WebKit::LayerTreeHostCAMac::forceRepaint):
  8841. (WebKit::LayerTreeHostCAMac::didPerformScheduledLayerFlush):
  8842. Renamed from platform*. Now call up to the base class.
  8843. (WebKit::LayerTreeHostCAMac::flushPendingLayerChangesRunLoopObserverCallback): Updated type.
  8844. * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.cpp:
  8845. (WebKit::LayerTreeHostCAWin::create): Create and initialize a host.
  8846. (WebKit::LayerTreeHostCAWin::LayerTreeHostCAWin):
  8847. (WebKit::LayerTreeHostCAWin::~LayerTreeHostCAWin):
  8848. (WebKit::LayerTreeHostCAWin::platformInitialize):
  8849. (WebKit::LayerTreeHostCAWin::scheduleLayerFlush):
  8850. Stubbed out.
  8851. * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.h: Added.
  8852. * win/WebKit2.vcproj: Added LayerTreeHostCAWin.h
  8853. * win/WebKit2Apple.vsprops: Added WebProcess/WebPage/ca/win to the include path.
  8854. 2011-03-31 Brent Fulgham <bfulgham@webkit.org>
  8855. Unreviewed WinCairo build fix after r82632.
  8856. * UIProcess/DrawingAreaProxyImpl.cpp:
  8857. (WebKit::DrawingAreaProxyImpl::visibilityDidChange):
  8858. 2011-03-31 Adam Roben <aroben@apple.com>
  8859. Add SharedMemory::adopt, which can take ownership of an existing file mapping object
  8860. Fixes <http://webkit.org/b/57599> Need a way to wrap an existing file mapping object in a
  8861. SharedMemory
  8862. Reviewed by Anders Carlsson.
  8863. * Platform/SharedMemory.h: Added adopt.
  8864. * Platform/win/SharedMemoryWin.cpp:
  8865. (WebKit::SharedMemory::create): Moved code to adopt the HANDLE from here...
  8866. (WebKit::SharedMemory::adopt): ...to here.
  8867. 2011-03-31 Chang Shu <cshu@webkit.org>
  8868. Reviewed by Darin Adler.
  8869. WebKitTestRunner needs layoutTestController.clearAllDatabases
  8870. https://bugs.webkit.org/show_bug.cgi?id=42540
  8871. * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
  8872. (WKBundleClearAllDatabases):
  8873. * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  8874. * WebProcess/InjectedBundle/InjectedBundle.cpp:
  8875. (WebKit::InjectedBundle::clearAllDatabases):
  8876. * WebProcess/InjectedBundle/InjectedBundle.h:
  8877. * WebProcess/WebCoreSupport/WebDatabaseManager.h:
  8878. 2011-03-31 Anders Carlsson <andersca@apple.com>
  8879. Reviewed by Sam Weinig.
  8880. Add some more media related things to the sandbox profile.
  8881. * WebProcess/com.apple.WebProcess.sb:
  8882. 2011-03-31 Anders Carlsson <andersca@apple.com>
  8883. Reviewed by Dan Bernstein.
  8884. Tabbed pages redraw unnecessarily when activated
  8885. https://bugs.webkit.org/show_bug.cgi?id=57589
  8886. <rdar://problem/9218258>
  8887. * UIProcess/DrawingAreaProxyImpl.cpp:
  8888. (WebKit::DrawingAreaProxyImpl::visibilityDidChange):
  8889. If we become visible and have no backing store, make sure to call backingStoreStateDidChange
  8890. so that the next time we're asked to paint we'll wait for something to paint.
  8891. (WebKit::DrawingAreaProxyImpl::exitAcceleratedCompositingMode):
  8892. Remove now redundant call to backingStoreStateDidChange.
  8893. 2011-03-31 Sam Weinig <sam@webkit.org>
  8894. Reviewed by Anders Carlsson.
  8895. Sandbox violations when playing back HTML5 video on YouTube
  8896. <rdar://problem/8950692>
  8897. * WebProcess/com.apple.WebProcess.sb:
  8898. 2011-03-31 Darin Adler <darin@apple.com>
  8899. Reviewed by Sam Weinig.
  8900. Implement mouseDown, mouseUp, and mouseMoveTo in WebKitTestRunner
  8901. https://bugs.webkit.org/show_bug.cgi?id=57573
  8902. * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
  8903. (WKBundlePageSimulateMouseDown): Added.
  8904. (WKBundlePageSimulateMouseUp): Added.
  8905. (WKBundlePageSimulateMouseMotion): Added.
  8906. * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h: Added above functions.
  8907. * WebProcess/WebPage/WebPage.cpp:
  8908. (WebKit::WebPage::simulateMouseDown): Added.
  8909. (WebKit::WebPage::simulateMouseUp): Added.
  8910. (WebKit::WebPage::simulateMouseMotion): Added.
  8911. * WebProcess/WebPage/WebPage.h: Added above functions.
  8912. 2011-03-31 Sam Weinig <sam@webkit.org>
  8913. Reviewed by Anders Carlsson.
  8914. Rename WebCore's UI_STRING to WEB_UI_STRING to not overlap with WebKit API
  8915. https://bugs.webkit.org/show_bug.cgi?id=57582
  8916. * PluginProcess/mac/PluginProcessMac.mm:
  8917. (WebKit::PluginProcess::platformInitialize):
  8918. * UIProcess/mac/WebInspectorProxyMac.mm:
  8919. (WebKit::WebInspectorProxy::platformInspectedURLChanged):
  8920. * WebProcess/WebCoreSupport/mac/WebErrorsMac.mm:
  8921. * WebProcess/mac/WebProcessMac.mm:
  8922. (WebKit::WebProcess::platformInitializeWebProcess):
  8923. 2011-03-31 Adam Roben <aroben@apple.com>
  8924. Specify both FILE_MAP_READ and FILE_MAP_WRITE when creating a read-write SharedMemory object
  8925. When passed to ::MapViewOfFile, FILE_MAP_WRITE implies FILE_MAP_READ, but other file mapping
  8926. APIs don't work that way. This bug wasn't causing any problems in practice, but it would
  8927. have prevented us from creating a DIB that wraps a SharedMemory object (which I noticed
  8928. while working on another bug).
  8929. Fixes <http://webkit.org/b/57576> File mappings used by read-write SharedMemory objects
  8930. aren't correctly marked as read-write after being sent over a CoreIPC::Connection
  8931. Reviewed by Brian Weinstein.
  8932. * Platform/win/SharedMemoryWin.cpp:
  8933. (WebKit::accessRights): Specify FILE_MAP_READ in addition to FILE_MAP_WRITE for read-write
  8934. SharedMemory.
  8935. 2011-03-31 Adam Roben <aroben@apple.com>
  8936. Quote the executable path we pass to ::CreateProcessW
  8937. This will ensure that spaces in the path will be interpreted correctly.
  8938. Fixes <http://webkit.org/b/57569> Web process sometimes fails to launch when there are
  8939. spaces in its path
  8940. Reviewed by Steve Falkenburg.
  8941. * UIProcess/Launcher/win/ProcessLauncherWin.cpp:
  8942. (WebKit::ProcessLauncher::launchProcess): Surround the executable path in quotes.
  8943. 2011-03-31 Alexey Proskuryakov <ap@apple.com>
  8944. Patch by John Harvey, reviewed and tweaked by me.
  8945. <rdar://problem/8644403> Should notify TSM that plug-ins would show a bottom input window for marked text.
  8946. * UIProcess/API/mac/WKTextInputWindowController.mm:
  8947. (-[WKTextInputPanel _interpretKeyEvent:string:]):
  8948. 2011-03-31 Anders Carlsson <andersca@apple.com>
  8949. Reviewed by John Sullivan, Darin Adler, Dan Bernstein and Sam Weinig.
  8950. If a user doesn't have a Database/LocalStorage directory, it can't be created (sandbox violations)
  8951. https://bugs.webkit.org/show_bug.cgi?id=57561
  8952. <rdar://problem/9127411>
  8953. Ensure that any readwrite sandbox directories actually exist before entering the sandbox.
  8954. * WebProcess/mac/WebProcessMac.mm:
  8955. (WebKit::appendReadwriteSandboxDirectory):
  8956. 2011-03-31 John Sullivan <sullivan@apple.com>
  8957. Reviewed by Darin Adler and Adam Roben.
  8958. <rdar://problem/9214824> Find client not told when WKPageCountStringMatches exceeds maximum
  8959. https://bugs.webkit.org/show_bug.cgi?id=57552
  8960. * WebProcess/WebPage/FindController.cpp:
  8961. (WebKit::FindController::countStringMatches):
  8962. Use the same technique as findString() to report kWKMoreThanMaximumMatchCount when appropriate.
  8963. (WebKit::FindController::findString):
  8964. Convert numeric_limits::max() to max() - 1 to avoid overflow case.
  8965. 2011-03-31 Evan Martin <evan@chromium.org>
  8966. Reviewed by Eric Seidel.
  8967. <title> should support dir attribute
  8968. https://bugs.webkit.org/show_bug.cgi?id=50961
  8969. Update to new FrameLoaderClient interface.
  8970. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  8971. (WebKit::WebFrameLoaderClient::dispatchDidReceiveTitle):
  8972. (WebKit::WebFrameLoaderClient::setTitle):
  8973. * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
  8974. 2011-03-31 Balazs Kelemen <kbalazs@webkit.org>
  8975. Reviewed by Csaba Osztrogonác.
  8976. [WK2] Introduce an option for no NPAPI support
  8977. https://bugs.webkit.org/show_bug.cgi?id=55828
  8978. Stub out NPAPI support for platform and OS combinations that are
  8979. not supported yet. Ancestor patch was made by Laszlo Gombos.
  8980. * GNUmakefile.am: Add NetscapePluginModuleNone.cpp and NetscapePluginNone.cpp
  8981. to the build system.
  8982. * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
  8983. Remove the sanity check because from now all combinations that
  8984. don't have an explicitly set plugin architecture fall into
  8985. the PLUGIN_ARCHITECTURE(UNSUPPORTED) category and has a stubbed
  8986. implementation.
  8987. * Shared/Plugins/Netscape/NetscapePluginModuleNone.cpp: Added.
  8988. Stubbed implementation.
  8989. (WebKit::NetscapePluginModule::getPluginInfo):
  8990. (WebKit::NetscapePluginModule::determineQuirks):
  8991. * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp: Guard with
  8992. PLUGIN_ARCHITECTURE(X11).
  8993. * WebKit2.pro: Add NetscapePluginModuleNone.cpp and NetscapePluginNone.cpp
  8994. to the build system.
  8995. * WebProcess/Plugins/Netscape/NetscapePluginNone.cpp: Added.
  8996. Stubbed implementation
  8997. (WebKit::NetscapePlugin::platformPostInitialize):
  8998. (WebKit::NetscapePlugin::platformDestroy):
  8999. (WebKit::NetscapePlugin::platformInvalidate):
  9000. (WebKit::NetscapePlugin::platformGeometryDidChange):
  9001. (WebKit::NetscapePlugin::platformPaint):
  9002. (WebKit::NetscapePlugin::platformHandleMouseEvent):
  9003. (WebKit::NetscapePlugin::platformHandleWheelEvent):
  9004. (WebKit::NetscapePlugin::platformSetFocus):
  9005. (WebKit::NetscapePlugin::platformHandleMouseEnterEvent):
  9006. (WebKit::NetscapePlugin::platformHandleMouseLeaveEvent):
  9007. (WebKit::NetscapePlugin::platformHandleKeyboardEvent):
  9008. * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp: Guard with
  9009. PLUGIN_ARCHITECTURE(X11)
  9010. * config.h: Introduce PLUGIN_ARCHITECTURE(UNSUPPORTED) as another
  9011. option. Make platform and OS combinations that are not supported
  9012. yet fall into this. Don't use Q_WS_X11 to test the window system
  9013. for Qt because it is not defined without including <QtGlobal>.
  9014. No clue about how could it work so far.
  9015. 2011-03-31 Vamshikrishna.Yellenki <vamshi@motorola.com> and Alejandro G. Castro <alex@igalia.com>
  9016. Reviewed by Martin Robinson.
  9017. Implement MiniBrowser for Gtk port.
  9018. https://bugs.webkit.org/show_bug.cgi?id=48512
  9019. * Shared/API/c/gtk/WKBaseGtk.h: Add the stdbool.h include.
  9020. 2011-03-30 Dan Bernstein <mitz@apple.com>
  9021. Reviewed by Maciej Stachowiak.
  9022. <rdar://problem/9005982> Flash of white when a WKView with composited content moves on-screen
  9023. https://bugs.webkit.org/show_bug.cgi?id=57522
  9024. * UIProcess/DrawingAreaProxyImpl.cpp:
  9025. (WebKit::DrawingAreaProxyImpl::exitAcceleratedCompositingMode): Invalidate the current
  9026. backing store state, so that we get an update as soon as the page enters compositing mode
  9027. next.
  9028. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  9029. (WebKit::DrawingAreaImpl::sendDidUpdateBackingStoreState): Added a call to
  9030. LayerTreeHost::forceRepaint() in order to flush and synchronize the layers
  9031. before sending the update message to the UI process.
  9032. 2011-03-30 Sam Weinig <sam@webkit.org>
  9033. Reviewed by Anders Carlsson.
  9034. Sandbox violations if you navigate a file URL via something other than a click
  9035. <rdar://problem/9016086>
  9036. https://bugs.webkit.org/show_bug.cgi?id=57519
  9037. * WebProcess/WebPage/WebPage.cpp:
  9038. (WebKit::shouldReuseCommittedSandboxExtension):
  9039. Remove unnecessary restriction on extension reuse. Any type of file to file navigation
  9040. should be allowed.
  9041. 2011-03-30 Anders Carlsson <andersca@apple.com>
  9042. Reviewed by Sam Weinig.
  9043. Clean up the sandbox parameter code
  9044. https://bugs.webkit.org/show_bug.cgi?id=57518
  9045. * Shared/WebProcessCreationParameters.h:
  9046. Make nsURLCachePath and uiProcessBundleResourcePath Strings to match the other paths we send over.
  9047. * UIProcess/mac/WebContextMac.mm:
  9048. (WebKit::WebContext::platformInitializeWebProcess):
  9049. nsURLCachePath and uiProcessBundleResourcePath are now Strings.
  9050. * WebProcess/mac/WebProcessMac.mm:
  9051. (WebKit::appendSandboxParameterPathInternal):
  9052. (WebKit::appendReadwriteConfDirectory):
  9053. (WebKit::appendReadonlySandboxDirectory):
  9054. (WebKit::appendReadwriteSandboxDirectory):
  9055. (WebKit::initializeSandbox):
  9056. Make it more clear whether the directories we're adding are readonly or readwrite. No functionality change.
  9057. (WebKit::WebProcess::platformInitializeWebProcess):
  9058. nsURLCachePath is now a string.
  9059. 2011-03-30 Anders Carlsson <andersca@apple.com>
  9060. Reviewed by Sam Weinig.
  9061. Downloading a file fails due to a sandbox violation if the destination path is a symlink
  9062. https://bugs.webkit.org/show_bug.cgi?id=57517
  9063. <rdar://problem/8943865>
  9064. Make sure to resolve any symlinks in the given path when creating a sandbox extension handle.
  9065. Note that we can't use realpath or -[NSString stringByResolvingSymlinksInPath], because those calls
  9066. will fail if the pointed to file doesn't exist.
  9067. * Shared/mac/SandboxExtensionMac.mm:
  9068. (WebKit::resolveSymlinksInPath):
  9069. New function that resolves all the symlinks in the given path.
  9070. (WebKit::SandboxExtension::createHandle):
  9071. Call resolveSymlinksInPath on the resulting path.
  9072. 2011-03-30 Steve Falkenburg <sfalken@apple.com>
  9073. Reviewed by Adam Roben.
  9074. Share most vsprops between Release and Production builds in releaseproduction.vsprops
  9075. https://bugs.webkit.org/show_bug.cgi?id=57508
  9076. * win/WebKit2Production.vsprops:
  9077. * win/WebKit2Release.vsprops:
  9078. * win/WebKit2ReleaseCairoCFLite.vsprops:
  9079. * win/WebKit2WebProcessProduction.vsprops:
  9080. * win/WebKit2WebProcessRelease.vsprops:
  9081. * win/WebKit2WebProcessReleaseCairoCFLite.vsprops:
  9082. 2011-03-30 Ivan Krstić <ike@apple.com>
  9083. Reviewed by Oliver Hunt.
  9084. Ensure consistent, readable working directory for WebProcess before entering sandbox
  9085. <rdar://problem/8951176>
  9086. * WebProcess/mac/WebProcessMac.mm:
  9087. (WebKit::WebProcess::platformInitializeWebProcess):
  9088. 2011-03-30 Sam Weinig <sam@webkit.org>
  9089. Reviewed by Brady Eidson.
  9090. WebKit2: Attempting to view css file from url causes it to download
  9091. <rdar://problem/9102611>
  9092. https://bugs.webkit.org/show_bug.cgi?id=57501
  9093. * UIProcess/WebPageProxy.cpp:
  9094. (WebKit::WebPageProxy::canShowMIMEType):
  9095. Match WebKit1 by allowing any MIME type that starts with "text/"
  9096. except the ones we explicitly blacklist.
  9097. 2011-03-30 Steve Falkenburg <sfalken@apple.com>
  9098. Reviewed by Adam Roben.
  9099. Update Windows production build logic for new production configurations
  9100. https://bugs.webkit.org/show_bug.cgi?id=57494
  9101. * win/WebKit2.make:
  9102. * win/WebKit2Production.vsprops:
  9103. * win/WebKit2WebProcessProduction.vsprops:
  9104. 2011-03-30 Steve Falkenburg <sfalken@apple.com>
  9105. Reviewed by Adam Roben.
  9106. Rename Windows configuration Release_LTCG to Production for clarity
  9107. https://bugs.webkit.org/show_bug.cgi?id=57465
  9108. * win/WebKit2.submit.sln:
  9109. * win/WebKit2.vcproj:
  9110. * win/WebKit2Generated.vcproj:
  9111. * win/WebKit2Production.vsprops: Copied from Source/WebKit2/win/WebKit2ReleaseLTCG.vsprops.
  9112. * win/WebKit2ReleaseLTCG.vsprops: Removed.
  9113. * win/WebKit2WebProcess.vcproj:
  9114. * win/WebKit2WebProcessProduction.vsprops: Copied from Source/WebKit2/win/WebKit2WebProcessReleaseLTCG.vsprops.
  9115. * win/WebKit2WebProcessReleaseLTCG.vsprops: Removed.
  9116. 2011-03-30 Jer Noble <jer.noble@apple.com>
  9117. Reviewed by Dan Bernstein.
  9118. WebKit2: WebProcess is using 89%, while viewing a PDF
  9119. https://bugs.webkit.org/show_bug.cgi?id=57471
  9120. Break a never ending display/update cycle between the UIProcess and the WebProcess
  9121. by clearing the dirty region when a page has a custom representation (like a PDF).
  9122. Also, avoid the issue where possible by not setting the dirty region in the same case.
  9123. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  9124. (WebKit::DrawingAreaImpl::setNeedsDisplay): Bail early if mainFrameHasCustomRepresentation().
  9125. (WebKit::DrawingAreaImpl::scroll): Ditto.
  9126. (WebKit::DrawingAreaImpl::display): Both bail early and clear m_dirtyRegion if
  9127. mainFrameHasCustomRepresentation().
  9128. 2011-03-30 Sam Weinig <sam@webkit.org>
  9129. Fix Snow Leopard build.
  9130. * UIProcess/mac/WebContextMenuProxyMac.mm:
  9131. (WebKit::WebContextMenuProxyMac::showContextMenu):
  9132. 2011-03-30 Sam Weinig <sam@webkit.org>
  9133. Reviewed by Anders Carlsson.
  9134. WebKit2 contextual menu looks different than the rest of the OS
  9135. <rdar://problem/9172935>
  9136. https://bugs.webkit.org/show_bug.cgi?id=57475
  9137. * UIProcess/mac/WebContextMenuProxyMac.mm:
  9138. (WebKit::WebContextMenuProxyMac::showContextMenu):
  9139. Use correct SPI for showing a context menu. The dummy view is also
  9140. not necessary, so remove it.
  9141. 2011-03-30 Anders Carlsson <andersca@apple.com>
  9142. Reviewed by Sam Weinig.
  9143. Crash when NPN_Evaluate removes the plug-in frame
  9144. https://bugs.webkit.org/show_bug.cgi?id=57474
  9145. <rdar://problem/9191396>
  9146. Get a reference to the frame since it can be nulled out if running the JavaScript code
  9147. causes the plug-in's containing frame to be removed from the frame tree.
  9148. * WebProcess/Plugins/PluginView.cpp:
  9149. (WebKit::PluginView::evaluate):
  9150. 2011-03-30 Sam Weinig <sam@webkit.org>
  9151. Reviewed by Anders Carlsson.
  9152. Add default localization strategy that can be shared by WebKit1 and WebKit2
  9153. https://bugs.webkit.org/show_bug.cgi?id=57406
  9154. * Shared/WebLocalizableStrings.h: Removed.
  9155. Removed in favor of using WebCore/LocalizedStrings.h directly.
  9156. * PluginProcess/mac/PluginProcessMac.mm:
  9157. * UIProcess/API/mac/WKView.mm:
  9158. * UIProcess/mac/WebInspectorProxyMac.mm:
  9159. * WebProcess/WebCoreSupport/mac/WebErrorsMac.mm:
  9160. * WebProcess/mac/WebProcessMac.mm:
  9161. Use WebCore/LocalizedStrings.h directly.
  9162. * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
  9163. * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
  9164. Remove localization strategy override in favor of using new default implementation.
  9165. * GNUmakefile.am:
  9166. * WebKit2.pro:
  9167. * WebKit2.xcodeproj/project.pbxproj:
  9168. * win/WebKit2.vcproj:
  9169. Remove WebLocalizableStrings.h
  9170. 2011-03-30 Anders Carlsson <andersca@apple.com>
  9171. Reviewed by Adam Roben.
  9172. Assertion failure in plug-in process when calling WKPluginSiteDataManagerGetSitesWithData
  9173. https://bugs.webkit.org/show_bug.cgi?id=57468
  9174. <rdar://problem/9199089>
  9175. Call decrementLoadCount from removeWebProcessConnection instead of startShutdownTimerIfNecessary,
  9176. otherwise we'll get a load count underflow when a connection is never created.
  9177. * PluginProcess/PluginProcess.cpp:
  9178. (WebKit::PluginProcess::removeWebProcessConnection):
  9179. (WebKit::PluginProcess::createWebProcessConnection):
  9180. (WebKit::PluginProcess::startShutdownTimerIfNecessary):
  9181. 2011-03-30 Jessie Berlin <jberlin@apple.com>
  9182. Reviewed by Anders Carlsson.
  9183. WebKit2: Make sure to try to terminate the Web Process when any work that might require the
  9184. Web Process to be relaunched is done
  9185. https://bugs.webkit.org/show_bug.cgi?id=57462
  9186. For the ManagerProxies in the UIProcess, only return true from shouldTerminate if there are
  9187. no more callbacks waiting to be invoked.
  9188. For the the Managers in the WebProcess, call WebProcess::shared().terminateIfPossible() when
  9189. any work called for by a ManagerProxy function that called relaunchProcessIfNecessary is
  9190. finished.
  9191. * UIProcess/WebContext.cpp:
  9192. (WebKit::WebContext::shouldTerminate):
  9193. Check with each of the ManagerProxies.
  9194. * UIProcess/WebApplicationCacheManagerProxy.cpp:
  9195. (WebKit::WebApplicationCacheManagerProxy::shouldTerminate):
  9196. * UIProcess/WebApplicationCacheManagerProxy.h:
  9197. * UIProcess/WebCookieManagerProxy.cpp:
  9198. (WebKit::WebCookieManagerProxy::shouldTerminate):
  9199. * UIProcess/WebCookieManagerProxy.h:
  9200. * UIProcess/WebDatabaseManagerProxy.cpp:
  9201. (WebKit::WebDatabaseManagerProxy::shouldTerminate):
  9202. * UIProcess/WebDatabaseManagerProxy.h:
  9203. * UIProcess/WebKeyValueStorageManagerProxy.cpp:
  9204. (WebKit::WebKeyValueStorageManagerProxy::shouldTerminate):
  9205. * UIProcess/WebKeyValueStorageManagerProxy.h:
  9206. * UIProcess/WebMediaCacheManagerProxy.cpp:
  9207. (WebKit::WebMediaCacheManagerProxy::shouldTerminate):
  9208. * UIProcess/WebMediaCacheManagerProxy.h:
  9209. * UIProcess/WebResourceCacheManagerProxy.cpp:
  9210. (WebKit::WebResourceCacheManagerProxy::shouldTerminate):
  9211. * UIProcess/WebResourceCacheManagerProxy.h:
  9212. * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
  9213. (WebKit::WebApplicationCacheManager::getApplicationCacheOrigins):
  9214. (WebKit::WebApplicationCacheManager::deleteEntriesForOrigin):
  9215. (WebKit::WebApplicationCacheManager::deleteAllEntries):
  9216. * WebProcess/Cookies/WebCookieManager.cpp:
  9217. (WebKit::WebCookieManager::getHostnamesWithCookies):
  9218. (WebKit::WebCookieManager::deleteCookiesForHostname):
  9219. (WebKit::WebCookieManager::deleteAllCookies):
  9220. (WebKit::WebCookieManager::startObservingCookieChanges):
  9221. (WebKit::WebCookieManager::setHTTPCookieAcceptPolicy):
  9222. (WebKit::WebCookieManager::getHTTPCookieAcceptPolicy):
  9223. * WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp:
  9224. (WebKit::WebKeyValueStorageManager::getKeyValueStorageOrigins):
  9225. (WebKit::WebKeyValueStorageManager::deleteEntriesForOrigin):
  9226. (WebKit::WebKeyValueStorageManager::deleteAllEntries):
  9227. * WebProcess/MediaCache/WebMediaCacheManager.cpp:
  9228. (WebKit::WebMediaCacheManager::getHostnamesWithMediaCache):
  9229. (WebKit::WebMediaCacheManager::clearCacheForHostname):
  9230. (WebKit::WebMediaCacheManager::clearCacheForAllHostnames):
  9231. * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
  9232. (WebKit::WebResourceCacheManager::getCacheOrigins):
  9233. (WebKit::WebResourceCacheManager::clearCacheForOrigin):
  9234. (WebKit::WebResourceCacheManager::clearCacheForAllOrigins):
  9235. * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
  9236. (WebKit::WebDatabaseManager::getDatabasesByOrigin):
  9237. (WebKit::WebDatabaseManager::getDatabaseOrigins):
  9238. (WebKit::WebDatabaseManager::deleteDatabaseWithNameForOrigin):
  9239. (WebKit::WebDatabaseManager::deleteDatabasesForOrigin):
  9240. (WebKit::WebDatabaseManager::deleteAllDatabases):
  9241. (WebKit::WebDatabaseManager::setQuotaForOrigin):
  9242. 2011-03-30 Adam Roben <aroben@apple.com>
  9243. Mac build fix after r82442
  9244. * WebProcess/Plugins/PluginProxy.cpp:
  9245. (WebKit::PluginProxy::geometryDidChange): Added a missing argument.
  9246. 2011-03-29 Adam Roben <aroben@apple.com>
  9247. Add a way to specify that a ShareableBitmap has no alpha channel
  9248. Before this patch, all ShareableBitmaps had an alpha channel. With this patch, all
  9249. ShareableBitmaps *still* have an alpha channel. But now there's a way to specify you don't
  9250. want one (which will be used in the future)!
  9251. Fixes <http://webkit.org/b/57388> Need a way to specify that a ShareableBitmap has no alpha
  9252. channel
  9253. Reviewed by Anders Carlsson.
  9254. * Shared/ShareableBitmap.cpp:
  9255. (WebKit::ShareableBitmap::Handle::Handle): Moved here from the header file, and added
  9256. initialization of m_flags.
  9257. (WebKit::ShareableBitmap::Handle::encode):
  9258. (WebKit::ShareableBitmap::Handle::decode):
  9259. Encode/decode m_flags.
  9260. (WebKit::ShareableBitmap::create):
  9261. (WebKit::ShareableBitmap::createShareable):
  9262. Pass along the new Flags argument.
  9263. (WebKit::ShareableBitmap::createHandle): Store our Flags on the Handle.
  9264. (WebKit::ShareableBitmap::ShareableBitmap): Store the Flags in m_flags.
  9265. * Shared/ShareableBitmap.h: Added Flag, Flags, and m_flags, and added a Flags argument to
  9266. some create functions.
  9267. * Shared/WebCoreArgumentCoders.cpp:
  9268. (CoreIPC::encodeImage):
  9269. * Shared/WebImage.cpp:
  9270. (WebKit::WebImage::create):
  9271. Specify that we want a bitmap that supports alpha to maintain current behavior.
  9272. * Shared/cg/ShareableBitmapCG.cpp:
  9273. (WebKit::bitmapInfo): New helper function. Includes an alpha channel only if specified in
  9274. the flags.
  9275. (WebKit::ShareableBitmap::createGraphicsContext):
  9276. (WebKit::ShareableBitmap::makeCGImage):
  9277. Use the new helper function.
  9278. * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
  9279. (WebKit::NetscapePlugin::snapshot):
  9280. * WebProcess/Plugins/PluginProxy.cpp:
  9281. (WebKit::PluginProxy::geometryDidChange):
  9282. * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
  9283. (WebKit::convertImageToBitmap):
  9284. * WebProcess/WebCoreSupport/win/WebPopupMenuWin.cpp:
  9285. (WebKit::WebPopupMenu::setUpPlatformData):
  9286. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  9287. (WebKit::DrawingAreaImpl::display):
  9288. * WebProcess/WebPage/FindController.cpp:
  9289. (WebKit::FindController::updateFindIndicator):
  9290. Specify that we want a bitmap that supports alpha to maintain current behavior.
  9291. 2011-03-29 Adam Roben <aroben@apple.com>
  9292. Add ShareableBitmap::Handle
  9293. This object is used for encoding/decoding a ShareableBitmap via CoreIPC. It currently just
  9294. encapsulates a SharedMemory::Handle (which is what we were using previously) and the image's
  9295. size (which means callers no longer need to deal with the size explicitly), but in the
  9296. future could be used to store more information about the bitmap.
  9297. This should cause no behavior changes.
  9298. Fixes <http://webkit.org/b/57397> ShareableBitmap needs its own Handle type
  9299. Reviewed by Anders Carlsson.
  9300. * PluginProcess/PluginControllerProxy.cpp:
  9301. (WebKit::PluginControllerProxy::geometryDidChange): No longer need to pass a size to create,
  9302. since the Handle records the size.
  9303. (WebKit::PluginControllerProxy::snapshot): No longer need the bufferSize argument, since the
  9304. Handle records the size.
  9305. * PluginProcess/PluginControllerProxy.h:
  9306. * PluginProcess/PluginControllerProxy.messages.in:
  9307. Updated Handle types and removed unnecessary size argument to Snapshot.
  9308. * Shared/PlatformPopupMenuData.cpp:
  9309. (WebKit::PlatformPopupMenuData::encode):
  9310. (WebKit::PlatformPopupMenuData::decode):
  9311. * Shared/PlatformPopupMenuData.h:
  9312. Changed to use ShareableBitmap::Handle and removed m_backingStoreSize, which is now stored
  9313. in the Handles.
  9314. * Shared/ShareableBitmap.cpp:
  9315. (WebKit::ShareableBitmap::Handle::encode):
  9316. (WebKit::ShareableBitmap::Handle::decode):
  9317. Simple encode/decode functions.
  9318. (WebKit::ShareableBitmap::create): Get the size from the Handle instead of as a separate
  9319. argument.
  9320. (WebKit::ShareableBitmap::createHandle): Store our size in the Handle.
  9321. * Shared/ShareableBitmap.h: Added ShareableBitmap::Handle and made some functions use it.
  9322. * Shared/UpdateInfo.h: Changed to use ShareableBitmap::Handle.
  9323. * Shared/UserMessageCoders.h:
  9324. (WebKit::UserMessageEncoder::baseEncode):
  9325. (WebKit::UserMessageDecoder::baseDecode):
  9326. * Shared/WebCoreArgumentCoders.cpp:
  9327. (CoreIPC::encodeImage):
  9328. (CoreIPC::decodeImage):
  9329. Use the size stored in the Handle instead of encoding/decoding one separately.
  9330. * UIProcess/API/mac/PageClientImpl.h:
  9331. * UIProcess/API/mac/PageClientImpl.mm:
  9332. (WebKit::PageClientImpl::setDragImage):
  9333. Removed the unnecessary imageSize argument. We can get it from the image itself.
  9334. * UIProcess/BackingStore.cpp:
  9335. (WebKit::BackingStore::incorporateUpdate):
  9336. * UIProcess/FindIndicator.cpp:
  9337. (WebKit::FindIndicator::create):
  9338. No longer need to pass a size when creating a ShareableBitmap from a Handle.
  9339. * UIProcess/FindIndicator.h: Changed to use ShareableBitmap::Handle.
  9340. * UIProcess/PageClient.h: Removed unnecessary imageSize argument from setDragImage.
  9341. * UIProcess/WebPageProxy.cpp:
  9342. (WebKit::WebPageProxy::setFindIndicator):
  9343. * UIProcess/WebPageProxy.h:
  9344. * UIProcess/WebPageProxy.messages.in:
  9345. * UIProcess/mac/WebPageProxyMac.mm:
  9346. (WebKit::WebPageProxy::setDragImage):
  9347. * WebProcess/Plugins/PluginProxy.cpp:
  9348. (WebKit::PluginProxy::snapshot):
  9349. (WebKit::PluginProxy::geometryDidChange):
  9350. * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
  9351. (WebKit::WebDragClient::startDrag):
  9352. Changed to use ShareableBitmap::Handle and removed now-unnecessary size arguments (since we
  9353. can get the size from the Handle).
  9354. * WebProcess/WebCoreSupport/win/WebPopupMenuWin.cpp:
  9355. (WebKit::WebPopupMenu::setUpPlatformData): Don't need to store the backing store size in the
  9356. data anymore; the Handles will make sure it reaches the other process.
  9357. * WebProcess/WebPage/FindController.cpp:
  9358. (WebKit::FindController::updateFindIndicator):
  9359. (WebKit::FindController::hideFindIndicator):
  9360. Changed to use ShareableBitmap::Handle.
  9361. 2011-03-30 Alejandro G. Castro <alex@igalia.com>
  9362. Fix GTK build after r81980.
  9363. * GNUmakefile.am:
  9364. 2011-03-29 Beth Dakin <bdakin@apple.com>
  9365. Reviewed by Maciej Stachowiak.
  9366. Fix for https://bugs.webkit.org/show_bug.cgi?id=57408
  9367. webkit-min-device-pixel-ratio media query doesn't work post-SnowLeopard
  9368. -and corresponding-
  9369. <rdar://problem/8665411>
  9370. * Shared/WebPageCreationParameters.cpp:
  9371. (WebKit::WebPageCreationParameters::encode):
  9372. (WebKit::WebPageCreationParameters::decode):
  9373. * Shared/WebPageCreationParameters.h:
  9374. * UIProcess/API/mac/PageClientImpl.h:
  9375. * UIProcess/API/mac/PageClientImpl.mm:
  9376. (WebKit::PageClientImpl::userSpaceScaleFactor):
  9377. * UIProcess/API/qt/qwkpage_p.h:
  9378. (QWKPagePrivate::userSpaceScaleFactor):
  9379. * UIProcess/PageClient.h:
  9380. * UIProcess/WebPageProxy.cpp:
  9381. (WebKit::WebPageProxy::creationParameters):
  9382. * UIProcess/gtk/WebView.h:
  9383. (WebKit::WebView::userSpaceScaleFactor):
  9384. * UIProcess/win/WebView.h:
  9385. (WebKit::WebView::userSpaceScaleFactor):
  9386. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  9387. (WebKit::WebChromeClient::scaleFactor):
  9388. * WebProcess/WebPage/WebPage.cpp:
  9389. (WebKit::WebPage::WebPage):
  9390. * WebProcess/WebPage/WebPage.h:
  9391. (WebKit::WebPage::userSpaceScaleFactor):
  9392. 2011-03-29 Brent Fulgham <bfulgham@webkit.org>
  9393. Unreviewed WinCairo build fix.
  9394. Bring DownloadCurl implementation stubs in line with current
  9395. CFNetwork API.
  9396. * WebProcess/Downloads/curl/DownloadCurl.cpp:
  9397. (WebKit::Download::receivedCredential):
  9398. (WebKit::Download::receivedRequestToContinueWithoutCredential):
  9399. (WebKit::Download::receivedCancellation):
  9400. 2011-03-29 Chris Fleizach <cfleizach@apple.com>
  9401. Reviewed by Darin Adler.
  9402. AX: WK2: When creating the window remote token, use what's returned from accessibility
  9403. https://bugs.webkit.org/show_bug.cgi?id=57398
  9404. This will allow a specific WKView to override what's used for the window attribute of the
  9405. HTML elements.
  9406. * UIProcess/API/mac/WKView.mm:
  9407. (-[WKView viewDidMoveToWindow]):
  9408. 2011-03-29 Jeff Miller <jeffm@apple.com>
  9409. Reviewed by Sam Weinig.
  9410. Make Windows-only InjectedBundle functions platform-specific
  9411. https://bugs.webkit.org/show_bug.cgi?id=57385
  9412. Added files for Windows-specific WKBundle functions.
  9413. Removed stub wrappers for InjectedBundle::setHostAllowsAnyHTTPSCertificate() and InjectedBundle::setClientCertificate() from non-Windows platforms.
  9414. * WebProcess/InjectedBundle/API/c/WKBundle.cpp: Moved WKBundleSetHostAllowsAnyHTTPSCertificate() and WKBundleSetClientCertificate() to WKBundlePrivateWin.cpp.
  9415. * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: Moved WKBundleSetHostAllowsAnyHTTPSCertificate() and WKBundleSetClientCertificate() to WKBundlePrivateWin.h.
  9416. * WebProcess/InjectedBundle/API/c/win: Added.
  9417. * WebProcess/InjectedBundle/API/c/win/WKBundlePrivateWin.cpp: Added.
  9418. (WKBundleSetHostAllowsAnyHTTPSCertificate): Moved from WKBundle.cpp.
  9419. (WKBundleSetClientCertificate): Moved from WKBundle.cpp.
  9420. * WebProcess/InjectedBundle/API/c/win/WKBundlePrivateWin.h: Added.
  9421. * WebProcess/InjectedBundle/InjectedBundle.h: setHostAllowsAnyHTTPSCertificate() and setClientCertificate() are Windows-only.
  9422. * WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp: Removed setHostAllowsAnyHTTPSCertificate() and setClientCertificate().
  9423. * WebProcess/InjectedBundle/mac/InjectedBundleMac.cpp: Removed setHostAllowsAnyHTTPSCertificate() and setClientCertificate().
  9424. * WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp: Removed setHostAllowsAnyHTTPSCertificate() and setClientCertificate().
  9425. * win/WebKit2.vcproj: Added WKBundlePrivateWin.cpp and WKBundlePrivateWin.h.
  9426. * win/WebKit2Generated.make: Copy WKBundlePrivateWin.h.
  9427. 2011-03-29 Anders Carlsson <andersca@apple.com>
  9428. Fix Windows build.
  9429. * WebProcess/Downloads/cfnet/DownloadCFNet.cpp:
  9430. (WebKit::Download::receivedCredential):
  9431. (WebKit::Download::receivedRequestToContinueWithoutCredential):
  9432. (WebKit::Download::receivedCancellation):
  9433. 2011-03-29 Anders Carlsson <andersca@apple.com>
  9434. Reviewed by Sam Weinig.
  9435. Downloads: Authentication support
  9436. https://bugs.webkit.org/show_bug.cgi?id=57403
  9437. <rdar://problem/8691166>
  9438. * UIProcess/API/C/WKContext.h:
  9439. Add didReceiveAuthenticationChallenge callback.
  9440. * UIProcess/Downloads/DownloadProxy.cpp:
  9441. (WebKit::DownloadProxy::didReceiveAuthenticationChallenge):
  9442. Call the download client.
  9443. * UIProcess/Downloads/DownloadProxy.messages.in:
  9444. Add DidReceiveAuthenticationChallenge message.
  9445. * UIProcess/WebDownloadClient.cpp:
  9446. (WebKit::WebDownloadClient::didReceiveAuthenticationChallenge):
  9447. Call the client callback function.
  9448. * UIProcess/WebDownloadClient.h:
  9449. * WebProcess/Authentication/AuthenticationManager.cpp:
  9450. (WebKit::AuthenticationManager::didReceiveAuthenticationChallenge):
  9451. Send the DidReceiveAuthenticationChallenge message to the download proxy.
  9452. (WebKit::AuthenticationManager::useCredentialForChallenge):
  9453. (WebKit::AuthenticationManager::continueWithoutCredentialForChallenge):
  9454. (WebKit::AuthenticationManager::cancelChallenge):
  9455. If the authentication client is null, call the static download member functions.
  9456. * WebProcess/Authentication/AuthenticationManager.h:
  9457. * WebProcess/Downloads/Download.cpp:
  9458. (WebKit::Download::didReceiveAuthenticationChallenge):
  9459. Call the authentication manager.
  9460. * WebProcess/Downloads/Download.h:
  9461. * WebProcess/Downloads/mac/DownloadMac.mm:
  9462. (WebKit::Download::receivedCredential):
  9463. (WebKit::Download::receivedRequestToContinueWithoutCredential):
  9464. (WebKit::Download::receivedCancellation):
  9465. Call the right sender methods.
  9466. (-[WKDownloadAsDelegate download:didReceiveAuthenticationChallenge:]):
  9467. (-[WKDownloadAsDelegate downloadShouldUseCredentialStorage:]):
  9468. Call the right Download member functions.
  9469. * WebProcess/Downloads/qt/DownloadQt.cpp:
  9470. (WebKit::Download::receivedCredential):
  9471. (WebKit::Download::receivedRequestToContinueWithoutCredential):
  9472. (WebKit::Download::receivedCancellation):
  9473. * WebProcess/Downloads/soup/DownloadSoup.cpp:
  9474. (WebKit::Download::receivedCredential):
  9475. (WebKit::Download::receivedRequestToContinueWithoutCredential):
  9476. (WebKit::Download::receivedCancellation):
  9477. Add stubs.
  9478. 2011-03-29 Anders Carlsson <andersca@apple.com>
  9479. Reviewed by Sam Weinig.
  9480. AuthenticationChallengeProxy objects should be associated with processes, not pages
  9481. https://bugs.webkit.org/show_bug.cgi?id=57401
  9482. * UIProcess/Authentication/AuthenticationChallengeProxy.cpp:
  9483. (WebKit::AuthenticationChallengeProxy::AuthenticationChallengeProxy):
  9484. (WebKit::AuthenticationChallengeProxy::~AuthenticationChallengeProxy):
  9485. (WebKit::AuthenticationChallengeProxy::useCredential):
  9486. (WebKit::AuthenticationChallengeProxy::cancel):
  9487. * UIProcess/Authentication/AuthenticationChallengeProxy.h:
  9488. (WebKit::AuthenticationChallengeProxy::create):
  9489. * UIProcess/WebPageProxy.cpp:
  9490. (WebKit::WebPageProxy::didReceiveAuthenticationChallenge):
  9491. 2011-03-29 Sam Weinig <sam@webkit.org>
  9492. Reviewed by Anders Carlsson.
  9493. Use LocalizedStrings.h as a bottleneck for localized strings instead of
  9494. using UI_STRING.
  9495. * UIProcess/API/mac/WKView.mm:
  9496. (-[WKView validateUserInterfaceItem:]):
  9497. Call existing localization functions instead of using UI_STRING.
  9498. (-[WKView _getTextInputState:selectionEnd:underlines:]):
  9499. Remove unnecessary WebCore:: prefix.
  9500. 2011-03-29 Chang Shu <cshu@webkit.org>
  9501. Reviewed by Kenneth Rohde Christiansen.
  9502. WebKitTestRunner needs layoutTestController.setAllowUniversalAccessFromFileURLs
  9503. https://bugs.webkit.org/show_bug.cgi?id=42692
  9504. * Shared/WebPreferencesStore.cpp:
  9505. (WebKit::WebPreferencesStore::decode):
  9506. (WebKit::WebPreferencesStore::overrideAllowUniversalAccessFromFileURLsForTestRunner):
  9507. * Shared/WebPreferencesStore.h:
  9508. * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
  9509. (WKBundleOverrideAllowUniversalAccessFromFileURLsForTestRunner):
  9510. * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  9511. * WebProcess/InjectedBundle/InjectedBundle.cpp:
  9512. (WebKit::InjectedBundle::overrideAllowUniversalAccessFromFileURLsForTestRunner):
  9513. * WebProcess/InjectedBundle/InjectedBundle.h:
  9514. 2011-03-29 Timothy Hatcher <timothy@apple.com>
  9515. Update the order of the context menu to better match AppKit on Mac.
  9516. <rdar://problem/9054893>
  9517. Reviewed by John Sullivan.
  9518. * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
  9519. (WebKit::WebPlatformStrategies::contextMenuItemTagLookUpInDictionary): Added argument for selected string.
  9520. * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
  9521. 2011-03-29 Jeff Miller <jeffm@apple.com>
  9522. Fix formatting of WebKit2.vcproj after r82283.
  9523. * win/WebKit2.vcproj:
  9524. 2011-03-29 Martin Robinson <mrobinson@igalia.com>
  9525. [GTK] Build failed with ‘GDK_KEY_KP_Space’ was not declared in this scope
  9526. https://bugs.webkit.org/show_bug.cgi?id=55314
  9527. Build fix for older versions of GTK+. Use the deprecated names for GDK key
  9528. defines and include GtkVersioning.h to allow building on newer versions
  9529. of GTK+.
  9530. * Shared/gtk/WebEventFactory.cpp:
  9531. (WebKit::isGdkKeyCodeFromKeyPad): Update key defines.
  9532. 2011-03-29 Steve Falkenburg <sfalken@apple.com>
  9533. Reviewed by Darin Adler.
  9534. Use per-configuration vsprops in WebKit to avoid WebKitVSPropsRedirectionDir removal by MSVC IDE
  9535. https://bugs.webkit.org/show_bug.cgi?id=57383
  9536. Visual Studio's IDE was removing instances of $(WebKitVSPropsRedirectionDir) from
  9537. InheritedPropertySheet rules in our vcproj files when the vcproj was edited from within
  9538. the IDE. To avoid this, add a separate vsprops file for each project configuration that
  9539. contains the required inherited property sheets.
  9540. * win/WebKit2.vcproj:
  9541. * win/WebKit2Debug.vsprops: Added.
  9542. * win/WebKit2DebugAll.vsprops: Added.
  9543. * win/WebKit2DebugCairoCFLite.vsprops: Added.
  9544. * win/WebKit2Release.vsprops: Added.
  9545. * win/WebKit2ReleaseCairoCFLite.vsprops: Added.
  9546. * win/WebKit2ReleaseLTCG.vsprops: Added.
  9547. * win/WebKit2WebProcess.vcproj:
  9548. * win/WebKit2WebProcessDebug.vsprops: Added.
  9549. * win/WebKit2WebProcessDebugAll.vsprops: Added.
  9550. * win/WebKit2WebProcessDebugCairoCFLite.vsprops: Added.
  9551. * win/WebKit2WebProcessRelease.vsprops: Added.
  9552. * win/WebKit2WebProcessReleaseCairoCFLite.vsprops: Added.
  9553. * win/WebKit2WebProcessReleaseLTCG.vsprops: Added.
  9554. 2011-03-29 Jessie Berlin <jberlin@apple.com>
  9555. Reviewed by Anders Carlsson.
  9556. WebKit2: The WebProcess should be relaunched if necessary when WebKit2 is asked for
  9557. information about Cookies, Databases, Local Storage, etc.
  9558. https://bugs.webkit.org/show_bug.cgi?id=57374
  9559. Instead of bailing when the WebProcess is not valid, call relaunchProcessIfNecessary().
  9560. * UIProcess/Plugins/WebPluginSiteDataManager.cpp:
  9561. (WebKit::WebPluginSiteDataManager::getSitesWithData):
  9562. (WebKit::WebPluginSiteDataManager::clearSiteData):
  9563. * UIProcess/WebApplicationCacheManagerProxy.cpp:
  9564. (WebKit::WebApplicationCacheManagerProxy::getApplicationCacheOrigins):
  9565. (WebKit::WebApplicationCacheManagerProxy::deleteEntriesForOrigin):
  9566. (WebKit::WebApplicationCacheManagerProxy::deleteAllEntries):
  9567. * UIProcess/WebCookieManagerProxy.cpp:
  9568. (WebKit::WebCookieManagerProxy::getHostnamesWithCookies):
  9569. (WebKit::WebCookieManagerProxy::deleteCookiesForHostname):
  9570. (WebKit::WebCookieManagerProxy::deleteAllCookies):
  9571. (WebKit::WebCookieManagerProxy::startObservingCookieChanges):
  9572. (WebKit::WebCookieManagerProxy::setHTTPCookieAcceptPolicy):
  9573. (WebKit::WebCookieManagerProxy::getHTTPCookieAcceptPolicy):
  9574. * UIProcess/WebDatabaseManagerProxy.cpp:
  9575. (WebKit::WebDatabaseManagerProxy::getDatabasesByOrigin):
  9576. (WebKit::WebDatabaseManagerProxy::getDatabaseOrigins):
  9577. (WebKit::WebDatabaseManagerProxy::deleteDatabaseWithNameForOrigin):
  9578. (WebKit::WebDatabaseManagerProxy::deleteDatabasesForOrigin):
  9579. (WebKit::WebDatabaseManagerProxy::deleteAllDatabases):
  9580. (WebKit::WebDatabaseManagerProxy::setQuotaForOrigin):
  9581. * UIProcess/WebKeyValueStorageManagerProxy.cpp:
  9582. (WebKit::WebKeyValueStorageManagerProxy::getKeyValueStorageOrigins):
  9583. (WebKit::WebKeyValueStorageManagerProxy::deleteEntriesForOrigin):
  9584. (WebKit::WebKeyValueStorageManagerProxy::deleteAllEntries):
  9585. * UIProcess/WebMediaCacheManagerProxy.cpp:
  9586. (WebKit::WebMediaCacheManagerProxy::getHostnamesWithMediaCache):
  9587. (WebKit::WebMediaCacheManagerProxy::clearCacheForHostname):
  9588. (WebKit::WebMediaCacheManagerProxy::clearCacheForAllHostnames):
  9589. * UIProcess/WebResourceCacheManagerProxy.cpp:
  9590. (WebKit::WebResourceCacheManagerProxy::getCacheOrigins):
  9591. (WebKit::WebResourceCacheManagerProxy::clearCacheForOrigin):
  9592. (WebKit::WebResourceCacheManagerProxy::clearCacheForAllOrigins):
  9593. 2011-03-29 Jeff Miller <jeffm@apple.com>
  9594. Reviewed by Darin Adler.
  9595. WebKit2: Support setting the client certificate on Windows
  9596. https://bugs.webkit.org/show_bug.cgi?id=57368
  9597. Allow setting the client certificate for a host via the injected bundle.
  9598. This requires the ability for Webkit2 Windows clients to create a WKCertificateInfo from a PCCERT_CONTEXT so they can send it to the web process.
  9599. * Shared/API/c/win/WKCertificateInfoWin.cpp:
  9600. (WKCertificateInfoCreateWithCertificate): Added.
  9601. * Shared/API/c/win/WKCertificateInfoWin.h: Added WKCertificateInfoCreateWithCertificate().
  9602. * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
  9603. (WKBundleSetClientCertificate): Added.
  9604. * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: Added WKBundleSetClientCertificate().
  9605. * WebProcess/InjectedBundle/InjectedBundle.h: Added setClientCertificate().
  9606. * WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp:
  9607. (WebKit::InjectedBundle::setClientCertificate): Added, should never be called.
  9608. * WebProcess/InjectedBundle/mac/InjectedBundleMac.cpp:
  9609. (WebKit::InjectedBundle::setClientCertificate): Added, should never be called.
  9610. * WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp:
  9611. (WebKit::InjectedBundle::setClientCertificate): Added, should never be called.
  9612. * WebProcess/InjectedBundle/win/InjectedBundleWin.cpp:
  9613. (WebKit::InjectedBundle::setClientCertificate): Added.
  9614. 2011-03-29 Timothy Hatcher <timothy@apple.com>
  9615. Make WebKit2 work with update-webkit-localizable-strings.
  9616. https://webkit.org/b/57354
  9617. Reviewed by Sam Weinig.
  9618. * PluginProcess/mac/PluginProcessMac.mm: Remove UI_STRING macro. Use WebLocalizableStrings.h.
  9619. * Shared/WebLocalizableStrings.h: Added.
  9620. * UIProcess/API/mac/WKView.mm: Remove UI_STRING macro. Use WebLocalizableStrings.h.
  9621. * UIProcess/mac/WebInspectorProxyMac.mm:
  9622. (WebKit::WebInspectorProxy::platformInspectedURLChanged): Use UI_STRING. Remove FIXME.
  9623. * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: Remove UI_STRING macros.
  9624. Use WebLocalizableStrings.h.
  9625. * WebProcess/WebCoreSupport/mac/WebErrorsMac.mm:
  9626. (registerErrors): Remove UI_STRING macro. Use WebLocalizableStrings.h.
  9627. * WebProcess/mac/WebProcessMac.mm:
  9628. (WebKit::WebProcess::platformInitializeWebProcess): Use UI_STRING. Remove FIXME.
  9629. * GNUmakefile.am: Added Shared/WebLocalizableStrings.h.
  9630. * WebKit2.pro: Ditto.
  9631. * WebKit2.xcodeproj/project.pbxproj: Ditto.
  9632. * win/WebKit2.vcproj: Ditto.
  9633. 2011-03-29 Jeff Miller <jeffm@apple.com>
  9634. Reviewed by Darin Adler.
  9635. CoreIPC::decodeResourceError() leaks a CFDataRef
  9636. https://bugs.webkit.org/show_bug.cgi?id=57366
  9637. * Shared/win/WebCoreArgumentCodersWin.cpp:
  9638. (CoreIPC::decodeResourceError): Don't leak the result of WebCore::copyCertificateToData(), since the ResourceError will retain it.
  9639. 2011-03-29 Anders Carlsson <andersca@apple.com>
  9640. Reviewed by Sam Weinig.
  9641. Allow the AppleConnect plug-in to use the QuickDraw drawing model
  9642. https://bugs.webkit.org/show_bug.cgi?id=57365
  9643. <rdar://problem/8712320>
  9644. * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
  9645. (WebKit::NetscapePluginModule::determineQuirks):
  9646. * Shared/Plugins/PluginQuirks.h:
  9647. * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
  9648. (WebKit::NetscapePlugin::platformPostInitialize):
  9649. 2011-03-29 Darin Adler <darin@apple.com>
  9650. Reviewed by Adam Roben.
  9651. WebKit2 bundle page needs to offer generated file hooks
  9652. https://bugs.webkit.org/show_bug.cgi?id=57279
  9653. * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Added shouldGenerateFileForUpload and
  9654. generateFileForUpload callback pointers.
  9655. * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
  9656. (WebKit::InjectedBundlePageUIClient::shouldGenerateFileForUpload): Added.
  9657. (WebKit::InjectedBundlePageUIClient::generateFileForUpload): Added.
  9658. * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Added functions above.
  9659. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  9660. (WebKit::WebChromeClient::shouldReplaceWithGeneratedFileForUpload): Implemented by
  9661. calling the functions above.
  9662. (WebKit::WebChromeClient::generateReplacementFile): Ditto.
  9663. 2011-03-29 Anders Carlsson <andersca@apple.com>
  9664. Reviewed by Darin Adler.
  9665. Assertion failure in plug-in process with clang-built 32/64-bit WebKit2
  9666. https://bugs.webkit.org/show_bug.cgi?id=57359
  9667. Don't use __alignof when encoding and decoding scalar types.
  9668. Darwin 32-bit, double and unsigned long long are 4-byte aligned but on 64-bit they're
  9669. 8-byte aligned which causes problems when doing IPC between 32-bit and 64-bit processes.
  9670. GCC is buggy and returns 8, but clang is correct and returns 4. Use sizeof instead which we know
  9671. is equal to or greater than the alignment.
  9672. * Platform/CoreIPC/ArgumentDecoder.cpp:
  9673. (CoreIPC::ArgumentDecoder::decodeBool):
  9674. (CoreIPC::ArgumentDecoder::decodeUInt32):
  9675. (CoreIPC::ArgumentDecoder::decodeUInt64):
  9676. (CoreIPC::ArgumentDecoder::decodeInt32):
  9677. (CoreIPC::ArgumentDecoder::decodeInt64):
  9678. (CoreIPC::ArgumentDecoder::decodeFloat):
  9679. (CoreIPC::ArgumentDecoder::decodeDouble):
  9680. * Platform/CoreIPC/ArgumentEncoder.cpp:
  9681. (CoreIPC::ArgumentEncoder::encodeBool):
  9682. (CoreIPC::ArgumentEncoder::encodeUInt32):
  9683. (CoreIPC::ArgumentEncoder::encodeUInt64):
  9684. (CoreIPC::ArgumentEncoder::encodeInt32):
  9685. (CoreIPC::ArgumentEncoder::encodeInt64):
  9686. (CoreIPC::ArgumentEncoder::encodeFloat):
  9687. (CoreIPC::ArgumentEncoder::encodeDouble):
  9688. 2011-03-29 Brent Fulgham <bfulgham@webkit.org>
  9689. Unreviewed build fix after r81928.
  9690. * win/WebKit2.vcproj: Don't build CG-specific icon routines
  9691. for WinCairo port.
  9692. 2011-03-29 Sam Weinig <sam@webkit.org>
  9693. Reviewed by Anders Carlsson.
  9694. Reproducible crash running under libgmalloc, in -[WKView(Internal) removeTrackingRect:] --&gt; objc_assign_ivar_non_gc
  9695. <rdar://problem/9193352>
  9696. https://bugs.webkit.org/show_bug.cgi?id=57358
  9697. -[WKView removeTrackingRect] can be called from below -[WKView dealloc] after we have
  9698. destroyed _data. So, nil out _data after releasing it and nil check it appropriately.
  9699. * UIProcess/API/mac/WKView.mm:
  9700. (-[WKView dealloc]):
  9701. Nil out _data after releasing it.
  9702. (-[WKView removeTrackingRect:]):
  9703. Add early return for nil _data.
  9704. 2011-03-29 Jeff Miller <jeffm@apple.com>
  9705. Reviewed by Jon Honeycutt.
  9706. Add WebCore::copyCertificateToData() on Windows
  9707. https://bugs.webkit.org/show_bug.cgi?id=57296
  9708. Remove duplicate code that implemented this functionality in WebCoreArgumentCodersWin.cpp and use WebCore::copyCertificateToData() instead.
  9709. * Shared/win/WebCoreArgumentCodersWin.cpp:
  9710. (CoreIPC::decodeResourceError): Use WebCore::copyCertificateToData().
  9711. 2011-03-29 Balazs Kelemen <kbalazs@webkit.org>
  9712. Unreviewed build fix (64 bit gcc).
  9713. GCC does not accept uint64_t formatted as %lli.
  9714. * UIProcess/WebIconDatabase.cpp:
  9715. (WebKit::WebIconDatabase::getLoadDecisionForIconURL): Add explicit cast to long long.
  9716. 2011-03-28 Maciej Stachowiak <mjs@apple.com>
  9717. Reviewed by Dan Bernstein.
  9718. WKPageGetSourceForFrame and WKPageGetContentsAsString should throw an error in case of a race with page loading
  9719. https://bugs.webkit.org/show_bug.cgi?id=57305
  9720. <rdar://problem/8738060>, <rdar://problem/8780168>
  9721. * UIProcess/WebPageProxy.cpp:
  9722. (WebKit::WebPageProxy::close): Clear m_loadDependentStringCallbackIDs
  9723. (WebKit::WebPageProxy::getSourceForFrame): track the callback as load dependent
  9724. (WebKit::WebPageProxy::getContentsAsString): ditto
  9725. (WebKit::WebPageProxy::clearLoadDependentCallbacks): Invalidate all load dependent callbacks
  9726. (WebKit::WebPageProxy::didCommitLoadForFrame): Call clearLoadDependentCallbacks
  9727. (WebKit::WebPageProxy::didFailLoadForFrame): ditto
  9728. (WebKit::WebPageProxy::stringCallback): Remove callback from load dependent set if appropriate
  9729. (WebKit::WebPageProxy::processDidCrash): Clear m_loadDependentStringCallbackIDs
  9730. * UIProcess/WebPageProxy.h: Add m_loadDependentStringCallbackIDs hash set.
  9731. 2011-03-28 Patrick Gansterer <paroga@webkit.org>
  9732. Reviewed by Darin Adler.
  9733. Use String instead of CString as return value of openTemporaryFile
  9734. https://bugs.webkit.org/show_bug.cgi?id=55332
  9735. * Shared/WebMemorySampler.cpp:
  9736. (WebKit::WebMemorySampler::initializeTempLogFile):
  9737. * WebProcess/Plugins/Netscape/NetscapePluginStream.cpp:
  9738. (WebKit::NetscapePluginStream::stop):
  9739. * WebProcess/Plugins/Netscape/NetscapePluginStream.h:
  9740. 2011-03-28 Brian Weinstein <bweinstein@apple.com>
  9741. Reviewed by Jon Honeycutt.
  9742. WebKit2: Downloads started with DownloadCFNet::start never start
  9743. https://bugs.webkit.org/show_bug.cgi?id=57268
  9744. * WebProcess/Downloads/cfnet/DownloadCFNet.cpp:
  9745. (WebKit::Download::start): Call CFURLDownloadStart on the download we create.
  9746. 2011-03-28 Anders Carlsson <andersca@apple.com>
  9747. Fix Windows build.
  9748. * Shared/ShareableBitmap.h:
  9749. 2011-03-28 Anders Carlsson <andersca@apple.com>
  9750. Reviewed by Sam Weinig.
  9751. Beep when pressing a menu key equivalent when a plug-in has focus
  9752. https://bugs.webkit.org/show_bug.cgi?id=57264
  9753. <rdar://problem/8935597>
  9754. We don't want the WKTextInputWindowController inputContext to be involved in interpretKeyEvents.
  9755. * UIProcess/API/mac/WKView.mm:
  9756. (-[WKView inputContext]):
  9757. 2011-03-28 Anders Carlsson <andersca@apple.com>
  9758. Reviewed by Sam Weinig.
  9759. CGImageRefs must hold a strong reference to underlying data
  9760. https://bugs.webkit.org/show_bug.cgi?id=57263
  9761. <rdar://problem/9146179>
  9762. Make paintBitmapContext use CGBitmapContextCreateImage, which creates a copy-on-write copy
  9763. of the bitmap data. Also, add ShareableBitmap::makeCGImageCopy which does the same thing, and
  9764. ShareableBitmap::makeCGImage in the cases where we know that the ShareableBitmap data will never change.
  9765. * Platform/cg/CGUtilities.cpp:
  9766. (WebKit::paintImage):
  9767. Factor image painting code out into a separate function.
  9768. (WebKit::paintBitmapContext):
  9769. Call paintImage.
  9770. * Shared/API/c/cg/WKImageCG.cpp:
  9771. (WKImagemakeCGImage):
  9772. Use ShareableBitmap::makeCGImageCopy.
  9773. * Shared/ShareableBitmap.h:
  9774. * Shared/cg/ShareableBitmapCG.cpp:
  9775. (WebKit::ShareableBitmap::createGraphicsContext):
  9776. (WebKit::ShareableBitmap::paint):
  9777. (WebKit::ShareableBitmap::makeCGImageCopy):
  9778. (WebKit::ShareableBitmap::makeCGImage):
  9779. (WebKit::ShareableBitmap::releaseBitmapContextData):
  9780. (WebKit::ShareableBitmap::releaseDataProviderData):
  9781. Add makeCGImage and makeCGImageCopy.
  9782. * Shared/cg/WebCoreArgumentCodersCG.cpp:
  9783. (CoreIPC::createImage):
  9784. Use ShareableBitmap::makeCGImage.
  9785. * UIProcess/API/mac/PageClientImpl.mm:
  9786. (WebKit::PageClientImpl::setDragImage):
  9787. Use ShareableBitmap::makeCGImage and plug a CGImageRef leak.
  9788. 2011-03-28 Alexey Proskuryakov <ap@apple.com>
  9789. Build fix.
  9790. * UIProcess/API/mac/WKView.mm: (-[WKView keyDown:]): It's not "event" in this function, it's
  9791. "theEvent".
  9792. 2011-03-28 Alexey Proskuryakov <ap@apple.com>
  9793. Reviewed by Darin Adler.
  9794. https://bugs.webkit.org/show_bug.cgi?id=57260
  9795. Clean up text input code a little
  9796. * UIProcess/API/mac/WKView.mm:
  9797. (-[WKView doCommandBySelector:]): This NSTextInput protocol method lacked a LOG() call.
  9798. (-[WKView keyDown:]): Added (possibly useless) event protection to match performKeyEquivalent:
  9799. and also WebKit1.
  9800. * WebProcess/WebPage/mac/WebPageMac.mm: Removed an obsolete comment.
  9801. 2011-03-28 Jeff Miller <jeffm@apple.com>
  9802. Reviewed by Adam Roben.
  9803. ResourceError::certificate() should return a PCCERT_CONTEXT
  9804. https://bugs.webkit.org/show_bug.cgi?id=57262
  9805. * Shared/win/PlatformCertificateInfo.cpp:
  9806. (WebKit::PlatformCertificateInfo::PlatformCertificateInfo): Don't assert if no PCCERT_CONTEXT is specified.
  9807. * Shared/win/WebCoreArgumentCodersWin.cpp:
  9808. (CoreIPC::encodeResourceError): Removed unneeded code now that ResourceError::certificate() returns a PCCERT_CONTEXT.
  9809. 2011-03-28 Jeff Miller <jeffm@apple.com>
  9810. Rubber-stamped by Adam Roben.
  9811. Remove unused CFErrorRef.
  9812. * Shared/win/WebCoreArgumentCodersWin.cpp:
  9813. (CoreIPC::encodeResourceError): Remove unused CFErrorRef.
  9814. 2011-03-28 Jeff Miller <jeffm@apple.com>
  9815. Reviewed by Adam Roben.
  9816. Include certificate when sending a WebCore::ResourceError to UI process on Windows
  9817. https://bugs.webkit.org/show_bug.cgi?id=57195
  9818. Add support for sending the certificate with the WebCore::ResourceError.
  9819. * Shared/win/WebCoreArgumentCodersWin.cpp:
  9820. (CoreIPC::encodeResourceError): Encode certificate data.
  9821. (CoreIPC::deallocCertContext): Added.
  9822. (CoreIPC::createCertContextDeallocator): Added.
  9823. (CoreIPC::copyCert): Added.
  9824. (CoreIPC::decodeResourceError): Decode certificate data.
  9825. 2011-03-27 Andy Estes <aestes@apple.com>
  9826. Reviewed by Maciej Stachowiak.
  9827. Correctly get a plug-in's MIME type when it uses WebPluginMIMETypesFilename
  9828. https://bugs.webkit.org/show_bug.cgi?id=57205
  9829. If the plug-in's Info.plist uses WebPluginMIMETypesFilename to specify
  9830. plug-in MIME types, WebKit has to check for a property list file in
  9831. ~/Library/Preferences for the MIME type dictionary.
  9832. * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
  9833. (WebKit::getMIMETypesFromPluginBundle): If the bundle's Info dictionary
  9834. has the key WebPluginMIMETypesFilename, open the property list
  9835. specified by that key's value and return the MIME type dictionary from
  9836. there. Otherwise, return the MIME type dictionary specified by the key
  9837. WebPluginMIMETypes.
  9838. (WebKit::getPluginInfoFromPropertyLists): Call
  9839. getMIMETypesFromPluginBundle().
  9840. 2011-03-27 Jer Noble <jer.noble@apple.com>
  9841. Reviewed by Maciej Stachowiak.
  9842. Full Screen: disable keyboard access by default
  9843. https://bugs.webkit.org/show_bug.cgi?id=56684
  9844. Take into account whether keyboard access was requested when deciding whether full
  9845. screen mode is supported.
  9846. * UIProcess/WebFullScreenManagerProxy.cpp:
  9847. (WebKit::WebFullScreenManagerProxy::supportsFullScreen):
  9848. * UIProcess/WebFullScreenManagerProxy.h:
  9849. * UIProcess/WebFullScreenManagerProxy.messages.in:
  9850. * WebProcess/FullScreen/WebFullScreenManager.cpp:
  9851. (WebKit::WebFullScreenManager::supportsFullScreen):
  9852. * WebProcess/FullScreen/WebFullScreenManager.h:
  9853. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  9854. (WebKit::WebChromeClient::supportsFullScreenForElement):
  9855. * WebProcess/WebCoreSupport/WebChromeClient.h:
  9856. 2011-03-27 Anders Carlsson <andersca@apple.com>
  9857. Reviewed by Sam Weinig.
  9858. Dock doesn't come back after leaving fullscreen on Hulu
  9859. https://bugs.webkit.org/show_bug.cgi?id=57189
  9860. <rdar://problem/9192413>
  9861. Port some code over from the old WebKit1 plug-in host.
  9862. * PluginProcess/mac/PluginProcessShim.mm:
  9863. (WebKit::shimShowMenuBar):
  9864. (WebKit::shimHideMenuBar):
  9865. (WebKit::shimIsMenuBarVisible):
  9866. 2011-03-27 Anders Carlsson <andersca@apple.com>
  9867. Reviewed by Sam Weinig.
  9868. Keep a strong reference to the connection to avoid crashes.
  9869. * Platform/CoreIPC/Connection.cpp:
  9870. 2011-03-26 Jeff Miller <jeffm@apple.com>
  9871. Reviewed by Sam Weinig.
  9872. WKErrorCopyCFError() doesn't actually return a copy of the CFErrorRef
  9873. https://bugs.webkit.org/show_bug.cgi?id=57172
  9874. * Shared/API/c/cf/WKErrorCF.cpp:
  9875. (WKErrorCopyCFError): Use RetainPtr<> and leakRef() to return a real copy.
  9876. 2011-03-26 Maciej Stachowiak <mjs@apple.com>
  9877. Revert inadvertently committed changes.
  9878. * WebProcess/com.apple.WebProcess.sb:
  9879. 2011-03-26 Jer Noble <jer.noble@apple.com>
  9880. Reviewed by Eric Carlson.
  9881. Enable the Full Screen API by default in WebKit/mac and WebKit2
  9882. https://bugs.webkit.org/show_bug.cgi?id=56956
  9883. * Shared/WebPreferencesStore.h: Default the fullScreenEnabled preference to true.
  9884. 2011-03-26 Jeff Miller <jeffm@apple.com>
  9885. Reviewed by Steve Falkenburg.
  9886. Add PlatformCertificateInfo::PlatformCertificateInfo(PCCERT_CONTEXT) constructor on Windows
  9887. https://bugs.webkit.org/show_bug.cgi?id=57152
  9888. We're going to need to create a PlatformCertificateInfo with a single certificate on Windows to support client certificates.
  9889. Also, stop relying on the fact that the Win32 API CertDuplicateCertificateContext() currently returns the same PCCERT_CONTEXT that you pass to it, since that may change in the future.
  9890. * Shared/win/PlatformCertificateInfo.cpp:
  9891. (WebKit::PlatformCertificateInfo::PlatformCertificateInfo): Added PlatformCertificateInfo(PCCERT_CONTEXT) construtor. Use return value from CertDuplicateCertificateContext().
  9892. (WebKit::PlatformCertificateInfo::operator=): Use return value from CertDuplicateCertificateContext().
  9893. * Shared/win/PlatformCertificateInfo.h: Added PlatformCertificateInfo(PCCERT_CONTEXT) construtor.
  9894. 2011-03-26 Anders Carlsson <andersca@apple.com>
  9895. Reviewed by Sam Weinig.
  9896. Graphic corruption appeared with Silverlight contents while resizing window
  9897. https://bugs.webkit.org/show_bug.cgi?id=57167
  9898. <rdar://problem/9094052>
  9899. Pass DispatchMessageEvenWhenWaitingForSyncReply when sending GeometryDidChange messages since that will guarantee
  9900. that those messages will be handled before PaintEntirePlugin messages which prevents the PaintEntirePlugin handler from
  9901. painting into the wrong backing store.
  9902. * WebProcess/Plugins/PluginProxy.cpp:
  9903. (WebKit::PluginProxy::geometryDidChange):
  9904. 2011-03-26 Sam Weinig <sam@webkit.org>
  9905. Reviewed by Anders Carlsson.
  9906. Web process considered unresponsive (SPOD shown) when displaying a JavaScript alert() as a result of a click
  9907. <rdar://problem/9067557>
  9908. https://bugs.webkit.org/show_bug.cgi?id=57166
  9909. * UIProcess/WebPageProxy.cpp:
  9910. (WebKit::WebPageProxy::runJavaScriptAlert):
  9911. (WebKit::WebPageProxy::runJavaScriptConfirm):
  9912. (WebKit::WebPageProxy::runJavaScriptPrompt):
  9913. Invalidate the responsiveness timer before calling out to the client.
  9914. 2011-03-26 Anders Carlsson <andersca@apple.com>
  9915. Reviewed by Sam Weinig.
  9916. ASSERTION FAILED: m_operationInProgress == NoOperation loading nytimes.com
  9917. https://bugs.webkit.org/show_bug.cgi?id=57165
  9918. <rdar://problem/9024311>
  9919. The assertion fired because during GC, the web process sends a synchronous NPObjectMessageReceiver::Deallocate
  9920. message to the plug-in process. Since this is a synchronous message, the web process needs to process incoming synchronous
  9921. messages. While waiting, we get an incoming PluginProxy::Evaluate message from the plug-in. This causes JavaScript to run
  9922. during GC which is very bad.
  9923. The fix for this is to add a flag on the connection that will cause synchronous messages sent by the connection (in this case the
  9924. plug-in process) to not be processed while the other side (the web process) is waiting for a synchronous reply _unless_ the connection
  9925. is actually processing a synchronous message. (The last part is to avoid deadlocks).
  9926. Since the call to NPN_Evaluate by the plug-in (that ends up sending the PluginProxy::Evaluate message) comes from a run loop timer firing,
  9927. it's OK to wait for it to be processed by the web process when it returns to the run loop.
  9928. * Platform/CoreIPC/Connection.cpp:
  9929. (CoreIPC::Connection::Connection):
  9930. Initialize m_onlySendMessagesAsDispatchWhenWaitingForSyncReplyWhenProcessingSuchAMessage and m_inDispatchMessageMarkedDispatchWhenWaitingForSyncReplyCount.
  9931. (CoreIPC::Connection::setOnlySendMessagesAsDispatchWhenWaitingForSyncReplyWhenProcessingSuchAMessage):
  9932. Set m_onlySendMessagesAsDispatchWhenWaitingForSyncReplyWhenProcessingSuchAMessage.
  9933. (CoreIPC::Connection::sendMessage):
  9934. Don't add the MessageID::DispatchMessageWhenWaitingForSyncReply flag when the right flags has been set on the connection, and it's not processing a synchronous message.
  9935. (CoreIPC::Connection::dispatchMessage):
  9936. Increment and decrement m_inDispatchMessageMarkedDispatchWhenWaitingForSyncReplyCount accordingly.
  9937. * PluginProcess/WebProcessConnection.cpp:
  9938. (WebKit::WebProcessConnection::WebProcessConnection):
  9939. Call setOnlySendMessagesAsDispatchWhenWaitingForSyncReplyWhenProcessingSuchAMessage on the connection.
  9940. 2011-03-26 Sam Weinig <sam@webkit.org>
  9941. Rollout r82042 (If a user doesn't have a Database/LocalStorage directory, it can't be created (sandbox violations))
  9942. -[NSString stringByResolvingSymlinksInPath] does not do what we needed for paths within /private.
  9943. This caused all SSL sites to stop working.
  9944. * WebProcess/mac/WebProcessMac.mm:
  9945. (WebKit::appendSandboxParameterPath):
  9946. (WebKit::initializeSandbox):
  9947. 2011-03-26 Sam Weinig <sam@webkit.org>
  9948. Reviewed by Anders Carlsson.
  9949. If a user doesn't have a Database/LocalStorage directory, it can't be created (sandbox violations)
  9950. <rdar://problem/9127411>
  9951. https://bugs.webkit.org/show_bug.cgi?id=57164
  9952. * WebProcess/mac/WebProcessMac.mm:
  9953. (WebKit::appendSandboxParameterPath):
  9954. (WebKit::initializeSandbox):
  9955. Use -[NSString stringByResolvingSymlinksInPath] instead of realpath to ensure we can resolve
  9956. symlinks even if the file/directory doesn't exist yet.
  9957. 2011-03-26 Anders Carlsson <andersca@apple.com>
  9958. Reviewed by Sam Weinig.
  9959. Factor processing of incoming sync replies out into processIncomingSyncReply
  9960. https://bugs.webkit.org/show_bug.cgi?id=57161
  9961. * Platform/CoreIPC/Connection.cpp:
  9962. (CoreIPC::Connection::sendSyncMessage):
  9963. Pass DispatchMessageEvenWhenWaitingForSyncReply to sendMessage.
  9964. (CoreIPC::Connection::processIncomingSyncReply):
  9965. Move code from processIncomingMessage to here.
  9966. (CoreIPC::Connection::processIncomingMessage):
  9967. Call processIncomingSyncReply.
  9968. 2011-03-26 Sam Weinig <sam@webkit.org>
  9969. Reviewed by Anders Carlsson.
  9970. WebKit2: Assert in CoreIPC::typeFromCFTypeRef() when loading a site with an invalid certificate
  9971. <rdar://problem/9188041>
  9972. https://bugs.webkit.org/show_bug.cgi?id=57159
  9973. * Shared/cf/ArgumentCodersCF.cpp:
  9974. (CoreIPC::typeFromCFTypeRef):
  9975. (CoreIPC::encode):
  9976. (CoreIPC::decode):
  9977. * Shared/cf/ArgumentCodersCF.h:
  9978. Add encoding/decoding for SecCertificateRef type.
  9979. * Shared/mac/PlatformCertificateInfo.mm:
  9980. (WebKit::PlatformCertificateInfo::encode):
  9981. (WebKit::PlatformCertificateInfo::decode):
  9982. Use ArgumentCodersCF now that it knows how to encode/decode SecCertificateRefs.
  9983. 2011-03-26 Anders Carlsson <andersca@apple.com>
  9984. Reviewed by Sam Weinig.
  9985. Handle synchronous replies coming in out of order
  9986. https://bugs.webkit.org/show_bug.cgi?id=57158
  9987. When processing an incoming reply, don't assume that it belongs to the last sent synchronous request.
  9988. Instead, iterate over the m_pendingSyncReplies vector backwards looking for the corresponding request.
  9989. * Platform/CoreIPC/Connection.cpp:
  9990. (CoreIPC::Connection::processIncomingMessage):
  9991. 2011-03-26 Anders Carlsson <andersca@apple.com>
  9992. Reviewed by Sam Weinig.
  9993. Fix a possible deadlock when two synchronous messages are sent at the same time
  9994. https://bugs.webkit.org/show_bug.cgi?id=57155
  9995. Simplify code and fix a possible (although highly improbable) dead lock.
  9996. * Platform/CoreIPC/Connection.cpp:
  9997. Make SyncMessageState atomically ref counted since it can be ref()'ed from the connection queue.
  9998. Get rid of m_waitForSyncReplyCount and add m_didScheduleDispatchMessagesWork.
  9999. (CoreIPC::Connection::SyncMessageState::SyncMessageState):
  10000. Initialize m_didScheduleDispatchMessagesWork to false.
  10001. (CoreIPC::Connection::SyncMessageState::processIncomingMessage):
  10002. if m_didScheduleDispatchMessagesWork is false, schedule a call to dispatchMessageAndResetDidScheduleDispatchMessagesWork
  10003. on the client run loop.
  10004. (CoreIPC::Connection::SyncMessageState::dispatchMessageAndResetDidScheduleDispatchMessagesWork):
  10005. Dispatch messages and set m_didScheduleDispatchMessagesWork back to false.
  10006. (CoreIPC::Connection::sendSyncMessage):
  10007. Remove calls to beginWaitForSyncReply and endWaitForSyncReply.
  10008. 2011-03-25 Sam Weinig <sam@webkit.org>
  10009. Reviewed by Adele Peterson.
  10010. WKPageLoadAlternateHTMLString doesn't re-spawn a dead WebProcess, but should
  10011. <rdar://problem/9191493>
  10012. https://bugs.webkit.org/show_bug.cgi?id=57134
  10013. Make all load functions respawn a dead WebProcess for consistency.
  10014. * UIProcess/WebPageProxy.cpp:
  10015. (WebKit::WebPageProxy::loadHTMLString):
  10016. Respawn a dead WebProcess.
  10017. (WebKit::WebPageProxy::loadAlternateHTMLString):
  10018. Respawn a dead WebProcess.
  10019. (WebKit::WebPageProxy::loadPlainTextString):
  10020. Respawn a dead WebProcess.
  10021. (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
  10022. * UIProcess/WebPageProxy.h:
  10023. * UIProcess/WebPageProxy.messages.in:
  10024. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  10025. (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
  10026. * WebProcess/WebPage/WebPage.cpp:
  10027. (WebKit::WebPage::loadAlternateHTMLString):
  10028. Since we may no longer always have a main frame when calling WKPageLoadAlternateHTMLString,
  10029. set the unreachable URL, if there is one, on provisional load.
  10030. 2011-03-25 Anders Carlsson <andersca@apple.com>
  10031. Reviewed by Sam Weinig.
  10032. PluginView's call to invalidateContentsAndWindow() in invalidateRect() is wrong for plug-ins which paint into compositing layers
  10033. https://bugs.webkit.org/show_bug.cgi?id=57133
  10034. <rdar://problem/9029442>
  10035. * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
  10036. (WebKit::NetscapePlugin::platformInvalidate):
  10037. Return true under the Core Animation drawing model, since that prevents the plug-in from calling PluginController::invalidate.
  10038. * WebProcess/Plugins/PluginView.cpp:
  10039. (WebKit::PluginView::invalidateRect):
  10040. Don't call invalidateContentsAndWindow() if the plug-in has a Core Animation layer.
  10041. 2011-03-25 Brady Eidson <beidson@apple.com>
  10042. Reviewed by Sam Weinig.
  10043. <rdar://problem/8648311> and https://bugs.webkit.org/show_bug.cgi?id=56425
  10044. WebKit2 IconDatabase and API
  10045. This gets a basic, usable API in place.
  10046. Enhancements can come in other bugs as they're needed.
  10047. * UIProcess/API/C/WKIconDatabase.cpp:
  10048. (WKIconDatabaseRetainIconForURL):
  10049. (WKIconDatabaseReleaseIconForURL):
  10050. (WKIconDatabaseEnableDatabaseCleanup):
  10051. * UIProcess/API/C/WKIconDatabase.h:
  10052. The first actual accessor for an "icon for a URL" is for a CGImageRef:
  10053. * UIProcess/API/C/cg: Added.
  10054. * UIProcess/API/C/cg/WKIconDatabaseCG.cpp: Added.
  10055. (WKIconDatabaseGetCGImageForURL):
  10056. * UIProcess/API/C/cg/WKIconDatabaseCG.h: Added.
  10057. Expose relevant methods to support the above API:
  10058. * UIProcess/WebIconDatabase.cpp:
  10059. (WebKit::WebIconDatabase::WebIconDatabase): New IconDatabases will have cleanup disabled from the start,
  10060. and require a single call to "enableDatabaseCleanup" to allow cleanup.
  10061. (WebKit::WebIconDatabase::setDatabasePath):
  10062. (WebKit::WebIconDatabase::enableDatabaseCleanup):
  10063. (WebKit::WebIconDatabase::imageForPageURL):
  10064. * UIProcess/WebIconDatabase.h:
  10065. Project file stuff:
  10066. * WebKit2.xcodeproj/project.pbxproj:
  10067. * win/WebKit2.vcproj:
  10068. 2011-03-25 Jeff Miller <jeffm@apple.com>
  10069. Reviewed by Darin Adler.
  10070. Add CoreIPC::encodeResourceError() and CoreIPC::decodeResourceError() for all platforms
  10071. https://bugs.webkit.org/show_bug.cgi?id=57125
  10072. Currently, these are only implemented on the Mac, but we're going to need them for Windows as well, so we might as well make them always platform-specific.
  10073. In this patch, just replicate the existing common non-Mac implementation in WebCoreArgumentCoders.h to platform-specific files.
  10074. * Shared/WebCoreArgumentCoders.h: Move non-Mac implementations of encodeResourceError() and decodeResourceError() to common files.
  10075. * Shared/gtk/WebCoreArgumentCodersGtk.cpp:
  10076. (CoreIPC::encodeResourceError): Added.
  10077. (CoreIPC::decodeResourceError): Added.
  10078. * Shared/qt/WebCoreArgumentCodersQt.cpp:
  10079. (CoreIPC::encodeResourceError): Added.
  10080. (CoreIPC::decodeResourceError): Added.
  10081. * Shared/win/WebCoreArgumentCodersWin.cpp:
  10082. (CoreIPC::encodeResourceError): Added.
  10083. (CoreIPC::decodeResourceError): Added.
  10084. 2011-03-25 Andy Estes <aestes@apple.com>
  10085. Reviewed by Adele Peterson.
  10086. REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
  10087. https://bugs.webkit.org/show_bug.cgi?id=49016
  10088. Update objectContentType() implementation to handle the
  10089. shouldPreferPlugInsForImages flag.
  10090. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  10091. (WebKit::WebFrameLoaderClient::objectContentType):
  10092. * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
  10093. 2011-03-25 Brent Fulgham <bfulgham@webkit.org>
  10094. Unreviewed build correction.
  10095. Add stubs for WK2 cookie handling with cURL.
  10096. * WebProcess/Cookies/curl: Added.
  10097. * WebProcess/Cookies/curl/WebCookieManagerCurl.cpp: Added.
  10098. (WebKit::WebCookieManager::platformSetHTTPCookieAcceptPolicy):
  10099. (WebKit::WebCookieManager::platformGetHTTPCookieAcceptPolicy):
  10100. * win/WebKit2.vcproj:
  10101. 2011-03-25 Steve Falkenburg <sfalken@apple.com>
  10102. Reviewed by Brian Weinstein.
  10103. Microsoft Windows Presentation Foundation (WPF) plug-in complains about missing xpcom.dll
  10104. https://bugs.webkit.org/show_bug.cgi?id=57119
  10105. <rdar://problem/9054148>
  10106. This plug-in from Microsoft links against xpcom.dll, which is a Firefox-specific DLL
  10107. not available in WebKit. The plug-in is fairly widespread, since it was included in
  10108. a Windows Update push at one point.
  10109. * UIProcess/Plugins/win/PluginInfoStoreWin.cpp:
  10110. (WebKit::PluginInfoStore::shouldUsePlugin): Blacklist npwpf.dll.
  10111. 2011-03-25 Jessie Berlin <jberlin@apple.com>
  10112. Reviewed by Anders Carlsson.
  10113. WebKit2: Need to be able to set and get the Cookie Storage Policy.
  10114. https://bugs.webkit.org/show_bug.cgi?id=50780
  10115. Part 2: Make it possible to set the initial policy on Windows.
  10116. In WebKit1, we read the initial policy on Windows from WebPreferences at startup.
  10117. Since that is not possible in WebKit2, make it possible to specify the initial policy
  10118. as a creation parameter to the WebProcess.
  10119. * Shared/WebProcessCreationParameters.cpp:
  10120. (WebKit::WebProcessCreationParameters::encode):
  10121. Encode initialHTTPCookieAcceptPolicy on Windows.
  10122. (WebKit::WebProcessCreationParameters::decode):
  10123. Decode initialHTTPCookieAcceptPolicy on Windows.
  10124. * Shared/WebProcessCreationParameters.h:
  10125. * UIProcess/API/C/win/WKContextPrivateWin.h:
  10126. * UIProcess/API/C/win/WKContextWin.cpp:
  10127. (WKContextSetInitialHTTPCookieAcceptPolicy):
  10128. Call through to WebContext.
  10129. * UIProcess/WebContext.cpp:
  10130. (WebKit::WebContext::WebContext):
  10131. Give the initial policy a default of "Always".
  10132. * UIProcess/WebContext.h:
  10133. (WebKit::WebContext::setInitialHTTPCookieAcceptPolicy):
  10134. * UIProcess/win/WebContextWin.cpp:
  10135. (WebKit::WebContext::platformInitializeWebProcess):
  10136. Set the initial policy on Windows.
  10137. * WebProcess/Cookies/WebCookieManager.h:
  10138. Make setHTTPCookieAcceptPolicy public so that it can be called from WebProcessWin.
  10139. * WebProcess/win/WebProcessWin.cpp:
  10140. (WebKit::WebProcess::platformInitializeWebProcess):
  10141. Tell the WebCookieManager about the initial policy.
  10142. 2011-03-25 Jessie Berlin <jberlin@apple.com>
  10143. Reviewed by Sam Weinig.
  10144. WebKit2: Need to be able to set and get the Cookie Storage Policy.
  10145. https://bugs.webkit.org/show_bug.cgi?id=50780
  10146. * Shared/HTTPCookieAcceptPolicy.h: Added.
  10147. * UIProcess/API/C/WKAPICast.h:
  10148. (WebKit::toHTTPCookieAcceptPolicy):
  10149. (WebKit::toAPI):
  10150. * UIProcess/API/C/WKCookieManager.cpp:
  10151. (WKCookieManagerSetHTTPCookieAcceptPolicy):
  10152. Call through to WebCookieManagerProxy.
  10153. (WKCookieManagerGetHTTPCookieAcceptPolicy):
  10154. Ditto.
  10155. * UIProcess/API/C/WKCookieManager.h:
  10156. * UIProcess/WebCookieManagerProxy.cpp:
  10157. (WebKit::WebCookieManagerProxy::invalidate):
  10158. Invalidate the get http cookie accept policy callbacks.
  10159. (WebKit::WebCookieManagerProxy::setHTTPCookieAcceptPolicy):
  10160. Send a message to the Web Process with the new value.
  10161. (WebKit::WebCookieManagerProxy::getHTTPCookieAcceptPolicy):
  10162. Keep track of the callback and send a message to the Web Process.
  10163. (WebKit::WebCookieManagerProxy::didGetHTTPCookieAcceptPolicy):
  10164. Invoke the callback.
  10165. * UIProcess/mac/WebCookieManagerProxyMac.mm: Added.
  10166. (WebKit::WebCookieManagerProxy::persistHTTPCookieAcceptPolicy):
  10167. On Mac, also set the policy in the UI Process because the sandboxed Web Process cannot
  10168. persist the policy.
  10169. * UIProcess/WebCookieManagerProxy.h:
  10170. * UIProcess/WebCookieManagerProxy.messages.in:
  10171. * WebKit2.pri:
  10172. * WebKit2.pro:
  10173. * WebKit2.xcodeproj/project.pbxproj:
  10174. * win/WebKit2.vcproj:
  10175. * win/WebKit2Common.vsprops:
  10176. * WebProcess/Cookies/WebCookieManager.cpp:
  10177. (WebKit::WebCookieManager::setHTTPCookieAcceptPolicy):
  10178. Call platformSetHTTPCookieAcceptPolicy.
  10179. (WebKit::WebCookieManager::getHTTPCookieAcceptPolicy):
  10180. Send the result of platformGetHTTPCookieAcceptPolicy to the UI Process.
  10181. * WebProcess/Cookies/WebCookieManager.h:
  10182. * WebProcess/Cookies/WebCookieManager.messages.in:
  10183. * WebProcess/Cookies/cf: Added.
  10184. * WebProcess/Cookies/cf/WebCookieManagerCFNet.cpp: Added.
  10185. (WebKit::WebCookieManager::platformSetHTTPCookieAcceptPolicy):
  10186. Set the policy on both the default cookie storage and any Private Browsing cookie storage.
  10187. (WebKit::WebCookieManager::platformGetHTTPCookieAcceptPolicy):
  10188. * WebProcess/Cookies/mac: Added.
  10189. * WebProcess/Cookies/mac/WebCookieManagerMac.mm: Added.
  10190. (WebKit::WebCookieManager::platformSetHTTPCookieAcceptPolicy):
  10191. Set the policy on the default cookie storage and add a FIXME to set it on any Private
  10192. Browsing cookie storage.
  10193. (WebKit::WebCookieManager::platformGetHTTPCookieAcceptPolicy):
  10194. * WebProcess/Cookies/gtk: Added.
  10195. * WebProcess/Cookies/gtk/WebCookieManagerGtk.cpp: Added.
  10196. (WebKit::WebCookieManager::platformSetHTTPCookieAcceptPolicy):
  10197. (WebKit::WebCookieManager::platformGetHTTPCookieAcceptPolicy):
  10198. * WebProcess/Cookies/qt: Added.
  10199. * WebProcess/Cookies/qt/WebCookieManagerQt.cpp: Added.
  10200. (WebKit::WebCookieManager::platformSetHTTPCookieAcceptPolicy):
  10201. (WebKit::WebCookieManager::platformGetHTTPCookieAcceptPolicy):
  10202. 2011-03-25 Brian Weinstein <bweinstein@apple.com>
  10203. Reviewed by Alexey Proskuryakov.
  10204. REGRESSION(r79227): CFURLCache not initialized correctly in WebKit2
  10205. https://bugs.webkit.org/show_bug.cgi?id=57109
  10206. <rdar://problem/9184590>
  10207. Check for a trailing Windows path separator, not a Unix path separator.
  10208. * UIProcess/win/WebContextWin.cpp:
  10209. (WebKit::WebContext::platformInitializeWebProcess):
  10210. 2011-03-25 Benjamin Poulain <benjamin.poulain@nokia.com>
  10211. Reviewed by Andreas Kling.
  10212. [Qt] QtWebKit will not compile with QT_ASCII_CAST_WARNINGS enabled
  10213. https://bugs.webkit.org/show_bug.cgi?id=57087
  10214. Use explicit conversion for string to avoid depending on the default codec
  10215. installed by the user code.
  10216. * Platform/qt/SharedMemoryQt.cpp:
  10217. (WebKit::SharedMemory::create):
  10218. * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
  10219. (WebKit::initializeGTK):
  10220. * UIProcess/API/qt/tests/qgraphicswkview/tst_qgraphicswkview.cpp:
  10221. (tst_QGraphicsWKView::loadEmptyPage):
  10222. (tst_QGraphicsWKView::loadEmptyUrl):
  10223. * UIProcess/API/qt/tests/qwkpage/tst_qwkpage.cpp:
  10224. (tst_QWKPage::loadEmptyUrl):
  10225. * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
  10226. (WebKit::ProcessLauncher::launchProcess):
  10227. * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
  10228. (WebKit::getPluginDisplay):
  10229. * WebProcess/qt/WebProcessMainQt.cpp:
  10230. (WebKit::EnvHttpProxyFactory::initializeFromEnvironment):
  10231. (WebKit::WebProcessMainQt):
  10232. 2011-03-25 Brent Fulgham <bfulgham@webkit.org>
  10233. Correct project file missing $(WebKitVSPropsRedirectionDir)s
  10234. after r81924.
  10235. * win/WebKit2.vcproj: Restore lost $(WebKitVSPropsRedirectionDir)
  10236. 2011-03-25 Alejandro G. Castro <alex@igalia.com>
  10237. Reviewed by Martin Robinson.
  10238. [WK2] Consider .c files in the generate-forwarding-headers script
  10239. https://bugs.webkit.org/show_bug.cgi?id=56680
  10240. * Scripts/generate-forwarding-headers.pl:
  10241. 2011-03-24 Sheriff Bot <webkit.review.bot@gmail.com>
  10242. Unreviewed, rolling out r81916 and r81917.
  10243. http://trac.webkit.org/changeset/81916
  10244. http://trac.webkit.org/changeset/81917
  10245. https://bugs.webkit.org/show_bug.cgi?id=57071
  10246. broke a test on platforms that do not have QuickTime installed
  10247. (Requested by estes on #webkit).
  10248. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  10249. (WebKit::WebFrameLoaderClient::objectContentType):
  10250. * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
  10251. 2011-03-24 Brady Eidson <beidson@apple.com>
  10252. Reviewed by Darin Adler.
  10253. https://bugs.webkit.org/show_bug.cgi?id=57069
  10254. Add WKIconDatabase api to the project files, and expose accessor on WKContext.
  10255. Project file stuffs:
  10256. * GNUmakefile.am:
  10257. * WebKit2.xcodeproj/project.pbxproj:
  10258. * win/WebKit2.vcproj:
  10259. * Shared/API/c/WKBase.h:
  10260. * UIProcess/API/C/WKAPICast.h:
  10261. * UIProcess/API/C/WKContext.cpp:
  10262. (WKContextGetIconDatabase):
  10263. * UIProcess/API/C/WKContext.h:
  10264. * UIProcess/API/C/WKIconDatabase.cpp: Added.
  10265. (WKIconDatabaseGetTypeID):
  10266. * UIProcess/API/C/WKIconDatabase.h: Added.
  10267. * UIProcess/WebContext.h:
  10268. (WebKit::WebContext::iconDatabase):
  10269. 2011-03-24 Brent Fulgham <bfulgham@webkit.org>
  10270. Build correction.
  10271. Disable the CA Layer stuff when building with Cairo.
  10272. * win/WebKit2.vcproj:
  10273. 2011-03-24 Brady Eidson <beidson@apple.com>
  10274. Reviewed by Sam Weinig.
  10275. https://bugs.webkit.org/show_bug.cgi?id=57058
  10276. Hookup the UIProcess WebIconDatabase to a WebCore::IconDatabase as its implementation
  10277. * UIProcess/WebIconDatabase.cpp:
  10278. (WebKit::WebIconDatabase::WebIconDatabase):
  10279. (WebKit::WebIconDatabase::setDatabasePath): Create a new WebCore::IconDatabase and open it to this path.
  10280. (WebKit::WebIconDatabase::retainIconForPageURL): Actually retain the url, using the impl.
  10281. (WebKit::WebIconDatabase::releaseIconForPageURL): Actually release the url, using the impl.
  10282. (WebKit::WebIconDatabase::setIconURLForPageURL): Actually set the url, using the impl.
  10283. (WebKit::WebIconDatabase::setIconDataForIconURL): Actually set the data, using the impl.
  10284. (WebKit::WebIconDatabase::getLoadDecisionForIconURL): Actually ask for a load decision to call back with.
  10285. (WebKit::WebIconDatabase::performImport):
  10286. (WebKit::WebIconDatabase::didImportIconURLForPageURL):
  10287. (WebKit::WebIconDatabase::didImportIconDataForPageURL):
  10288. (WebKit::WebIconDatabase::didChangeIconForPageURL):
  10289. (WebKit::WebIconDatabase::didRemoveAllIcons):
  10290. (WebKit::WebIconDatabase::didFinishURLImport): Notify all the pending callbacks what their load decisions
  10291. are now that they're available.
  10292. * UIProcess/WebIconDatabase.h:
  10293. Add an IconDatabase logging channel:
  10294. * Platform/Logging.cpp:
  10295. (WebKit::initializeLogChannelsIfNecessary):
  10296. * Platform/Logging.h:
  10297. * UIProcess/WebContext.cpp:
  10298. (WebKit::WebContext::setIconDatabasePath): Pass the new path on to the WebIconDatabase, possibly
  10299. opening it.
  10300. * UIProcess/WebContext.h:
  10301. 2011-03-24 Andy Estes <aestes@apple.com>
  10302. Reviewed by Darin Adler.
  10303. REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
  10304. https://bugs.webkit.org/show_bug.cgi?id=49016
  10305. Update objectContentType() implementation to handle the
  10306. shouldPreferPlugInsForImages flag.
  10307. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  10308. (WebKit::WebFrameLoaderClient::objectContentType):
  10309. * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
  10310. 2011-03-24 Adam Roben <aroben@apple.com>
  10311. Start compiling LayerTreeHostCA on Windows
  10312. Fixes <http://webkit.org/b/57060> WebKit2.vcproj should compile LayerTreeHostCA
  10313. Reviewed by Anders Carlsson.
  10314. * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.cpp: Added.
  10315. (WebKit::LayerTreeHostCA::platformInitialize):
  10316. (WebKit::LayerTreeHostCA::scheduleLayerFlush):
  10317. (WebKit::LayerTreeHostCA::platformInvalidate):
  10318. (WebKit::LayerTreeHostCA::platformSizeDidChange):
  10319. (WebKit::LayerTreeHostCA::platformForceRepaint):
  10320. (WebKit::LayerTreeHostCA::platformDidPerformScheduledLayerFlush):
  10321. Stubbed out.
  10322. * win/WebKit2.vcproj: Added new files. Let VS reorder existing files.
  10323. * win/WebKit2Apple.vsprops: Added WebProcess\WebPage\ca to the include path.
  10324. 2011-03-24 Jer Noble <jer.noble@apple.com>
  10325. Unreviewed build fix.
  10326. Remove reference to LayerTreeHostMac.h from WebFullScreenManagerMac.mm.
  10327. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
  10328. 2011-03-24 Adam Roben <aroben@apple.com>
  10329. Split Mac-specific parts of LayerTreeHostCA into LayerTreeHostCAMac.mm
  10330. Fixes <http://webkit.org/b/57046> LayerTreeHostMac's code should be shareable with Windows
  10331. Reviewed by Anders Carlsson.
  10332. * WebKit2.xcodeproj/project.pbxproj:
  10333. * WebProcess/WebPage/ca/LayerTreeHostCA.cpp: Renamed from Source/WebKit2/WebProcess/WebPage/ca/LayerTreeHostCA.mm.
  10334. (WebKit::LayerTreeHostCA::LayerTreeHostCA): Moved some Mac-specific code to
  10335. LayerTreeHostCAMac.mm.
  10336. (WebKit::LayerTreeHostCA::~LayerTreeHostCA): Wrapped some Mac-specific code in
  10337. PLATFORM(MAC).
  10338. (WebKit::LayerTreeHostCA::invalidate):
  10339. (WebKit::LayerTreeHostCA::sizeDidChange):
  10340. (WebKit::LayerTreeHostCA::forceRepaint):
  10341. Moved some Mac-specific code to LayerTreeHostCAMac.mm.
  10342. (WebKit::LayerTreeHostCA::performScheduledLayerFlush): Renamed from
  10343. flushPendingLayerChangesRunLoopObserverCallback. Moved some code from here...
  10344. (WebKit::LayerTreeHostCA::didPerformScheduledLayerFlush): ...to here. Moved some
  10345. Mac-specific code to LayerTreeHostCAMac.mm.
  10346. * WebProcess/WebPage/ca/LayerTreeHostCA.h: Added new functions, wrapped some Mac-specific
  10347. declarations in PLATFORM(MAC).
  10348. * WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.mm: Added.
  10349. (WebKit::LayerTreeHostCA::platformInitialize):
  10350. (WebKit::LayerTreeHostCA::scheduleLayerFlush):
  10351. (WebKit::LayerTreeHostCA::platformInvalidate):
  10352. (WebKit::LayerTreeHostCA::platformSizeDidChange):
  10353. (WebKit::LayerTreeHostCA::platformForceRepaint):
  10354. (WebKit::LayerTreeHostCA::flushPendingLayerChangesRunLoopObserverCallback):
  10355. (WebKit::LayerTreeHostCA::platformDidPerformScheduledLayerFlush):
  10356. Code was extracted from LayerTreeHostCA.cpp.
  10357. 2011-03-24 Adam Roben <aroben@apple.com>
  10358. Rename LayerTreeHostMac to LayerTreeHostCA
  10359. This is the first step toward sharing code with Windows.
  10360. Fixes <http://webkit.org/b/57051>.
  10361. Reviewed by Anders Carlsson.
  10362. * WebKit2.xcodeproj/project.pbxproj:
  10363. * WebProcess/WebPage/LayerTreeHost.cpp:
  10364. (WebKit::LayerTreeHost::create):
  10365. Updated for rename.
  10366. * WebProcess/WebPage/ca/LayerTreeHostCA.h: Renamed from Source/WebKit2/WebProcess/WebPage/mac/LayerTreeHostMac.h.
  10367. * WebProcess/WebPage/ca/LayerTreeHostCA.mm: Renamed from Source/WebKit2/WebProcess/WebPage/mac/LayerTreeHostMac.mm.
  10368. 2011-03-17 Jer Noble <jer.noble@apple.com>
  10369. Reviewed by Maciej Stachowiak.
  10370. WebKit2: Cancelling full screen early leaves full screen window up.
  10371. https://bugs.webkit.org/show_bug.cgi?id=56589
  10372. No new tests, as WebKitTestRunner does not currently support the new Full Screen API.
  10373. Notify the UIProcess when it needs to tear down its layer hosting view, turn off
  10374. the background layer when not in accelerated rendering mode and don't swap out
  10375. the web view unnecessarily
  10376. * UIProcess/mac/WKFullScreenWindowController.mm:
  10377. (-[WKFullScreenWindowController beganExitFullScreenAnimation]): Check before swapping _webView.
  10378. (-[WKFullScreenWindowController enterAcceleratedCompositingMode:]): Add the _layerHostingView
  10379. to the full screen window's animationView, not its contentsView.
  10380. (-[WKFullScreenWindowController exitAcceleratedCompositingMode]): Hide the background layer.
  10381. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
  10382. (WebKit::WebFullScreenManagerMac::setRootFullScreenLayer): If given a null rootLayer, tell
  10383. the client to exit accelerated mode.
  10384. 2011-03-24 Enrica Casucci <enrica@apple.com>
  10385. Reviewed by Alexey Proskuryakov.
  10386. WebKit2:Services menu item to convert selected Simplified/Traditional Chinese Text is not working.
  10387. https://bugs.webkit.org/show_bug.cgi?id=56975
  10388. <rdar://problem/8915066>
  10389. Adding missing entry point to support Mac OS X services in WebKit2.
  10390. * UIProcess/API/mac/WKView.mm:
  10391. (-[WKView readSelectionFromPasteboard:]): Added.
  10392. * UIProcess/WebPageProxy.h:
  10393. * UIProcess/mac/WebPageProxyMac.mm:
  10394. (WebKit::WebPageProxy::readSelectionFromPasteboard): Added.
  10395. * WebProcess/WebPage/WebPage.h:
  10396. * WebProcess/WebPage/WebPage.messages.in: Added synchronous
  10397. message.
  10398. * WebProcess/WebPage/mac/WebPageMac.mm:
  10399. (WebKit::WebPage::readSelectionFromPasteboard): Added.
  10400. 2011-03-24 Jia Pu <jpu@apple.com>
  10401. Reviewed by Darin Adler.
  10402. Dismissed reversion suggestion is incorrectly learned.
  10403. https://bugs.webkit.org/show_bug.cgi?id=57039
  10404. CorrectionPanel should always use [NSSpellChecker dismissCorrectionBubbleForView].
  10405. [NSSpellChecker cancelCorrectionBubbleForView] is reserved for situation where correction panel
  10406. is dismissed explicitly by ESC key or clicking the dimiss button. Misusing these causes
  10407. incorrect automatic learning.
  10408. * UIProcess/mac/CorrectionPanel.mm:
  10409. (WebKit::CorrectionPanel::dismissInternal):
  10410. 2011-03-24 Brian Weinstein <bweinstein@apple.com>
  10411. Reviewed by Adam Roben.
  10412. WebKit2: Add Trackpoint driver hack to support IBM trackpads
  10413. https://bugs.webkit.org/show_bug.cgi?id=49830
  10414. <rdar://problem/8705951>
  10415. Copy code from WebKit1 to WebKit2 to handle initializing fake scrollbars so
  10416. IBM machines with a trackpad send us WM_VSCROLL and WM_HSCROLL messages.
  10417. Listen for the WM_VSCROLL and WM_HSCROLL messages, and turn the values into
  10418. ScrollDirection and ScrollGranularity, and send a scroll command to the
  10419. WebProcess.
  10420. * UIProcess/WebPageProxy.cpp:
  10421. (WebKit::WebPageProxy::scrollBy): Send a message to the WebProcess.
  10422. * UIProcess/WebPageProxy.h:
  10423. * UIProcess/win/WebView.cpp:
  10424. (WebKit::WebView::wndProc): Add WM_VSCROLL and WM_HSCROLL message handling.
  10425. (WebKit::WebView::initialize): Call shouldInitializeTrackPointHack.
  10426. (WebKit::WebView::onHorizontalScroll): Turn wParam into a ScrollDirection and ScrollGranularity.
  10427. (WebKit::WebView::onVerticalScroll): Ditto.
  10428. (WebKit::WebView::shouldInitializeTrackPointHack): Check the registry for keys that indicate
  10429. the machine has a IBM Trackpoint driver.
  10430. * UIProcess/win/WebView.h:
  10431. * WebProcess/WebPage/WebPage.cpp:
  10432. (WebKit::WebPage::scrollBy): Call scroll method.
  10433. (WebKit::WebPage::scroll): Moved from WebPageMac and WebPageWin.
  10434. (WebKit::WebPage::logicalScroll): Ditto.
  10435. * WebProcess/WebPage/WebPage.h:
  10436. * WebProcess/WebPage/WebPage.messages.in: Add a new scrollBy message.
  10437. * WebProcess/WebPage/mac/WebPageMac.mm: Remove scroll and logicalScroll, they are now in WebPage.cpp.
  10438. * WebProcess/WebPage/win/WebPageWin.cpp: Ditto.
  10439. 2011-03-24 Sam Weinig <sam@webkit.org>
  10440. Reviewed by Darin Adler.
  10441. Dictionary text extraction is not correctly detecting word boundaries on bing.com
  10442. <rdar://problem/9078569>
  10443. https://bugs.webkit.org/show_bug.cgi?id=56995
  10444. * Shared/DictionaryPopupInfo.cpp:
  10445. (WebKit::DictionaryPopupInfo::encode):
  10446. (WebKit::DictionaryPopupInfo::decode):
  10447. * Shared/DictionaryPopupInfo.h:
  10448. Add options dictionary.
  10449. * UIProcess/API/mac/PageClientImpl.mm:
  10450. (WebKit::PageClientImpl::didPerformDictionaryLookup):
  10451. Add path that can pass options through.
  10452. * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
  10453. (WebKit::WebContextMenuClient::lookUpInDictionary):
  10454. Use the new performDictionaryLookupForSelection which can extract context
  10455. if supported.
  10456. * WebProcess/WebPage/WebPage.h:
  10457. * WebProcess/WebPage/mac/WebPageMac.mm:
  10458. (WebKit::characterRangeAtPositionForPoint):
  10459. (WebKit::characterRangeAtPoint):
  10460. Split functionality out of characterRangeAtPoint and into
  10461. characterRangeAtPositionForPoint to avoid doing duplicate work
  10462. if you already have the position.
  10463. (WebKit::isPositionInRange):
  10464. (WebKit::shouldUseSelection):
  10465. Add predicate to determine if we should use the selection instead
  10466. of expanding to find the word we are over.
  10467. (WebKit::WebPage::performDictionaryLookupAtLocation):
  10468. If available, use the surrounding paragraph as context to get better extraction
  10469. and to get lexicographical information about the word. Also, clean up and use
  10470. editing APIs to make the code more concise and understandable.
  10471. (WebKit::WebPage::performDictionaryLookupForSelection):
  10472. Use similar logic as in performDictionaryLookupAtLocation to extract additional
  10473. details from a selection for use in the dictionary popup.
  10474. (WebKit::WebPage::performDictionaryLookupForRange):
  10475. Pass options to WebProcess if available.
  10476. 2011-03-24 Jon Lee <jonlee@apple.com>
  10477. Reviewed by Darin Adler.
  10478. WebKit2: Tabbing from the last focused field to a non-webpage element leaves the selection in a weird state
  10479. <rdar://problem/8553962>
  10480. * WebProcess/WebPage/WebPage.cpp:
  10481. (WebKit::WebPage::setFocused): When the page loses focus, clear out any selection in the frame
  10482. 2011-03-24 Brian Weinstein <bweinstein@apple.com>
  10483. Rubber-stamped by Sam Weinig.
  10484. Fix a typo in the VK_LEFT case of performDefaultBehaviorForKeyEvent.
  10485. * WebProcess/WebPage/mac/WebPageMac.mm:
  10486. (WebKit::WebPage::performDefaultBehaviorForKeyEvent): It should be a logical or,
  10487. not a bitwise or.
  10488. 2011-03-24 Jeff Miller <jeffm@apple.com>
  10489. Fix typo - USE(CF_NETWORK) should be USE(CFNETWORK).
  10490. * WebProcess/InjectedBundle/win/InjectedBundleWin.cpp:
  10491. (WebKit::InjectedBundle::setHostAllowsAnyHTTPSCertificate): USE(CF_NETWORK) should be USE(CFNETWORK)
  10492. 2011-03-23 Jia Pu <jpu@apple.com>
  10493. Reviewed by Darin Adler.
  10494. Hook up new AppKit autocorrection UI with WK2.
  10495. https://bugs.webkit.org/show_bug.cgi?id=56055
  10496. <rdar://problem/8947463>
  10497. Please see WebCore/ChangeLog for detail.
  10498. The calls to AppKit are implemented in PageClientImpl. Other changes are necessary for the
  10499. plumbing work.
  10500. * UIProcess/API/mac/PageClientImpl.h:
  10501. * UIProcess/API/mac/PageClientImpl.mm:
  10502. (WebKit::PageClientImpl::showCorrectionPanel):
  10503. (WebKit::PageClientImpl::dismissCorrectionPanel):
  10504. (WebKit::PageClientImpl::dismissCorrectionPanelSoon):
  10505. (WebKit::PageClientImpl::recordAutocorrectionResponse):
  10506. * UIProcess/API/mac/WKView.mm:
  10507. (-[WKView spellCheckerDocumentTag]):
  10508. (-[WKView handleCorrectionPanelResult:]):
  10509. * UIProcess/API/mac/WKViewPrivate.h:
  10510. * UIProcess/PageClient.h:
  10511. * UIProcess/WebPageProxy.cpp:
  10512. (WebKit::WebPageProxy::didCommitLoadForFrame):
  10513. (WebKit::WebPageProxy::showCorrectionPanel):
  10514. (WebKit::WebPageProxy::dismissCorrectionPanel):
  10515. (WebKit::WebPageProxy::dismissCorrectionPanelSoon):
  10516. (WebKit::WebPageProxy::recordAutocorrectionResponse):
  10517. (WebKit::WebPageProxy::handleCorrectionPanelResult):
  10518. * UIProcess/WebPageProxy.h:
  10519. * UIProcess/WebPageProxy.messages.in:
  10520. * UIProcess/mac/CorrectionPanel.h: Added.
  10521. (WebKit::CorrectionPanel::isShowing):
  10522. * UIProcess/mac/CorrectionPanel.mm: Added.
  10523. (correctionBubbleType):
  10524. (WebKit::CorrectionPanel::CorrectionPanel):
  10525. (WebKit::CorrectionPanel::~CorrectionPanel):
  10526. (WebKit::CorrectionPanel::show):
  10527. (WebKit::CorrectionPanel::dismiss):
  10528. (WebKit::CorrectionPanel::dismissSoon):
  10529. (WebKit::CorrectionPanel::dismissInternal):
  10530. (WebKit::CorrectionPanel::recordAutocorrectionResponse):
  10531. * WebKit2.xcodeproj/project.pbxproj:
  10532. * WebProcess/WebCoreSupport/WebEditorClient.h:
  10533. * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
  10534. (WebKit::WebEditorClient::showCorrectionPanel):
  10535. (WebKit::WebEditorClient::dismissCorrectionPanel):
  10536. (WebKit::WebEditorClient::dismissCorrectionPanelSoon):
  10537. (WebKit::WebEditorClient::recordAutocorrectionResponse):
  10538. * WebProcess/WebPage/WebPage.cpp:
  10539. (WebKit::WebPage::handleCorrectionPanelResult):
  10540. * WebProcess/WebPage/WebPage.h:
  10541. * WebProcess/WebPage/WebPage.messages.in:
  10542. 2011-03-23 Brian Weinstein <bweinstein@apple.com>
  10543. Reviewed by Maciej Stachowiak.
  10544. WebKit2: Need API to manage the Media Cache
  10545. https://bugs.webkit.org/show_bug.cgi?id=56878
  10546. <rdar://problem/9082503>
  10547. Call through to HTMLMediaElement functions to manage the WebCore media cache.
  10548. * WebProcess/MediaCache/WebMediaCacheManager.cpp:
  10549. (WebKit::WebMediaCacheManager::getHostnamesWithMediaCache):
  10550. (WebKit::WebMediaCacheManager::clearCacheForHostname):
  10551. (WebKit::WebMediaCacheManager::clearCacheForAllHostnames):
  10552. 2011-03-23 Jeff Miller <jeffm@apple.com>
  10553. Reviewed by Darin Adler.
  10554. Add WKBundleSetHostAllowsAnyHTTPSCertificate() for Windows
  10555. https://bugs.webkit.org/show_bug.cgi?id=56972
  10556. This is the WebKit2 equivalent to the WebKit1 API IWebMutableURLRequest::setAllowsAnyHTTPSCertificate().
  10557. * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
  10558. (WKBundleSetHostAllowsAnyHTTPSCertificate): Added.
  10559. * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: Added WKBundleSetHostAllowsAnyHTTPSCertificate().
  10560. * WebProcess/InjectedBundle/InjectedBundle.h: Added setHostAllowsAnyHTTPSCertificate().
  10561. * WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp:
  10562. (WebKit::InjectedBundle::setHostAllowsAnyHTTPSCertificate): Added, should never be called.
  10563. * WebProcess/InjectedBundle/mac/InjectedBundleMac.cpp:
  10564. (WebKit::InjectedBundle::setHostAllowsAnyHTTPSCertificate): Added, should never be called.
  10565. * WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp:
  10566. (WebKit::InjectedBundle::setHostAllowsAnyHTTPSCertificate): Added, should never be called.
  10567. * WebProcess/InjectedBundle/win/InjectedBundleWin.cpp:
  10568. (WebKit::InjectedBundle::setHostAllowsAnyHTTPSCertificate): Added.
  10569. 2011-03-23 Sam Weinig <sam@webkit.org>
  10570. Reviewed by Anders Carlsson.
  10571. Roll out r81593 Need WebKit2 API for creating a page with a specific main frame name
  10572. This API is not necessary.
  10573. * Shared/WebPageCreationParameters.cpp:
  10574. (WebKit::WebPageCreationParameters::encode):
  10575. (WebKit::WebPageCreationParameters::decode):
  10576. * Shared/WebPageCreationParameters.h:
  10577. * UIProcess/API/mac/WKView.h:
  10578. * UIProcess/API/mac/WKView.mm:
  10579. (-[WKView initWithFrame:]):
  10580. (-[WKView initWithFrame:contextRef:]):
  10581. (-[WKView initWithFrame:contextRef:pageGroupRef:]):
  10582. * UIProcess/WebPageProxy.cpp:
  10583. (WebKit::WebPageProxy::creationParameters):
  10584. * UIProcess/WebPageProxy.h:
  10585. * WebProcess/WebPage/WebFrame.cpp:
  10586. (WebKit::WebFrame::createMainFrame):
  10587. * WebProcess/WebPage/WebFrame.h:
  10588. * WebProcess/WebPage/WebPage.cpp:
  10589. (WebKit::WebPage::WebPage):
  10590. 2011-03-23 Balazs Kelemen <kbalazs@webkit.org>
  10591. Reviewed by Andreas Kling.
  10592. [WK2] Handle keyboard and mouse events on X11
  10593. https://bugs.webkit.org/show_bug.cgi?id=56103
  10594. Propagate keyboard and mouse events to the plugin
  10595. as XEvent's.
  10596. * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
  10597. (WebKit::initializeXEvent):
  10598. (WebKit::xTimeStamp):
  10599. (WebKit::xKeyModifiers):
  10600. (WebKit::setCommonMouseEventFields):
  10601. (WebKit::setXMotionEventFields):
  10602. (WebKit::setXButtonEventFields):
  10603. (WebKit::setXCrossingEventFields):
  10604. (WebKit::NetscapePlugin::platformHandleMouseEvent):
  10605. (WebKit::NetscapePlugin::platformHandleMouseEnterEvent):
  10606. (WebKit::NetscapePlugin::platformHandleMouseLeaveEvent):
  10607. (WebKit::setXKeyEventFields):
  10608. (WebKit::NetscapePlugin::platformHandleKeyboardEvent):
  10609. 2011-03-23 Anders Carlsson <andersca@apple.com>
  10610. Reviewed by Sam Weinig.
  10611. Connection::SyncMessageState::processIncomingMessage should ignore whether the message is sync or not
  10612. https://bugs.webkit.org/show_bug.cgi?id=56954
  10613. This is so we'll eventually be able to send sync messages that aren't processed immediately if the
  10614. destination is waiting for a reply to another synchronous message.
  10615. * Platform/CoreIPC/Connection.cpp:
  10616. (CoreIPC::Connection::SyncMessageState::processIncomingMessage):
  10617. Only check for the DispatchMessageWhenWaitingForSyncReply flag.
  10618. (CoreIPC::Connection::sendSyncMessage):
  10619. Add both DispatchMessageWhenWaitingForSyncReply and SyncMessage to the message ID.
  10620. * Platform/CoreIPC/Connection.h:
  10621. (CoreIPC::Connection::sendSync):
  10622. (CoreIPC::Connection::deprecatedSendSync):
  10623. No need to add SyncMessage here anymore.
  10624. 2011-03-23 Brian Weinstein <bweinstein@apple.com>
  10625. Qt Build Fix.
  10626. * DerivedSources.pro:
  10627. 2011-03-22 Brian Weinstein <bweinstein@apple.com>
  10628. Reviewed by Darin Adler.
  10629. WebKit2: Need API to manage the Media Cache
  10630. https://bugs.webkit.org/show_bug.cgi?id=56878
  10631. <rdar://problem/9082503>
  10632. Project File Fun:
  10633. * GNUmakefile.am:
  10634. * WebKit2.pri:
  10635. * WebKit2.pro:
  10636. * WebKit2.xcodeproj/project.pbxproj:
  10637. * win/WebKit2.vcproj:
  10638. * win/WebKit2Common.vsprops:
  10639. * win/WebKit2Generated.make:
  10640. Derived Sources and API fun:
  10641. * DerivedSources.make:
  10642. * DerivedSources.pro:
  10643. * Platform/CoreIPC/MessageID.h:
  10644. * Shared/API/c/WKBase.h:
  10645. * Shared/APIObject.h:
  10646. * UIProcess/API/C/WKAPICast.h:
  10647. * UIProcess/WebProcessProxy.cpp:
  10648. (WebKit::WebProcessProxy::didReceiveMessage): Add a case for MediaCache messages.
  10649. * WebProcess/WebProcess.cpp:
  10650. (WebKit::WebProcess::didReceiveMessage): Ditto.
  10651. * UIProcess/WebContext.cpp:
  10652. (WebKit::WebContext::WebContext): Initialize the WebMediaCacheManagerProxy member variable.
  10653. (WebKit::WebContext::~WebContext): Invalidate the WebMediaCacheManagerProxy.
  10654. (WebKit::WebContext::disconnectProcess): Ditto.
  10655. (WebKit::WebContext::didReceiveMessage): Add a case for MediaCache messages.
  10656. * UIProcess/WebContext.h:
  10657. (WebKit::WebContext::mediaCacheManagerProxy):
  10658. * UIProcess/API/C/WKContext.cpp:
  10659. (WKContextGetMediaCacheManager): Returns the context's WebMediaCacheManager.
  10660. * UIProcess/API/C/WKContext.h:
  10661. * UIProcess/API/C/WKMediaCacheManager.cpp: Added.
  10662. (WKMediaCacheManagerGetTypeID): Returns the WebMediaCacheManagerProxy type.
  10663. (WKMediaCacheManagerGetHostnamesWithMediaCache): Calls down to the WebMediaCacheManagerProxy.
  10664. (WKMediaCacheManagerClearCacheForHostname): Ditto.
  10665. (WKMediaCacheManagerClearCacheForAllHostnames): Ditto.
  10666. * UIProcess/API/C/WKMediaCacheManager.h: Added.
  10667. * UIProcess/WebMediaCacheManagerProxy.cpp: Added.
  10668. (WebKit::WebMediaCacheManagerProxy::create):
  10669. (WebKit::WebMediaCacheManagerProxy::WebMediaCacheManagerProxy):
  10670. (WebKit::WebMediaCacheManagerProxy::~WebMediaCacheManagerProxy):
  10671. (WebKit::WebMediaCacheManagerProxy::invalidate):
  10672. (WebKit::WebMediaCacheManagerProxy::didReceiveMessage):
  10673. (WebKit::WebMediaCacheManagerProxy::getHostnamesWithMediaCache): Call through to the WebProcess.
  10674. (WebKit::WebMediaCacheManagerProxy::didGetHostnamesWithMediaCache): Process the WebProcess response,
  10675. and call the callback.
  10676. (WebKit::WebMediaCacheManagerProxy::clearCacheForHostname): Call through to the WebProcess.
  10677. (WebKit::WebMediaCacheManagerProxy::clearCacheForAllHostnames): Call through to the WebProcess.
  10678. * UIProcess/WebMediaCacheManagerProxy.h: Added.
  10679. (WebKit::WebMediaCacheManagerProxy::clearContext):
  10680. (WebKit::WebMediaCacheManagerProxy::type):
  10681. * UIProcess/WebMediaCacheManagerProxy.messages.in: Added.
  10682. * WebProcess/MediaCache: Added.
  10683. * WebProcess/MediaCache/WebMediaCacheManager.cpp: Added.
  10684. (WebKit::WebMediaCacheManager::shared):
  10685. (WebKit::WebMediaCacheManager::WebMediaCacheManager):
  10686. (WebKit::WebMediaCacheManager::didReceiveMessage):
  10687. (WebKit::WebMediaCacheManager::getHostnamesWithMediaCache): Added a FIXME to call through to WebCore.
  10688. (WebKit::WebMediaCacheManager::clearCacheForHostname): Ditto.
  10689. (WebKit::WebMediaCacheManager::clearCacheForAllHostnames): Ditto.
  10690. * WebProcess/MediaCache/WebMediaCacheManager.h: Added.
  10691. * WebProcess/MediaCache/WebMediaCacheManager.messages.in: Added.
  10692. 2011-03-22 Brady Eidson <beidson@apple.com>
  10693. Reviewed by Sam Weinig.
  10694. Add asynchronous load decision call to WebKit2 IconDatabase
  10695. https://bugs.webkit.org/show_bug.cgi?id=56887
  10696. * UIProcess/WebIconDatabase.cpp:
  10697. (WebKit::WebIconDatabase::getLoadDecisionForIconURL): In the future, get the actual load decision from the database.
  10698. For now, always message "IconLoadNo" back to the WebProcess.
  10699. * UIProcess/WebIconDatabase.h:
  10700. * UIProcess/WebIconDatabase.messages.in:
  10701. * WebProcess/IconDatabase/WebIconDatabaseProxy.cpp:
  10702. (WebKit::WebIconDatabaseProxy::loadDecisionForIconURL): Message the UIProcess for the load decision.
  10703. (WebKit::WebIconDatabaseProxy::receivedIconLoadDecision): Callback into WebCore with the received load decision.
  10704. * WebProcess/IconDatabase/WebIconDatabaseProxy.h:
  10705. * WebProcess/IconDatabase/WebIconDatabaseProxy.messages.in:
  10706. 2011-03-23 Chris Fleizach <cfleizach@apple.com>
  10707. Reviewed by Darin Adler.
  10708. REGRESSION: WK2: AX: PDF in Safari no longer accessible.
  10709. https://bugs.webkit.org/show_bug.cgi?id=56849
  10710. The WKView needs to know when to return the WKPDFView and when to return
  10711. the remote web process connection.
  10712. * UIProcess/API/mac/PDFViewController.h:
  10713. (WebKit::PDFViewController::pdfView):
  10714. * UIProcess/API/mac/WKView.mm:
  10715. (-[WKView accessibilityFocusedUIElement]):
  10716. (-[WKView accessibilityHitTest:]):
  10717. (-[WKView accessibilityAttributeValue:]):
  10718. 2011-03-21 Stephanie Lewis <slewis@apple.com>
  10719. Reviewed by Simon Fraser.
  10720. https://bugs.webkit.org/show_bug.cgi?id=56798
  10721. Wrap autorelease pools around calls that can have pathological memory growth on Membuster.
  10722. Only wrap the main runloop because some background threads are not expected to call into
  10723. objc and an autorelease pool could mask bugs.
  10724. * Platform/mac/RunLoopMac.mm:
  10725. (RunLoop::performWork):
  10726. (RunLoop::TimerBase::timerFired):
  10727. * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
  10728. (WebKit::LayerTreeHostMac::flushPendingLayerChangesRunLoopObserverCallback):
  10729. 2011-03-22 Anders Carlsson <andersca@apple.com>
  10730. Reviewed by Sam Weinig.
  10731. OBJECT element with DivX source is always downloaded
  10732. https://bugs.webkit.org/show_bug.cgi?id=56879
  10733. * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
  10734. (WebKit::getPluginInfoFromPropertyLists):
  10735. Always try to split every element in the "WebPluginExtensions" array, since the DivX plug-in
  10736. specifies multiple file extensions in a single element.
  10737. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  10738. (WebKit::pluginSupportsExtension):
  10739. Add a new helper function.
  10740. (WebKit::WebFrameLoaderClient::objectContentType):
  10741. If we can't find the MIME for an extension, explicitly check if there's a plugin that claims to
  10742. handle the given extension.
  10743. 2011-03-22 Brady Eidson <beidson@apple.com>
  10744. Reviewed by Sam Weinig.
  10745. Rename the synchronous icon database messages to be prefixed with "synchronous"
  10746. * UIProcess/WebIconDatabase.cpp:
  10747. (WebKit::WebIconDatabase::synchronousIconDataForPageURL):
  10748. (WebKit::WebIconDatabase::synchronousIconURLForPageURL):
  10749. (WebKit::WebIconDatabase::synchronousIconDataKnownForIconURL):
  10750. (WebKit::WebIconDatabase::synchronousLoadDecisionForIconURL):
  10751. * UIProcess/WebIconDatabase.h:
  10752. * UIProcess/WebIconDatabase.messages.in:
  10753. * WebProcess/IconDatabase/WebIconDatabaseProxy.cpp:
  10754. (WebKit::WebIconDatabaseProxy::synchronousIconForPageURL):
  10755. 2011-03-22 Sam Weinig <sam@webkit.org>
  10756. Rubber-stamped by Anders Carlsson.
  10757. Loading a new tab does not dismiss Lookup
  10758. <rdar://problem/9138391>
  10759. * UIProcess/API/mac/WKView.mm:
  10760. (-[WKView viewDidMoveToWindow]):
  10761. Hide the dictionary popup when moving the WKView out of a window.
  10762. 2011-03-22 Anders Carlsson <andersca@apple.com>
  10763. Reviewed by Sam Weinig.
  10764. Microsoft Silverlight playback shows artifacts
  10765. https://bugs.webkit.org/show_bug.cgi?id=56863
  10766. <rdar://problem/9103136>
  10767. * PluginProcess/PluginControllerProxy.cpp:
  10768. (WebKit::PluginControllerProxy::paint):
  10769. If the plug-in is transparent, clear the dirty rect before painting.
  10770. * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
  10771. (WebKit::NetscapePluginModule::determineQuirks):
  10772. Add the MakeTransparentIfBackgroundAttributeExists quirk for Silverlight plug-ins.
  10773. * Shared/Plugins/PluginQuirks.h:
  10774. Add MakeTransparentIfBackgroundAttributeExists quirk.
  10775. * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
  10776. (WebKit::NPN_SetValue):
  10777. Handle NPPVpluginTransparentBool.
  10778. * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
  10779. (WebKit::NetscapePlugin::NetscapePlugin):
  10780. Initialize m_isTransparent to false.
  10781. (WebKit::NetscapePlugin::setIsTransparent):
  10782. Set m_isTransparent.
  10783. (WebKit::NetscapePlugin::initialize):
  10784. If the plug-in has the MakeTransparentIfBackgroundAttributeExists quirk, make it transparent
  10785. if there's a 'background' attribute.
  10786. (WebKit::NetscapePlugin::isTransparent):
  10787. Add getter.
  10788. * WebProcess/Plugins/Plugin.h:
  10789. Add isTransparent().
  10790. * WebProcess/Plugins/PluginProxy.cpp:
  10791. (WebKit::PluginProxy::paint):
  10792. Always copy the plug-in backing store to the plug-in proxy backing store.
  10793. (WebKit::PluginProxy::isTransparent):
  10794. Add getter that should never be called.
  10795. (WebKit::PluginProxy::update):
  10796. Always copy the plug-in backing store to the plug-in proxy backing store.
  10797. 2011-03-22 Anders Carlsson <andersca@apple.com>
  10798. Reviewed by Sam Weinig.
  10799. Crash when calling PluginProxy::evaluate on a destroyed plug-in
  10800. https://bugs.webkit.org/show_bug.cgi?id=56848
  10801. <rdar://problem/9168975>
  10802. Return early if the NPObject doesn't exist anymore.
  10803. * WebProcess/Plugins/PluginProxy.cpp:
  10804. (WebKit::PluginProxy::evaluate):
  10805. 2011-03-22 Sam Weinig <sam@webkit.org>
  10806. Reviewed by Adam Roben.
  10807. WebKit2: Cannot make a selection past the end of the visible page (no autoscrolling)
  10808. <rdar://problem/8823874>
  10809. https://bugs.webkit.org/show_bug.cgi?id=56847
  10810. * Shared/mac/WebEventFactory.mm:
  10811. (WebKit::currentMouseButton):
  10812. (WebKit::mouseButtonForEvent):
  10813. Add mouse button for mouseEnter/Exit events. [NSEvent buttonNumber] doesn't seem to give the right result
  10814. for these events, but getting the currentMouseButton does work.
  10815. 2011-03-21 Brady Eidson <beidson@apple.com>
  10816. Fix Mac release builds after https://bugs.webkit.org/show_bug.cgi?id=56783
  10817. * Platform/mac/Logging.mac.mm:
  10818. 2011-03-21 Brady Eidson <beidson@apple.com>
  10819. Reviewed by Brian Weinstein.
  10820. https://bugs.webkit.org/show_bug.cgi?id=56783
  10821. Actually hook up WebKit2 logging on Mac.
  10822. * Platform/Logging.cpp:
  10823. (WebKit::initializeLogChannel):
  10824. * Platform/Logging.h:
  10825. * Platform/mac/Logging.mac.mm: Added.
  10826. (WebKit::initializeLogChannel):
  10827. * UIProcess/WebContext.cpp:
  10828. (WebKit::WebContext::WebContext): Initialize logging if necessary.
  10829. * WebKit2.xcodeproj/project.pbxproj:
  10830. 2011-03-21 Alexey Proskuryakov <ap@apple.com>
  10831. Reviewed by Darin Adler.
  10832. REGRESSION (r81269): WebKit2 gets into an infinite recursion after an unhandled command key
  10833. https://bugs.webkit.org/show_bug.cgi?id=56782
  10834. <rdar://problem/9151993>
  10835. * UIProcess/API/mac/PageClientImpl.mm: (WebKit::PageClientImpl::doneWithKeyEvent):
  10836. Factored out code for resending an event and moved it to WKView.
  10837. * UIProcess/API/mac/WKView.mm:
  10838. (-[WKView performKeyEquivalent:]): Don't zero out _keyDownEventBeingResent, it's easier
  10839. to just do that in _resendKeyDownEvent:.
  10840. (-[WKView keyDown:]): Ditto.
  10841. (-[WKView _resendKeyDownEvent:]): Moved from PageClientImpl.mm. Added an assertion that we
  10842. are not already resending an event - it would be too confusing if we ever had to do that,
  10843. but looks like this never happens.
  10844. * UIProcess/API/mac/WKViewInternal.h: Exposed _resendKeyDownEvent.
  10845. 2011-03-21 Anders Carlsson <andersca@apple.com>
  10846. Reviewed by Sam Weinig.
  10847. QT plug-in fails to load contextual menu
  10848. https://bugs.webkit.org/show_bug.cgi?id=56777
  10849. <rdar://problem/8979033>
  10850. Open a Carbon resource map and make it the current map when calling NP_Initialize.
  10851. * Platform/Module.cpp:
  10852. (WebKit::Module::Module):
  10853. Initialize m_bundleResourceMap to -1.
  10854. * Platform/Module.h:
  10855. Add m_bundleResourceMap.
  10856. * Platform/mac/ModuleMac.mm:
  10857. (WebKit::Module::unload):
  10858. Close the resource map.
  10859. (WebKit::Module::bundleResourceMap):
  10860. Open a resource map if necessary.
  10861. * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
  10862. (WebKit::NetscapePluginModule::tryLoad):
  10863. Get the resource map and make it current before calling NP_Initialize.
  10864. 2011-03-21 Anders Carlsson <andersca@apple.com>
  10865. Reviewed by Sam Weinig.
  10866. Plug-in process crashes if it fails to load a plug-in module
  10867. https://bugs.webkit.org/show_bug.cgi?id=56775
  10868. * PluginProcess/PluginControllerProxy.cpp:
  10869. (WebKit::PluginControllerProxy::initialize):
  10870. If NetscapePlugin::create returns null, call removePluginControllerProxy with a null plug-in.
  10871. * PluginProcess/WebProcessConnection.cpp:
  10872. (WebKit::WebProcessConnection::removePluginControllerProxy):
  10873. Remove an incorrect assertion. Don't invalidate the remote object map if the plug-in is null.
  10874. 2011-03-21 Anders Carlsson <andersca@apple.com>
  10875. Reviewed by Sam Weinig.
  10876. QT plug-in loads controller at top of movie not bottom
  10877. https://bugs.webkit.org/show_bug.cgi?id=56764
  10878. <rdar://problem/8979037>
  10879. Create a layer with geometryFlipped set and add the plug-in layer as a sublayer,
  10880. matching WebKit1.
  10881. * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
  10882. (WebKit::NetscapePlugin::platformPostInitialize):
  10883. 2011-03-21 Sam Weinig <sam@webkit.org>
  10884. Reviewed by Anders Carlsson.
  10885. WebKit2 needs preferences to change security knobs
  10886. https://bugs.webkit.org/show_bug.cgi?id=56762
  10887. Add preferences for WebSecurityEnabled, UniversalAccessFromFileURLsAllowed
  10888. and FileAccessFromFileURLsAllowed.
  10889. * Shared/WebPreferencesStore.h:
  10890. * UIProcess/API/C/WKPreferences.cpp:
  10891. (WKPreferencesSetWebSecurityEnabled):
  10892. (WKPreferencesGetWebSecurityEnabled):
  10893. (WKPreferencesSetUniversalAccessFromFileURLsAllowed):
  10894. (WKPreferencesGetUniversalAccessFromFileURLsAllowed):
  10895. (WKPreferencesSetFileAccessFromFileURLsAllowed):
  10896. (WKPreferencesGetFileAccessFromFileURLsAllowed):
  10897. * UIProcess/API/C/WKPreferencesPrivate.h:
  10898. * WebProcess/WebPage/WebPage.cpp:
  10899. (WebKit::WebPage::updatePreferences):
  10900. 2011-03-21 Sam Weinig <sam@webkit.org>
  10901. Reviewed by Anders Carlsson.
  10902. Remove old DrawingArea and LayerHostingView code from WKView.
  10903. * UIProcess/API/mac/WKView.mm:
  10904. (-[WKView drawRect:]):
  10905. (-[WKView hitTest:]):
  10906. (-[WKView WebKit::]):
  10907. 2011-03-21 Sam Weinig <sam@webkit.org>
  10908. Reviewed by Anders Carlsson.
  10909. Need WebKit2 API for creating a page with a specific main frame name
  10910. https://bugs.webkit.org/show_bug.cgi?id=56759
  10911. * Shared/WebPageCreationParameters.cpp:
  10912. (WebKit::WebPageCreationParameters::encode):
  10913. (WebKit::WebPageCreationParameters::decode):
  10914. * Shared/WebPageCreationParameters.h:
  10915. Add mainFrameName to creation parameters.
  10916. * UIProcess/API/mac/WKView.h:
  10917. * UIProcess/API/mac/WKView.mm:
  10918. (-[WKView initWithFrame:]):
  10919. (-[WKView initWithFrame:contextRef:]):
  10920. (-[WKView initWithFrame:contextRef:pageGroupRef:]):
  10921. (-[WKView initWithFrame:contextRef:pageGroupRef:mainFrameName:]):
  10922. Add new initializer which takes a main frame name.
  10923. * UIProcess/WebPageProxy.cpp:
  10924. (WebKit::WebPageProxy::setMainFrameName):
  10925. (WebKit::WebPageProxy::creationParameters):
  10926. * UIProcess/WebPageProxy.h:
  10927. Store the main frame name for initialization/re-initialization.
  10928. * WebProcess/WebPage/WebFrame.cpp:
  10929. (WebKit::WebFrame::createMainFrame):
  10930. * WebProcess/WebPage/WebFrame.h:
  10931. * WebProcess/WebPage/WebPage.cpp:
  10932. (WebKit::WebPage::WebPage):
  10933. Pass the name to main frame creation.
  10934. 2011-03-20 Bill Budge <bbudge@chromium.org>
  10935. Reviewed by Adam Barth.
  10936. Rename ThreadSafeShared to ThreadSafeRefCounted
  10937. https://bugs.webkit.org/show_bug.cgi?id=56714
  10938. No new tests. Exposes no new functionality.
  10939. * Platform/CoreIPC/Connection.h:
  10940. * Platform/WorkQueue.h:
  10941. * Platform/win/WorkQueueWin.cpp:
  10942. * UIProcess/Launcher/ProcessLauncher.h:
  10943. * UIProcess/Launcher/ThreadLauncher.h:
  10944. 2011-03-19 Anton D'Auria <adauria@apple.com>
  10945. Reviewed by Alexey Proskuryakov.
  10946. ApplicationCacheGroup is not obsolete after being deleted via ApplicationCacheStorage::deleteEntriesForOrigin
  10947. https://bugs.webkit.org/show_bug.cgi?id=56415
  10948. * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp: calling ApplicationCacheGroup::deleteCacheGroupsForOrigin
  10949. instead of ApplicationCacheStorage::deleteEntriesForOrigin.
  10950. (WebKit::WebApplicationCacheManager::deleteEntriesForOrigin):
  10951. 2011-03-18 Sam Weinig <sam@webkit.org>
  10952. Attempt to fix the WinCairo build.
  10953. * win/WebKit2.vcproj:
  10954. 2011-03-18 Anders Carlsson <andersca@apple.com>
  10955. Reviewed by Dan Bernstein.
  10956. Empty gray page after going back from a PDF
  10957. https://bugs.webkit.org/show_bug.cgi?id=56694
  10958. <rdar://problem/8811854>
  10959. Update m_frameHasCustomRepresentation when loading a page that's in the page cache.
  10960. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  10961. (WebKit::WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
  10962. 2011-03-18 Anders Carlsson <andersca@apple.com>
  10963. Reviewed by Sam Weinig.
  10964. Crash when sending a sync message ends up invalidating the connection
  10965. https://bugs.webkit.org/show_bug.cgi?id=56686
  10966. <rdar://problem/9048781>
  10967. Guard against a null client.
  10968. * Platform/CoreIPC/Connection.cpp:
  10969. (CoreIPC::Connection::sendSyncMessage):
  10970. 2011-03-18 Balazs Kelemen <kbalazs@webkit.org>
  10971. Reviewed by Benjamin Poulain.
  10972. [Qt][WK2] Need a way to debug the web process after the UI process dies
  10973. https://bugs.webkit.org/show_bug.cgi?id=56116
  10974. Allow the web process to outlive it's parent process
  10975. in debug builds if the QT_WEBKIT_KEEP_ALIVE_WEB_PROCESS
  10976. environment variable is set.
  10977. * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
  10978. (WebKit::QtWebProcess::setupChildProcess): Used getenv
  10979. since the prctl call is already in a Linux-only block
  10980. and the implementation in this file is a candidate
  10981. for sharing across ports in the future.
  10982. 2011-03-18 Darin Adler <darin@apple.com>
  10983. Reviewed by Anders Carlsson.
  10984. Command-period does not stop load when page has focus in WebKit2
  10985. https://bugs.webkit.org/show_bug.cgi?id=56601
  10986. * UIProcess/API/mac/WKView.mm:
  10987. (-[WKView doCommandBySelector:]): If called outside interpretKeyEvents,
  10988. call through to super.
  10989. (-[WKView insertText:]): Assert that we are inside interpretKeyEvents.
  10990. (-[WKView unmarkText]): Ditto.
  10991. (-[WKView setMarkedText:selectedRange:]): Ditto.
  10992. (-[WKView _interceptKeyEvent:]): Set a flag to indicate we are inside
  10993. interpretKeyEvents for use by the above.
  10994. 2011-03-18 Brady Eidson <beidson@apple.com>
  10995. Reviewed by Sam Weinig.
  10996. https://bugs.webkit.org/show_bug.cgi?id=56425
  10997. More groundwork for WebKit2 IconDatabase
  10998. -Update the synchronous method names to be prefixed with "synchronous."
  10999. -Add empty implementations for the asynchronous accessors.
  11000. * WebProcess/IconDatabase/WebIconDatabaseProxy.cpp:
  11001. (WebKit::WebIconDatabaseProxy::setEnabled):
  11002. (WebKit::WebIconDatabaseProxy::synchronousIconForPageURL):
  11003. (WebKit::WebIconDatabaseProxy::synchronousIconURLForPageURL):
  11004. (WebKit::WebIconDatabaseProxy::synchronousIconDataKnownForIconURL):
  11005. (WebKit::WebIconDatabaseProxy::synchronousLoadDecisionForIconURL):
  11006. (WebKit::WebIconDatabaseProxy::supportsAsynchronousMode):
  11007. (WebKit::WebIconDatabaseProxy::loadDecisionForIconURL):
  11008. (WebKit::WebIconDatabaseProxy::iconDataForIconURL):
  11009. * WebProcess/IconDatabase/WebIconDatabaseProxy.h:
  11010. 2011-03-18 Alejandro G. Castro <alex@igalia.com>
  11011. Reviewed by Martin Robinson.
  11012. Fixed compilation after r80925.
  11013. * GNUmakefile.am:
  11014. * UIProcess/gtk/WebFullScreenManagerProxyGtk.cpp: Added.
  11015. (WebKit::WebFullScreenManagerProxy::enterFullScreen):
  11016. (WebKit::WebFullScreenManagerProxy::exitFullScreen):
  11017. (WebKit::WebFullScreenManagerProxy::beganEnterFullScreenAnimation):
  11018. (WebKit::WebFullScreenManagerProxy::finishedEnterFullScreenAnimation):
  11019. (WebKit::WebFullScreenManagerProxy::beganExitFullScreenAnimation):
  11020. (WebKit::WebFullScreenManagerProxy::finishedExitFullScreenAnimation):
  11021. (WebKit::WebFullScreenManagerProxy::enterAcceleratedCompositingMode):
  11022. (WebKit::WebFullScreenManagerProxy::exitAcceleratedCompositingMode):
  11023. (WebKit::WebFullScreenManagerProxy::getFullScreenRect):
  11024. * WebProcess/FullScreen/gtk/WebFullScreenManagerGtk.cpp: Added.
  11025. (WebKit::WebFullScreenManagerGtk::WebFullScreenManagerGtk):
  11026. (WebKit::WebFullScreenManager::create):
  11027. (WebKit::WebFullScreenManagerGtk::setRootFullScreenLayer):
  11028. (WebKit::WebFullScreenManagerGtk::beginEnterFullScreenAnimation):
  11029. (WebKit::WebFullScreenManagerGtk::beginExitFullScreenAnimation):
  11030. * WebProcess/FullScreen/gtk/WebFullScreenManagerGtk.h: Added.
  11031. 2011-03-18 Alejandro G. Castro <alex@igalia.com>
  11032. Unreviewed, fixed compilation after r81208.
  11033. * GNUmakefile.am:
  11034. 2011-03-18 John Sullivan <sullivan@apple.com>
  11035. Reviewed by Dan Bernstein.
  11036. https://bugs.webkit.org/show_bug.cgi?id=56645
  11037. Assertion fires when hidden Find-on-Page matches are encountered in WebKit2
  11038. * WebProcess/WebPage/FindController.cpp:
  11039. (WebKit::FindController::updateFindIndicator):
  11040. Bail out if the selection rect is empty, before trying to generate an appropriately-sized
  11041. bitmap. (Previously it was bailing out afterwards, but encountering an assertion in debug
  11042. builds along the way.)
  11043. 2011-03-18 Mark Rowe <mrowe@apple.com>
  11044. Rubber-stamped by Jon Honeycutt.
  11045. <rdar://problem/9153929> PluginProcess fails to launch due to PluginProcessShim.dylib building for 64-bit only
  11046. Fix a bogus change from r81392 that made PluginProcessShim.xcconfig import DebugRelease.xcconfig.
  11047. As its name suggests, DebugRelease.xcconfig is only applicable for the debug and release configurations.
  11048. It overrides the valid build architectures and also restricts the build to only the active architecture.
  11049. * Configurations/PluginProcessShim.xcconfig: Import BaseTarget.xcconfig instead. This is what
  11050. each target-specific .xcconfig file should import.
  11051. 2011-03-17 Mark Rowe <mrowe@apple.com>
  11052. Fix the build.
  11053. * WebKit2.xcodeproj/project.pbxproj:
  11054. 2011-03-17 Anders Carlsson <andersca@apple.com>
  11055. Reviewed by Sam Weinig.
  11056. Implement PluginProcessProxy::setFullscreenWindowIsShowing
  11057. https://bugs.webkit.org/show_bug.cgi?id=56618
  11058. * UIProcess/Plugins/PluginProcessProxy.cpp:
  11059. (WebKit::PluginProcessProxy::PluginProcessProxy):
  11060. Initialize m_fullscreenWindowIsShowing.
  11061. (WebKit::PluginProcessProxy::didClose):
  11062. if m_fullscreenWindowIsShowing is true, call exitFullscreen.
  11063. * UIProcess/Plugins/PluginProcessProxy.h:
  11064. * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
  11065. (WebKit::PluginProcessProxy::getPluginProcessSerialNumber):
  11066. Add helper function for getting a PSN for the plug-in process.
  11067. (WebKit::PluginProcessProxy::makePluginProcessTheFrontProcess):
  11068. Make the plug-in process the front process.
  11069. (WebKit::PluginProcessProxy::makeUIProcessTheFrontProcess):
  11070. Make the current process (the UI process) the front process.
  11071. (WebKit::PluginProcessProxy::setFullscreenWindowIsShowing):
  11072. Call enterFullscreen or exitFullscreen.
  11073. (WebKit::PluginProcessProxy::enterFullscreen):
  11074. Make the plug-in process the front process and hide the menu bar.
  11075. (WebKit::PluginProcessProxy::exitFullscreen):
  11076. Show the menu bar and if necessary make the UI process the front process.
  11077. (WebKit::PluginProcessProxy::endModal):
  11078. call makeUIProcessTheFrontProcess.
  11079. (WebKit::PluginProcessProxy::applicationDidBecomeActive):
  11080. Call makePluginProcessTheFrontProcess.
  11081. 2011-03-17 Adam Roben <aroben@apple.com>
  11082. Make bidi text in <select> menus in WebKit2 on Windows match WebKit1
  11083. Fixes <http://webkit.org/b/56614> 3 <select> bidi tests failing on Windows 7 Release
  11084. (WebKit2 Tests)
  11085. Reviewed by Sam Weinig.
  11086. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  11087. (WebKit::WebChromeClient::selectItemWritingDirectionIsNatural):
  11088. (WebKit::WebChromeClient::selectItemAlignmentFollowsMenuWritingDirection):
  11089. On Windows, return the same values we return in WebKit1.
  11090. 2011-03-17 Anders Carlsson <andersca@apple.com>
  11091. Reviewed by Sam Weinig.
  11092. Implement PluginProcessProxy::setModalWindowIsShowing
  11093. https://bugs.webkit.org/show_bug.cgi?id=56615
  11094. * UIProcess/Plugins/PluginProcessProxy.cpp:
  11095. (WebKit::PluginProcessProxy::PluginProcessProxy):
  11096. Initialize m_modalWindowIsShowing.
  11097. (WebKit::PluginProcessProxy::didClose):
  11098. If m_modalWindowIsShowing is true, we must call endModal.
  11099. * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
  11100. (-[WKPlaceholderModalWindow _wantsUserAttention]):
  11101. Add a WKPlaceholderModalWindow.
  11102. (WebKit::PluginProcessProxy::setModalWindowIsShowing):
  11103. Call beginModal or endModal depending on whether we're showing a modal window or not.
  11104. (WebKit::PluginProcessProxy::beginModal):
  11105. Create a fake window and start a nested run loop. Listen for NSApplicationWillBecomeActiveNotification notifications.
  11106. (WebKit::PluginProcessProxy::endModal):
  11107. Tear down the window and the run loop.
  11108. (WebKit::PluginProcessProxy::applicationDidBecomeActive):
  11109. Make sure that the plug-in process is frontmost.
  11110. 2011-03-17 Jeff Miller <jeffm@apple.com>
  11111. Reviewed by Adam Roben.
  11112. Web page shouldn't swallow alt-key combinations on Windows
  11113. https://bugs.webkit.org/show_bug.cgi?id=56612
  11114. Make Alt+Left Arrow and Alt+Right Arrow go back and forward, but make
  11115. sure any alt-key combinations bubble up to the client.
  11116. * WebProcess/WebPage/win/WebPageWin.cpp:
  11117. (WebKit::WebPage::performDefaultBehaviorForKeyEvent): Make Alt+Left Arrow and Alt+Right Arrow go back and forward, ignore any other alt-key combinations.
  11118. 2011-03-17 Anders Carlsson <andersca@apple.com>
  11119. Reviewed by Sam Weinig.
  11120. Send SetModalWindowIsShowing and SetFullscreenWindowIsShowing messages to the UI process
  11121. https://bugs.webkit.org/show_bug.cgi?id=56610
  11122. * PluginProcess/mac/PluginProcessMac.mm:
  11123. (WebKit::FullscreenWindowTracker::FullscreenWindowTracker):
  11124. Add fullscreen window tracker class.
  11125. (WebKit::rectCoversAnyScreen):
  11126. Return whether the given rect covers any screen.
  11127. (WebKit::windowCoversAnyScreen):
  11128. Return whether the given window covers any screen.
  11129. (WebKit::FullscreenWindowTracker::windowShown):
  11130. If we're showing a fullscreen window, call PluginProcess::setFullscreenWindowIsShowing.
  11131. (WebKit::FullscreenWindowTracker::windowHidden):
  11132. If we're hiding the last fullscreen window, call PluginProcess::setFullscreenWindowIsShowing.
  11133. (WebKit::cocoaWindowShown):
  11134. (WebKit::cocoaWindowHidden):
  11135. (WebKit::carbonWindowShown):
  11136. (WebKit::carbonWindowHidden):
  11137. Call the window tracking functions.
  11138. (WebKit::setModal):
  11139. Call PluginProcess::setModalWindowIsShowing.
  11140. (WebKit::PluginProcess::setModalWindowIsShowing):
  11141. (WebKit::PluginProcess::setFullscreenWindowIsShowing):
  11142. Send CoreIPC messages.
  11143. * UIProcess/Plugins/PluginProcessProxy.h:
  11144. * UIProcess/Plugins/PluginProcessProxy.messages.in:
  11145. Add new messages.
  11146. * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
  11147. (WebKit::PluginProcessProxy::setModalWindowIsShowing):
  11148. (WebKit::PluginProcessProxy::setFullscreenWindowIsShowing):
  11149. Add stubs.
  11150. 2011-03-17 Sam Weinig <sam@webkit.org>
  11151. Reviewed by Brady Eidson.
  11152. Allow passing a certificate chain as a user message
  11153. <rdar://problem/8951709>
  11154. https://bugs.webkit.org/show_bug.cgi?id=56605
  11155. * Shared/API/c/mac/WKCertificateInfoMac.h:
  11156. * Shared/API/c/mac/WKCertificateInfoMac.mm:
  11157. (WKCertificateInfoCreateWithCertficateChain):
  11158. Added. Creates a WKCertificate from a certificate chain.
  11159. * Shared/UserMessageCoders.h:
  11160. (WebKit::UserMessageEncoder::baseEncode):
  11161. (WebKit::UserMessageDecoder::baseDecode):
  11162. Add encoding/decoding of WebCertificateInfo.
  11163. 2011-03-17 Anders Carlsson <andersca@apple.com>
  11164. Reviewed by Sam Weinig.
  11165. Add PluginProcessShim hooks for when windows are shown and hidden
  11166. https://bugs.webkit.org/show_bug.cgi?id=56597
  11167. * Configurations/PluginProcessShim.xcconfig:
  11168. Add HEADER_SEARCH_PATHS so we can find WebKitSystemInterface.h.
  11169. * PluginProcess/mac/PluginProcessMac.mm:
  11170. (WebKit::cocoaWindowShown):
  11171. (WebKit::cocoaWindowHidden):
  11172. (WebKit::carbonWindowShown):
  11173. (WebKit::carbonWindowHidden):
  11174. (WebKit::setModal):
  11175. (WebKit::PluginProcess::initializeShim):
  11176. Add empty stubs.
  11177. * PluginProcess/mac/PluginProcessShim.h:
  11178. * PluginProcess/mac/PluginProcessShim.mm:
  11179. (WebKit::beginModal):
  11180. (WebKit::endModal):
  11181. Keep a modal count and call setModal accordingly.
  11182. (WebKit::shim_NSApplication_RunModalForWindow):
  11183. (WebKit::shimModalDialog):
  11184. (WebKit::shimAlert):
  11185. Call beginModal/endModal.
  11186. (WebKit::shimShowWindow):
  11187. (WebKit::shimHideWindow):
  11188. Call the shim functions.
  11189. (WebKit::WebKitPluginProcessShimInitialize):
  11190. Listen for notifications and call the necessary shim functions.
  11191. * WebKit2.xcodeproj/project.pbxproj:
  11192. Link the plug-in process shim with AppKit and QuartzCore and WKSI.
  11193. 2011-03-17 Jeff Miller <jeffm@apple.com>
  11194. Use a consistent set of file patterns in the svn:ignore property for all .xcodeproj directories, specifically:
  11195. *.mode*
  11196. *.pbxuser
  11197. *.perspective*
  11198. project.xcworkspace
  11199. xcuserdata
  11200. * WebKit2.xcodeproj: Modified property svn:ignore.
  11201. 2011-03-17 Sam Weinig <sam@webkit.org>
  11202. Reviewed by Anders Carlsson.
  11203. WKErrors need the PeerCertificateChain for certificate errors
  11204. <rdar://problem/8951784>
  11205. https://bugs.webkit.org/show_bug.cgi?id=56592
  11206. * Shared/WebCoreArgumentCoders.h:
  11207. Special case encoding/decoding of ResourceErrors for the mac.
  11208. * Shared/mac/PlatformCertificateInfo.h:
  11209. * Shared/mac/PlatformCertificateInfo.mm:
  11210. (WebKit::PlatformCertificateInfo::PlatformCertificateInfo):
  11211. Add constructor that take the PeerCertificateChain as CFArrayRef.
  11212. * Shared/mac/WebCoreArgumentCodersMac.mm:
  11213. (CoreIPC::encodeResourceError):
  11214. (CoreIPC::decodeResourceError):
  11215. Add encode/decode for ResourceError using the underlying NSError
  11216. and encoding/decoding as much of the userInfo as we know how to.
  11217. Right now this includes all string values and the PeerCertificateChain.
  11218. 2011-03-17 John Sullivan <sullivan@apple.com>
  11219. Reviewed by Adam Roben.
  11220. https://bugs.webkit.org/show_bug.cgi?id=56574
  11221. Dealloc'ing a WKView can leave a stale reference to it in NSWindow
  11222. * UIProcess/API/mac/WKView.mm:
  11223. (-[WKView viewWillMoveToWindow:]):
  11224. Clear the outgoing window's growBoxOwner if it is this view.
  11225. 2011-03-17 Anders Carlsson <andersca@apple.com>
  11226. Rubber-stamped by John Sullivan.
  11227. Rename PluginProcessShim.cpp to PluginProcessShim.mm.
  11228. * PluginProcess/mac/PluginProcessShim.cpp: Removed.
  11229. * PluginProcess/mac/PluginProcessShim.mm: Copied from PluginProcess/mac/PluginProcessShim.cpp.
  11230. * WebKit2.xcodeproj/project.pbxproj:
  11231. 2011-03-17 Anders Carlsson <andersca@apple.com>
  11232. Reviewed by Darin Adler.
  11233. Invalidate all NPObjects for a plug-in when that plug-in is destroyed
  11234. https://bugs.webkit.org/show_bug.cgi?id=56511
  11235. <rdar://problem/8993491>
  11236. Before this change, we would invalidate NPObjectProxy objects and delete NPObjectMessageReceiver
  11237. objects when the last plug-in of a certain type was destroyed. Doing so caused us to hold on to memory
  11238. which we don't need, and could also lead to crashes if the NPObjectMessageReceiver would get a message and
  11239. tried to invoke it on a already deallocated NPObject.
  11240. * PluginProcess/PluginControllerProxy.cpp:
  11241. (WebKit::PluginControllerProxy::initialize):
  11242. If we fail to initialize, call removePluginControllerProxy instead of having WebProcessConnection do so.
  11243. (WebKit::PluginControllerProxy::destroy):
  11244. Pass the plug-in to removePluginControllerProxy.
  11245. * PluginProcess/WebProcessConnection.cpp:
  11246. (WebKit::WebProcessConnection::removePluginControllerProxy):
  11247. Call NPRemoteObjectMap::pluginDestroyed when the plug-in has been destroyed.
  11248. (WebKit::WebProcessConnection::createPlugin):
  11249. Don't call removePluginControllerProxy if the plug-in fails to initialize. PluginControllerProxy::initialize now
  11250. takes care of doing this.
  11251. * Shared/Plugins/NPObjectMessageReceiver.cpp:
  11252. (WebKit::NPObjectMessageReceiver::NPObjectMessageReceiver):
  11253. (WebKit::NPObjectMessageReceiver::~NPObjectMessageReceiver):
  11254. * Shared/Plugins/NPObjectMessageReceiver.h:
  11255. Remove m_shouldReleaseObjectWhenInvalidating, we now know that no NPObjects will have been deallocated
  11256. by the time the NPObjectMessageReceiver is destroyed.
  11257. (WebKit::NPObjectMessageReceiver::plugin):
  11258. Add getter.
  11259. * Shared/Plugins/NPObjectProxy.h:
  11260. (WebKit::NPObjectProxy::plugin):
  11261. Add getter.
  11262. * Shared/Plugins/NPRemoteObjectMap.cpp:
  11263. (WebKit::NPRemoteObjectMap::NPRemoteObjectMap):
  11264. Remove m_isInvalidating.
  11265. (WebKit::NPRemoteObjectMap::npObjectProxyDestroyed):
  11266. Simplify code.
  11267. (WebKit::NPRemoteObjectMap::pluginDestroyed):
  11268. Rename invalidate to pluginDestroyed. Only invalidate/delete objects that belong to the given plug-in.
  11269. * Shared/Plugins/NPRemoteObjectMap.h:
  11270. Remove m_isInvalidating.
  11271. * WebProcess/Plugins/PluginProcessConnection.cpp:
  11272. (WebKit::PluginProcessConnection::removePluginProxy):
  11273. Call NPRemoteObjectMap::pluginDestroyed when the plug-in has been destroyed.
  11274. 2011-03-17 Oleg Romashin <oleg.romashin@nokia.com>
  11275. Reviewed by Anders Carlsson.
  11276. Teach WebKit2 messages.py generator to ifdef headers include
  11277. which are related to ifdef-ed methods/types
  11278. https://bugs.webkit.org/show_bug.cgi?id=55658
  11279. * Scripts/webkit2/messages.py:
  11280. * Scripts/webkit2/messages_unittest.py:
  11281. 2011-03-16 Joseph Pecoraro <joepeck@webkit.org>
  11282. Reviewed by Kenneth Rohde Christiansen.
  11283. Viewport no longer allows an auto value for "user-scalable"
  11284. https://bugs.webkit.org/show_bug.cgi?id=55416
  11285. Make the default value for userScalable be true.
  11286. * UIProcess/API/qt/qwkpage.cpp:
  11287. (QWKPage::viewportAttributesForSize):
  11288. 2011-03-16 Anders Carlsson <andersca@apple.com>
  11289. Reviewed by Dan Bernstein.
  11290. NPObjectProxy and NPObjectMessageReceiver objects should know their Plugin object
  11291. https://bugs.webkit.org/show_bug.cgi?id=56506
  11292. * PluginProcess/PluginControllerProxy.cpp:
  11293. (WebKit::PluginControllerProxy::windowScriptNPObject):
  11294. (WebKit::PluginControllerProxy::pluginElementNPObject):
  11295. (WebKit::PluginControllerProxy::evaluate):
  11296. (WebKit::PluginControllerProxy::getPluginScriptableNPObject):
  11297. * Shared/Plugins/NPObjectMessageReceiver.cpp:
  11298. (WebKit::NPObjectMessageReceiver::create):
  11299. (WebKit::NPObjectMessageReceiver::NPObjectMessageReceiver):
  11300. (WebKit::NPObjectMessageReceiver::invoke):
  11301. (WebKit::NPObjectMessageReceiver::invokeDefault):
  11302. (WebKit::NPObjectMessageReceiver::getProperty):
  11303. (WebKit::NPObjectMessageReceiver::setProperty):
  11304. (WebKit::NPObjectMessageReceiver::construct):
  11305. * Shared/Plugins/NPObjectMessageReceiver.h:
  11306. * Shared/Plugins/NPObjectProxy.cpp:
  11307. (WebKit::NPObjectProxy::create):
  11308. (WebKit::NPObjectProxy::NPObjectProxy):
  11309. (WebKit::NPObjectProxy::invalidate):
  11310. (WebKit::NPObjectProxy::initialize):
  11311. (WebKit::NPObjectProxy::invoke):
  11312. (WebKit::NPObjectProxy::invokeDefault):
  11313. (WebKit::NPObjectProxy::getProperty):
  11314. (WebKit::NPObjectProxy::setProperty):
  11315. (WebKit::NPObjectProxy::construct):
  11316. * Shared/Plugins/NPObjectProxy.h:
  11317. * Shared/Plugins/NPRemoteObjectMap.cpp:
  11318. (WebKit::NPRemoteObjectMap::createNPObjectProxy):
  11319. (WebKit::NPRemoteObjectMap::registerNPObject):
  11320. (WebKit::NPRemoteObjectMap::npVariantToNPVariantData):
  11321. (WebKit::NPRemoteObjectMap::npVariantDataToNPVariant):
  11322. * Shared/Plugins/NPRemoteObjectMap.h:
  11323. * WebProcess/Plugins/PluginProxy.cpp:
  11324. (WebKit::PluginProxy::pluginScriptableNPObject):
  11325. (WebKit::PluginProxy::getWindowScriptNPObject):
  11326. (WebKit::PluginProxy::getPluginElementNPObject):
  11327. (WebKit::PluginProxy::evaluate):
  11328. 2011-03-16 Beth Dakin <bdakin@apple.com>
  11329. Reviewed by Darin Adler.
  11330. Fix for https://bugs.webkit.org/show_bug.cgi?id=54987 Crash beneath
  11331. WebPageProxy::viewWillStartLiveResize when resizing window after web process
  11332. crashed
  11333. -and corresponding-
  11334. <rdar://problem/9037685>
  11335. Just need simple isValid() checks here.
  11336. * UIProcess/WebPageProxy.cpp:
  11337. (WebKit::WebPageProxy::initializeUIClient):
  11338. (WebKit::WebPageProxy::viewWillStartLiveResize):
  11339. (WebKit::WebPageProxy::viewWillEndLiveResize):
  11340. 2011-03-16 Damian Kaleta <dkaleta@apple.com>
  11341. Reviewed by Kevin Decker.
  11342. Add a user default that will force all plugins to opt in to non-executable data
  11343. https://bugs.webkit.org/show_bug.cgi?id=56487
  11344. <rdar://problem/9109095>
  11345. * UIProcess/Plugins/PluginProcessProxy.cpp:
  11346. (WebKit::PluginProcessProxy::PluginProcessProxy):
  11347. * UIProcess/Plugins/PluginProcessProxy.h:
  11348. * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
  11349. (WebKit::PluginProcessProxy::pluginNeedsExecutableHeap):
  11350. 2011-03-16 Chris Fleizach <cfleizach@apple.com>
  11351. Reviewed by Darin Adler.
  11352. WK2: Need to propagate enhanced accessibility flag from UI -> web process
  11353. https://bugs.webkit.org/show_bug.cgi?id=56379
  11354. Support sending the enhanced accessibility flag between processes.
  11355. * UIProcess/WebContext.cpp:
  11356. (WebKit::WebContext::~WebContext):
  11357. (WebKit::WebContext::setEnhancedAccessibility):
  11358. * UIProcess/WebContext.h:
  11359. * UIProcess/gtk/WebContextGtk.cpp:
  11360. (WebKit::WebContet::platformInvalidateContext):
  11361. * UIProcess/mac/WebContextMac.mm:
  11362. (WebKit::WebContext::platformInitializeWebProcess):
  11363. (WebKit::WebContext::platformInvalidateContext):
  11364. * UIProcess/qt/WebContextQt.cpp:
  11365. (WebKit::WebContext::platformInvalidateContext):
  11366. * UIProcess/win/WebContextWin.cpp:
  11367. (WebKit::WebContext::platformInvalidateContext):
  11368. * WebProcess/WebProcess.cpp:
  11369. (WebKit::WebProcess::setEnhancedAccessibility):
  11370. * WebProcess/WebProcess.h:
  11371. * WebProcess/WebProcess.messages.in:
  11372. 2011-03-15 Oliver Hunt <oliver@apple.com>
  11373. Reviewed by Geoffrey Garen.
  11374. Make Structure creation require a JSGlobalData
  11375. https://bugs.webkit.org/show_bug.cgi?id=56438
  11376. Mechanical change to make all Structure creation use a JSGlobalData&.
  11377. * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
  11378. (WebKit::JSNPMethod::JSNPMethod):
  11379. * WebProcess/Plugins/Netscape/JSNPMethod.h:
  11380. (WebKit::JSNPMethod::createStructure):
  11381. * WebProcess/Plugins/Netscape/JSNPObject.cpp:
  11382. (WebKit::JSNPObject::JSNPObject):
  11383. * WebProcess/Plugins/Netscape/JSNPObject.h:
  11384. (WebKit::JSNPObject::createStructure):
  11385. 2011-03-16 Alexey Proskuryakov <ap@apple.com>
  11386. Reviewed by Dan Bernstein.
  11387. WebKit2: Sometimes Command-[ opens a new tab and loads the back page in it
  11388. https://bugs.webkit.org/show_bug.cgi?id=56477
  11389. <rdar://problem/8806664>
  11390. * UIProcess/API/mac/PageClientImpl.mm: (WebKit::PageClientImpl::doneWithKeyEvent):
  11391. Set NSApplication current event when re-dispatching a key event that returned from the web
  11392. process unhandled. That way, code that looks at current event modifiers won't be confused.
  11393. 2011-03-16 Sam Weinig <sam@webkit.org>
  11394. Reviewed by Adam Roben.
  11395. Add WebKit2 API to figure out if an input or textarea was edited
  11396. https://bugs.webkit.org/show_bug.cgi?id=56474
  11397. Expose WKBundleNodeHandleGetHTMLInputElementLastChangeWasUserEdit and
  11398. WKBundleNodeHandleGetHTMLTextAreaElementLastChangeWasUserEdit. Next time,
  11399. I will work on giving these functions longer names.
  11400. * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
  11401. (WKBundleNodeHandleGetHTMLInputElementLastChangeWasUserEdit):
  11402. (WKBundleNodeHandleGetHTMLTextAreaElementLastChangeWasUserEdit):
  11403. * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h:
  11404. * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
  11405. (WebKit::InjectedBundleNodeHandle::htmlInputElementLastChangeWasUserEdit):
  11406. (WebKit::InjectedBundleNodeHandle::htmlTextAreaElementLastChangeWasUserEdit):
  11407. * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
  11408. 2011-03-16 Brady Eidson <beidson@apple.com>
  11409. Reviewed by Adam Roben.
  11410. https://bugs.webkit.org/show_bug.cgi?id=56467
  11411. IconDatabase-related crash seen in WK2 tests
  11412. * WebProcess/IconDatabase/WebIconDatabaseProxy.cpp:
  11413. (WebKit::WebIconDatabaseProxy::setIconDataForIconURL): The IconLoader might set a null data for an icon, so handle that case.
  11414. 2011-03-16 Benjamin Poulain <benjamin.poulain@nokia.com>
  11415. Reviewed by Kenneth Rohde Christiansen.
  11416. [Qt][WK2] Loading an empty URL crashes
  11417. https://bugs.webkit.org/show_bug.cgi?id=55501
  11418. A null WKURLRef is created in the API of WebKit 2 when converting a null string. The code
  11419. of WKPageLoadURL assume the WKPageRef is not null which causes crashes if it is.
  11420. This patch uses the converter toWTFString() to pass from WKPageRef to WTFString. This converter
  11421. ensure the returned string is a valid null string.
  11422. Tested through the Qt API tests.
  11423. * UIProcess/API/C/WKPage.cpp:
  11424. (WKPageLoadURL):
  11425. * UIProcess/API/qt/tests/qgraphicswkview/tst_qgraphicswkview.cpp:
  11426. (tst_QGraphicsWKView::loadEmptyUrl):
  11427. * UIProcess/API/qt/tests/qwkpage/qwkpage.pro: Added.
  11428. * UIProcess/API/qt/tests/qwkpage/tst_qwkpage.cpp: Added.
  11429. (tst_QWKPage::init):
  11430. (tst_QWKPage::cleanup):
  11431. (tst_QWKPage::loadEmptyUrl):
  11432. * UIProcess/API/qt/tests/tests.pro:
  11433. 2011-03-15 Brady Eidson <beidson@apple.com>
  11434. Reviewed by Sam Weinig.
  11435. https://bugs.webkit.org/show_bug.cgi?id=56425
  11436. WebKit2 icon database.
  11437. Project file paperwork:
  11438. * DerivedSources.make:
  11439. * DerivedSources.pro:
  11440. * GNUmakefile.am:
  11441. * WebKit2.pri:
  11442. * WebKit2.pro:
  11443. * WebKit2.xcodeproj/project.pbxproj:
  11444. * win/WebKit2.vcproj:
  11445. * win/WebKit2Common.vsprops:
  11446. * Scripts/webkit2/messages.py: Special-case capitalization for messages that start with "URL" to be lowercased
  11447. to "url" instead of "uRL".
  11448. Add messaging-related stuff:
  11449. * Platform/CoreIPC/MessageID.h:
  11450. * UIProcess/WebIconDatabase.messages.in: Added.
  11451. * WebProcess/IconDatabase/WebIconDatabaseProxy.messages.in: Added.
  11452. * UIProcess/WebProcessProxy.cpp:
  11453. (WebKit::WebProcessProxy::didReceiveMessage):
  11454. (WebKit::WebProcessProxy::didReceiveSyncMessage):
  11455. Prep to make WebIconDatabase an API object:
  11456. * Shared/APIObject.h:
  11457. Add an "icon DB is enabled" flag to WebProcessCreationParameters:
  11458. * Shared/WebProcessCreationParameters.cpp:
  11459. (WebKit::WebProcessCreationParameters::encode):
  11460. (WebKit::WebProcessCreationParameters::decode):
  11461. * Shared/WebProcessCreationParameters.h:
  11462. Add SPI for client apps to set the icon database path:
  11463. * UIProcess/API/C/WKContext.cpp:
  11464. (WKContextSetIconDatabasePath):
  11465. * UIProcess/API/C/WKContextPrivate.h:
  11466. * UIProcess/WebContext.h:
  11467. (WebKit::WebContext::setIconDatabasePath):
  11468. Hook up initialization, clearing, and messaging for the icon database:
  11469. * UIProcess/WebContext.cpp:
  11470. (WebKit::WebContext::WebContext):
  11471. (WebKit::WebContext::~WebContext):
  11472. (WebKit::WebContext::ensureWebProcess):
  11473. (WebKit::WebContext::didReceiveMessage):
  11474. (WebKit::WebContext::didReceiveSyncMessage):
  11475. (WebKit::WebContext::iconDatabasePath):
  11476. * UIProcess/gtk/WebContextGtk.cpp:
  11477. (WebKit::WebContext::platformDefaultIconDatabasePath):
  11478. * UIProcess/mac/WebContextMac.mm:
  11479. (WebKit::WebContext::platformDefaultIconDatabasePath):
  11480. * UIProcess/qt/WebContextQt.cpp:
  11481. (WebKit::WebContext::platformDefaultIconDatabasePath):
  11482. * UIProcess/win/WebContextWin.cpp:
  11483. (WebKit::WebContext::platformDefaultIconDatabasePath):
  11484. Add the UIProcess-side IconDatabase. It will be the "actual database" as well as the API object:
  11485. * UIProcess/WebIconDatabase.cpp: Added.
  11486. (WebKit::WebIconDatabase::create):
  11487. (WebKit::WebIconDatabase::~WebIconDatabase):
  11488. (WebKit::WebIconDatabase::WebIconDatabase):
  11489. (WebKit::WebIconDatabase::invalidate):
  11490. (WebKit::WebIconDatabase::retainIconForPageURL):
  11491. (WebKit::WebIconDatabase::releaseIconForPageURL):
  11492. (WebKit::WebIconDatabase::setIconURLForPageURL):
  11493. (WebKit::WebIconDatabase::setIconDataForIconURL):
  11494. (WebKit::WebIconDatabase::iconDataForPageURL):
  11495. (WebKit::WebIconDatabase::iconURLForPageURL):
  11496. (WebKit::WebIconDatabase::iconDataKnownForIconURL):
  11497. (WebKit::WebIconDatabase::loadDecisionForIconURL):
  11498. (WebKit::WebIconDatabase::didReceiveMessage):
  11499. (WebKit::WebIconDatabase::didReceiveSyncMessage):
  11500. * UIProcess/WebIconDatabase.h: Added.
  11501. (WebKit::WebIconDatabase::clearContext):
  11502. (WebKit::WebIconDatabase::type):
  11503. Add the WebProcess-side IconDatabaseProxy. It acts as the WebCore IconDatabase and operates via messaging:
  11504. * WebProcess/IconDatabase: Added.
  11505. * WebProcess/IconDatabase/WebIconDatabaseProxy.cpp: Added.
  11506. (WebKit::WebIconDatabaseProxy::~WebIconDatabaseProxy):
  11507. (WebKit::WebIconDatabaseProxy::WebIconDatabaseProxy):
  11508. (WebKit::WebIconDatabaseProxy::isEnabled):
  11509. (WebKit::WebIconDatabaseProxy::setEnabled):
  11510. (WebKit::WebIconDatabaseProxy::iconForPageURL):
  11511. (WebKit::WebIconDatabaseProxy::retainIconForPageURL):
  11512. (WebKit::WebIconDatabaseProxy::releaseIconForPageURL):
  11513. (WebKit::WebIconDatabaseProxy::iconURLForPageURL):
  11514. (WebKit::WebIconDatabaseProxy::iconDataKnownForIconURL):
  11515. (WebKit::WebIconDatabaseProxy::loadDecisionForIconURL):
  11516. (WebKit::WebIconDatabaseProxy::setIconURLForPageURL):
  11517. (WebKit::WebIconDatabaseProxy::setIconDataForIconURL):
  11518. (WebKit::WebIconDatabaseProxy::urlImportFinished):
  11519. (WebKit::WebIconDatabaseProxy::didReceiveMessage):
  11520. * WebProcess/IconDatabase/WebIconDatabaseProxy.h: Added.
  11521. Hook up initialization and messaging for the icon database proxy:
  11522. * WebProcess/WebProcess.cpp:
  11523. (WebKit::WebProcess::WebProcess):
  11524. (WebKit::WebProcess::initializeWebProcess):
  11525. (WebKit::WebProcess::didReceiveMessage):
  11526. * WebProcess/WebProcess.h:
  11527. 2011-03-15 Sam Weinig <sam@webkit.org>
  11528. Reviewed by Anders Carlsson.
  11529. WebKit2: False SPOD cursor when context menu is open
  11530. <rdar://problem/9029154>
  11531. https://bugs.webkit.org/show_bug.cgi?id=56433
  11532. * UIProcess/WebPageProxy.cpp:
  11533. (WebKit::WebPageProxy::showContextMenu):
  11534. Update to match showPopupMenu idiomatically, and stop the responsivenessTimer
  11535. since the act of showing the context menu could spin a nested runloop.
  11536. * UIProcess/mac/WebContextMenuProxyMac.mm:
  11537. (WebKit::WebContextMenuProxyMac::showContextMenu):
  11538. * UIProcess/qt/WebContextMenuProxyQt.cpp:
  11539. (WebKit::WebContextMenuProxyQt::showContextMenu):
  11540. * UIProcess/win/WebContextMenuProxyWin.cpp:
  11541. (WebKit::WebContextMenuProxyWin::showContextMenu):
  11542. Move isEmpty() check to implementations, since we don't want to show
  11543. this in any case, not just the one where we check it.
  11544. 2011-03-15 Siddharth Mathur <siddharth.mathur@nokia.com>
  11545. Reviewed by Laszlo Gombos.
  11546. [Qt][Symbian][WK2] Fix exporting and importing the WebProcessMainQt symbol
  11547. https://bugs.webkit.org/show_bug.cgi?id=56417
  11548. Use the Q_DECL_EXPORT and Q_DECL_IMPORT macros directly to make sure
  11549. the symbol is always exported/imported.
  11550. * WebProcess/qt/WebProcessMainQt.cpp:
  11551. (WebKit::WebProcessMainQt):
  11552. * qt/MainQt.cpp:
  11553. 2011-03-15 Alexey Proskuryakov <ap@apple.com>
  11554. Reviewed by Darin Adler.
  11555. REGRESSION (WebKit2): keygen element doesn't work
  11556. https://bugs.webkit.org/show_bug.cgi?id=56402
  11557. <rdar://problem/9006545>
  11558. * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
  11559. * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
  11560. Added strings used by keygen.
  11561. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm: Initialize a WebCore pointer to
  11562. a function used by keygen.
  11563. 2011-03-15 Beth Dakin <bdakin@apple.com>
  11564. Reviewed by Simon Fraser.
  11565. WebKit2 part of <rdar://problem/9075624> Overlay scrollbars slow down PLT by 6%
  11566. New WebKitystemInterface function to force the scrollbars to flash
  11567. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  11568. (InitWebCoreSystemInterface):
  11569. 2011-03-15 Anders Carlsson <andersca@apple.com>
  11570. Reviewed by Sam Weinig.
  11571. Make sure that NP_Shutdown is always the last NPP function called
  11572. https://bugs.webkit.org/show_bug.cgi?id=56391
  11573. <rdar://problem/8989902>
  11574. Make sure to always increment the load count whenever a web process connection
  11575. is opened to a plug-in process, and decrement it when the last web process connection
  11576. goes away.
  11577. * PluginProcess/PluginProcess.cpp:
  11578. (WebKit::PluginProcess::createWebProcessConnection):
  11579. (WebKit::PluginProcess::startShutdownTimerIfNecessary):
  11580. * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
  11581. * Shared/Plugins/Netscape/NetscapePluginModule.h:
  11582. * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
  11583. (WebKit::NetscapePlugin::NetscapePlugin):
  11584. (WebKit::NetscapePlugin::~NetscapePlugin):
  11585. 2011-03-15 Martin Robinson <mrobinson@igalia.com>
  11586. Reviewed by Adam Barth.
  11587. [GTK] [WebKit2] The UIProcess never changes the mouse cursor
  11588. https://bugs.webkit.org/show_bug.cgi?id=56333
  11589. Add an implementation for WebView::addCursor for WebKit2 GTK+. This allows
  11590. the cursor to change as the user mouses around the page. There is currently
  11591. no test infrastructure to track cursor changes.
  11592. * UIProcess/gtk/WebView.cpp:
  11593. (WebKit::WebView::setCursor): Ported implementation from WebKit1.
  11594. 2011-03-15 Kevin Ollivier <kevino@theolliviers.com>
  11595. Reviewed by Darin Adler.
  11596. Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export
  11597. info into the headers rather than in export symbol definition files, but disable it on
  11598. all platforms initially so we can deal with port build issues one port at a time.
  11599. https://bugs.webkit.org/show_bug.cgi?id=27551
  11600. * config.h:
  11601. 2011-03-14 Alexey Proskuryakov <ap@apple.com>
  11602. Reviewed by Darin Adler.
  11603. REGRESSION: Print preview is blank when selecting multiple pages per sheet
  11604. https://bugs.webkit.org/show_bug.cgi?id=56341
  11605. <rdar://problem/8991382>
  11606. * UIProcess/API/mac/WKPrintingView.mm: (pageDidDrawToPDF): Don't reset latest expected
  11607. callback number after receiving a different one. We only update preview after receiving
  11608. the latest expected page data (and the assumption is that AppKit will ask for pages in
  11609. natural order for N-up).
  11610. 2011-03-14 Adam Roben <aroben@apple.com>
  11611. Make WKBundlePageCanHandleRequest return true for empty document URLs
  11612. Reviewed by Sam Weinig.
  11613. * WebProcess/WebPage/WebPage.cpp:
  11614. (WebKit::WebPage::canHandleRequest): Return true for any URL schemes that are handled as
  11615. empty documents, and defer to the platform for everything else.
  11616. * WebProcess/WebPage/WebPage.h: Added platformCanHandleRequest.
  11617. * WebProcess/WebPage/mac/WebPageMac.mm:
  11618. (WebKit::WebPage::platformCanHandleRequest):
  11619. * WebProcess/WebPage/qt/WebPageQt.cpp:
  11620. (WebKit::WebPage::platformCanHandleRequest):
  11621. * WebProcess/WebPage/win/WebPageWin.cpp:
  11622. (WebKit::WebPage::platformCanHandleRequest):
  11623. Renamed from canHandleRequest.
  11624. 2011-03-14 Chris Fleizach <cfleizach@apple.com>
  11625. Reviewed by Beth Dakin.
  11626. CrashTracer: 60 crashes in WebProcess at com.apple.WebKit2: -[AccessibilityWebPageObject accessibilityHitTest:] + 248
  11627. https://bugs.webkit.org/show_bug.cgi?id=56336
  11628. Crash trace indicates a nil pointer access in one of these m_page->mainFrame()->coreFrame()->view()
  11629. pointers.
  11630. * WebProcess/WebPage/mac/AccessibilityWebPageObject.mm:
  11631. (-[AccessibilityWebPageObject accessibilityHitTest:]):
  11632. 2011-03-14 Alice Liu <alice.liu@apple.com>
  11633. Reviewed by Sam Weinig.
  11634. Provide API for creating WKImage from CGImageRef
  11635. https://bugs.webkit.org/show_bug.cgi?id=56159
  11636. Add function for creating a WKImage from CGImage data.
  11637. * Shared/API/c/cg/WKImageCG.cpp:
  11638. (WKImageCreateFromCGImage): Added. Creates a graphics context for the bitmap-backed image and draws into it.
  11639. * Shared/API/c/cg/WKImageCG.h:
  11640. 2011-03-14 Balazs Kelemen <kbalazs@webkit.org>
  11641. Reviewed by Adam Roben.
  11642. [Qt][WK2]Unbreak InjectedBundle on Qt
  11643. https://bugs.webkit.org/show_bug.cgi?id=54109
  11644. Add API's to WKURL and WKString to satisfy
  11645. WebKitTestRunner's needs.
  11646. * Shared/API/c/WKString.cpp:
  11647. (WKStringIsEqualToUTF8CStringIgnoringCase):
  11648. * Shared/API/c/WKString.h:
  11649. * Shared/API/c/WKURL.cpp:
  11650. (WKURLCopyHostName):
  11651. (WKURLCopyScheme):
  11652. * Shared/API/c/WKURL.h:
  11653. * Shared/WebString.h:
  11654. (WebKit::WebString::equalToUTF8StringIgnoringCase):
  11655. * Shared/WebURL.h: Added OwnPtr<KURL> member to be able
  11656. to lazily parse the URL and store the result.
  11657. (WebKit::WebURL::host):
  11658. (WebKit::WebURL::protocol):
  11659. (WebKit::WebURL::parseURLIfNecessary):
  11660. * win/WebKit2.def: Revert the symbol exports that were
  11661. needed to use KURL in WebKitTestRunner.
  11662. 2011-03-14 Jeff Miller <jeffm@apple.com>
  11663. Reviewed by Adam Roben.
  11664. Add WKViewSetScrollOffsetOnNextResize() to C API on Windows
  11665. https://bugs.webkit.org/show_bug.cgi?id=56340
  11666. * UIProcess/API/C/win/WKView.cpp:
  11667. (WKViewSetScrollOffsetOnNextResize): Added.
  11668. * UIProcess/API/C/win/WKView.h: Added WKViewSetScrollOffsetOnNextResize().
  11669. * UIProcess/win/WebView.cpp:
  11670. (WebKit::WebView::onSizeEvent): Apply any scroll offset when setting the drawing area size.
  11671. (WebKit::WebView::setScrollOffsetOnNextResize): Added.
  11672. * UIProcess/win/WebView.h: Added setScrollOffsetOnNextResize().
  11673. 2011-03-14 Brian Weinstein <bweinstein@apple.com>
  11674. Reviewed by Adam Roben and Gavin Barraclough.
  11675. FileSystemWin.cpp needs listDirectory() implementation
  11676. https://bugs.webkit.org/show_bug.cgi?id=56331
  11677. <rdar://problem/9126635>
  11678. Move PathWalker down into WebCore, and call the PathWalker in WebCore
  11679. (that now has a second argument, the pattern to take).
  11680. * UIProcess/Plugins/win/PluginInfoStoreWin.cpp:
  11681. (WebKit::PluginInfoStore::pluginPathsInDirectory):
  11682. 2011-03-14 Sam Weinig <sam@webkit.org>
  11683. Reviewed by Darin Adler.
  11684. WebKit2: No icon shown for <input type=file>
  11685. <rdar://problem/8988982>
  11686. https://bugs.webkit.org/show_bug.cgi?id=54288
  11687. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  11688. (WebKit::WebChromeClient::chooseIconForFiles):
  11689. Add implementation for chooseIconForFiles which calls down to Icon::createIconForFiles.
  11690. 2011-03-14 Brady Eidson <beidson@apple.com>
  11691. Reviewed by Dan Bernstein.
  11692. <rdar://problem/8762095> and https://bugs.webkit.org/show_bug.cgi?id=55172
  11693. Need WK2 API to view/manage origins with LocalStorage
  11694. Hookup the existing API stubs to the WebCore implementations:
  11695. * WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp:
  11696. (WebKit::WebKeyValueStorageManager::getKeyValueStorageOrigins):
  11697. (WebKit::WebKeyValueStorageManager::deleteEntriesForOrigin):
  11698. (WebKit::WebKeyValueStorageManager::deleteAllEntries):
  11699. 2011-03-13 Brady Eidson <beidson@apple.com>
  11700. Reviewed by Sam Weinig.
  11701. <rdar://problem/9127270> and https://bugs.webkit.org/show_bug.cgi?id=56282
  11702. Pass the path along with creation parameters:
  11703. * Shared/WebProcessCreationParameters.cpp:
  11704. (WebKit::WebProcessCreationParameters::encode):
  11705. (WebKit::WebProcessCreationParameters::decode):
  11706. * Shared/WebProcessCreationParameters.h:
  11707. Add SPI to set the path:
  11708. * UIProcess/API/C/WKContext.cpp:
  11709. (WKContextSetLocalStorageDirectory):
  11710. * UIProcess/API/C/WKContextPrivate.h:
  11711. Pass the path along in the process creation parameters:
  11712. * UIProcess/WebContext.cpp:
  11713. (WebKit::WebContext::ensureWebProcess):
  11714. (WebKit::WebContext::localStorageDirectory):
  11715. * UIProcess/WebContext.h:
  11716. (WebKit::WebContext::setLocalStorageDirectory):
  11717. * UIProcess/gtk/WebContextGtk.cpp:
  11718. (WebKit::WebContext::platformDefaultLocalStorageDirectory):
  11719. * UIProcess/mac/WebContextMac.mm:
  11720. (WebKit::WebContext::platformDefaultLocalStorageDirectory):
  11721. * UIProcess/qt/WebContextQt.cpp:
  11722. (WebKit::WebContext::platformDefaultLocalStorageDirectory):
  11723. * UIProcess/win/WebContextWin.cpp:
  11724. (WebKit::WebContext::platformDefaultLocalStorageDirectory):
  11725. Include the path with settings updates, because WebCore needs it set on the Settings object:
  11726. * WebProcess/WebPage/WebPage.cpp:
  11727. (WebKit::WebPage::updatePreferences):
  11728. * WebProcess/WebProcess.cpp:
  11729. (WebKit::WebProcess::initializeWebProcess):
  11730. * WebProcess/WebProcess.h:
  11731. (WebKit::WebProcess::localStorageDirectory):
  11732. Sandboxing stuff:
  11733. * WebProcess/com.apple.WebProcess.sb:
  11734. * WebProcess/mac/WebProcessMac.mm:
  11735. (WebKit::initializeSandbox):
  11736. 2011-03-12 Jer Noble <jer.noble@apple.com>
  11737. Reviewed by Mark Rowe.
  11738. WebKit2: Build WKFullScreenWindowController cleanly in 32-bit.
  11739. https://bugs.webkit.org/show_bug.cgi?id=56260
  11740. Include <Carbon/Carbon.h> instead of <HIToolbox/MacApplication.h>.
  11741. * UIProcess/mac/WKFullScreenWindowController.mm:
  11742. 2011-03-13 Sam Weinig <sam@webkit.org>
  11743. Reviewed by Anders Carlsson.
  11744. Add ability to create a WKErrorRef
  11745. <rdar://problem/9115768>
  11746. https://bugs.webkit.org/show_bug.cgi?id=56279
  11747. * Shared/API/c/cf/WKErrorCF.cpp: Added.
  11748. (WKErrorCreateWithCFError):
  11749. (WKErrorCopyCFError):
  11750. * Shared/API/c/cf/WKErrorCF.h: Added.
  11751. Add new API to create a WKErrorRef from a CFErrorRef
  11752. and vice-versa.
  11753. * WebKit2.xcodeproj/project.pbxproj:
  11754. * win/WebKit2.vcproj:
  11755. * win/WebKit2Generated.make:
  11756. Add new files.
  11757. 2011-03-13 Pratik Solanki <psolanki@apple.com>
  11758. Reviewed by Brady Eidson.
  11759. Make adjustMIMETypeIfNecessary use CFNetwork directly
  11760. https://bugs.webkit.org/show_bug.cgi?id=55912
  11761. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  11762. (InitWebCoreSystemInterface): Support for new WKSI functions.
  11763. 2011-03-13 Dan Bernstein <mitz@apple.com>
  11764. Reviewed by Darin Adler.
  11765. WebPageProxy cleanup
  11766. https://bugs.webkit.org/show_bug.cgi?id=56267
  11767. * UIProcess/WebPageProxy.cpp: Moved all Mac-only function implementations from
  11768. here to WebPageProxyMac.mm.
  11769. * UIProcess/WebPageProxy.h: Cleaned up #includes.
  11770. * UIProcess/mac/WebPageProxyMac.mm: Moved all Mac-only function implementations
  11771. here.
  11772. (WebKit::WebPageProxy::updateWindowIsVisible):
  11773. (WebKit::WebPageProxy::windowAndViewFramesChanged):
  11774. (WebKit::WebPageProxy::getMarkedRange):
  11775. (WebKit::WebPageProxy::characterIndexForPoint):
  11776. (WebKit::WebPageProxy::firstRectForCharacterRange):
  11777. (WebKit::WebPageProxy::writeSelectionToPasteboard):
  11778. (WebKit::WebPageProxy::setDragImage):
  11779. (WebKit::WebPageProxy::performDictionaryLookupAtLocation):
  11780. (WebKit::WebPageProxy::interpretKeyEvent):
  11781. (WebKit::WebPageProxy::sendComplexTextInputToPlugin):
  11782. (WebKit::WebPageProxy::uppercaseWord):
  11783. (WebKit::WebPageProxy::lowercaseWord):
  11784. (WebKit::WebPageProxy::capitalizeWord):
  11785. (WebKit::WebPageProxy::setSmartInsertDeleteEnabled):
  11786. (WebKit::WebPageProxy::didPerformDictionaryLookup):
  11787. (WebKit::WebPageProxy::registerWebProcessAccessibilityToken):
  11788. (WebKit::WebPageProxy::registerUIProcessAccessibilityTokens):
  11789. (WebKit::WebPageProxy::setComplexTextInputEnabled):
  11790. 2011-03-13 Dan Bernstein <mitz@apple.com>
  11791. Reviewed by Darin Adler.
  11792. <rdar://problem/8949683> WebKit2: Drag image is offset when the page is scrolled down
  11793. https://bugs.webkit.org/show_bug.cgi?id=56265
  11794. * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
  11795. (WebKit::WebDragClient::startDrag): Send the location in view coordinates rather than
  11796. document coordinates.
  11797. 2011-03-13 Dan Bernstein <mitz@apple.com>
  11798. Reviewed by Mark Rowe.
  11799. Fix a crash when dragging.
  11800. * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
  11801. (WebKit::convertImageToBitmap): Retain the saved context.
  11802. 2011-03-12 Darin Adler <darin@apple.com>
  11803. * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
  11804. (WebKit::WebDragClient::startDrag): Fixed typo in a comment.
  11805. 2011-03-11 Darin Adler <darin@apple.com>
  11806. Reviewed by Sam Weinig.
  11807. Dragging image to desktop gives webloc instead of image file in WebKit2
  11808. https://bugs.webkit.org/show_bug.cgi?id=56193
  11809. * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
  11810. (WebKit::convertImageToBitmap): Added. Factored out from startDrag to
  11811. make the startDrag code clearer.
  11812. (WebKit::WebDragClient::startDrag): Streamlined code a bit.
  11813. (WebKit::cachedImage): Added. Helper for function below.
  11814. (WebKit::arrayForURLsWithTitles): Added. Helper for function below.
  11815. (WebKit::WebDragClient::declareAndWriteDragImage): Added code to handle file
  11816. promises and removed a log of uneeded code.
  11817. (-[WKPasteboardFilePromiseOwner copyDropDirectory]): Added.
  11818. (promisedDataClient): Added.
  11819. (-[WKPasteboardOwner clearImage]): Added.
  11820. (-[WKPasteboardOwner initWithImage:]): Added.
  11821. (-[WKPasteboardOwner dealloc]): Added.
  11822. (-[WKPasteboardOwner finalize]): Added.
  11823. (-[WKPasteboardOwner pasteboard:provideDataForType:]): Added.
  11824. (-[WKPasteboardOwner pasteboardChangedOwner:]): Added.
  11825. (matchesExtensionOrEquivalent): Added.
  11826. (-[WKPasteboardOwner namesOfPromisedFilesDroppedAtDestination:]): Added.
  11827. Much of the new code above came from the WebKit1 drag code.
  11828. * WebProcess/WebPage/WebPage.cpp:
  11829. (WebKit::WebPage::dragEnded): Added call to Mac-only platformDragEnded.
  11830. * WebProcess/WebPage/WebPage.h: Added Mac-only platformDragEnded and m_dragSource.
  11831. * WebProcess/WebPage/mac/WebPageMac.mm:
  11832. (WebKit::WebPage::setDragSource): Added.
  11833. (WebKit::WebPage::platformDragEnded): Added.
  11834. 2011-03-12 Mark Rowe <mrowe@apple.com>
  11835. Fix the 32-bit build.
  11836. This involves hacking around some HIToolbox headers that do things of dubious correctness,
  11837. and fixing the usual CGRect vs NSRect issues.
  11838. * UIProcess/mac/WKFullScreenWindowController.mm:
  11839. (-[WKFullScreenWindowController enterFullScreen:]): NSRect is not CGRect.
  11840. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
  11841. (WebKit::WebFullScreenManagerMac::beginExitFullScreenAnimation): Ditto.
  11842. 2011-03-12 Anders Carlsson <andersca@apple.com>
  11843. Reviewed by Sam Weinig.
  11844. * WebProcess/WebPage/WebFrame.cpp:
  11845. (WebKit::WebFrame::url):
  11846. Get the URL from the loader, not from the document.
  11847. (WebKit::WebFrame::suggestedFilenameForResourceWithURL):
  11848. Return the correct suggested filename for the main resource.
  11849. (WebKit::WebFrame::mimeTypeForResourceWithURL):
  11850. Return the correct mime type for the main resource.
  11851. 2011-03-12 Anders Carlsson <andersca@apple.com>
  11852. Reviewed by Sam Weinig.
  11853. Should be able to download a PDF to the Downloads folder
  11854. https://bugs.webkit.org/show_bug.cgi?id=56256
  11855. * UIProcess/API/C/WKPage.h:
  11856. Add WKPageSaveDataToFileInDownloadsFolderCallback to the UI client.
  11857. * UIProcess/API/mac/PDFViewController.h:
  11858. * UIProcess/API/mac/PDFViewController.mm:
  11859. (-[WKPDFView _applyPDFPreferences]):
  11860. (-[WKPDFView _updatePreferences:]):
  11861. Use new PDFViewController::page getter.
  11862. (-[WKPDFView PDFViewSavePDFToDownloadFolder:]):
  11863. Call PDFViewController::savePDFToDownloadsFolder.
  11864. (WebKit::releaseCFData):
  11865. (WebKit::PDFViewController::savePDFToDownloadsFolder):
  11866. Create a WebData that wraps the CFData, then pass it along to
  11867. WebPageProxy::saveDataToFileInDownloadsFolder.
  11868. * UIProcess/WebPageProxy.cpp:
  11869. (WebKit::WebPageProxy::saveDataToFileInDownloadsFolder):
  11870. Call WebUIClient::saveDataToFileInDownloadsFolder.
  11871. (WebKit::WebUIClient::saveDataToFileInDownloadsFolder):
  11872. * UIProcess/WebUIClient.h:
  11873. Call the UI client callback function.
  11874. 2011-03-12 Anders Carlsson <andersca@apple.com>
  11875. Reviewed by Sam Weinig.
  11876. WebData should be able to wrap already existing data
  11877. https://bugs.webkit.org/show_bug.cgi?id=56254
  11878. * Shared/WebData.h:
  11879. (WebKit::WebData::createWithoutCopying):
  11880. (WebKit::WebData::create):
  11881. (WebKit::WebData::~WebData):
  11882. (WebKit::WebData::bytes):
  11883. (WebKit::WebData::size):
  11884. (WebKit::WebData::WebData):
  11885. (WebKit::WebData::fastFreeBytes):
  11886. 2011-03-12 Jer Noble <jer.noble@apple.com>
  11887. Reviewed by Eric Carlson.
  11888. WebKit2: Initialize the WebFullScreenManagerProxy with a WKView
  11889. https://bugs.webkit.org/show_bug.cgi?id=56250
  11890. * UIProcess/API/mac/WKView.mm:
  11891. (-[WKView initWithFrame:contextRef:pageGroupRef:]): Call fullScreenManager()->setView(self).
  11892. 2011-03-11 Jer Noble <jer.noble@apple.com>
  11893. Reviewed by Anders Carlsson.
  11894. Add full screen animation code to WebFullScreenManager.
  11895. https://bugs.webkit.org/show_bug.cgi?id=56220
  11896. * WebProcess/FullScreen/WebFullScreenManager.cpp: .
  11897. (WebKit::WebFullScreenManager::~WebFullScreenManager): Added.
  11898. (WebKit::WebFullScreenManager::exitFullScreenForElement): Remove ASSERTs.
  11899. (WebKit::WebFullScreenManager::willEnterFullScreen): Set the full screen renderer's background color.
  11900. (WebKit::WebFullScreenManager::didEnterFullScreen): Ditto.
  11901. (WebKit::WebFullScreenManager::willExitFullScreen): Ditto.
  11902. (WebKit::WebFullScreenManager::didExitFullScreen): Ditto.
  11903. * WebProcess/FullScreen/WebFullScreenManager.h: Make a few functions pure virtual to be implemented in a
  11904. concrete subclass.
  11905. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.h: Added.
  11906. * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm: Added.
  11907. (-[WebFullScreenManagerAnimationListener initWithManager:WebKit::began:finished:]): Listener for CAAnimations.
  11908. (-[WebFullScreenManagerAnimationListener animationDidStart:]): Added.
  11909. (-[WebFullScreenManagerAnimationListener animationDidStop:finished:]): Added.
  11910. (-[WebFullScreenManagerAnimationListener invalidate]): Added.
  11911. (WebKit::WebFullScreenManager::create): Now creates a WebFullScreenManagerMac.
  11912. (WebKit::WebFullScreenManagerMac::create): Added.
  11913. (WebKit::WebFullScreenManagerMac::WebFullScreenManagerMac): Added.
  11914. (WebKit::WebFullScreenManagerMac::~WebFullScreenManagerMac): Added.
  11915. (WebKit::WebFullScreenManagerMac::setRootFullScreenLayer): Set up the remote layer host.
  11916. (WebKit::WebFullScreenManagerMac::beginEnterFullScreenAnimation): Create a CATransform3D
  11917. which will animate the full screen renderer from its initial position to its final one.
  11918. (WebKit::WebFullScreenManagerMac::beginExitFullScreenAnimation): Ditto.
  11919. 2011-03-11 Jer Noble <jer.noble@apple.com>
  11920. Reviewed by Anders Carlsson.
  11921. Hook up new WKFullScreenWindowController functions to WebFullScreenManagerProxy
  11922. https://bugs.webkit.org/show_bug.cgi?id=56218
  11923. * UIProcess/WebFullScreenManagerProxy.cpp:
  11924. * UIProcess/mac/WebFullScreenManagerProxyMac.mm: Added.
  11925. (WebKit::WebFullScreenManagerProxy::enterFullScreen): Call into WKFullScreenWindowController.
  11926. (WebKit::WebFullScreenManagerProxy::exitFullScreen): Ditto.
  11927. (WebKit::WebFullScreenManagerProxy::beganEnterFullScreenAnimation): Ditto.
  11928. (WebKit::WebFullScreenManagerProxy::finishedEnterFullScreenAnimation): Ditto.
  11929. (WebKit::WebFullScreenManagerProxy::beganExitFullScreenAnimation): Ditto.
  11930. (WebKit::WebFullScreenManagerProxy::finishedExitFullScreenAnimation): Ditto.
  11931. (WebKit::WebFullScreenManagerProxy::enterAcceleratedCompositingMode): Ditto.
  11932. (WebKit::WebFullScreenManagerProxy::exitAcceleratedCompositingMode): Ditto.
  11933. (WebKit::WebFullScreenManagerProxy::getFullScreenRect): Ditto.
  11934. * UIProcess/API/mac/WKView.mm:
  11935. (-[WKView fullScreenWindowController]): Lazily instantiate a WKFullScreenWindowController.
  11936. * UIProcess/API/mac/WKViewInternal.h:
  11937. 2011-03-11 Jer Noble <jer.noble@apple.com>
  11938. Reviewed by Anders Carlsson.
  11939. Add the WKFullScreenWindowController, mostly cribbed from WebKit's WebFullScreenController.
  11940. [WebKit2] Implement a full screen window controller
  11941. https://bugs.webkit.org/show_bug.cgi?id=56210
  11942. * UIProcess/mac/WKFullScreenWindowController.h: Added.
  11943. * UIProcess/mac/WKFullScreenWindowController.mm: Added.
  11944. (-[WKFullScreenWindowController init]): Remove the _mediaEventListener.
  11945. (-[WKFullScreenWindowController dealloc]): Make sure to cancel previous async requests.
  11946. (-[WKFullScreenWindowController windowDidLoad]): Remove the Tiger protection.
  11947. (-[WKFullScreenWindowController webView]): Type change.
  11948. (-[WKFullScreenWindowController setWebView:]): Type change.
  11949. (-[WKFullScreenWindowController applicationDidResignActive:]): Case changes.
  11950. (-[WKFullScreenWindowController applicationDidChangeScreenParameters:]): Case changes.
  11951. (-[WKFullScreenWindowController enterFullScreen:]): Removed most of the animation code
  11952. which will reappear in WebFullScreenManager.
  11953. (-[WKFullScreenWindowController beganEnterFullScreenAnimation]): Added.
  11954. (-[WKFullScreenWindowController finishedEnterFullScreenAnimation:]): Added.
  11955. (-[WKFullScreenWindowController exitFullScreen]): Ditto to enterFullScreen.
  11956. (-[WKFullScreenWindowController beganExitFullScreenAnimation]): Added.
  11957. (-[WKFullScreenWindowController finishedExitFullScreenAnimation:]): Added.
  11958. (-[WKFullScreenWindowController enterAcceleratedCompositingMode:WebKit::]): Set up the
  11959. layer tree host.
  11960. (-[WKFullScreenWindowController exitAcceleratedCompositingMode]): Tear down same.
  11961. (-[WKFullScreenWindowController getFullScreenRect:WebCore::]): Added.
  11962. (-[WKFullScreenWindowController _updateMenuAndDockForFullScreen]): Case changes.
  11963. (-[WKFullScreenWindowController _disableIdleDisplaySleep]): Ditto.
  11964. (-[WKFullScreenWindowController _enableIdleDisplaySleep]): Ditto.
  11965. (-[WKFullScreenWindowController _disableIdleSystemSleep]): Ditto.
  11966. (-[WKFullScreenWindowController _enableIdleSystemSleep]): Ditto.
  11967. (-[WKFullScreenWindowController _enableTickleTimer]): Ditto.
  11968. (-[WKFullScreenWindowController _disableTickleTimer]): Ditto.
  11969. (-[WKFullScreenWindowController _tickleTimerFired]): Ditto.
  11970. (-[WKFullScreenWindowController _updatePowerAssertions]): Use _isPlaying ivar.
  11971. (-[WKFullScreenWindowController _manager]): Added.
  11972. (-[WKFullScreenWindowController _requestExit]): Case changes.
  11973. (-[WKFullScreenWindowController _requestExitFullScreenWithAnimation:]): Ditto.
  11974. (-[WKFullScreenWindowController _swapView:with:]): Added.
  11975. (-[WKFullScreenWindowController _fullScreenWindow]): Case changes.
  11976. (-[WKFullScreenWindow initWithContentRect:styleMask:backing:defer:]): Geometry no
  11977. longer needs to be flipped.
  11978. (-[WKFullScreenWindow cancelOperation:]): Case changes.
  11979. 2011-03-11 Jer Noble <jer.noble@apple.com>
  11980. Reviewed by Anders Carlsson.
  11981. Create new interface stubs to support full screen mode in WebKit2.
  11982. WebKit2: Plumb new full screen animation APIs through WebKit2.
  11983. https://bugs.webkit.org/show_bug.cgi?id=55993
  11984. * UIProcess/WebFullScreenManagerProxy.cpp:
  11985. (WebKit::WebFullScreenManagerProxy::WebFullScreenManagerProxy): Added.
  11986. (WebKit::WebFullScreenManagerProxy::invalidate): Clear m_webView.
  11987. (WebKit::WebFullScreenManagerProxy::setWebView): Set m_webView.
  11988. (WebKit::WebFullScreenManagerProxy::beginEnterFullScreenAnimation): Added.
  11989. (WebKit::WebFullScreenManagerProxy::beginExitFullScreenAnimation): Added.
  11990. (WebKit::WebFullScreenManagerProxy::beganEnterFullScreenAnimation): Added stub.
  11991. (WebKit::WebFullScreenManagerProxy::finishedEnterFullScreenAnimation): Added stub.
  11992. (WebKit::WebFullScreenManagerProxy::beganExitFullScreenAnimation): Added stub.
  11993. (WebKit::WebFullScreenManagerProxy::finishedExitFullScreenAnimation): Added stub.
  11994. (WebKit::WebFullScreenManagerProxy::enterAcceleratedCompositingMode): Added stub.
  11995. (WebKit::WebFullScreenManagerProxy::exitAcceleratedCompositingMode): Added stub.
  11996. (WebKit::WebFullScreenManagerProxy::getFullScreenRect): Added stub.
  11997. * UIProcess/WebFullScreenManagerProxy.h:
  11998. * UIProcess/WebFullScreenManagerProxy.messages.in: Added new message definitions.
  11999. * UIProcess/WebPageProxy.cpp: Moved include of WebFullScreenManagerProxy.h into source file.
  12000. * UIProcess/WebPageProxy.h: Ditto.
  12001. * WebProcess/FullScreen/WebFullScreenManager.cpp:
  12002. (WebKit::WebFullScreenManager::element): Added.
  12003. (WebKit::WebFullScreenManager::supportsFullScreen): Send message through WebPage.
  12004. (WebKit::WebFullScreenManager::enterFullScreenForElement): Ditto.
  12005. (WebKit::WebFullScreenManager::exitFullScreenForElement): Ditto.
  12006. (WebKit::WebFullScreenManager::beganEnterFullScreenAnimation): Added..
  12007. (WebKit::WebFullScreenManager::finishedEnterFullScreenAnimation): Added.
  12008. (WebKit::WebFullScreenManager::beganExitFullScreenAnimation): Added.
  12009. (WebKit::WebFullScreenManager::finishedExitFullScreenAnimation): Added.
  12010. (WebKit::WebFullScreenManager::setRootFullScreenLayer): Added stub.
  12011. (WebKit::WebFullScreenManager::getFullScreenRect): Added.
  12012. (WebKit::WebFullScreenManager::beginEnterFullScreenAnimation): Added stub.
  12013. (WebKit::WebFullScreenManager::beginExitFullScreenAnimation): Added stub.
  12014. * WebProcess/FullScreen/WebFullScreenManager.h:
  12015. * WebProcess/FullScreen/WebFullScreenManager.messages.in: Added new message definitions.
  12016. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  12017. (WebKit::WebChromeClient::setRootFullScreenLayer): Added.
  12018. * WebProcess/WebCoreSupport/WebChromeClient.h:
  12019. 2011-03-11 Alice Liu <alice.liu@apple.com>
  12020. Reviewed by Sam Weinig.
  12021. Support encoding /decoding WebData in usermessages
  12022. https://bugs.webkit.org/show_bug.cgi?id=56158
  12023. Added encoding/decoding for APIObject::TypeData
  12024. * Shared/UserMessageCoders.h:
  12025. (WebKit::UserMessageEncoder::baseEncode):
  12026. (WebKit::UserMessageDecoder::baseDecode):
  12027. 2011-03-11 Alice Liu <alice.liu@apple.com>
  12028. Reviewed by Sam Weinig.
  12029. Add api for "remove" to WKMutableDictionary
  12030. https://bugs.webkit.org/show_bug.cgi?id=56157
  12031. * Shared/API/c/WKMutableDictionary.cpp:
  12032. (WKDictionaryRemoveItem): Added; call remove on MutableDictionary impl.
  12033. * Shared/API/c/WKMutableDictionary.h:
  12034. * Shared/MutableDictionary.cpp:
  12035. (WebKit::MutableDictionary::remove): Added; call remove on the underlying hashmap.
  12036. * Shared/MutableDictionary.h:
  12037. 2011-03-11 Sheriff Bot <webkit.review.bot@gmail.com>
  12038. Unreviewed, rolling out r80899 and r80912.
  12039. http://trac.webkit.org/changeset/80899
  12040. http://trac.webkit.org/changeset/80912
  12041. https://bugs.webkit.org/show_bug.cgi?id=56236
  12042. Caused animation tests to crash on Snow Leopard WebKit2
  12043. (Requested by rniwa on #webkit).
  12044. * Shared/ShareableBitmap.cpp:
  12045. (WebKit::ShareableBitmap::create):
  12046. (WebKit::ShareableBitmap::createShareable):
  12047. (WebKit::ShareableBitmap::resize):
  12048. * Shared/ShareableBitmap.h:
  12049. (WebKit::ShareableBitmap::numBytesForSize):
  12050. (WebKit::ShareableBitmap::sizeInBytes):
  12051. * UIProcess/DrawingAreaProxyImpl.cpp:
  12052. (WebKit::DrawingAreaProxyImpl::update):
  12053. * WebKit2.xcodeproj/project.pbxproj:
  12054. * WebProcess/WebPage/DrawingArea.h:
  12055. (WebKit::DrawingArea::didUpdate):
  12056. * WebProcess/WebPage/DrawingArea.messages.in:
  12057. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  12058. (WebKit::DrawingAreaImpl::~DrawingAreaImpl):
  12059. (WebKit::DrawingAreaImpl::sendDidUpdateBackingStoreState):
  12060. (WebKit::DrawingAreaImpl::didUpdate):
  12061. (WebKit::DrawingAreaImpl::exitAcceleratedCompositingMode):
  12062. (WebKit::DrawingAreaImpl::display):
  12063. * WebProcess/WebPage/DrawingAreaImpl.h:
  12064. * WebProcess/WebPage/SharedMemoryCache.cpp: Removed.
  12065. * WebProcess/WebPage/SharedMemoryCache.h: Removed.
  12066. * win/WebKit2.vcproj:
  12067. 2011-03-11 Brian Weinstein <bweinstein@apple.com>
  12068. Windows build fix. Add SharedMemoryCache to the vcproj.
  12069. * win/WebKit2.vcproj:
  12070. 2011-03-11 Alexey Proskuryakov <ap@apple.com>
  12071. Reviewed by Sam Weinig.
  12072. https://bugs.webkit.org/show_bug.cgi?id=56222
  12073. A window remains frozen if web process crashes during printing
  12074. * UIProcess/API/mac/PageClientImpl.h:
  12075. * UIProcess/API/mac/PageClientImpl.mm:
  12076. * UIProcess/PageClient.h:
  12077. * UIProcess/WebPageProxy.cpp:
  12078. (WebKit::WebPageProxy::setComplexTextInputEnabled):
  12079. * UIProcess/WebPageProxy.h:
  12080. Moved setAutodisplay code into WKPrintingView.
  12081. * UIProcess/API/mac/WKPrintingView.h:
  12082. * UIProcess/API/mac/WKView.mm:
  12083. (-[WKView printOperationWithPrintInfo:forFrame:]):
  12084. Keep a reference to the actual WKView, so that we can manipulate how it displays, even if
  12085. page goes away.
  12086. * UIProcess/API/mac/WKPrintingView.mm:
  12087. (-[WKPrintingView initWithFrameProxy:WebKit::view:]):
  12088. (-[WKPrintingView _setAutodisplay:]):
  12089. (-[WKPrintingView _suspendAutodisplay]):
  12090. (-[WKPrintingView _delayedResumeAutodisplayTimerFired]):
  12091. Move setAutodisplay here.
  12092. 2011-03-11 Anders Carlsson <andersca@apple.com>
  12093. Reviewed by Sam Weinig.
  12094. Add a shared memory cache to the web process
  12095. https://bugs.webkit.org/show_bug.cgi?id=56232
  12096. Add a very simple shared memory cache to the web process, so that we don't have to allocate and
  12097. free memory over and over when painting.
  12098. * Shared/ShareableBitmap.cpp:
  12099. (WebKit::ShareableBitmap::create):
  12100. (WebKit::ShareableBitmap::createShareable):
  12101. (WebKit::ShareableBitmap::resize):
  12102. * Shared/ShareableBitmap.h:
  12103. (WebKit::ShareableBitmap::numBytesNeededForBitmapSize):
  12104. (WebKit::ShareableBitmap::sizeInBytes):
  12105. Rename numBytesForSize to numBytesNeededForBitmapSize.
  12106. * UIProcess/DrawingAreaProxyImpl.cpp:
  12107. (WebKit::DrawingAreaProxyImpl::update):
  12108. Always send back a DidUpdate message, even if we didn't use the update info.
  12109. This is needed so that the web process knows when the UI process is done with the shared memory inside
  12110. the update info struct.
  12111. * WebKit2.xcodeproj/project.pbxproj:
  12112. Add new files.
  12113. * WebProcess/WebPage/DrawingArea.h:
  12114. (WebKit::DrawingArea::didUpdate):
  12115. * WebProcess/WebPage/DrawingArea.messages.in:
  12116. DidUpdate now takes a boolean.
  12117. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  12118. (WebKit::sharedMemoryCache):
  12119. Add shared memory cache.
  12120. (WebKit::DrawingAreaImpl::~DrawingAreaImpl):
  12121. Return the shared memory to the cache.
  12122. (WebKit::DrawingAreaImpl::sendDidUpdateBackingStoreState):
  12123. display now takes an extra boolean.
  12124. (WebKit::DrawingAreaImpl::didUpdate):
  12125. Return the shared memory to the cache.
  12126. (WebKit::DrawingAreaImpl::display):
  12127. If useSharedMemoryCache is true, get shared memory from the cache.
  12128. * WebProcess/WebPage/SharedMemoryCache.cpp: Added.
  12129. (WebKit::SharedMemoryCache::acquireSharedMemory):
  12130. If the memory we currently hold on to is big enough, return it.
  12131. (WebKit::SharedMemoryCache::releaseSharedMemory):
  12132. If we're already holding on to shared memory, evict it if the returned
  12133. shared memory object is bigger than the one we currently hold.
  12134. (WebKit::SharedMemoryCache::clearCacheTimerFired):
  12135. Null out the shared memory object.
  12136. 2011-03-11 Jessie Berlin <jberlin@apple.com>
  12137. Reviewed by Adam Roben.
  12138. Crash calling WebContext::clearResourceCaches(InMemoryResourceCachesOnly) before the Web
  12139. Process has finished launching.
  12140. https://bugs.webkit.org/show_bug.cgi?id=56208
  12141. Only send the message if the Web Process is valid.
  12142. * UIProcess/WebContext.cpp:
  12143. (WebKit::WebContext::clearResourceCaches):
  12144. 2011-03-11 Anders Carlsson <andersca@apple.com>
  12145. Reviewed by Dan Bernstein.
  12146. Don't paint more than 60 times per second
  12147. https://bugs.webkit.org/show_bug.cgi?id=56206
  12148. <rdar://problem/9085989>
  12149. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  12150. (WebKit::DrawingAreaImpl::DrawingAreaImpl):
  12151. Initialize m_lastDisplayTime to 0. Change the display timer to call displayTimerFired.
  12152. (WebKit::DrawingAreaImpl::didUpdate):
  12153. Call displayTimerFired instead of display.
  12154. (WebKit::DrawingAreaImpl::displayTimerFired):
  12155. If we're asked to paint again less than 1/60th of a second after we've already painted,
  12156. defer painting.
  12157. (WebKit::DrawingAreaImpl::display):
  12158. Update m_lastDisplayTime.
  12159. 2011-03-11 Mark Rowe <mrowe@apple.com>
  12160. Reviewed by Alice Liu.
  12161. <rdar://problem/9120161> WKPageRestoreFromSessionState does not set the pending API request URL.
  12162. * UIProcess/cf/WebPageProxyCF.cpp:
  12163. (WebKit::WebPageProxy::restoreFromSessionStateData): If we're navigating to a back/forward item
  12164. as part of the restoration, call setPendingAPIRequestURL. When there's a provisional URL this will
  12165. be done by our call to loadURL elsewhere in the function.
  12166. 2011-03-10 Alexey Proskuryakov <ap@apple.com>
  12167. Reviewed by Jon Honeycutt.
  12168. WebKit2 UI process crashes if web process crashes while computing page rects for printing
  12169. https://bugs.webkit.org/show_bug.cgi?id=56160
  12170. <rdar://problem/9027410>
  12171. * UIProcess/API/mac/WKPrintingView.mm:
  12172. (-[WKPrintingView _suspendAutodisplay]): Added a null check for page, matching one that
  12173. we have when resuming autodisplay.
  12174. (-[WKPrintingView _delayedResumeAutodisplayTimerFired]): Added a FIXME.
  12175. (pageDidComputePageRects): Sanitize results coming from the web process (and avoid crashing
  12176. when there is a communication error, so results are all null).
  12177. (-[WKPrintingView knowsPageRange:]): If there is no page any more, we can't tell how many
  12178. pages it had.
  12179. (-[WKPrintingView rectForPage:]): Handle the case where we are neither calculating pages
  12180. nor knowing them, as it happens when the web process crashes.
  12181. 2011-03-10 Mark Rowe <mrowe@apple.com>
  12182. Rubber-stamped by Sam Weinig.
  12183. Part of <rdar://problem/8728860> WebKit2 needs to be made localizable
  12184. The presence of CFBundleDevelopmentRegion in the application's Info.plist prevents
  12185. the default localization that we set during launch from being respected.
  12186. * PluginProcess/Info.plist: Remove CFBundleDevelopmentRegion.
  12187. * WebProcess/Info.plist: Ditto.
  12188. 2011-03-10 Martin Robinson <mrobinson@igalia.com>
  12189. Build for WebKit2 GTK+ after r80714.
  12190. * GNUmakefile.am: Update source list.
  12191. * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
  12192. (WebKit::x11Display): Add missing semicolon.
  12193. 2011-03-10 Chris Fleizach <cfleizach@apple.com>
  12194. Reviewed by Darin Adler.
  12195. REGRESSION (WebKit2): VoiceOver focus no longer follows keyboard focus
  12196. https://bugs.webkit.org/show_bug.cgi?id=55959
  12197. NSApplication has to return the focused element within the app in order
  12198. for NSAccessibilityHandleFocusChanged() to work. The default implementation
  12199. relies on keyWindow. Consequently, in WK2, the WebProcess must override that method
  12200. to return the appropriate focused element within the WebProcess, since
  12201. there is no keyWindow.
  12202. * WebKit2.xcodeproj/project.pbxproj:
  12203. * WebProcess/WebPage/mac/AccessibilityWebPageObject.mm:
  12204. (-[AccessibilityWebPageObject accessibilityFocusedUIElement]):
  12205. * WebProcess/WebProcess.cpp:
  12206. (WebKit::WebProcess::focusedWebPage):
  12207. * WebProcess/WebProcess.h:
  12208. * WebProcess/mac/NSApplicationOverride.mm: Added.
  12209. (-[NSApplication accessibilityFocusedUIElement]):
  12210. 2011-03-10 Oleg Romashin <romaxa@gmail.com>
  12211. Reviewed by Andreas Kling.
  12212. Make Qt port compiling with ENABLE_PLUGIN_PROCESS=1, part3
  12213. Solving conflict of Qt and Xlib includes
  12214. * Shared/Plugins/NPIdentifierData.cpp:
  12215. * Shared/Plugins/NPIdentifierData.h:
  12216. * Shared/Plugins/NPObjectProxy.cpp:
  12217. * Shared/Plugins/NPVariantData.h:
  12218. 2011-03-10 Sam Weinig <sam@webkit.org>
  12219. Reviewed by Mark Rowe.
  12220. - Fix plugins in release and production builds.
  12221. * WebKit2.xcodeproj/project.pbxproj:
  12222. Make sure to base the PluginProcess target on the correct xcconfig file
  12223. in all configurations.
  12224. 2011-03-09 Matthew Delaney <mdelaney@apple.com>
  12225. Reviewed by Simon Fraser.
  12226. Plumb through settings for accelerated drawing for canvas
  12227. https://bugs.webkit.org/show_bug.cgi?id=56039
  12228. * Shared/WebPreferencesStore.h:
  12229. * UIProcess/API/C/WKPreferences.cpp:
  12230. * UIProcess/API/C/WKPreferencesPrivate.h:
  12231. * WebProcess/WebPage/WebPage.cpp:
  12232. 2011-03-10 Jessie Berlin <jberlin@apple.com>
  12233. Reviewed by Oliver Hunt and Brian Weinstein.
  12234. WebKit2: Need a way to clear only the in-memory resource caches
  12235. https://bugs.webkit.org/show_bug.cgi?id=56022
  12236. Add a parameter to WKContextClearResourceCaches to specify whether to clear all the caches
  12237. or just the memory caches.
  12238. * Shared/ResourceCachesToClear.h: Added.
  12239. * UIProcess/API/C/WKAPICast.h:
  12240. (WebKit::toResourceCachesToClear):
  12241. * UIProcess/API/C/WKContext.cpp:
  12242. (WKContextClearResourceCaches):
  12243. Add the new parameter.
  12244. * UIProcess/API/C/WKContext.h:
  12245. * UIProcess/WebContext.cpp:
  12246. (WebKit::WebContext::clearResourceCaches):
  12247. Ditto.
  12248. * UIProcess/WebContext.h:
  12249. * WebProcess/WebProcess.cpp:
  12250. (WebKit::WebProcess::clearResourceCaches):
  12251. Pass the new parameter through to the platform-specific functions.
  12252. * WebProcess/WebProcess.h:
  12253. Add the new parameter and give it a default of AllResourceCaches.
  12254. * WebProcess/WebProcess.messages.in:
  12255. Ditto.
  12256. * WebProcess/gtk/WebProcessGtk.cpp:
  12257. (WebKit::WebProcess::platformClearResourceCaches):
  12258. Ditto.
  12259. * WebProcess/qt/WebProcessQt.cpp:
  12260. (WebKit::WebProcess::platformClearResourceCaches):
  12261. Ditto.
  12262. * WebProcess/win/WebProcessWin.cpp:
  12263. (WebKit::WebProcess::platformClearResourceCaches):
  12264. When told to clear only the in-memory caches, return early so as not to clear the CFNetwork
  12265. disk cache.
  12266. * WebProcess/mac/WebProcessMac.mm:
  12267. (WebKit::WebProcess::platformClearResourceCaches):
  12268. Ditto.
  12269. * WebKit2.xcodeproj/project.pbxproj:
  12270. Add ResourceCachesToClear.h
  12271. * win/WebKit2.vcproj:
  12272. Ditto.
  12273. 2011-03-10 Jeff Miller <jeffm@apple.com>
  12274. Reviewed by Adam Roben.
  12275. WKViewRegisterEditCommandCallback should use WKViewUndoType
  12276. https://bugs.webkit.org/show_bug.cgi?id=56120
  12277. * UIProcess/API/C/win/WKView.h: Change undoOrRedo parameter in WKViewRegisterEditCommandCallback to be WKViewUndoType.
  12278. 2011-03-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  12279. Reviewed by Kenneth Rohde Christiansen.
  12280. Tiled backing store's delegated scroll request uses incorrect convention
  12281. https://bugs.webkit.org/show_bug.cgi?id=56011
  12282. Adapt all of the internal API to match the delta to point
  12283. conversion at the WebCore side.
  12284. * UIProcess/API/qt/qwkpage.cpp:
  12285. (QWKPagePrivate::pageDidRequestScroll):
  12286. * UIProcess/API/qt/qwkpage_p.h:
  12287. * UIProcess/PageClient.h:
  12288. * UIProcess/WebPageProxy.cpp:
  12289. (WebKit::WebPageProxy::pageDidRequestScroll):
  12290. * UIProcess/WebPageProxy.h:
  12291. * UIProcess/WebPageProxy.messages.in:
  12292. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  12293. (WebKit::WebChromeClient::delegatedScrollRequested):
  12294. * WebProcess/WebCoreSupport/WebChromeClient.h:
  12295. * WebProcess/WebPage/WebPage.cpp:
  12296. (WebKit::WebPage::pageDidRequestScroll):
  12297. * WebProcess/WebPage/WebPage.h:
  12298. 2011-03-10 Balazs Kelemen <kbalazs@webkit.org>
  12299. Reviewed by Andreas Kling.
  12300. [WK2] Make non-transparent windowless plugins paint on X11
  12301. https://bugs.webkit.org/show_bug.cgi?id=55660
  12302. Implement painting for non-transparent windowless X11 plugins.
  12303. The essence of the logic has been adapted from WebCore.
  12304. The implementation is stubbed for GTK and working only on Qt
  12305. but it should be really easy to finish it for GTK.
  12306. * WebKit2.pro:
  12307. * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
  12308. (WebKit::NPN_GetValue): Handle X11 specific values that are necessary.
  12309. * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
  12310. (WebKit::NetscapePlugin::NetscapePlugin): Initialize the X11 specific
  12311. members that has been added.
  12312. (WebKit::NetscapePlugin::callSetWindow): Always set the x and y coordinates
  12313. of the NP_Window to 0 on X11 since we are using a backings store as the
  12314. painting area for the plugin.
  12315. * WebProcess/Plugins/Netscape/NetscapePlugin.h:
  12316. * WebProcess/Plugins/Netscape/gtk/NetscapePluginGtk.cpp: Removed in favour
  12317. of a common implementation for X11.
  12318. * WebProcess/Plugins/Netscape/qt/NetscapePluginQt.cpp: Ditto.
  12319. * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp: Added.
  12320. (WebKit::getPluginDisplay):
  12321. Platform specific static getters.
  12322. (WebKit::x11Display):
  12323. (WebKit::displayDepth):
  12324. (WebKit::rootWindowID):
  12325. (WebKit::x11Screen):
  12326. (WebKit::NetscapePlugin::platformPostInitialize): Set up the visual
  12327. settings and the colormap for the plugin.
  12328. (WebKit::NetscapePlugin::platformDestroy):
  12329. (WebKit::NetscapePlugin::platformInvalidate): Remained stub.
  12330. (WebKit::NetscapePlugin::platformGeometryDidChange): Create a new
  12331. pixmap that fits the geometry.
  12332. (WebKit::NetscapePlugin::platformPaint): Propagate a paint event
  12333. to the plugin, sync with it if necessary and draw the pixmap to
  12334. the screen.
  12335. (WebKit::toNP): Remained stub.
  12336. (WebKit::NetscapePlugin::platformHandleMouseEvent): Remained stub.
  12337. (WebKit::NetscapePlugin::platformHandleWheelEvent): Remained stub.
  12338. (WebKit::NetscapePlugin::platformSetFocus): Remained stub.
  12339. (WebKit::NetscapePlugin::platformHandleMouseEnterEvent): Remained stub.
  12340. (WebKit::NetscapePlugin::platformHandleMouseLeaveEvent): Remained stub.
  12341. (WebKit::NetscapePlugin::platformHandleKeyboardEvent): Remained stub.
  12342. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  12343. (WebKit::WebFrameLoaderClient::createPlugin): Hack. Inject wmode=opaque
  12344. key-value pair to the plugin parameters to force Flash to act in
  12345. non-transparent windowless mode. Qt also doing this in WebCore.
  12346. 2011-03-09 Peter Kasting <pkasting@google.com>
  12347. Reviewed by Mihai Parparita.
  12348. Unify Windows version checks.
  12349. https://bugs.webkit.org/show_bug.cgi?id=55979
  12350. * UIProcess/win/WebPageProxyWin.cpp:
  12351. (WebKit::WebPageProxy::standardUserAgent):
  12352. 2011-03-09 Adele Peterson <adele@apple.com>
  12353. Reviewed by Anders Carlsson.
  12354. Fix for https://bugs.webkit.org/show_bug.cgi?id=56068
  12355. <rdar://problem/9058245> WebKit2: Can't uncheck 'Spelling and Grammar' contextual items
  12356. * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::contextMenuItemSelected):
  12357. Add cases for ContextMenuItemTagCorrectSpellingAutomatically, ContextMenuItemTagCheckSpellingWhileTyping,
  12358. and ContextMenuItemTagCheckGrammarWithSpelling
  12359. 2011-03-09 Alexey Proskuryakov <ap@apple.com>
  12360. Reviewed by Dan Bernstein.
  12361. Frequent crashes when printing in WebPageProxy::setAutodisplay
  12362. https://bugs.webkit.org/show_bug.cgi?id=56057
  12363. <rdar://problem/9053290>
  12364. * UIProcess/API/mac/WKPrintingView.mm: (-[WKPrintingView _delayedResumeAutodisplayTimerFired]):
  12365. Null check the page, there is no reason for it to still exist.
  12366. 2011-03-09 Brent Fulgham <bfulgham@webkit.org>
  12367. Unreviewed build correction.
  12368. * UIProcess/DrawingAreaProxy.messages.in: Exclude the other
  12369. method using LayerTreeContext for non-accelerated composition case.
  12370. 2011-03-09 Sam Weinig <sam@webkit.org>
  12371. Reviewed by Anders Carlsson.
  12372. Change plugins to use their own executable on Mac OS X
  12373. https://bugs.webkit.org/show_bug.cgi?id=55991
  12374. * Configurations/PluginProcess.xcconfig: Copied from Source/WebKit2/Configurations/WebProcess.xcconfig.
  12375. * PluginProcess/Info.plist: Copied from Source/WebKit2/WebProcess/Info.plist.
  12376. Add files necessary for adding PluginProcess.app.
  12377. * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
  12378. (WebKit::ProcessLauncher::launchProcess):
  12379. Launch the PluginProcess.app when launching a plugin process.
  12380. * WebKit2.xcodeproj/project.pbxproj:
  12381. Add new executable and new files, removes some unneeded copying
  12382. and duplicate compiling of files.
  12383. * WebProcess/Info.plist:
  12384. Sorted.
  12385. 2011-03-09 Jessie Berlin <jberlin@apple.com>
  12386. Reviewed by Adam Roben.
  12387. Use the Cookie Storage from the Private Browsing Storage Session directly
  12388. https://bugs.webkit.org/show_bug.cgi?id=55986
  12389. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  12390. (InitWebCoreSystemInterface):
  12391. 2011-03-09 Alejandro G. Castro <alex@igalia.com>
  12392. Fix compilation after r80596, add soup Download stubs.
  12393. * GNUmakefile.am:
  12394. * WebProcess/Downloads/soup/DownloadSoup.cpp: Added.
  12395. (WebKit::Download::start):
  12396. (WebKit::Download::startWithHandle):
  12397. (WebKit::Download::cancel):
  12398. (WebKit::Download::platformInvalidate):
  12399. (WebKit::Download::didDecideDestination):
  12400. (WebKit::Download::platformDidFinish):
  12401. 2011-03-09 Alejandro G. Castro <alex@igalia.com>
  12402. Fix GTK+ compilation after r80619. Add WebFullScreenManager.
  12403. * GNUmakefile.am:
  12404. 2011-03-08 Jer Noble <jer.noble@apple.com>
  12405. Reviewed by Sam Weinig.
  12406. WebKit2: Plumb through the FULLSCREEN_API Chrome client calls
  12407. https://bugs.webkit.org/show_bug.cgi?id=55273
  12408. The FULLSCREEN_API Chrome client calls need to be plumbed through from the
  12409. WebProcess to the UIProcess. To do this, WebFullScreenManager (and Proxy)
  12410. classes have been added to WebPage.
  12411. * DerivedSources.make: Added rules necessary to build DerivedSources for new .in files.
  12412. * DerivedSources.pro: Ditto.
  12413. * Platform/CoreIPC/MessageID.h: Added message types for WebFullScreenManager.
  12414. * Shared/API/c/WKBase.h: Added WKFullScreenManagerRef.
  12415. * Shared/APIObject.h: Added APIType for WebFullScreenManager.
  12416. * UIProcess/WebFullScreenManagerProxy.cpp: Added.
  12417. * UIProcess/WebFullScreenManagerProxy.h: Added.
  12418. * UIProcess/WebFullScreenManagerProxy.messages.in: Added.
  12419. * UIProcess/WebPageProxy.cpp:
  12420. (WebKit::WebPageProxy::close): Invalidate and clear m_fullScreenManager.
  12421. (WebKit::WebPageProxy::processDidCrash): Ditto.
  12422. (WebKit::WebPageProxy::didReceiveMessage): Pass messages on to WebFullScreenManagerProxy.
  12423. (WebKit::WebPageProxy::didReceiveSyncMessage): Ditto.
  12424. (WebKit::WebPageProxy::fullScreenManager): Added. Lazy instantiation of m_fullScreenManager.
  12425. * UIProcess/WebPageProxy.h:
  12426. * UIProcess/WebPageProxy.messages.in:
  12427. * UIProcess/WebUIClient.cpp:
  12428. * UIProcess/WebUIClient.h:
  12429. * WebKit2.xcodeproj/project.pbxproj: Added references to new classes in project file.
  12430. * WebKit2.pro: Ditto.
  12431. * win/WebKit2.vcproj: Ditto.
  12432. * WebKit2.pri: Added new directories to include file path.
  12433. * win/WebKit2Common.vsprops: Ditto.
  12434. * WebProcess/FullScreen/WebFullScreenManager.cpp: Added.
  12435. * WebProcess/FullScreen/WebFullScreenManager.h: Added.
  12436. * WebProcess/FullScreen/WebFullScreenManager.messages.in: Added.
  12437. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  12438. (WebKit::WebChromeClient::supportsFullScreenForElement): Pass through to WebFullScreenManager.
  12439. (WebKit::WebChromeClient::enterFullScreenForElement): Ditto.
  12440. (WebKit::WebChromeClient::exitFullScreenForElement): Ditto.
  12441. * WebProcess/WebPage/WebPage.cpp:
  12442. (WebKit::WebPage::close): Invalidate and clear m_fullScreenManager.
  12443. (WebKit::WebPage::fullScreenManager): Lazy instantiation of m_fullScreenManager.
  12444. (WebKit::WebPage::didReceiveMessage): Pass messages through to WebFullScreenManager.
  12445. * WebProcess/WebPage/WebPage.h:
  12446. 2011-03-08 Jer Noble <jer.noble@apple.com>
  12447. Reviewed by Sam Weinig.
  12448. WebKit2: Plumb through the "supportsFullScreen" preference.
  12449. https://bugs.webkit.org/show_bug.cgi?id=55261
  12450. The "supportsFullScreen" preference needs to be plumbed through from
  12451. the UIProcess to the WebProcess.
  12452. * Shared/WebPreferencesStore.h: Add a new macro entry.
  12453. * UIProcess/API/C/WKPreferences.cpp: Implement preferences getter and setter.
  12454. (WKPreferencesSetFullScreenEnabled):
  12455. (WKPreferencesGetFullScreenEnabled):
  12456. * UIProcess/API/C/WKPreferences.h:
  12457. * WebProcess/WebPage/WebPage.cpp:
  12458. (WebKit::WebPage::updatePreferences): Sync the fullScreenEnabled setting through to
  12459. the settings object.
  12460. 2011-03-08 Jeff Miller <jeffm@apple.com>
  12461. Reviewed by Adele Peterson.
  12462. WebKit2: Implement Windows glue for Undo/Redo
  12463. https://bugs.webkit.org/show_bug.cgi?id=55961
  12464. Expose Undo/Redo infrastructure through WKView on Windows by
  12465. adding an undo client as well as APIs to reapply and unapply
  12466. an edit command.
  12467. * UIProcess/API/C/win/WKView.cpp:
  12468. (WKViewSetViewUndoClient): Added.
  12469. (WKViewReapplyEditCommand): Added.
  12470. (WKViewUnapplyEditCommand): Added.
  12471. * UIProcess/API/C/win/WKView.h: Added WKViewUndoClient, WKViewSetViewUndoClient(), and WKViewUnapplyEditCommand().
  12472. * UIProcess/WebPageProxy.cpp:
  12473. (WebKit::WebPageProxy::isValidEditCommand): Added, used to validated an edit command from a WKView API.
  12474. * UIProcess/WebPageProxy.h: Added isValidEditCommand().
  12475. * UIProcess/win/WebUndoClient.cpp: Added, APIClient for WKViewUndoClient.
  12476. (WebKit::WebUndoClient::registerEditCommand): Added.
  12477. (WebKit::WebUndoClient::clearAllEditCommands): Added.
  12478. * UIProcess/win/WebUndoClient.h: Added, APIClient for WKViewUndoClient.
  12479. * UIProcess/win/WebView.cpp:
  12480. (WebKit::WebView::initializeUndoClient): Added.
  12481. (WebKit::WebView::close): Clear out undo client.
  12482. (WebKit::WebView::registerEditCommand): Implemented to call through to WKViewUndoClient.
  12483. (WebKit::WebView::clearAllEditCommands): Implmented to call through to WKViewUndoClient.
  12484. (WebKit::WebView::reapplyEditCommand): Added.
  12485. (WebKit::WebView::unapplyEditCommand): Added.
  12486. * UIProcess/win/WebView.h: Added undo client support.
  12487. * win/WebKit2.vcproj: Added WebUndoClient.cpp and WebUndoClient.h.
  12488. 2011-03-08 Jeff Miller <jeffm@apple.com>
  12489. Reviewed by Sam Weinig.
  12490. WebKit2: Expose WebEditCommandProxy in the C API on Windows
  12491. https://bugs.webkit.org/show_bug.cgi?id=55962
  12492. Make WebEditCommandProxy a subclass of APIObject, and define
  12493. WKEditCommandRef as the type that will be exposed through the C API.
  12494. * Shared/API/c/win/WKBaseWin.h: Add WKEditCommandRef.
  12495. * Shared/APIObject.h: Add platform-specific TypeEditCommandProxy.
  12496. * UIProcess/API/C/win/WKAPICastWin.h: Add API mapping for WKEditCommandRef.
  12497. * UIProcess/WebEditCommandProxy.h: Subclass WebEditCommandProxy from APIObject.
  12498. (WebKit::WebEditCommandProxy::type): Added.
  12499. 2011-03-08 Jeff Miller <jeffm@apple.com>
  12500. Reviewed by Oliver Hunt.
  12501. WebKit2: Redo is broken
  12502. https://bugs.webkit.org/show_bug.cgi?id=55978
  12503. WebEditCommandProxy::unapply() and WebEditCommandProxy::reapply() were registering the wrong edit command when an undo or redo happens.
  12504. For example, when we unapply(), we should register a Redo command, not an Undo command.
  12505. * UIProcess/WebEditCommandProxy.cpp:
  12506. (WebKit::WebEditCommandProxy::unapply): Register a Redo command, not an Undo command.
  12507. (WebKit::WebEditCommandProxy::reapply): Register an Undo command, not a Redo command.
  12508. 2011-03-08 Brent Fulgham <bfulgham@webkit.org>
  12509. Reviewed by Adam Roben.
  12510. https://bugs.webkit.org/show_bug.cgi?id=55977
  12511. Refine CF/CFNet distinctions for better code sharing.
  12512. 1. Rename Downloads/cf/win/DownloadCFNetWin.cpp to DownloadCFWin.cpp
  12513. since it does not use any CFNETWORK features.
  12514. 2. Create new cfnet directory.
  12515. 3. Move Downloads/cf/DownloadCFNet.cpp to Downloads/cfnet
  12516. 4. Update project file.
  12517. * WebProcess/Downloads/cf/DownloadCFNet.cpp: Removed.
  12518. * WebProcess/Downloads/cf/win/DownloadCFNetWin.cpp: Removed.
  12519. * WebProcess/Downloads/cf/win/DownloadCFWin.cpp: Copied from WebProcess/Downloads/cf/win/DownloadCFNetWin.cpp.
  12520. * WebProcess/Downloads/cfnet: Added.
  12521. * WebProcess/Downloads/cfnet/DownloadCFNet.cpp: Copied from WebProcess/Downloads/cf/DownloadCFNet.cpp.
  12522. * win/WebKit2.vcproj:
  12523. 2011-03-08 Mark Rowe <mrowe@apple.com>
  12524. Reviewed by Brady Eidson.
  12525. <http://webkit.org/b/55976> Provisional URL should be loaded when restoring session state even if there are back / forward list entries.
  12526. * UIProcess/cf/WebPageProxyCF.cpp:
  12527. (WebKit::WebPageProxy::restoreFromSessionStateData): If there's a provisional URL that we will load then restore the session state
  12528. without navigating to the current item.
  12529. * WebProcess/WebPage/WebPage.messages.in: Expose the ability to restore the session state without navigating to the current item.
  12530. 2011-03-08 Brent Fulgham <bfulgham@webkit.org>
  12531. Reviewed by Anders Carlsson.
  12532. https://bugs.webkit.org/show_bug.cgi?id=55956
  12533. WebKit2 Changes to correct WinCairo port build
  12534. * Shared/LayerTreeContext.h: Don't exclude CoreIPC declarations for non-accelerated
  12535. compositing case.
  12536. * UIProcess/DrawingAreaProxy.h: Add "stdint.h" include needed for Cairo build.
  12537. * UIProcess/DrawingAreaProxyImpl.cpp: Exclude accelerated compositing code for
  12538. WinCairo build.
  12539. (WebKit::DrawingAreaProxyImpl::~DrawingAreaProxyImpl):
  12540. (WebKit::DrawingAreaProxyImpl::didUpdateBackingStoreState):
  12541. (WebKit::DrawingAreaProxyImpl::enterAcceleratedCompositingMode):
  12542. (WebKit::DrawingAreaProxyImpl::exitAcceleratedCompositingMode):
  12543. (WebKit::DrawingAreaProxyImpl::sendUpdateBackingStoreState):
  12544. (WebKit::DrawingAreaProxyImpl::waitForAndDispatchDidUpdateBackingStoreState):
  12545. * UIProcess/DrawingAreaProxyImpl.h: Exclude declarations for code only used when
  12546. accelerated compositing is enabled.
  12547. (WebKit::DrawingAreaProxyImpl::isInAcceleratedCompositingMode):
  12548. * UIProcess/win/WebView.cpp: Protect CG-specific drawing code.
  12549. (WebKit::WebView::setFindIndicator):
  12550. * WebProcess/Downloads/Download.h: Allow CFLite implentation to share overwrite flag,
  12551. as well as destination and bundle paths.
  12552. * WebProcess/Downloads/curl/DownloadCurl.cpp: Remove stub (to share CFNet implementation
  12553. of file handling. This will be moved to a common area in a future patch.)
  12554. * WebProcess/WebPage/DrawingAreaImpl.cpp: Exclude accelerated-compositing paths.
  12555. (WebKit::DrawingAreaImpl::layerHostDidFlushLayers):
  12556. (WebKit::DrawingAreaImpl::sendDidUpdateBackingStoreState):
  12557. (WebKit::DrawingAreaImpl::exitAcceleratedCompositingMode):
  12558. * WebProcess/WebPage/WebPage.cpp: Protect CG-specific drawing code.
  12559. (WebKit::WebPage::drawRectToPDF):
  12560. (WebKit::WebPage::drawPagesToPDF):
  12561. * win/WebKit2.vcproj: Exclude unused LayerTreeContext from WinCairo
  12562. 2011-03-08 Ivan Krstić <ike@apple.com>
  12563. Reviewed by Sam Weinig.
  12564. Re-fix: can't paste from 3rd party text editor into WebKit2 window
  12565. <rdar://problem/8978624>
  12566. * WebProcess/com.apple.WebProcess.sb:
  12567. 2011-03-08 Martin Robinson <mrobinson@igalia.com>
  12568. Fix the WebKit2 compilation after r80578.
  12569. * UIProcess/gtk/WebView.cpp:
  12570. (WebKit::WebView::setFocus): Added.
  12571. * UIProcess/gtk/WebView.h:
  12572. 2011-03-08 Jessie Berlin <jberlin@apple.com>
  12573. Reviewed by Anders Carlsson.
  12574. Crash in CFNetwork visiting google.com
  12575. https://bugs.webkit.org/show_bug.cgi?id=55958
  12576. * Shared/API/c/cf/WKURLResponseCF.cpp:
  12577. (WKURLResponseCopyCFURLResponse):
  12578. If the response to copy is null, return 0;
  12579. 2011-03-08 John Sullivan <sullivan@apple.com>
  12580. Reverted the patch for https://bugs.webkit.org/show_bug.cgi?id=55940
  12581. The patch was insufficient, and it wasn't useful for the intended client use either.
  12582. * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
  12583. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  12584. (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
  12585. 2011-03-08 Alejandro G. Castro <alex@igalia.com>
  12586. Unreviewed, fixed GTK+ compilation after r80569.
  12587. * UIProcess/gtk/WebView.cpp:
  12588. (WebKit::WebView::windowToScreen):
  12589. * UIProcess/gtk/WebView.h:
  12590. 2011-03-08 Chris Fleizach <cfleizach@apple.com>
  12591. Reviewed by Sam Weinig.
  12592. WK2: Cannot set focus on an element when focus is outside of WKView
  12593. https://bugs.webkit.org/show_bug.cgi?id=55281
  12594. * UIProcess/API/mac/PageClientImpl.h:
  12595. * UIProcess/API/mac/PageClientImpl.mm:
  12596. (WebKit::PageClientImpl::setFocus):
  12597. * UIProcess/API/qt/qwkpage_p.h:
  12598. (QWKPagePrivate::setFocus):
  12599. * UIProcess/PageClient.h:
  12600. * UIProcess/WebPageProxy.cpp:
  12601. (WebKit::WebPageProxy::setFocus):
  12602. * UIProcess/WebPageProxy.h:
  12603. * UIProcess/WebPageProxy.messages.in:
  12604. * UIProcess/win/WebView.h:
  12605. (WebKit::WebView::setFocus):
  12606. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  12607. (WebKit::WebChromeClient::focus):
  12608. (WebKit::WebChromeClient::unfocus):
  12609. 2011-03-08 Jeff Miller <jeffm@apple.com>
  12610. Unreviewed, fix last change so WKBaseWin.h is in alphabetical order in the project XML.
  12611. * win/WebKit2.vcproj: Move WKBaseWin.h to be in alphabetical order.
  12612. 2011-03-08 Jeff Miller <jeffm@apple.com>
  12613. Reviewed by Darin Adler.
  12614. Remove Source/WebKit2/UIProcess/API/C/win/WKBaseWin.h
  12615. https://bugs.webkit.org/show_bug.cgi?id=55952
  12616. * UIProcess/API/C/win/WKBaseWin.h: Removed.
  12617. * win/WebKit2.vcproj: Refer to the Shared version of WKBaseWin.h instead of the one in UIProcess.
  12618. 2011-03-08 Alejandro G. Castro <alex@igalia.com>
  12619. Reviewed by Martin Robinson.
  12620. [GTK] Add new files to compilation after r77974
  12621. https://bugs.webkit.org/show_bug.cgi?id=54076
  12622. The commit added new code to allow passing context to policy
  12623. delegate methods, we also added dummy ResourceRequest and
  12624. ResourceResponse decoders until we implement them.
  12625. * GNUmakefile.am:
  12626. * Shared/gtk/WebCoreArgumentCodersGtk.cpp:
  12627. (CoreIPC::decodeResourceRequest):
  12628. (CoreIPC::decodeResourceResponse):
  12629. 2011-03-08 Chris Fleizach <cfleizach@apple.com>
  12630. Reviewed by Darin Adler.
  12631. AX: Webkit2 not sending UAZoomFocusChanged notifications
  12632. https://bugs.webkit.org/show_bug.cgi?id=55916
  12633. Needed to implement the windowToScreen() method so that the right frame
  12634. could be calculated to send for zoom focus changes.
  12635. * UIProcess/API/mac/PageClientImpl.h:
  12636. * UIProcess/API/mac/PageClientImpl.mm:
  12637. (WebKit::PageClientImpl::windowToScreen):
  12638. * UIProcess/API/qt/qwkpage.cpp:
  12639. (QWKPagePrivate::windowToScreen):
  12640. * UIProcess/API/qt/qwkpage_p.h:
  12641. * UIProcess/PageClient.h:
  12642. * UIProcess/WebPageProxy.cpp:
  12643. (WebKit::WebPageProxy::windowToScreen):
  12644. * UIProcess/WebPageProxy.h:
  12645. * UIProcess/WebPageProxy.messages.in:
  12646. * UIProcess/win/WebView.cpp:
  12647. (WebKit::WebView::windowToScreen):
  12648. * UIProcess/win/WebView.h:
  12649. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  12650. (WebKit::WebChromeClient::windowToScreen):
  12651. * WebProcess/WebPage/WebPage.cpp:
  12652. (WebKit::WebPage::windowToScreen):
  12653. * WebProcess/WebPage/WebPage.h:
  12654. 2011-03-08 John Sullivan <sullivan@apple.com>
  12655. Reviewed by Darin Adler.
  12656. https://bugs.webkit.org/show_bug.cgi?id=55940
  12657. WebKit2 should support Ignore policy from injected bundle client
  12658. * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
  12659. Added WKBundlePagePolicyActionIgnore.
  12660. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  12661. (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
  12662. If the injected bundle client returns WKBundlePagePolicyActionIgnore, convert it
  12663. to the loader's PolicyIgnore.
  12664. 2011-03-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  12665. Reviewed by Kenneth Rohde Christiansen.
  12666. [Qt] [Symbian] [WK2] Fix building WebKit 2 API tests
  12667. https://bugs.webkit.org/show_bug.cgi?id=55876
  12668. Make sure TESTS_SOURCE_DIR is set for Symbian the same way
  12669. as it is for WK1.
  12670. * UIProcess/API/qt/tests/qgraphicswkview/tst_qgraphicswkview.cpp:
  12671. (tst_QGraphicsWKView::loadEmptyPage):
  12672. * UIProcess/API/qt/tests/tests.pri:
  12673. 2011-03-07 Damian Kaleta <dkaleta@apple.com>
  12674. Reviewed by Anders Carlsson.
  12675. QuickTime plugin should opt in to a 32-bit non-executable heap
  12676. https://bugs.webkit.org/show_bug.cgi?id=55704
  12677. <rdar://problem/8105706>
  12678. * UIProcess/Plugins/PluginProcessProxy.cpp:
  12679. (WebKit::pluginNeedsExecutableHeap): Decides per plugin if it should opt-in to a 32-bit non-executable heap.
  12680. By default it should opt-out.
  12681. (WebKit::PluginProcessProxy::PluginProcessProxy):
  12682. 2011-03-07 Sam Weinig <sam@webkit.org>
  12683. Reviewed by Anders Carlsson.
  12684. Add unableToImplementPolicy callback for WebKit2 policy client
  12685. <rdar://problem/9071902>
  12686. https://bugs.webkit.org/show_bug.cgi?id=55884
  12687. * UIProcess/API/C/WKPage.h:
  12688. * UIProcess/WebPageProxy.cpp:
  12689. (WebKit::WebPageProxy::unableToImplementPolicy):
  12690. * UIProcess/WebPageProxy.h:
  12691. * UIProcess/WebPageProxy.messages.in:
  12692. * UIProcess/WebPolicyClient.cpp:
  12693. (WebKit::WebPolicyClient::unableToImplementPolicy):
  12694. * UIProcess/WebPolicyClient.h:
  12695. * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
  12696. * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp:
  12697. (WebKit::InjectedBundlePagePolicyClient::unableToImplementPolicy):
  12698. * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.h:
  12699. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  12700. (WebKit::WebFrameLoaderClient::dispatchUnableToImplementPolicy):
  12701. Pipe unableToImplementPolicy through both the bundle and the main WebKit2 API.
  12702. 2011-03-07 Sam Weinig <sam@webkit.org>
  12703. Reviewed by Anders Carlsson.
  12704. Replace WebKit2's decidePolicyForMIMEType with decidePolicyForResponse
  12705. https://bugs.webkit.org/show_bug.cgi?id=55827
  12706. - Renamed FrameLoaderClient::dispatchDecidePolicyForMIMEType to dispatchDecidePolicyForResponse
  12707. and pass the entire response, instead of just the MIMEType.
  12708. - Updated both UIProcess API and bundle API to also be based on the whole response, not just the
  12709. MIMEType.
  12710. * UIProcess/API/C/WKPage.h:
  12711. * UIProcess/WebPageProxy.cpp:
  12712. (WebKit::WebPageProxy::decidePolicyForResponse):
  12713. * UIProcess/WebPageProxy.h:
  12714. * UIProcess/WebPageProxy.messages.in:
  12715. * UIProcess/WebPolicyClient.cpp:
  12716. (WebKit::WebPolicyClient::decidePolicyForResponse):
  12717. * UIProcess/WebPolicyClient.h:
  12718. * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
  12719. * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp:
  12720. (WebKit::InjectedBundlePagePolicyClient::decidePolicyForResponse):
  12721. * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.h:
  12722. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  12723. (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
  12724. * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
  12725. 2011-03-06 Jessie Berlin <jberlin@apple.com>
  12726. Reviewed by Sam Weinig.
  12727. WebKit2: Use CFNetwork Sessions API.
  12728. https://bugs.webkit.org/show_bug.cgi?id=55435.
  12729. When Private Browsing is enabled, use cookies from a in-memory cookie storage based on the
  12730. Private Browsing Storage Session.
  12731. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  12732. (InitWebCoreSystemInterface):
  12733. Add support for using the new WKSI functions in WebCore.
  12734. 2011-03-06 Oleg Romashin <romaxa@gmail.com>
  12735. Reviewed by Kenneth Rohde Christiansen.
  12736. [Qt][WK2] Make Qt port compiling with ENABLE_PLUGIN_PROCESS=1, part1
  12737. Adding dummy Qt files for Plugin Process implementation,
  12738. Adding missing sources into Qt pro files
  12739. https://bugs.webkit.org/show_bug.cgi?id=55719
  12740. * DerivedSources.pro:
  12741. * PluginProcess/qt: Added.
  12742. * PluginProcess/qt/PluginControllerProxyQt.cpp: Added.
  12743. (WebKit::PluginControllerProxy::platformInitialize):
  12744. (WebKit::PluginControllerProxy::platformDestroy):
  12745. (WebKit::PluginControllerProxy::platformGeometryDidChange):
  12746. * PluginProcess/qt/PluginProcessMainQt.cpp: Added.
  12747. (WebKit::PluginProcessMain):
  12748. * PluginProcess/qt/PluginProcessQt.cpp: Added.
  12749. (WebKit::PluginProcess::platformInitialize):
  12750. * UIProcess/Plugins/qt/PluginProcessProxyQt.cpp: Added.
  12751. (WebKit::PluginProcessProxy::platformInitializePluginProcess):
  12752. * WebKit2.pri:
  12753. * WebKit2.pro:
  12754. * WebKit2API.pri:
  12755. * WebProcess/Plugins/Netscape/qt/PluginProxyQt.cpp: Added.
  12756. (WebKit::PluginProxy::needsBackingStore):
  12757. 2011-03-05 Sam Weinig <sam@webkit.org>
  12758. Reviewed by Dan Bernstein.
  12759. Remove unneeded onPageClose function from DrawingArea
  12760. https://bugs.webkit.org/show_bug.cgi?id=55836
  12761. * WebProcess/WebPage/DrawingArea.h:
  12762. Remove empty function.
  12763. * WebProcess/WebPage/WebPage.cpp:
  12764. (WebKit::WebPage::close):
  12765. Remove only called
  12766. 2011-03-04 Jon Honeycutt <jhoneycutt@apple.com>
  12767. WK2 Mac build fix.
  12768. * UIProcess/API/C/WKPage.cpp:
  12769. (WKPageComputePagesForPrinting):
  12770. (WKPageBeginPrinting):
  12771. * UIProcess/API/C/WKPagePrivate.h:
  12772. 2011-03-04 Jon Honeycutt <jhoneycutt@apple.com>
  12773. WK2 Mac build fix.
  12774. * UIProcess/API/C/WKPagePrivate.h:
  12775. 2011-03-04 Jon Honeycutt <jhoneycutt@apple.com>
  12776. WK2 needs printing support on Windows
  12777. https://bugs.webkit.org/show_bug.cgi?id=55800
  12778. <rdar://problem/8903808>
  12779. Reviewed by Darin Adler.
  12780. * UIProcess/API/C/WKPage.cpp:
  12781. (ComputedPagesContext::ComputedPagesContext):
  12782. (computedPagesCallback):
  12783. From the Vector of WebCore::IntRects, build up a Vector of WKRects.
  12784. Call the callback, passing these rects and the scale factor.
  12785. (printInfoFromWKPrintInfo):
  12786. Return a PrintInfo structure from the WKPrintInfo.
  12787. (WKPageComputePagesForPrinting):
  12788. Call WebPageProxy::computePagesForPrinting(). Pass
  12789. computedPagesCallback as the callback function, so that we can
  12790. translate the WebCore rect type to WKRect before calling the caller's
  12791. callback function.
  12792. (WKPageBeginPrinting):
  12793. Call WebPageProxy::beginPrinting().
  12794. (WKPageDrawPagesToPDF):
  12795. Call WebPageProxy::drawPagesToPDF().
  12796. * UIProcess/API/C/WKPagePrivate.h:
  12797. Declare the WKPrintInfo type and new functions.
  12798. * UIProcess/WebPageProxy.cpp:
  12799. Compile this code on Windows.
  12800. * UIProcess/WebPageProxy.h:
  12801. Ditto.
  12802. * UIProcess/win/WebView.cpp:
  12803. (WebKit::WebView::paint):
  12804. We're painting the window; leave printing mode.
  12805. * WebProcess/WebPage/WebPage.cpp:
  12806. Compile this code on Windows.
  12807. * WebProcess/WebPage/WebPage.h:
  12808. Ditto.
  12809. * WebProcess/WebPage/WebPage.messages.in:
  12810. Ditto.
  12811. 2011-03-04 Steve Falkenburg <sfalken@apple.com>
  12812. Reviewed by Darin Adler.
  12813. Adopt VersionStamper tool for Windows WebKit DLLs
  12814. https://bugs.webkit.org/show_bug.cgi?id=55784
  12815. <rdar://problem/9021320>
  12816. We now use a tool to stamp the version number onto the Apple WebKit DLLs
  12817. during the post-build step.
  12818. Fetch the WebKit version from a string resource instead of the version resource.
  12819. * UIProcess/win/WebPageProxyWin.cpp:
  12820. (WebKit::userVisibleWebKitVersionString): Fetch version from a string resource.
  12821. * win/WebKit2.rc: Removed version, added stringtable.
  12822. * win/WebKit2WebProcess.rc: Removed.
  12823. * win/WebKit2WebProcess.vcproj:
  12824. * win/WebKit2WebProcessPostBuild.cmd: Don't run autoversion script. It isn't used in this project.
  12825. * win/WebKit2WebProcessPreBuild.cmd: Stamp version.
  12826. * win/WebKitPostBuild.cmd: Stamp version.
  12827. 2011-03-04 Jeff Miller <jeffm@apple.com>
  12828. Reviewed by Darin Adler.
  12829. Add WKPageValidateCommand()
  12830. https://bugs.webkit.org/show_bug.cgi?id=55793
  12831. On the Mac, validation of edit menu commands is handled within WebKit2 in WKView.mm.
  12832. However, on Windows we need to do this in the client, so expose this functionality
  12833. in the API via WKPageValidateCommand().
  12834. Change the Mac implementation to call WebPageProxy::validateCommand() with a callback
  12835. to match this new API, so it no longer has to go through PageClient to get notified
  12836. when a command is validated. This makes PageClient::setEditCommandState() obsolete,
  12837. so I removed the stub implementations in qt and gtk as well.
  12838. * UIProcess/API/C/WKPage.cpp:
  12839. (WKPageValidateCommand): Added.
  12840. * UIProcess/API/C/WKPage.h: Added WKPageValidateCommand().
  12841. * UIProcess/API/mac/PageClientImpl.h: Removed setEditCommandState().
  12842. * UIProcess/API/mac/PageClientImpl.mm: Removed setEditCommandState().
  12843. * UIProcess/API/mac/WKView.mm:
  12844. (validateCommandCallback): Added.
  12845. (-[WKView validateUserInterfaceItem:]): Pass callback to validateCommand().
  12846. * UIProcess/API/qt/qwkpage.cpp: Removed setEditCommandState().
  12847. * UIProcess/API/qt/qwkpage_p.h: Removed setEditCommandState().
  12848. * UIProcess/PageClient.h: Removed setEditCommandState().
  12849. * UIProcess/WebPageProxy.cpp: Removed didValidateCommand().
  12850. (WebKit::WebPageProxy::validateCommand): This now takes a callback.
  12851. (WebKit::WebPageProxy::validateCommandCallback): Added.
  12852. (WebKit::WebPageProxy::processDidCrash): Invalidate m_validateCommandCallbacks.
  12853. * UIProcess/WebPageProxy.h: Removed didValidateCommand(), validateCommand() now takes a callback.
  12854. (WebKit::ValidateCommandCallback::create): Added.
  12855. (WebKit::ValidateCommandCallback::~ValidateCommandCallback): Added.
  12856. (WebKit::ValidateCommandCallback::performCallbackWithReturnValue): Added.
  12857. (WebKit::ValidateCommandCallback::invalidate): Added.
  12858. (WebKit::ValidateCommandCallback::ValidateCommandCallback): Added.
  12859. * UIProcess/WebPageProxy.messages.in: Removed DidValidateCommand, added ValidateCommandCallback.
  12860. * UIProcess/gtk/WebView.cpp: Removed setEditCommandState().
  12861. * UIProcess/gtk/WebView.h: Removed setEditCommandState().
  12862. * UIProcess/win/WebView.cpp: Removed setEditCommandState().
  12863. * UIProcess/win/WebView.h: Removed setEditCommandState().
  12864. * WebProcess/WebPage/WebPage.cpp:
  12865. (WebKit::WebPage::validateCommand): This now takes a callbackID.
  12866. * WebProcess/WebPage/WebPage.h: validateCommand now takes a callbackID.
  12867. * WebProcess/WebPage/WebPage.messages.in: ValidateCommand now takes a callbackID.
  12868. 2011-03-04 Brian Weinstein <bweinstein@apple.com>
  12869. Reviewed by Darin Adler.
  12870. Reference-counting for WKBundlePageResourceLoadClient::willSendRequestForFrame seems unclear/wrong
  12871. https://bugs.webkit.org/show_bug.cgi?id=53919
  12872. <rdar://problem/8966020>
  12873. Adopt the result of m_client.willSendRequestForFrame (which will be leaked by the client).
  12874. * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp:
  12875. (WebKit::InjectedBundlePageResourceLoadClient::willSendRequestForFrame):
  12876. 2011-03-04 Darin Adler <darin@apple.com>
  12877. Reviewed by Mark Rowe.
  12878. WebKit2 session state should include even loads too new to be in the back/forward list
  12879. https://bugs.webkit.org/show_bug.cgi?id=55781
  12880. part of <rdar://problem/8968847>
  12881. * UIProcess/cf/WebPageProxyCF.cpp:
  12882. (WebKit::WebPageProxy::sessionStateData): Save URLs that are early enough in the loading
  12883. process to not be included in the back/forward list yet: The pending API request URL and
  12884. the provisional URL.
  12885. (WebKit::WebPageProxy::restoreFromSessionStateData): Call loadURL if the back/forward
  12886. list is not restored and a URL is present. Later we can improve the way we handle the
  12887. case where we have both a back/forward list and a URL.
  12888. 2011-03-04 Jessie Berlin <jberlin@apple.com>
  12889. Reviewed by Darin Adler.
  12890. WebKit2: Use CFNetwork Sessions API.
  12891. https://bugs.webkit.org/show_bug.cgi?id=55435.
  12892. Add in the CFURLSTORAGESESSIONS guards that I incorrectly left out because the code was
  12893. contained within guards that made USE(CFURLSTORAGESESSIONS) always be true.
  12894. * UIProcess/mac/WebContextMac.mm:
  12895. (WebKit::WebContext::platformInitializeWebProcess):
  12896. * UIProcess/win/WebContextWin.cpp:
  12897. (WebKit::WebContext::platformInitializeWebProcess):
  12898. 2011-03-04 Jessie Berlin <jberlin@apple.com>
  12899. Reviewed by Maciej Stachowiak.
  12900. WebKit2: Use CFNetwork Sessions API.
  12901. https://bugs.webkit.org/show_bug.cgi?id=55435.
  12902. When Private Browsing is enabled, get the cached url response from the cache associated with
  12903. the Private Browsing Storage Session.
  12904. * WebProcess/WebPage/mac/WebPageMac.mm:
  12905. (WebKit::WebPage::platformHasLocalDataForURL):
  12906. If Private Browsing is enabled, call into WKSI to get the response.
  12907. (WebKit::WebPage::cachedResponseMIMETypeForURL):
  12908. Ditto.
  12909. * WebProcess/WebPage/win/WebPageWin.cpp:
  12910. (WebKit::WebPage::platformHasLocalDataForURL):
  12911. If Private Browsing is enabled, call into WKSI to get the CFURLCacheRef.
  12912. (WebKit::WebPage::cachedResponseMIMETypeForURL):
  12913. Ditto.
  12914. 2011-03-04 Jeff Miller <jeffm@apple.com>
  12915. Reviewed by Darin Adler.
  12916. Move WKViewExecuteCommand() to WKPageExecuteCommand()
  12917. https://bugs.webkit.org/show_bug.cgi?id=55744
  12918. Executing a command operates on a page, so it makes more sense for it to be in WKPage.
  12919. This also makes it available on all platforms, not just Windows.
  12920. * UIProcess/API/C/WKPage.cpp:
  12921. (WKPageExecuteCommand): Added.
  12922. * UIProcess/API/C/WKPage.h: Add WKPageExecuteCommand().
  12923. * UIProcess/API/C/win/WKView.cpp: Remove WKViewExecuteCommand().
  12924. * UIProcess/API/C/win/WKView.h: Remove WKViewExecuteCommand().
  12925. 2011-03-04 Dan Bernstein <mitz@apple.com>
  12926. LLVM Compiler build fix.
  12927. * WebProcess/WebPage/WebPage.cpp:
  12928. (WebKit::WebPage::runJavaScriptInMainFrame):
  12929. 2011-03-03 Timothy Hatcher <timothy@apple.com>
  12930. Make the WKPageRunJavaScriptFunction callback take a WKSerializedScriptValueRef.
  12931. https://webkit.org/b/55623
  12932. Reviewed by Darin Adler.
  12933. * UIProcess/API/C/WKPage.cpp:
  12934. (WKPageRunJavaScriptInMainFrame): Use ScriptValueCallback.
  12935. (callRunJavaScriptBlockAndRelease): Use WKSerializedScriptValueRef.
  12936. * UIProcess/API/C/WKPage.h: Use WKSerializedScriptValueRef.
  12937. * UIProcess/WebPageProxy.cpp:
  12938. (WebKit::WebPageProxy::close): Call invalidateCallbackMap for m_scriptValueCallbacks.
  12939. (WebKit::WebPageProxy::runJavaScriptInMainFrame): Take a ScriptValueCallback.
  12940. (WebKit::WebPageProxy::scriptValueCallback): Added. Create a WebSerializedScriptValue
  12941. from the DataReference before calling the callback.
  12942. (WebKit::WebPageProxy::processDidCrash): Call invalidateCallbackMap for m_scriptValueCallbacks.
  12943. * UIProcess/WebPageProxy.h: Added ScriptValueCallback and m_scriptValueCallbacks.
  12944. * UIProcess/WebPageProxy.messages.in: Added ScriptValueCallback.
  12945. * WebProcess/WebPage/WebPage.cpp:
  12946. (WebKit::WebPage::runJavaScriptInMainFrame): Create a DataReference from a WebCore::SerializedScriptValue.
  12947. And use ScriptValueCallback to send the message back.
  12948. 2011-03-03 Brian Weinstein <bweinstein@apple.com>
  12949. Reviewed by Adam Roben.
  12950. Cleanup from https://bugs.webkit.org/show_bug.cgi?id=55427.
  12951. Call WebCore::startObservingCookieChanges and WebCore::stopObservingCookieChanges
  12952. on all platforms, and stub the functions on platforms that don't implement them.
  12953. * WebProcess/Cookies/WebCookieManager.cpp:
  12954. (WebKit::WebCookieManager::startObservingCookieChanges):
  12955. (WebKit::WebCookieManager::stopObservingCookieChanges):
  12956. 2011-03-03 Jeff Miller <jeffm@apple.com>
  12957. Reviewed by Darin Adler.
  12958. Refactor classes in GenericCallback.h
  12959. https://bugs.webkit.org/show_bug.cgi?id=55732
  12960. Since we're going to need to add additional callback classes, make a CallbackBase class that manages
  12961. the context and the callback ID. The existing callback classes (VoidCallback, GenericCallback, and
  12962. ComputedPagesCallback) now all derive from CallbackBase.
  12963. Fix bug in VoidCallback where we meant to implement the destructor, but we were implementing the default
  12964. constructor instead (we forgot the leading ~).
  12965. * UIProcess/GenericCallback.h:
  12966. (WebKit::CallbackBase::~CallbackBase):
  12967. (WebKit::CallbackBase::callbackID):
  12968. (WebKit::CallbackBase::CallbackBase):
  12969. (WebKit::CallbackBase::context):
  12970. (WebKit::CallbackBase::generateCallbackID):
  12971. (WebKit::VoidCallback::~VoidCallback):
  12972. (WebKit::VoidCallback::performCallback):
  12973. (WebKit::VoidCallback::invalidate):
  12974. (WebKit::VoidCallback::VoidCallback):
  12975. (WebKit::GenericCallback::create):
  12976. (WebKit::GenericCallback::~GenericCallback):
  12977. (WebKit::GenericCallback::performCallbackWithReturnValue):
  12978. (WebKit::GenericCallback::invalidate):
  12979. (WebKit::GenericCallback::GenericCallback):
  12980. (WebKit::ComputedPagesCallback::create):
  12981. (WebKit::ComputedPagesCallback::~ComputedPagesCallback):
  12982. (WebKit::ComputedPagesCallback::performCallbackWithReturnValue):
  12983. (WebKit::ComputedPagesCallback::invalidate):
  12984. (WebKit::ComputedPagesCallback::ComputedPagesCallback):
  12985. 2011-03-03 Adam Roben <aroben@apple.com>
  12986. Don't assume the web process has had a chance to paint before the view has to paint
  12987. Fixes <http://webkit.org/b/55739> REGRESSION (r80307): Lots of tests crashing in
  12988. BackingStore::paint
  12989. Reviewed by Anders Carlsson.
  12990. * UIProcess/DrawingAreaProxyImpl.cpp:
  12991. (WebKit::DrawingAreaProxyImpl::paint): Bail if the web process hasn't had a chance to paint
  12992. yet.
  12993. 2011-03-03 Adam Roben <aroben@apple.com>
  12994. Throw away DrawingAreaProxyImpl's backing store after not painting for 5 seconds
  12995. The intent is to save memory for views that aren't painting.
  12996. Fixes <http://webkit.org/b/51262> <rdar://problem/8782537> WebPageProxy should delete its
  12997. backing store after not painting for a while
  12998. Reviewed by Anders Carlsson.
  12999. * UIProcess/DrawingAreaProxyImpl.cpp:
  13000. (WebKit::DrawingAreaProxyImpl::DrawingAreaProxyImpl): Initialize our timer.
  13001. (WebKit::DrawingAreaProxyImpl::paint): Don't bail if we don't have a backing store (but do
  13002. bail if we're in accelerated compositing mode); we might have thrown it away to save memory
  13003. but now are being asked to paint by the view. The existing code in this function will handle
  13004. getting a new backing store if possible by blocking for a little while to try to receive a
  13005. DidUpdateBackingStoreState message. Added an assertion that we do have a backing store if we
  13006. don't have any outstanding UpdateBackingStoreState requests. After painting, call
  13007. discardBackingStoreSoon to update our timer.
  13008. (WebKit::DrawingAreaProxyImpl::discardBackingStoreSoon): Set the timer for 5 seconds in the
  13009. future.
  13010. (WebKit::DrawingAreaProxyImpl::discardBackingStore): Throw away the backing store, and tell
  13011. the web process we'll need a full backing store update on the next paint.
  13012. * UIProcess/DrawingAreaProxyImpl.h: Added m_discardBackingStoreTimer.
  13013. 2011-03-03 Adam Roben <aroben@apple.com>
  13014. Add a way to tell the web process to perform a full backing store update on its next paint
  13015. Messages::DrawingArea::UpdateBackingStoreState now takes a boolean specifying whether the
  13016. full backing store update should happen immediately or should be deferred until the next
  13017. paint or compositing mode change occurs. The deferred update isn't used yet, but will be
  13018. used when we start throwing away backing stores to save memory.
  13019. Fixes <http://webkit.org/b/55730> UI process needs a way to tell the web process its backing
  13020. store needs a full update on the next paint
  13021. Reviewed by Anders Carlsson.
  13022. * UIProcess/DrawingAreaProxyImpl.cpp:
  13023. (WebKit::DrawingAreaProxyImpl::paint): If we have an outstanding backing store state change
  13024. request, tell the web process to perform the backing store update right away, in case we
  13025. previously told it it could defer the update.
  13026. (WebKit::DrawingAreaProxyImpl::sizeDidChange): Specify that we need an immediate backing
  13027. store update.
  13028. (WebKit::DrawingAreaProxyImpl::didUpdateBackingStoreState): We can no longer assert that we
  13029. were waiting for a DidUpdateBackingStoreState message when we receive one, as it's possible
  13030. for the web process to decide to send us this message on its own (if we asked it to do a
  13031. deferred backing store update and then it needed to paint some part of the page). Specify
  13032. that we need an immediate backing store update if the web process hasn't updated to our
  13033. latest state, as we're about to draw potentially out-of-date bits to the screen and want to
  13034. get the right bits as soon as possible. Also added a FIXME about a potential optimization.
  13035. (WebKit::DrawingAreaProxyImpl::backingStoreStateDidChange): Added a RespondImmediatelyOrNot
  13036. parameter, which is just passed through to sendUpdateBackingStoreState.
  13037. (WebKit::DrawingAreaProxyImpl::sendUpdateBackingStoreState): Added a RespondImmediatelyOrNot
  13038. parameter that is used to specify to the web process whether to perform the full backing
  13039. store update immediately. We now only wait for a DidUpdateBackingStoreState message (and
  13040. thus suppress any more UpdateBackingStoreState messages until one is received) when we ask
  13041. the web process for an immediate response; otherwise we could end up accidentally calling
  13042. waitForAndDispatchDidUpdateBackingStoreState when the web process hasn't been told to send
  13043. us such a message.
  13044. * UIProcess/DrawingAreaProxyImpl.h: Added RespondImmediatelyOrNot.
  13045. * WebProcess/WebPage/DrawingArea.h:
  13046. (WebKit::DrawingArea::updateBackingStoreState): Added respondImmediately argument.
  13047. * WebProcess/WebPage/DrawingArea.messages.in: Added respondImmediately argument to
  13048. UpdateBackingStoreState message.
  13049. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  13050. (WebKit::DrawingAreaImpl::DrawingAreaImpl): Initialize new member that's used to track
  13051. whether we should send a DidUpdateBackingStoreState message instead of an Update or
  13052. compositing mode change message. This will be set to true when a deferred backing store
  13053. update is pending.
  13054. (WebKit::DrawingAreaImpl::layerHostDidFlushLayers): If a deferred update is pending, send a
  13055. DidUpdateBackingStoreState message instead of a compositing mode change message.
  13056. (WebKit::DrawingAreaImpl::updateBackingStoreState): Added respondImmediately argument. If
  13057. we've already been told about this state ID (as can happen when the UI process decides it
  13058. needs an immediate update to a state that it previously requested a deferred update to),
  13059. don't bother updating the page's size, etc. In addition, if we've already sent a
  13060. DidUpdateBackingStoreState message for this state, we don't have to do anything at all.
  13061. Moved code to send the DidUpdateBackingStoreState message from here...
  13062. (WebKit::DrawingAreaImpl::sendDidUpdateBackingStoreState): ...to here.
  13063. (WebKit::DrawingAreaImpl::exitAcceleratedCompositingMode): Always update our dirty region,
  13064. even if painting is suspended or we're in the process of updating the backing store state.
  13065. It causes no harm and simplifies the code. If a deferred update is pending, send a
  13066. DidUpdateBackingStoreState message instead of a compositing mode change message. Also
  13067. removed a redundant if.
  13068. (WebKit::DrawingAreaImpl::display): Added an assertion that this isn't called while updating
  13069. backing store state, as otherwise we might end up sending two DidUpdateBackingStoreState
  13070. messages. If a deferred update is pending, send a DidUpdateBackingStoreState message instead
  13071. of an Update message.
  13072. * WebProcess/WebPage/DrawingAreaImpl.h: Updated updateBackingStoreState to match the base
  13073. class. Added sendDidUpdateBackingStoreState and m_shouldSendDidUpdateBackingStoreState.
  13074. 2011-03-03 Andy Estes <aestes@apple.com>
  13075. Reviewed by Darin Adler.
  13076. When displaying the missing plug-in sheet, pass the 'pluginspage'
  13077. attribute to the UI process.
  13078. https://bugs.webkit.org/show_bug.cgi?id=55553
  13079. * UIProcess/API/C/WKPage.h: Add pluginsPageURL as the third argument to
  13080. missingPluginButtonClicked.
  13081. * UIProcess/WebPageProxy.cpp:
  13082. (WebKit::WebPageProxy::missingPluginButtonClicked): Ditto.
  13083. * UIProcess/WebPageProxy.h: Ditto.
  13084. * UIProcess/WebPageProxy.messages.in: Ditto.
  13085. * UIProcess/WebUIClient.cpp:
  13086. (WebKit::WebUIClient::missingPluginButtonClicked): Ditto.
  13087. * UIProcess/WebUIClient.h: Ditto.
  13088. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  13089. (WebKit::WebChromeClient::missingPluginButtonClicked): Get the value of
  13090. pluginspageAttr.
  13091. 2011-03-03 Alexey Proskuryakov <ap@apple.com>
  13092. Suggested by Dan Bernstein.
  13093. Move "const" around "NSString *", so that it suddenly begins to make sense.
  13094. * WebProcess/mac/FullKeyboardAccessWatcher.mm:
  13095. 2011-03-03 Jeff Miller <jeffm@apple.com>
  13096. Reviewed by Anders Carlsson.
  13097. WebKit2: Add WKViewRef API for executing edit commands
  13098. https://bugs.webkit.org/show_bug.cgi?id=49829
  13099. Added WKViewExecuteCommand() and documented some of the WebCore EditorCommand strings.
  13100. * UIProcess/API/C/win/WKView.cpp:
  13101. (WKViewExecuteCommand): Added.
  13102. * UIProcess/API/C/win/WKView.h: Added WKViewExecuteCommand() and comment block with WebCore EditorCommand strings.
  13103. 2011-03-03 Jessie Berlin <jberlin@apple.com>
  13104. Reviewed by Adam Roben.
  13105. WebKit2: Use CFNetwork Sessions API.
  13106. https://bugs.webkit.org/show_bug.cgi?id=55435
  13107. Set the Private Browsing Storage Session on requests when Private Browsing is enabled.
  13108. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  13109. (InitWebCoreSystemInterface):
  13110. Support using WKCopyRequestWithStorageSession in WebCore.
  13111. 2011-03-03 Adam Roben <aroben@apple.com>
  13112. Don't try to paint outside the page's bounds
  13113. When the page is resized smaller, we would allocate a ShareableBitmap at the old, larger
  13114. size, even though we only needed to paint at the new, smaller size.
  13115. The assertion added in this patch will fire during the WebKit2/ResizeViewWhileHidden API
  13116. test if this fix gets broken in the future.
  13117. Fixes <http://webkit.org/b/55715> DrawingAreaImpl allocates more memory than necessary when
  13118. the page is resized smaller
  13119. Reviewed by Anders Carlsson.
  13120. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  13121. (WebKit::DrawingAreaImpl::updateBackingStoreState): Update our dirty region even if painting
  13122. is suspended (but still refrain from updating it when in accelerated compositing mode).
  13123. Rather than unite our existing dirty region with the page's new bounds, overwrite our dirty
  13124. region with the page's new bounds. This prevents us from accumulating a dirty region that is
  13125. larger than the page in the case where the page is being resized smaller.
  13126. (WebKit::DrawingAreaImpl::display): Added an assertion that we're not trying to paint
  13127. outside of the page's bounds.
  13128. 2011-03-03 Maciej Stachowiak <mjs@apple.com>
  13129. Reviewed by Brady Eidson.
  13130. WebProcess is calling CFURLCacheRemoveAllCachedResponses when loading, results in origin-load for all resources
  13131. https://bugs.webkit.org/show_bug.cgi?id=55701
  13132. <rdar://problem/9074017>
  13133. * Shared/WebProcessCreationParameters.cpp:
  13134. (WebKit::WebProcessCreationParameters::WebProcessCreationParameters): Initialize cache-clearing
  13135. flag parameters to false.
  13136. (WebKit::WebProcessCreationParameters::encode): Serialize them properly.
  13137. (WebKit::WebProcessCreationParameters::decode): And deserialize.
  13138. 2011-03-03 Alexey Proskuryakov <ap@apple.com>
  13139. Reviewed by Darin Adler.
  13140. REGRESSION (WebKit2): Tab keys no longer observe Full Keyboard Access
  13141. https://bugs.webkit.org/show_bug.cgi?id=55633
  13142. <rdar://problem/8963023>
  13143. * WebKit2.xcodeproj/project.pbxproj:
  13144. * WebProcess/mac/FullKeyboardAccessWatcher.h: Added.
  13145. * WebProcess/mac/FullKeyboardAccessWatcher.mm: Added.
  13146. (-[FullKeyboardAccessWatcher retrieveKeyboardUIModeFromPreferences:]):
  13147. (-[FullKeyboardAccessWatcher init]):
  13148. (+[FullKeyboardAccessWatcher fullKeyboardAccessEnabled]):
  13149. Get the current state of full keyboard access, listening for change notifications.
  13150. * WebProcess/WebProcess.h: Added fullKeyboardAccessEnabled().
  13151. * WebProcess/WebProcess.cpp: (WebKit::WebProcess::fullKeyboardAccessEnabled):
  13152. WebKit1 also doesn't implement this on platforms other than Mac.
  13153. * WebProcess/mac/WebProcessMac.mm: (WebKit::WebProcess::fullKeyboardAccessEnabled):
  13154. Just ask FullKeyboardAccessWatcher.
  13155. * WebProcess/WebCoreSupport/WebChromeClient.cpp: (WebKit::WebChromeClient::keyboardUIMode):
  13156. * WebProcess/WebCoreSupport/WebChromeClient.h:
  13157. Added keyboardUIMode(), removed tabsToLinks().
  13158. * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::keyboardUIMode):
  13159. * WebProcess/WebPage/WebPage.h:
  13160. Generate keyboard UI mode from tabToLinks preference and current state of FKA.
  13161. 2011-03-03 Sam Weinig <sam@webkit.org>
  13162. Reviewed by Anders Carlsson.
  13163. Give the Bundle's policy client the option of deciding the policy
  13164. https://bugs.webkit.org/show_bug.cgi?id=55699
  13165. * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
  13166. Add WKBundlePagePolicyAction enum and make it the return value of
  13167. the WKBundlePagePolicyClient functions.
  13168. * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp:
  13169. (WebKit::InjectedBundlePagePolicyClient::decidePolicyForNavigationAction):
  13170. (WebKit::InjectedBundlePagePolicyClient::decidePolicyForNewWindowAction):
  13171. (WebKit::InjectedBundlePagePolicyClient::decidePolicyForMIMEType):
  13172. * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.h:
  13173. Pass the return value back to the caller. For unimplemented functions, return WKBundlePagePolicyActionPassThrough.
  13174. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  13175. (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
  13176. (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
  13177. (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
  13178. Call the policy function early if the bundle handles it.
  13179. 2011-03-02 Brian Weinstein <bweinstein@apple.com>
  13180. Reviewed by Adam Roben.
  13181. Rest of WebKit2: Need a way to send notifications to client when cookies change
  13182. https://bugs.webkit.org/show_bug.cgi?id=55427
  13183. <rdar://problem/9056027>
  13184. This patch adds the communication from the WebProcess <-> UIProcess about starting/stopping
  13185. listening for cookies changing, and adds a mechanism for the WebProcess to notify the UIProcess
  13186. when the cookies have changed. The WebProcess sends a message to the UIProcess when the cookies
  13187. change, and the UIProcess passes this along to the WebCookieManagerProxyClient.
  13188. * UIProcess/API/C/WKCookieManager.cpp:
  13189. (WKCookieManagerSetClient): Call through to WebCookieManagerProxy.
  13190. (WKCookieManagerStartObservingCookieChanges): Ditto.
  13191. (WKCookieManagerStopObservingCookieChanges): Ditto.
  13192. * UIProcess/API/C/WKCookieManager.h: Add new functions and a WKCookieManagerClient
  13193. which is responsible for cookiesDidChange.
  13194. * UIProcess/WebCookieManagerProxy.cpp:
  13195. (WebKit::WebCookieManagerProxy::initializeClient):
  13196. (WebKit::WebCookieManagerProxy::startObservingCookieChanges): Send the message down to the web process.
  13197. (WebKit::WebCookieManagerProxy::stopObservingCookieChanges): Ditto.
  13198. (WebKit::WebCookieManagerProxy::cookiesDidChange): Tell the WKCookieManagerClient the cookies were
  13199. modified.
  13200. * UIProcess/WebCookieManagerProxy.h:
  13201. * UIProcess/WebCookieManagerProxy.messages.in: Add new messages.
  13202. * UIProcess/WebCookieManagerProxyClient.cpp: Added.
  13203. (WebKit::WebCookieManagerProxyClient::cookiesDidChange): Calls through to the client saying that
  13204. cookies changed.
  13205. * UIProcess/WebCookieManagerProxyClient.h: Added.
  13206. * WebProcess/Cookies/WebCookieManager.cpp:
  13207. (WebKit::WebCookieManager::startObservingCookieChanges): Call through to WebCore::startObservingCookieChanges
  13208. (on platforms that support it).
  13209. (WebKit::WebCookieManager::stopObservingCookieChanges): Ditto (for stopObservingCookieChanges).
  13210. (WebKit::WebCookieManager::dispatchDidModifyCookies): Send a message to the UI process that cookies changed.
  13211. * WebProcess/Cookies/WebCookieManager.h:
  13212. * WebProcess/Cookies/WebCookieManager.messages.in:
  13213. Add new files.
  13214. * WebKit2.pro:
  13215. * WebKit2.xcodeproj/project.pbxproj:
  13216. * GNUmakefile.am:
  13217. * win/WebKit2.vcproj:
  13218. 2011-03-03 Anders Carlsson <andersca@apple.com>
  13219. Reviewed by Darin Adler.
  13220. Remove CanRunBeforeUnloadConfirmPanel sync message
  13221. https://bugs.webkit.org/show_bug.cgi?id=55689
  13222. * Shared/WebPageCreationParameters.cpp:
  13223. (WebKit::WebPageCreationParameters::encode):
  13224. (WebKit::WebPageCreationParameters::decode):
  13225. Encode and decode canRunBeforeUnloadConfirmPanel, as well as canRunModal, which wasn't
  13226. being encoded/decoded.
  13227. * Shared/WebPageCreationParameters.h:
  13228. Add canRunBeforeUnloadConfirmPanel.
  13229. * UIProcess/WebPageProxy.cpp:
  13230. (WebKit::WebPageProxy::initializeUIClient):
  13231. Send SetCanRunBeforeUnloadConfirmPanel and SetCanRunModal messages.
  13232. (WebKit::WebPageProxy::creationParameters):
  13233. Initialize parameters.canRunBeforeUnloadConfirmPanel.
  13234. * UIProcess/WebPageProxy.messages.in:
  13235. Remove CanRunBeforeUnloadConfirmPanel message.
  13236. * UIProcess/WebUIClient.cpp:
  13237. (WebKit::WebUIClient::canRunBeforeUnloadConfirmPanel):
  13238. * UIProcess/WebUIClient.h:
  13239. Make canRunBeforeUnloadConfirmPanel const.
  13240. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  13241. (WebKit::WebChromeClient::canRunBeforeUnloadConfirmPanel):
  13242. Ask the web page instead of sending a synchronous message.
  13243. * WebProcess/WebPage/WebPage.cpp:
  13244. (WebKit::WebPage::WebPage):
  13245. Initialize m_canRunBeforeUnloadConfirmPanel.
  13246. * WebProcess/WebPage/WebPage.h:
  13247. (WebKit::WebPage::canRunBeforeUnloadConfirmPanel):
  13248. (WebKit::WebPage::setCanRunBeforeUnloadConfirmPanel):
  13249. Add getter and setter for m_canRunBeforeUnloadConfirmPanel.
  13250. (WebKit::WebPage::setCanRunModal):
  13251. Add setter for m_canRunModal.
  13252. * WebProcess/WebPage/WebPage.messages.in:
  13253. Add SetCanRunBeforeUnloadConfirmPanel and SetCanRunModal messages.
  13254. 2011-03-03 Adam Roben <aroben@apple.com>
  13255. Create the CFBundleRef for WebKit.dll on Windows if needed
  13256. WebKit part of <http://webkit.org/b/55672> <rdar://problem/9080867> All inspector tests time
  13257. out or crash on Windows 7 Release (WebKit2 Tests)
  13258. Reviewed by Darin Adler.
  13259. * Shared/win/WebKitBundle.cpp: Added.
  13260. (WebKit::createWebKitBundle): Returns a pre-existing bundle, if possible, otherwise creates
  13261. and returns a new bundle.
  13262. (WebKit::webKitBundle): Creates and caches a bundle, and returns it.
  13263. * Shared/win/WebKitBundle.h: Added.
  13264. * UIProcess/win/WebInspectorProxyWin.cpp:
  13265. (WebKit::WebInspectorProxy::inspectorPageURL):
  13266. * WebProcess/WebPage/win/WebInspectorWin.cpp:
  13267. (WebKit::WebInspector::localizedStringsURL):
  13268. Changed to use webKitBundle() to ensure that the bundle has been created.
  13269. * win/WebKit2.vcproj: Added new files.
  13270. 2011-03-03 Peter Kasting <pkasting@google.com>
  13271. Reviewed by James Robinson.
  13272. Drop redundant "Windows; " from the Windows-specific User Agent string.
  13273. https://bugs.webkit.org/show_bug.cgi?id=54567
  13274. * UIProcess/win/WebPageProxyWin.cpp:
  13275. (WebKit::WebPageProxy::standardUserAgent):
  13276. 2011-03-02 Sheriff Bot <webkit.review.bot@gmail.com>
  13277. Unreviewed, rolling out r80188.
  13278. http://trac.webkit.org/changeset/80188
  13279. https://bugs.webkit.org/show_bug.cgi?id=55647
  13280. Broke the WebKit API tests. (Requested by xenon on #webkit).
  13281. * UIProcess/API/C/WKPage.cpp:
  13282. (WKPageRunJavaScriptInMainFrame):
  13283. (callRunJavaScriptBlockAndRelease):
  13284. * UIProcess/API/C/WKPage.h:
  13285. * UIProcess/WebPageProxy.cpp:
  13286. (WebKit::WebPageProxy::close):
  13287. (WebKit::WebPageProxy::runJavaScriptInMainFrame):
  13288. (WebKit::WebPageProxy::processDidCrash):
  13289. * UIProcess/WebPageProxy.h:
  13290. * UIProcess/WebPageProxy.messages.in:
  13291. * WebProcess/WebPage/WebPage.cpp:
  13292. (WebKit::WebPage::runJavaScriptInMainFrame):
  13293. 2011-03-02 Jeff Miller <jeffm@apple.com>
  13294. Reviewed by Darin Adler.
  13295. Rename WebKit::WebPage::validateMenuItem() to validateCommand()
  13296. https://bugs.webkit.org/show_bug.cgi?id=55636
  13297. Since this method can validate more than menu items, validateCommand() is a better name. Also rename various messages and WebKit::WebPageProxy::didValidateMenuItem() to didValidateCommand().
  13298. * UIProcess/API/mac/WKView.mm:
  13299. (-[WKView validateUserInterfaceItem:]): Call validateCommand() instead of validateMenuItem().
  13300. * UIProcess/WebPageProxy.cpp:
  13301. (WebKit::WebPageProxy::validateCommand): Renamed from validateMenuItem().
  13302. (WebKit::WebPageProxy::didValidateCommand): Renamed from didValidateMenuItem().
  13303. * UIProcess/WebPageProxy.h:
  13304. * UIProcess/WebPageProxy.messages.in: Renamed DidValidateMenuItem to DidValidateCommand.
  13305. * WebProcess/WebPage/WebPage.cpp:
  13306. (WebKit::WebPage::validateCommand): Renamed from validateMenuItem().
  13307. * WebProcess/WebPage/WebPage.h:
  13308. * WebProcess/WebPage/WebPage.messages.in: Renamed ValidateMenuItem to ValidateCommand.
  13309. 2011-03-02 Anders Carlsson <andersca@apple.com>
  13310. Reviewed by Sam Weinig.
  13311. WKPageSetMemoryCacheClientCallsEnabled doesn't persist if web process crashes
  13312. https://bugs.webkit.org/show_bug.cgi?id=55635
  13313. * Shared/WebPageCreationParameters.cpp:
  13314. (WebKit::WebPageCreationParameters::encode):
  13315. (WebKit::WebPageCreationParameters::decode):
  13316. Encode and decode areMemoryCacheClientCallsEnabled.
  13317. * Shared/WebPageCreationParameters.h:
  13318. Add areMemoryCacheClientCallsEnabled member variable.
  13319. * UIProcess/WebPageProxy.cpp:
  13320. (WebKit::WebPageProxy::WebPageProxy):
  13321. Initialize m_areMemoryCacheClientCallsEnabled.
  13322. (WebKit::WebPageProxy::setMemoryCacheClientCallsEnabled):
  13323. Update m_areMemoryCacheClientCallsEnabled. Send a message if necessary.
  13324. (WebKit::WebPageProxy::creationParameters):
  13325. Set areMemoryCacheClientCallsEnabled.
  13326. * WebProcess/WebPage/WebPage.cpp:
  13327. (WebKit::WebPage::WebPage):
  13328. Call WebPage::setMemoryCacheMessagesEnabled.
  13329. 2011-03-02 Timothy Hatcher <timothy@apple.com>
  13330. Make the runJavaScriptInMainFrame callback send a WKSerializedScriptValueRef.
  13331. https://webkit.org/b/55623
  13332. Reviewed by Darin Adler.
  13333. * UIProcess/API/C/WKPage.cpp:
  13334. (WKPageRunJavaScriptInMainFrame): Use ScriptValueCallback.
  13335. (callRunJavaScriptBlockAndRelease): Use WKSerializedScriptValueRef.
  13336. * UIProcess/API/C/WKPage.h: Use WKSerializedScriptValueRef.
  13337. * UIProcess/WebPageProxy.cpp:
  13338. (WebKit::WebPageProxy::close): Call invalidateCallbackMap for m_scriptValueCallbacks.
  13339. (WebKit::WebPageProxy::runJavaScriptInMainFrame): Take a ScriptValueCallback.
  13340. (WebKit::WebPageProxy::scriptValueCallback): Added. Create a WebSerializedScriptValue
  13341. from the DataReference before calling the callback.
  13342. (WebKit::WebPageProxy::processDidCrash): Call invalidateCallbackMap for m_scriptValueCallbacks.
  13343. * UIProcess/WebPageProxy.h: Added ScriptValueCallback and m_scriptValueCallbacks.
  13344. * UIProcess/WebPageProxy.messages.in: Added ScriptValueCallback.
  13345. * WebProcess/WebPage/WebPage.cpp:
  13346. (WebKit::WebPage::runJavaScriptInMainFrame): Create a DataReference from a WebCore::SerializedScriptValue.
  13347. And use ScriptValueCallback to send the message back.
  13348. 2011-03-02 Jessie Berlin <jberlin@apple.com>
  13349. Reviewed by Adam Roben.
  13350. WebKit2: Use CFNetwork Sessions API.
  13351. https://bugs.webkit.org/show_bug.cgi?id=55435
  13352. Add the ability to create a Private Browsing Storage Session.
  13353. * Shared/WebProcessCreationParameters.cpp:
  13354. (WebKit::WebProcessCreationParameters::encode):
  13355. Encode the UI Process bundle identifier.
  13356. (WebKit::WebProcessCreationParameters::decode):
  13357. Decode the UI Process bundle identifier.
  13358. * Shared/WebProcessCreationParameters.h:
  13359. * UIProcess/mac/WebContextMac.mm:
  13360. (WebKit::WebContext::platformInitializeWebProcess):
  13361. Grab the bundle identifier and use it to set the WebProcessCreationParameter.
  13362. * UIProcess/win/WebContextWin.cpp:
  13363. (WebKit::WebContext::platformInitializeWebProcess):
  13364. Ditto.
  13365. * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
  13366. (InitWebCoreSystemInterface):
  13367. Support using the wkCreatePrivateStorageSession WKSI in WebCore.
  13368. * WebProcess/WebProcess.cpp:
  13369. (WebKit::WebProcess::initializeWebProcess):
  13370. Set the base for the Private Browsing Storage Session identifier to be the bundle identifier
  13371. from the UI Process so that WebKit1 would create a Private Browsing Storage Session with the
  13372. same identifier as WebKit2.
  13373. 2011-03-01 Brian Weinstein <bweinstein@apple.com>
  13374. Reviewed by Adam Roben.
  13375. Part of WebKit2: Need a way to send notifications to client when cookies change
  13376. https://bugs.webkit.org/show_bug.cgi?id=55427
  13377. <rdar://problem/9056027>
  13378. * WebProcess/Cookies/WebCookieManager.cpp:
  13379. (WebKit::WebCookieManager::dispatchDidModifyCookies): Add a stub with a FIXME to send a
  13380. message to the UI process.
  13381. * WebProcess/Cookies/WebCookieManager.h:
  13382. * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
  13383. (WebKit::WebPlatformStrategies::createCookiesStrategy):
  13384. (WebKit::WebPlatformStrategies::notifyCookiesChanged): Call WebCookieManager::dispatchDidModifyCookies.
  13385. * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
  13386. 2011-03-02 Andras Becsi <abecsi@webkit.org>
  13387. Reviewed by Laszlo Gombos.
  13388. [Qt][WK2] generate-forwarding-headers.pl should generate paths with framework names
  13389. https://bugs.webkit.org/show_bug.cgi?id=55478
  13390. On case insensitive systems the generated forwarding headers cause build problems.
  13391. * Scripts/generate-forwarding-headers.pl: The generated header should
  13392. also contain the framework name.
  13393. 2011-03-01 Jeff Miller <jeffm@apple.com>
  13394. Reviewed by Darin Adler.
  13395. Expose some selection state fields in WKPage
  13396. https://bugs.webkit.org/show_bug.cgi?id=55541
  13397. Added WKPageCanDelete(), WKPageHasSelectedRange(), and WKPageIsContentEditable() so we can enable some
  13398. Edit menu items properly on Windows when using WebKit2.
  13399. * UIProcess/API/C/WKPage.cpp:
  13400. (WKPageCanDelete): Added.
  13401. (WKPageHasSelectedRange): Added.
  13402. (WKPageIsContentEditable): Added.
  13403. * UIProcess/API/C/WKPage.h: Added new functions.
  13404. * UIProcess/WebPageProxy.h:
  13405. (WebKit::WebPageProxy::canDelete): Added.
  13406. (WebKit::WebPageProxy::hasSelectedRange): Added.
  13407. (WebKit::WebPageProxy::isContentEditable): Added.
  13408. 2011-03-01 Mark Rowe <mrowe@apple.com>
  13409. Hide the typeinfo name symbols for std::exception and std::bad_alloc too.
  13410. * Configurations/Base.xcconfig:
  13411. 2011-03-01 Mark Rowe <mrowe@apple.com>
  13412. Reviewed by Sam Weinig.
  13413. Add verification scripts to WebKit2 project and fix the issues they reveal.
  13414. * Configurations/Base.xcconfig: Add linker flags to prevent C++ standard
  13415. library functions from being exported as weak externals.
  13416. * Configurations/WebKit2.xcconfig: Inherit linker flags from the project level.
  13417. * Shared/WebContextMenuItem.cpp:
  13418. (WebKit::WebContextMenuItem::separatorItem): Use DEFINE_STATIC_LOCAL.
  13419. * UIProcess/WebPageGroup.cpp:
  13420. (WebKit::webPageGroupMap): Ditto.
  13421. * WebKit2.xcodeproj/project.pbxproj: Don't copy .in files in to the framework.
  13422. Run verification scripts at the appropriate times.
  13423. * WebProcess/WebCoreSupport/WebEditorClient.cpp:
  13424. (WebKit::WebEditorClient::didBeginEditing): Use DEFINE_STATIC_LOCAL.
  13425. (WebKit::WebEditorClient::respondToChangedContents): Ditto.
  13426. (WebKit::WebEditorClient::respondToChangedSelection): Ditto.
  13427. (WebKit::WebEditorClient::didEndEditing): Ditto.
  13428. * WebProcess/WebPage/WebBackForwardListProxy.cpp:
  13429. (WebKit::idToHistoryItemMap): Ditto.
  13430. (WebKit::historyItemToIDMap): Ditto.
  13431. 2011-03-01 Joseph Pecoraro <joepeck@webkit.org>
  13432. Unreviewed. Roll out r80068 and r80073 due to breaking WebKit2 Qt port.
  13433. * UIProcess/API/qt/qwkpage.cpp:
  13434. (QWKPage::viewportAttributesForSize):
  13435. 2011-03-01 Joseph Pecoraro <joepeck@webkit.org>
  13436. Unreviewed, missed updating a call to WebCore::computeViewportAttributes
  13437. who's prototype changed.
  13438. Viewport Warning/Error Messages Are Now Inaccurate
  13439. https://bugs.webkit.org/show_bug.cgi?id=53707
  13440. * UIProcess/API/qt/qwkpage.cpp:
  13441. (QWKPage::viewportAttributesForSize): pass in a value for the document argument.
  13442. 2011-03-01 Anders Carlsson <andersca@apple.com>
  13443. Reviewed by Sam Weinig.
  13444. WKPluginSiteDataManagerClearAllSiteData is not working
  13445. https://bugs.webkit.org/show_bug.cgi?id=55528
  13446. <rdar://problem/9071823>
  13447. * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
  13448. (WebKit::NetscapePluginModule::tryGetSitesWithData):
  13449. Remove version checks, checking that the function pointer is not null is enough.
  13450. (WebKit::NetscapePluginModule::tryClearSiteData):
  13451. Remove version checks, checking that the function pointer is not null is enough.
  13452. Also, correctly convert a null String to a null CString.
  13453. 2011-03-01 Adam Roben <aroben@apple.com>
  13454. Incorporate a review comment I missed in r80051
  13455. * Shared/Plugins/Netscape/NetscapePluginModule.cpp: Clarified error message.
  13456. 2011-03-01 Adam Roben <aroben@apple.com>
  13457. Make the PLUGIN_ARCHITECTURE() macro work with MSVC
  13458. Fixes <http://webkit.org/b/55513> <rdar://problem/9069189> REGRESSION (r79925): Lots of
  13459. plugins tests crashing in NetscapePlugin::initialize on Windows
  13460. Reviewed by Anders Carlsson.
  13461. * Shared/Plugins/Netscape/NetscapePluginModule.cpp: Added a compile-time check to make sure
  13462. PLUGIN_ARCHITECTURE() is defined for some platform.
  13463. * config.h: Removed the parentheses from the use of "defined" in the PLUGIN_ARCHITECTURE()
  13464. macro. This matches PLATFORM(), OS(), etc., and makes the macro work on Windows. Also
  13465. replaced the nonsense OS(WIN) with OS(WINDOWS).
  13466. * win/WebKit2.vcproj: Added config.h for editing convenience. Let VS do its thang.
  13467. 2011-03-01 Sam Weinig <sam@webkit.org>
  13468. Reviewed by Timothy Hatcher.
  13469. WebKit2 needs to be made localizable
  13470. https://bugs.webkit.org/show_bug.cgi?id=55483
  13471. * PluginProcess/mac/PluginProcessMainMac.mm:
  13472. * WebProcess/mac/WebProcessMainMac.mm:
  13473. Set the default localization from the passed in parameter.
  13474. * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
  13475. Add the preferred localization as a parameter when launching processes
  13476. so that they can set their localization to match the launching app.
  13477. * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
  13478. Use WebCore's localizedString function on the mac, to actually localize
  13479. these strings.
  13480. (WebKit::WebPlatformStrategies::imageTitle):
  13481. Switch to using replace, instead of concatenation, to give localizers a chance
  13482. to rearrange the wording.
  13483. 2011-03-01 Balazs Kelemen <kbalazs@webkit.org>
  13484. Reviewed by Anders Carlsson.
  13485. [Qt][WK2] Plugin initialization
  13486. https://bugs.webkit.org/show_bug.cgi?id=48127
  13487. Apply the quirks that are necessary for the flash plugin
  13488. to not crash on X11.
  13489. * Platform/qt/ModuleQt.cpp:
  13490. (WebKit::Module::load): Use the ResolveAllSymbols hint as we do in WebCore.
  13491. * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
  13492. (WebKit::NetscapePluginModule::tryLoad): Call applyX11QuirksBeforeLoad
  13493. if PLUGIN_ARCHITECTURE is X11.
  13494. * Shared/Plugins/Netscape/NetscapePluginModule.h:
  13495. * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
  13496. (WebKit::initializeGTK): The same hack that we do in WebCore.
  13497. Call gtk_init because flash don't do it for itself.
  13498. (WebKit::NetscapePluginModule::applyX11QuirksBeforeLoad): Added for X11.
  13499. Do the hacks that we need to do before calling NP_Initialize on the
  13500. flash plugin to save it form crashing.
  13501. * Shared/Plugins/PluginQuirks.h: Use PLUGIN_ARCHITECTURE macros.
  13502. Added RequiresGTKToolKit quirk for X11.
  13503. * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
  13504. (WebKit::NPN_GetValue): Handle the RequiresGTKToolKit quirk on X11.
  13505. * WebProcess/Plugins/Netscape/NetscapePlugin.h:
  13506. (WebKit::NetscapePlugin::quirks): Added getter for the PluginModule's
  13507. quirks to be available in NPN_GetValue.
  13508. 2011-03-01 Adam Roben <aroben@apple.com>
  13509. Convert seconds to milliseconds before calling ::SetTimer
  13510. Fixes <http://webkit.org/b/55417> <rdar://problem/9065287> RunLoop::Timer fires 1000x too
  13511. early on Windows
  13512. Reviewed by Anders Carlsson.
  13513. * Platform/win/RunLoopWin.cpp:
  13514. (RunLoop::TimerBase::start): Convert the timeout interval to milliseconds, since that's what
  13515. ::SetTimer expects.
  13516. 2011-03-01 Andras Becsi <abecsi@webkit.org>
  13517. Reviewed by Csaba Osztrogonác.
  13518. [Qt] Clean up the project files and move common options to WebKit.pri.
  13519. * WebKit2.pro: Deduplicate options.
  13520. 2011-03-01 Juha Savolainen <juha.savolainen@weego.fi>
  13521. Reviewed by Andreas Kling.
  13522. [Qt] WebKit2 needs to support font size changing and getting default font size
  13523. https://bugs.webkit.org/show_bug.cgi?id=53671
  13524. Added new enum for font size type and added methods to set and get default font sizes.
  13525. * UIProcess/API/qt/qwkpreferences.cpp:
  13526. (QWKPreferences::setFontSize): Added.
  13527. (QWKPreferences::fontSize): Added.
  13528. * UIProcess/API/qt/qwkpreferences.h:
  13529. 2011-02-28 Alice Liu <alice.liu@apple.com>
  13530. Reviewed by Adam Roben and Gavin Barraclough.
  13531. https://bugs.webkit.org/show_bug.cgi?id=54898
  13532. InjectedBundleNodeHandle dies too early in WKBundleHitTestResultGetNodeHandle
  13533. * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp:
  13534. (WKBundleHitTestResultCopyNodeHandle):
  13535. Instead of .get(), call .release.leakRef() like other functions that return WKBundleNodeHandleRef.
  13536. * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.h:
  13537. Renamed from "get" to "copy", because it leaksRef.
  13538. 2011-02-28 Alice Liu <alice.liu@apple.com>
  13539. Reviewed by Gavin Barraclough.
  13540. https://bugs.webkit.org/show_bug.cgi?id=55442
  13541. Webarchives don't contain subframe content
  13542. * WebProcess/WebPage/WebPage.cpp:
  13543. (WebKit::WebPage::getWebArchiveOfFrame):
  13544. Pass the frame's document instead of just the frame, to use a different LegacyWebArchive::create function.
  13545. 2011-02-28 Benjamin Poulain <benjamin.poulain@nokia.com>
  13546. Reviewed by Kenneth Rohde Christiansen.
  13547. [Qt][WK2] Add a way to test the WebKit 2 APIs
  13548. https://bugs.webkit.org/show_bug.cgi?id=55408
  13549. Add an initial test for the WebKit 2 APIs of Qt.
  13550. * UIProcess/API/qt/tests/html/basic_page.html: Added.
  13551. * UIProcess/API/qt/tests/qgraphicswkview/qgraphicswkview.pro: Added.
  13552. * UIProcess/API/qt/tests/qgraphicswkview/tst_qgraphicswkview.cpp: Added.
  13553. (View::View):
  13554. (View::resizeEvent):
  13555. (tst_QGraphicsWKView::init):
  13556. (tst_QGraphicsWKView::cleanup):
  13557. (tst_QGraphicsWKView::loadEmptyPage):
  13558. * UIProcess/API/qt/tests/tests.pri: Added.
  13559. * UIProcess/API/qt/tests/tests.pro: Added.
  13560. * UIProcess/API/qt/tests/util.h: Added.
  13561. (waitForSignal):
  13562. 2011-02-28 Anders Carlsson <andersca@apple.com>
  13563. Fix clang build.
  13564. * UIProcess/API/mac/FindIndicatorWindow.mm:
  13565. * UIProcess/ChunkedUpdateDrawingAreaProxy.cpp:
  13566. (WebKit::ChunkedUpdateDrawingAreaProxy::deprecatedUpdate):
  13567. (WebKit::ChunkedUpdateDrawingAreaProxy::didReceiveMessage):
  13568. * UIProcess/ChunkedUpdateDrawingAreaProxy.h:
  13569. * WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp:
  13570. (WebKit::ChunkedUpdateDrawingArea::deprecatedResumePainting):
  13571. (WebKit::ChunkedUpdateDrawingArea::didReceiveMessage):
  13572. * WebProcess/WebPage/ChunkedUpdateDrawingArea.h:
  13573. 2011-02-28 Dan Bernstein <mitz@apple.com>
  13574. Rubber-stamped by Anders Carlsson.
  13575. Do not copy config.h into WebKit2.
  13576. * WebKit2.xcodeproj/project.pbxproj:
  13577. 2011-02-28 Dan Bernstein <mitz@apple.com>
  13578. LLVM Compiler build fix.
  13579. * Scripts/webkit2/messages.py:
  13580. * UIProcess/WebPageProxy.h:
  13581. 2011-02-28 Anders Carlsson <andersca@apple.com>
  13582. Reviewed by Dan Bernstein, Sam Weinig, Alexey Proskuryakov and Darin Adler.
  13583. Open PDF in Preview doesn't work
  13584. https://bugs.webkit.org/show_bug.cgi?id=55400
  13585. <rdar://problem/8750353>
  13586. * UIProcess/API/mac/PDFViewController.mm:
  13587. (-[WKPDFView initWithFrame:PDFViewController:]):
  13588. Set the WKPDFView as the delegate of itself.
  13589. (-[WKPDFView PDFViewOpenPDFInNativeApplication:]):
  13590. Call PDFViewController::openPDFInFinder.
  13591. (WebKit::PDFViewController::PDFViewController):
  13592. Initialize m_hasWrittenPDFToDisk to false.
  13593. (WebKit::PDFViewController::openPDFInFinder):
  13594. Write the PDF to disk if needed and then open it using -[NSWorkspace openFile:].
  13595. (WebKit::temporaryPDFDirectoryPath):
  13596. Create a directory to put PDFs in.
  13597. (WebKit::PDFViewController::pathToPDFOnDisk):
  13598. Return a path to a (non-existent) file in the temporary PDF directory.
  13599. 2011-02-28 Alexey Proskuryakov <ap@apple.com>
  13600. Reviewed by Dan Bernstein.
  13601. Frequent crashes in CFURLCache code on Snow Leopard
  13602. https://bugs.webkit.org/show_bug.cgi?id=55412
  13603. <rdar://problem/9063922>
  13604. CString is evil, it has two lengths which can be different - specifically, fileSystemRepresentation()
  13605. creates a string with maximum possible buffer size. A path with garbage at the end confused
  13606. CFURLCache into corrupting its data structures.
  13607. * Shared/WebProcessCreationParameters.h: Added a FIXME about merging Mac and Windows code.
  13608. This problem wouldn't have occured if we didn't use CString in the first place.
  13609. * UIProcess/mac/WebContextMac.mm: (WebKit::WebContext::platformInitializeWebProcess):
  13610. Added an assertion matching Windows behavior (seems likely that NSURLCache also wouldn't
  13611. have liked trailing slash).
  13612. * UIProcess/win/WebContextWin.cpp: (WebKit::WebContext::platformInitializeWebProcess):
  13613. Made slash removal conditional for robustness.
  13614. * WebProcess/mac/WebProcessMac.mm: (WebKit::WebProcess::platformInitializeWebProcess):
  13615. Use actual string length, not CString::length().
  13616. 2011-02-28 Balazs Kelemen <kbalazs@webkit.org>
  13617. Reviewed by Anders Carlsson.
  13618. [Qt][WK2] Plugin initialization
  13619. https://bugs.webkit.org/show_bug.cgi?id=48127
  13620. Specialize the way of initializing the plugin for X11.
  13621. Introduce PLUGIN_ARCHITECTURE macros to allow code sharing
  13622. across platforms.
  13623. * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
  13624. (WebKit::NetscapePluginModule::tryLoad):
  13625. * config.h:
  13626. 2011-02-28 Sam Weinig <sam@webkit.org>
  13627. Reviewed by Brady Eidson.
  13628. WK2 Context Menus - Implement LookUpInDictionary
  13629. https://bugs.webkit.org/show_bug.cgi?id=55405
  13630. * Shared/DictionaryPopupInfo.cpp:
  13631. (WebKit::DictionaryPopupInfo::encode):
  13632. (WebKit::DictionaryPopupInfo::decode):
  13633. * Shared/DictionaryPopupInfo.h:
  13634. Add type to differentiate between HotKey and ContextMenu triggered
  13635. dictionary popups. This is necessary since HotKey triggered ones want
  13636. to override the style to always be overlay.
  13637. * UIProcess/API/mac/PageClientImpl.mm:
  13638. (WebKit::PageClientImpl::didPerformDictionaryLookup):
  13639. Only force the overlay style for HotKey triggered dictionary lookups.
  13640. * WebProcess/WebPage/WebPage.h:
  13641. * WebProcess/WebPage/mac/WebPageMac.mm:
  13642. (WebKit::WebPage::performDictionaryLookupAtLocation):
  13643. (WebKit::WebPage::performDictionaryLookupForRange):
  13644. Factor out shared functionality into performDictionaryLookupForRange.
  13645. * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
  13646. (WebKit::WebContextMenuClient::lookUpInDictionary):
  13647. Get selected range and call newly factored out performDictionaryLookupForRange.
  13648. 2011-02-28 Anders Carlsson <andersca@apple.com>
  13649. Reviewed by Dan Bernstein.
  13650. PDFViewController should hold a reference to the PDF data
  13651. https://bugs.webkit.org/show_bug.cgi?id=55394
  13652. * UIProcess/API/mac/PDFViewController.h:
  13653. * UIProcess/API/mac/PDFViewController.mm:
  13654. (WebKit::PDFViewController::setPDFDocumentData):
  13655. 2011-02-28 Sam Weinig <sam@webkit.org>
  13656. Reviewed by Darin Adler.
  13657. Size of text in popup menu doesn't match size of text in <select> itself in WebKit2
  13658. https://bugs.webkit.org/show_bug.cgi?id=48234
  13659. * Shared/TextInfo.cpp: Removed.
  13660. * Shared/TextInfo.h: Removed.
  13661. Replace this with the more appropriately DictionaryPopupInfo.
  13662. * Shared/DictionaryPopupInfo.cpp: Copied from Source/WebKit2/Shared/TextInfo.cpp.
  13663. (WebKit::DictionaryPopupInfo::encode):
  13664. (WebKit::DictionaryPopupInfo::decode):
  13665. * Shared/DictionaryPopupInfo.h: Copied from Source/WebKit2/Shared/TextInfo.h.
  13666. (WebKit::DictionaryPopupInfo::DictionaryPopupInfo):
  13667. Replace individual font related fields with FontInfo.
  13668. * Shared/FontInfo.cpp: Added.
  13669. (WebKit::FontInfo::FontInfo):
  13670. (WebKit::FontInfo::encode):
  13671. (WebKit::FontInfo::decode):
  13672. * Shared/FontInfo.h: Added.
  13673. Add class to encapsulate passing a font description over the wire.
  13674. * Shared/PlatformPopupMenuData.cpp:
  13675. (WebKit::PlatformPopupMenuData::encode):
  13676. (WebKit::PlatformPopupMenuData::decode):
  13677. * Shared/PlatformPopupMenuData.h:
  13678. Add FontInfo as extra data for the Mac.
  13679. * UIProcess/API/mac/PageClientImpl.h:
  13680. * UIProcess/API/mac/PageClientImpl.mm:
  13681. (WebKit::PageClientImpl::didPerformDictionaryLookup):
  13682. * UIProcess/PageClient.h:
  13683. Add scaleFactor and use it to construct a font at the right size.
  13684. * UIProcess/WebPageProxy.cpp:
  13685. (WebKit::WebPageProxy::showPopupMenu):
  13686. (WebKit::WebPageProxy::didPerformDictionaryLookup):
  13687. * UIProcess/WebPageProxy.h:
  13688. * UIProcess/WebPageProxy.messages.in:
  13689. * UIProcess/WebPopupMenuProxy.h:
  13690. * UIProcess/mac/WebPopupMenuProxyMac.h:
  13691. (WebKit::WebPopupMenuProxyMac::create):
  13692. * UIProcess/mac/WebPopupMenuProxyMac.mm:
  13693. (WebKit::WebPopupMenuProxyMac::WebPopupMenuProxyMac):
  13694. (WebKit::WebPopupMenuProxyMac::populate):
  13695. (WebKit::WebPopupMenuProxyMac::showPopupMenu):
  13696. * UIProcess/qt/WebPopupMenuProxyQt.cpp:
  13697. (WebKit::WebPopupMenuProxyQt::showPopupMenu):
  13698. * UIProcess/qt/WebPopupMenuProxyQt.h:
  13699. * UIProcess/win/WebPopupMenuProxyWin.cpp:
  13700. (WebKit::WebPopupMenuProxyWin::showPopupMenu):
  13701. * UIProcess/win/WebPopupMenuProxyWin.h:
  13702. * WebProcess/WebCoreSupport/mac/WebPopupMenuMac.mm:
  13703. (WebKit::WebPopupMenu::setUpPlatformData):
  13704. * WebProcess/WebPage/mac/WebPageMac.mm:
  13705. (WebKit::WebPage::performDictionaryLookupAtLocation):
  13706. Pass scale factor through and rename TextInfo -> DictionaryPopupInfo.
  13707. * WebKit2.pro:
  13708. * WebKit2.xcodeproj/project.pbxproj:
  13709. * win/WebKit2.vcproj:
  13710. Add new files.
  13711. 2011-02-28 Adam Roben <aroben@apple.com>
  13712. One more rename as a followup to r79868
  13713. Rubber-stamped by Anders Carlsson.
  13714. * UIProcess/DrawingAreaProxyImpl.cpp:
  13715. * UIProcess/DrawingAreaProxyImpl.h:
  13716. Rename stateDidChange to backingStoreStateDidChange.
  13717. 2011-02-28 Adam Roben <aroben@apple.com>
  13718. Rename DrawingArea[Proxy]Impl's "state ID" concept to "backing store state ID"
  13719. Rubber-stamped (and suggested) by Anders Carlsson.
  13720. * UIProcess/DrawingAreaProxy.h:
  13721. * UIProcess/DrawingAreaProxy.messages.in:
  13722. * UIProcess/DrawingAreaProxyImpl.cpp:
  13723. * UIProcess/DrawingAreaProxyImpl.h:
  13724. * WebProcess/WebPage/DrawingArea.h:
  13725. * WebProcess/WebPage/DrawingArea.messages.in:
  13726. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  13727. * WebProcess/WebPage/DrawingAreaImpl.h:
  13728. Perform the rename.
  13729. 2011-02-28 Adam Roben <aroben@apple.com>
  13730. Decouple state changes from sending of UpdateState messages in DrawingAreaProxyImpl
  13731. The new DrawingAreaProxyImpl::stateDidChange function should be called whenever
  13732. DrawingAreaProxyImpl's state changes in a way that will require allocating a new backing
  13733. store. (Currently, this is just when the size changes.) This function will sometimes (but
  13734. not always, as when we're waiting for a DidUpdateState message) send an UpdateState message
  13735. to the web process. This means it's now possible for the state IDs sent in consecutive
  13736. UpdateState messages to increase by more than one, but that's OK.
  13737. This should cause no change in behavior.
  13738. Fixes <http://webkit.org/b/55382> DrawingAreaProxyImpl's state ID should be updated whenever
  13739. its state changes, not just when we send an UpdateState message
  13740. Reviewed by Anders Carlsson.
  13741. * UIProcess/DrawingAreaProxyImpl.cpp:
  13742. (WebKit::DrawingAreaProxyImpl::DrawingAreaProxyImpl): Updated for rename.
  13743. (WebKit::DrawingAreaProxyImpl::sizeDidChange): Changed to call stateDidChange.
  13744. (WebKit::DrawingAreaProxyImpl::didUpdateState): Updated for rename, and changed to call
  13745. sendUpdateState whenever our state has changed for any reason since the last UpdateState
  13746. message was sent.
  13747. (WebKit::DrawingAreaProxyImpl::stateDidChange): Added. Increments m_nextStateID and calls
  13748. through to sendUpdateState.
  13749. (WebKit::DrawingAreaProxyImpl::sendUpdateState): Updated for rename, moved incrementing of
  13750. the state ID we send to the web process from here to stateDidChange, and added an assertion.
  13751. * UIProcess/DrawingAreaProxyImpl.h: Renamed m_requestedStateID to m_nextStateID, and updated
  13752. the comment explaining its meaning.
  13753. 2011-02-28 Adam Roben <aroben@apple.com>
  13754. Pass the right dirty rect to Plugin::paint
  13755. A typo in r79040 broke this. Much of this patch is just support for testing the fix.
  13756. Fixes <http://webkit.org/b/55365> <rdar://problem/9031089> REGRESSION (r79040): WebKit2:
  13757. Large portions of pages with plugins paint black
  13758. Reviewed by Anders Carlsson.
  13759. * WebProcess/Plugins/PluginView.cpp:
  13760. (WebKit::PluginView::paint): Pass the dirty rect we calculated earlier to Plugin::paint,
  13761. rather than just passing along the dirty rect that was passed into this function. This is
  13762. the bug fix.
  13763. * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
  13764. (WKBundlePageForceRepaint):
  13765. * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
  13766. Added new SPI. Just calls through to WebPage::forceRepaintWithoutCallback.
  13767. * WebProcess/WebPage/WebPage.cpp:
  13768. (WebKit::WebPage::forceRepaintWithoutCallback): Moved code to force a repaint here...
  13769. (WebKit::WebPage::forceRepaint): ...from here.
  13770. * WebProcess/WebPage/WebPage.h: Added forceRepaintWithoutCallback.
  13771. 2011-02-27 Sam Weinig <sam@webkit.org>
  13772. Reviewed by Dan Bernstein.
  13773. Force dictionary popup to use overlay type
  13774. <rdar://problem/9052483>
  13775. https://bugs.webkit.org/show_bug.cgi?id=55337
  13776. * UIProcess/API/mac/PageClientImpl.mm:
  13777. (WebKit::PageClientImpl::didPerformDictionaryLookup): As this is only
  13778. used for the hot key version of the dictionary popup, force the overlay
  13779. style.
  13780. 2011-02-27 Benjamin Poulain <benjamin.poulain@nokia.com>
  13781. Reviewed by Kenneth Rohde Christiansen.
  13782. [Qt] [WK2] QGraphicsWKView::showContextMenu() should be public
  13783. https://bugs.webkit.org/show_bug.cgi?id=55330
  13784. Move QGraphicsWKView::showContextMenu() to the public API. Add documentation
  13785. on its use.
  13786. * UIProcess/API/qt/qgraphicswkview.cpp:
  13787. * UIProcess/API/qt/qgraphicswkview.h:
  13788. 2011-02-27 Alejandro G. Castro <alex@igalia.com>
  13789. Unreviewed, fixed GTK compilation after r79806.
  13790. * UIProcess/gtk/WebView.cpp:
  13791. (WebKit::WebView::didFinishLoadingDataForCustomRepresentation):
  13792. * UIProcess/gtk/WebView.h:
  13793. 2011-02-26 Anders Carlsson <andersca@apple.com>
  13794. Reviewed by Dan Bernstein.
  13795. Asynchronous response to FramePolicyListener is not finishing the load
  13796. https://bugs.webkit.org/show_bug.cgi?id=55305
  13797. <rdar://problem/9044356>
  13798. Always initialize the receivedPolicyAction reply parameter.
  13799. * UIProcess/WebPageProxy.cpp:
  13800. (WebKit::WebPageProxy::decidePolicyForNavigationAction):
  13801. (WebKit::WebPageProxy::decidePolicyForMIMEType):
  13802. 2011-02-26 Anders Carlsson <andersca@apple.com>
  13803. Reviewed by Sam Weinig.
  13804. DidFinishLoadingDataForCustomRepresentation should pass along the suggested filename
  13805. https://bugs.webkit.org/show_bug.cgi?id=55304
  13806. * UIProcess/API/mac/PDFViewController.h:
  13807. * UIProcess/API/mac/PDFViewController.mm:
  13808. (WebKit::PDFViewController::setPDFDocumentData):
  13809. * UIProcess/API/mac/PageClientImpl.h:
  13810. * UIProcess/API/mac/PageClientImpl.mm:
  13811. (WebKit::PageClientImpl::didFinishLoadingDataForCustomRepresentation):
  13812. * UIProcess/API/mac/WKView.mm:
  13813. (-[WKView _didFinishLoadingDataForCustomRepresentationWithSuggestedFilename:dataReference:CoreIPC::]):
  13814. * UIProcess/API/mac/WKViewInternal.h:
  13815. * UIProcess/API/qt/qwkpage.cpp:
  13816. (QWKPagePrivate::didFinishLoadingDataForCustomRepresentation):
  13817. * UIProcess/API/qt/qwkpage_p.h:
  13818. * UIProcess/PageClient.h:
  13819. * UIProcess/WebPageProxy.cpp:
  13820. (WebKit::WebPageProxy::didFinishLoadingDataForCustomRepresentation):
  13821. * UIProcess/WebPageProxy.h:
  13822. * UIProcess/WebPageProxy.messages.in:
  13823. * UIProcess/win/WebView.cpp:
  13824. (WebKit::WebView::didFinishLoadingDataForCustomRepresentation):
  13825. * UIProcess/win/WebView.h:
  13826. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  13827. (WebKit::WebFrameLoaderClient::finishedLoading):
  13828. 2011-02-26 Anders Carlsson <andersca@apple.com>
  13829. Reviewed by Oliver Hunt.
  13830. DrawingArea should not be reference counted
  13831. https://bugs.webkit.org/show_bug.cgi?id=55284
  13832. * Shared/DrawingAreaInfo.h:
  13833. * Shared/WebPageCreationParameters.cpp:
  13834. (WebKit::WebPageCreationParameters::encode):
  13835. (WebKit::WebPageCreationParameters::decode):
  13836. * Shared/WebPageCreationParameters.h:
  13837. * UIProcess/ChunkedUpdateDrawingAreaProxy.cpp:
  13838. (WebKit::ChunkedUpdateDrawingAreaProxy::ChunkedUpdateDrawingAreaProxy):
  13839. (WebKit::ChunkedUpdateDrawingAreaProxy::setPageIsVisible):
  13840. (WebKit::ChunkedUpdateDrawingAreaProxy::update):
  13841. (WebKit::ChunkedUpdateDrawingAreaProxy::sendSetSize):
  13842. * UIProcess/ChunkedUpdateDrawingAreaProxy.h:
  13843. * UIProcess/DrawingAreaProxy.cpp:
  13844. (WebKit::DrawingAreaProxy::DrawingAreaProxy):
  13845. * UIProcess/DrawingAreaProxy.h:
  13846. (WebKit::DrawingAreaProxy::type):
  13847. * UIProcess/DrawingAreaProxyImpl.cpp:
  13848. (WebKit::DrawingAreaProxyImpl::DrawingAreaProxyImpl):
  13849. * UIProcess/DrawingAreaProxyImpl.h:
  13850. * UIProcess/TiledDrawingAreaProxy.cpp:
  13851. (WebKit::TiledDrawingAreaProxy::TiledDrawingAreaProxy):
  13852. * UIProcess/TiledDrawingAreaProxy.h:
  13853. * UIProcess/WebPageProxy.cpp:
  13854. (WebKit::WebPageProxy::didReceiveSyncMessage):
  13855. (WebKit::WebPageProxy::creationParameters):
  13856. * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
  13857. * WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp:
  13858. (WebKit::ChunkedUpdateDrawingArea::ChunkedUpdateDrawingArea):
  13859. (WebKit::ChunkedUpdateDrawingArea::display):
  13860. (WebKit::ChunkedUpdateDrawingArea::setSize):
  13861. (WebKit::ChunkedUpdateDrawingArea::didReceiveMessage):
  13862. * WebProcess/WebPage/ChunkedUpdateDrawingArea.h:
  13863. * WebProcess/WebPage/DrawingArea.cpp:
  13864. (WebKit::DrawingArea::create):
  13865. (WebKit::DrawingArea::DrawingArea):
  13866. * WebProcess/WebPage/DrawingArea.h:
  13867. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  13868. (WebKit::DrawingAreaImpl::create):
  13869. (WebKit::DrawingAreaImpl::DrawingAreaImpl):
  13870. * WebProcess/WebPage/DrawingAreaImpl.h:
  13871. * WebProcess/WebPage/TiledDrawingArea.cpp:
  13872. (WebKit::TiledDrawingArea::TiledDrawingArea):
  13873. * WebProcess/WebPage/TiledDrawingArea.h:
  13874. * WebProcess/WebPage/WebPage.cpp:
  13875. (WebKit::WebPage::drawRect):
  13876. * WebProcess/WebPage/WebPage.h:
  13877. 2011-02-26 Vsevolod Vlasov <vsevik@chromium.org>
  13878. Reviewed by Pavel Feldman.
  13879. DumpRenderTree should reset frame opener between tests.
  13880. https://bugs.webkit.org/show_bug.cgi?id=54874
  13881. Added clearOpener method to WKBundleWebFramePrivate.
  13882. * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
  13883. (WKBundleFrameClearOpener):
  13884. * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
  13885. 2011-02-26 Yael Aharon <yael.aharon@nokia.com>
  13886. Reviewed by Andreas Kling.
  13887. [Qt] Fix the focus in MiniBrowser.
  13888. https://bugs.webkit.org/show_bug.cgi?id=55288
  13889. Implement basic functionality for focus in QWKPagePrivate.
  13890. * UIProcess/API/qt/qwkpage.cpp:
  13891. (QWKPagePrivate::isViewWindowActive):
  13892. (QWKPagePrivate::isViewFocused):
  13893. (QWKPagePrivate::isViewVisible):
  13894. 2011-02-26 Sheriff Bot <webkit.review.bot@gmail.com>
  13895. Unreviewed, rolling out r79764.
  13896. http://trac.webkit.org/changeset/79764
  13897. https://bugs.webkit.org/show_bug.cgi?id=55295
  13898. "broke Chromium builds" (Requested by rniwa on #webkit).
  13899. * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
  13900. * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
  13901. 2011-02-26 Vsevolod Vlasov <vsevik@chromium.org>
  13902. Reviewed by Pavel Feldman.
  13903. DumpRenderTree should reset frame opener between tests.
  13904. https://bugs.webkit.org/show_bug.cgi?id=54874
  13905. Added clearOpener method to WKBundleWebFramePrivate.
  13906. * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
  13907. (WKBundleFrameClearOpener):
  13908. * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
  13909. 2011-02-25 Anders Carlsson <andersca@apple.com>
  13910. Reviewed by Darin Adler.
  13911. Plug-in process crashes when using GuardMalloc
  13912. https://bugs.webkit.org/show_bug.cgi?id=55279
  13913. <rdar://problem/9044618>
  13914. Update m_environmentPointer after copying the environment variables.
  13915. * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
  13916. (WebKit::EnvironmentVariables::copyEnvironmentVariables):
  13917. 2011-02-25 Darin Adler <darin@apple.com>
  13918. * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
  13919. (WebKit::ProcessLauncher::launchProcess): Fixed backwards logic from last change.
  13920. 2011-02-25 Darin Adler <darin@apple.com>
  13921. Reviewed by Mark Rowe.
  13922. * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
  13923. (WebKit::ProcessLauncher::launchProcess): Fixed performance problem in production
  13924. builds by only setting DYLD_FRAMEWORK_PATH in engineering configurations.
  13925. 2011-02-25 Darin Adler <darin@apple.com>
  13926. Reviewed by Anders Carlsson.
  13927. <rdar://problem/8036034> WebKit2 should work even if DYLD_FRAMEWORK_PATH is not set
  13928. * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
  13929. (WebKit::EnvironmentVariables::~EnvironmentVariables): Use fastFree, not delete, on
  13930. the strings here because they are allocated with fastMalloc, not new.
  13931. (WebKit::EnvironmentVariables::set): Use const more.
  13932. (WebKit::EnvironmentVariables::get): Ditto.
  13933. (WebKit::EnvironmentVariables::appendValue): Ditto.
  13934. (WebKit::EnvironmentVariables::valueIfVariableHasName): Ditto. Also fix mistake
  13935. where this would match if the name matched only a prefix of the environment variable's
  13936. name. We want to match the whole name, so we need to use memcmp, not strncmp.
  13937. (WebKit::EnvironmentVariables::createStringForVariable): Use const more.
  13938. (WebKit::ProcessLauncher::launchProcess): Use clearer name, frameworkExecutablePath,
  13939. for what was called bundlePath before. Append the frameworks path to DYLD_FRAMEWORK_PATH,
  13940. ensuring we can pick up other frameworks from the same directory in the web process.
  13941. Use a const_cast instead of a C-style cast.
  13942. 2011-02-25 Chris Fleizach <cfleizach@apple.com>
  13943. Reviewed by Anders Carlsson.
  13944. AX: WK2: AXApplication not returning the AXFocusedUIElement within the web area
  13945. https://bugs.webkit.org/show_bug.cgi?id=55277
  13946. * UIProcess/API/mac/WKView.mm:
  13947. (-[WKView accessibilityFocusedUIElement]):
  13948. 2011-02-25 Alexey Proskuryakov <ap@apple.com>
  13949. Reviewed by Anders Carlsson.
  13950. https://bugs.webkit.org/show_bug.cgi?id=55276
  13951. WebPage::close() accesses "this" after it is destroyed.
  13952. This was making many tests crash with GuardMalloc.
  13953. * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::close): Access "this" before it can be
  13954. destroyed, not after.
  13955. 2011-02-25 Balazs Kelemen <kbalazs@webkit.org>
  13956. Unreviewed.
  13957. Add missing sources to WebKit2API.pri.
  13958. * WebKit2API.pri:
  13959. 2011-02-25 Anders Carlsson <andersca@apple.com>
  13960. Reviewed by Darin Adler.
  13961. A WKView without a window will cause CG errors in the console
  13962. https://bugs.webkit.org/show_bug.cgi?id=55264
  13963. <rdar://problem/9044281>
  13964. Check that the window has a valid window number before trying to get its graphics context.
  13965. * UIProcess/API/mac/PageClientImpl.mm:
  13966. (WebKit::PageClientImpl::containingWindowGraphicsContext):
  13967. 2011-02-25 Brian Weinstein <bweinstein@apple.com>
  13968. Reviewed by Brady Eidson and looked over by Jessie Berlin.
  13969. WebKit2: Need a way to manage cookies from the web process
  13970. https://bugs.webkit.org/show_bug.cgi?id=55086
  13971. Call through to WebCore::CookieJar in our WebCookieManager functions.
  13972. * WebProcess/Cookies/WebCookieManager.cpp:
  13973. (WebKit::WebCookieManager::getHostnamesWithCookies):
  13974. (WebKit::WebCookieManager::deleteCookiesForHostname):
  13975. (WebKit::WebCookieManager::deleteAllCookies):
  13976. 2011-02-25 Anders Carlsson <andersca@apple.com>
  13977. Reviewed by Sam Weinig.
  13978. Option-clicking on links doesn't download them due to sandbox violation
  13979. https://bugs.webkit.org/show_bug.cgi?id=55250
  13980. <rdar://problem/9018359>
  13981. The change to make DecidePolicyForNavigationAction sync didn't handle the case when the
  13982. decided policy was "Download". Fix this by passing along the download ID back to the web process.
  13983. * Platform/CoreIPC/HandleMessage.h:
  13984. (CoreIPC::callMemberFunction):
  13985. Add new overload.
  13986. * UIProcess/WebPageProxy.cpp:
  13987. (WebKit::WebPageProxy::WebPageProxy):
  13988. Initialize m_syncNavigationActionPolicyDownloadID.
  13989. (WebKit::WebPageProxy::receivedPolicyDecision):
  13990. Set m_syncNavigationActionPolicyDownloadID to the download ID.
  13991. (WebKit::WebPageProxy::decidePolicyForNavigationAction):
  13992. Return the m_syncNavigationActionPolicyDownloadID.
  13993. * UIProcess/WebPageProxy.h:
  13994. * UIProcess/WebPageProxy.messages.in:
  13995. Add a DownloadID reply parameter.
  13996. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  13997. (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
  13998. Don't pass a zero download ID to didReceivePolicyDecision.
  13999. 2011-02-25 Amruth Raj <amruthraj@motorola.com> and Ravi Phaneendra Kasibhatla <ravi.kasibhatla@motorola.com> and Alejandro G. Castro <alex@igalia.com>
  14000. Reviewed by Martin Robinson.
  14001. [GTK] Implement WebContext and NativeKeyboardEvent classes for WebKit2
  14002. https://bugs.webkit.org/show_bug.cgi?id=48510
  14003. * GNUmakefile.am:
  14004. * Shared/NativeWebKeyboardEvent.h: Added the GTK event attribute
  14005. and constructors, in our case we need it because we use a pointer
  14006. and copy the event.
  14007. (WebKit::NativeWebKeyboardEvent::nativeEvent):
  14008. * Shared/gtk/NativeWebKeyboardEventGtk.cpp: Added.
  14009. (WebKit::NativeWebKeyboardEvent::NativeWebKeyboardEvent): We need
  14010. to copy the event in the constructor to avoid two references to
  14011. the same event.
  14012. * Shared/gtk/WebEventFactory.cpp: Changed the prototype of the
  14013. functions to add const, we need it for the NativeWebKeyboardEvent
  14014. constructor.
  14015. (WebKit::modifiersForEvent):
  14016. (WebKit::WebEventFactory::createWebKeyboardEvent):
  14017. * UIProcess/gtk/WebContextGtk.cpp: Added. Stubbed implementation
  14018. for GTK port. Yet to implement.
  14019. (WebKit::WebContext::applicationCacheDirectory):
  14020. (WebKit::WebContext::platformInitializeWebProcess):
  14021. (WebKit::WebContext::platformDefaultDatabaseDirectory):
  14022. * UIProcess/gtk/WebView.cpp:
  14023. (WebKit::WebView::handleKeyboardEvent):
  14024. 2011-02-25 Anders Carlsson <andersca@apple.com>
  14025. Reviewed by Sam Weinig.
  14026. Get rid of more old accelerated compositing code
  14027. https://bugs.webkit.org/show_bug.cgi?id=55235
  14028. * Shared/CoreIPCSupport/DrawingAreaProxyMessageKinds.h:
  14029. * UIProcess/ChunkedUpdateDrawingAreaProxy.h:
  14030. * UIProcess/DrawingAreaProxy.h:
  14031. * UIProcess/DrawingAreaProxyImpl.cpp:
  14032. * UIProcess/DrawingAreaProxyImpl.h:
  14033. * WebProcess/WebPage/ChunkedUpdateDrawingArea.h:
  14034. * WebProcess/WebPage/DrawingArea.h:
  14035. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  14036. * WebProcess/WebPage/DrawingAreaImpl.h:
  14037. 2011-02-25 Andras Becsi <abecsi@webkit.org>
  14038. Reviewed by Csaba Osztrogonác.
  14039. [Qt] Make the WebKit2 build system less confusing for non-Qt developers
  14040. https://bugs.webkit.org/show_bug.cgi?id=55213
  14041. * WebKit2API.pri: Added.
  14042. 2011-02-25 Amruth Raj <amruthraj@motorola.com> and Ravi Phaneendra Kasibhatla <ravi.kasibhatla@motorola.com> and Alejandro G. Castro <alex@igalia.com>
  14043. Reviewed by Martin Robinson.
  14044. [GTK] Implement WebView and WebKitWebView classes for WebKit2
  14045. https://bugs.webkit.org/show_bug.cgi?id=48509
  14046. * GNUmakefile.am:
  14047. * UIProcess/API/C/gtk/WKView.cpp:
  14048. * UIProcess/API/C/gtk/WKView.h: Removed gdkrectangle from
  14049. constructor.
  14050. * UIProcess/gtk/WebViewWidget.cpp: Added. The GObject interface
  14051. for WebView. The GObject is the GtkWidget handle which is used by
  14052. WebView class for GTK port.
  14053. * UIProcess/gtk/WebViewWidget.h: Added. The GObject interface
  14054. declarations for GtkWidget handle for GTK port.
  14055. * UIProcess/gtk/WebView.cpp: Added. The native GtkWidget handle
  14056. for GTK port which is associated with each WKViewRef.
  14057. * UIProcess/gtk/WebView.h: Added. Class which implements the
  14058. PageClient interface. It is a wrapper over the native GtkWidget
  14059. handle associated with each WKViewRef for GTK port.
  14060. 2011-02-25 Alejandro G. Castro <alex@igalia.com>
  14061. Fix GTK compilation after r79654.
  14062. * GNUmakefile.am:
  14063. 2011-02-24 Brian Weinstein <bweinstein@apple.com>
  14064. Qt build fix.
  14065. * WebKit2.pri:
  14066. 2011-02-24 Brady Eidson <beidson@apple.com>
  14067. Reviewed by Sam Weinig and looked over by Brian Weinstein.
  14068. Part of <rdar://problem/8762095> and https://bugs.webkit.org/show_bug.cgi?id=55172
  14069. Need WebKit2 API to view/manage origins with LocalStorage.
  14070. Project file stuff:
  14071. * GNUmakefile.am:
  14072. * WebKit2.pri:
  14073. * WebKit2.pro:
  14074. * WebKit2.xcodeproj/project.pbxproj:
  14075. * win/WebKit2.vcproj:
  14076. * win/WebKit2Common.vsprops:
  14077. * win/WebKit2Generated.make:
  14078. WK2 derived sources and API stuff:
  14079. * DerivedSources.make:
  14080. * DerivedSources.pro:
  14081. * Platform/CoreIPC/MessageID.h:
  14082. * Shared/API/c/WKBase.h:
  14083. * Shared/APIObject.h:
  14084. * UIProcess/API/C/WKAPICast.h:
  14085. Add an KeyValueStorageManager to the context and invalidate it at the appropriate times:
  14086. * UIProcess/WebContext.cpp:
  14087. (WebKit::WebContext::WebContext):
  14088. (WebKit::WebContext::~WebContext):
  14089. (WebKit::WebContext::disconnectProcess):
  14090. (WebKit::WebContext::didReceiveMessage):
  14091. * UIProcess/WebContext.h:
  14092. (WebKit::WebContext::keyValueStorageManagerProxy):
  14093. Add API to get the KeyValueStorageManager for a context:
  14094. * UIProcess/API/C/WKContext.cpp:
  14095. (WKContextGetKeyValueStorageManager):
  14096. * UIProcess/API/C/WKContext.h:
  14097. Route messages to the right place:
  14098. * UIProcess/WebProcessProxy.cpp:
  14099. (WebKit::WebProcessProxy::didReceiveMessage):
  14100. * WebProcess/WebProcess.cpp:
  14101. (WebKit::WebProcess::didReceiveMessage):
  14102. Add the API object, which wraps to WebKeyValueStorageManagerProxy:
  14103. * UIProcess/API/C/WKKeyValueStorageManager.cpp: Added.
  14104. (WKKeyValueStorageManagerGetTypeID):
  14105. (WKKeyValueStorageManagerGetKeyValueStorageOrigins):
  14106. (WKKeyValueStorageManagerDeleteEntriesForOrigin):
  14107. (WKKeyValueStorageManagerDeleteAllEntries):
  14108. * UIProcess/API/C/WKKeyValueStorageManager.h: Added.
  14109. The UIProcess implementation of the manager to send messages to the WebProcess and pipe a callback back up to the client:
  14110. * UIProcess/WebKeyValueStorageManagerProxy.cpp: Added.
  14111. (WebKit::WebKeyValueStorageManagerProxy::create):
  14112. (WebKit::WebKeyValueStorageManagerProxy::WebKeyValueStorageManagerProxy):
  14113. (WebKit::WebKeyValueStorageManagerProxy::~WebKeyValueStorageManagerProxy):
  14114. (WebKit::WebKeyValueStorageManagerProxy::invalidate):
  14115. (WebKit::WebKeyValueStorageManagerProxy::didReceiveMessage):
  14116. (WebKit::WebKeyValueStorageManagerProxy::getKeyValueStorageOrigins):
  14117. (WebKit::WebKeyValueStorageManagerProxy::didGetKeyValueStorageOrigins):
  14118. (WebKit::WebKeyValueStorageManagerProxy::deleteEntriesForOrigin):
  14119. (WebKit::WebKeyValueStorageManagerProxy::deleteAllEntries):
  14120. * UIProcess/WebKeyValueStorageManagerProxy.h: Added.
  14121. (WebKit::WebKeyValueStorageManagerProxy::clearContext):
  14122. (WebKit::WebKeyValueStorageManagerProxy::type):
  14123. * UIProcess/WebKeyValueStorageManagerProxy.messages.in: Added.
  14124. The WebProcess implementation to response to UIProcess messages and actually do the dirty-work in WebCore:
  14125. * WebProcess/KeyValueStorage: Added.
  14126. * WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp: Added.
  14127. (WebKit::WebKeyValueStorageManager::shared):
  14128. (WebKit::WebKeyValueStorageManager::WebKeyValueStorageManager):
  14129. (WebKit::WebKeyValueStorageManager::didReceiveMessage):
  14130. (WebKit::WebKeyValueStorageManager::getKeyValueStorageOrigins):
  14131. (WebKit::WebKeyValueStorageManager::deleteEntriesForOrigin):
  14132. (WebKit::WebKeyValueStorageManager::deleteAllEntries):
  14133. * WebProcess/KeyValueStorage/WebKeyValueStorageManager.h: Added.
  14134. * WebProcess/KeyValueStorage/WebKeyValueStorageManager.messages.in: Added.
  14135. 2011-02-24 Darin Adler <darin@apple.com>
  14136. Reviewed by Anders Carlsson.
  14137. WebKit2: Image-based cursors do not work
  14138. https://bugs.webkit.org/show_bug.cgi?id=55184
  14139. * Shared/ShareableBitmap.h: Added releaseData function
  14140. declaration. This is only defined for CG, but we can declare
  14141. it without defining it on non-CG platforms without causing problems.
  14142. * Shared/WebCoreArgumentCoders.cpp: Added.
  14143. (CoreIPC::encodeImage): Added. For use in the Cursor argument coder.
  14144. (CoreIPC::decodeImage): Ditto.
  14145. * Shared/WebCoreArgumentCoders.h: Added code to the Cursor encoder
  14146. and decoder to handle image-based cursors, using the new encodeImage
  14147. and decodeImage functions.
  14148. * Shared/cg/ShareableBitmapCG.cpp:
  14149. (WebKit::ShareableBitmap::releaseData): Added.
  14150. (WebKit::ShareableBitmap::createGraphicsContext): Use
  14151. CGBitmapContextCreateWithData instead of CGBitmapContextCreate,
  14152. to guarantee we outlast the CGBitmapContext we create.
  14153. (WebKit::ShareableBitmap::paint): Got rid of unnneeded local variable.
  14154. * Shared/cg/WebCoreArgumentCodersCG.cpp: Added.
  14155. (CoreIPC::createImage): Added. For use by CoreIPC::decodeImage.
  14156. * WebKit2.xcodeproj/project.pbxproj: Added WebCoreArgumentCoders.cpp
  14157. and WebCoreArgumentCodersCG.cpp.
  14158. * win/WebKit2.vcproj: Ditto.
  14159. 2011-02-24 Anders Carlsson <andersca@apple.com>
  14160. Reviewed by Dan Bernstein.
  14161. Crash when trying to send a sync message on an invalid connection
  14162. https://bugs.webkit.org/show_bug.cgi?id=55190
  14163. <rdar://problem/9035806>
  14164. * Platform/CoreIPC/Connection.cpp:
  14165. (CoreIPC::Connection::sendSyncMessage):
  14166. Don't try to call a client function if isValid() returns false since the client
  14167. will be null in that case.
  14168. 2011-02-24 Anders Carlsson <andersca@apple.com>
  14169. Reviewed by Dan Bernstein.
  14170. Remove the layer backed drawing area
  14171. https://bugs.webkit.org/show_bug.cgi?id=55174
  14172. * GNUmakefile.am:
  14173. * Shared/DrawingAreaInfo.h:
  14174. * UIProcess/API/mac/WKView.mm:
  14175. * UIProcess/LayerBackedDrawingAreaProxy.cpp: Removed.
  14176. * UIProcess/LayerBackedDrawingAreaProxy.h: Removed.
  14177. * UIProcess/mac/LayerBackedDrawingAreaProxyMac.mm: Removed.
  14178. * UIProcess/win/LayerBackedDrawingAreaProxyWin.cpp: Removed.
  14179. * UIProcess/win/WebView.cpp:
  14180. * WebKit2.xcodeproj/project.pbxproj:
  14181. * WebProcess/WebPage/DrawingArea.cpp:
  14182. (WebKit::DrawingArea::create):
  14183. * WebProcess/WebPage/LayerBackedDrawingArea.cpp: Removed.
  14184. * WebProcess/WebPage/LayerBackedDrawingArea.h: Removed.
  14185. * WebProcess/WebPage/mac/LayerBackedDrawingAreaMac.mm: Removed.
  14186. * WebProcess/WebPage/win/LayerBackedDrawingAreaWin.cpp: Removed.
  14187. * win/WebKit2.vcproj:
  14188. 2011-02-24 Mike Thole <mthole@apple.com>
  14189. Reviewed by Sam Weinig.
  14190. WK2: Add ability to get document node for a WKBundleNodeHandle
  14191. https://bugs.webkit.org/post_bug.cgi
  14192. * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
  14193. (WKBundleNodeHandleCopyDocument):
  14194. * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h:
  14195. * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
  14196. (WebKit::InjectedBundleNodeHandle::document):
  14197. * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
  14198. 2011-02-24 Brady Eidson <beidson@apple.com>
  14199. Reviewed by Adam Roben and looked at by Brian Weinstein.
  14200. https://bugs.webkit.org/show_bug.cgi?id=55165
  14201. Can call CF API with a null CFArray in WebResourceCacheManager
  14202. * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
  14203. (WebKit::WebResourceCacheManager::getCacheOrigins): cfURLCacheHostNames() can return a null CFArrayRef,
  14204. so the call to CFArrayGetCount must be null checked.
  14205. 2011-02-24 Anders Carlsson <andersca@apple.com>
  14206. Reviewed by Simon Fraser.
  14207. ASSERTION FAILED: !isInAcceleratedCompositingMode() when entering accelerated compositing early
  14208. https://bugs.webkit.org/show_bug.cgi?id=55162
  14209. <rdar://problem/9048523>
  14210. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  14211. (WebKit::DrawingAreaImpl::updateState):
  14212. Call setShouldNotifyAfterNextScheduledLayerFlush(false) so the web process process won't send an
  14213. EnterAcceleratedCompositingMode message.
  14214. (WebKit::DrawingAreaImpl::enterAcceleratedCompositingMode):
  14215. setShouldNotifyAfterNextScheduledLayerFlush now takes a boolean.
  14216. * WebProcess/WebPage/LayerTreeHost.h:
  14217. * WebProcess/WebPage/mac/LayerTreeHostMac.h:
  14218. * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
  14219. (WebKit::LayerTreeHostMac::setShouldNotifyAfterNextScheduledLayerFlush):
  14220. Make this take a boolean.
  14221. 2011-02-24 Peter Kasting <pkasting@google.com>
  14222. Reviewed by Eric Seidel.
  14223. Drop the "U; " encryption level from the User Agent string.
  14224. https://bugs.webkit.org/show_bug.cgi?id=54566
  14225. * UIProcess/gtk/WebPageProxyGtk.cpp:
  14226. (WebKit::WebPageProxy::standardUserAgent):
  14227. * UIProcess/mac/WebPageProxyMac.mm:
  14228. (WebKit::WebPageProxy::standardUserAgent):
  14229. * UIProcess/qt/WebPageProxyQt.cpp:
  14230. (WebKit::WebPageProxy::standardUserAgent):
  14231. * UIProcess/win/WebPageProxyWin.cpp:
  14232. (WebKit::WebPageProxy::standardUserAgent):
  14233. 2011-02-24 Andrew Wilson <atwilson@chromium.org>
  14234. Unreviewed, rolling out r79570.
  14235. http://trac.webkit.org/changeset/79570
  14236. https://bugs.webkit.org/show_bug.cgi?id=54874
  14237. Breaks chromium build because glue/mocks/mock_web_frame.h/cc
  14238. was not updated
  14239. * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
  14240. * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
  14241. 2011-02-23 Brian Weinstein <bweinstein@apple.com>
  14242. Reviewed by Adam Roben and looked over by Jessie Berlin.
  14243. Part of WebKit2: Need a way to manage cookies from the web process
  14244. https://bugs.webkit.org/show_bug.cgi?id=55086
  14245. This patch adds the plumbing and classes that are needed to manage cookies from the web process.
  14246. The functions that the API calls are currently stubs, but will be implemented in a follow-up patch.
  14247. Project file changes.
  14248. * DerivedSources.make:
  14249. * DerivedSources.pro:
  14250. * GNUmakefile.am:
  14251. * WebKit2.pri:
  14252. * WebKit2.pro:
  14253. * WebKit2.xcodeproj/project.pbxproj:
  14254. * win/WebKit2.vcproj:
  14255. * win/WebKit2Common.vsprops:
  14256. * win/WebKit2Generated.make:
  14257. Add some needed plumbing for WebCookieManager{Proxy}.
  14258. * Platform/CoreIPC/MessageID.h:
  14259. * Shared/API/c/WKBase.h:
  14260. * Shared/APIObject.h:
  14261. * UIProcess/API/C/WKAPICast.h:
  14262. * UIProcess/API/C/WKContext.cpp:
  14263. (WKContextGetCookieManager): Gets the cookie manager proxy.
  14264. * UIProcess/API/C/WKContext.h:
  14265. * UIProcess/API/C/WKCookieManager.cpp: Added.
  14266. (WKCookieManagerGetTypeID):
  14267. (WKCookieManagerGetHostnamesWithCookies): Calls through to WebCookieManagerProxy.
  14268. (WKCookieManagerDeleteCookiesForHostname): Ditto.
  14269. (WKCookieManagerDeleteAllCookies): Ditto.
  14270. * UIProcess/API/C/WKCookieManager.h: Added.
  14271. * UIProcess/WebProcessProxy.cpp:
  14272. (WebKit::WebProcessProxy::didReceiveMessage): Add a case for the cookie manager.
  14273. * UIProcess/WebContext.cpp:
  14274. (WebKit::WebContext::WebContext): Initialize the cookie manager.
  14275. (WebKit::WebContext::~WebContext): Invalidate the cookie manager.
  14276. (WebKit::WebContext::disconnectProcess): Ditto.
  14277. (WebKit::WebContext::didReceiveMessage): Add a case for the cookie manager.
  14278. * UIProcess/WebContext.h:
  14279. (WebKit::WebContext::cookieManagerProxy): Returns the cookie manager.
  14280. * WebProcess/WebProcess.cpp:
  14281. (WebKit::WebProcess::didReceiveMessage): Add a case for the cookie manager.
  14282. * UIProcess/WebCookieManagerProxy.cpp: Added.
  14283. (WebKit::WebCookieManagerProxy::create):
  14284. (WebKit::WebCookieManagerProxy::WebCookieManagerProxy):
  14285. (WebKit::WebCookieManagerProxy::~WebCookieManagerProxy):
  14286. (WebKit::WebCookieManagerProxy::invalidate):
  14287. (WebKit::WebCookieManagerProxy::didReceiveMessage):
  14288. (WebKit::WebCookieManagerProxy::getHostnamesWithCookies): Call through to the web process to get hostnames with cookies.
  14289. (WebKit::WebCookieManagerProxy::didGetHostnamesWithCookies): Call the callback we were passed in getHostnamesWithCookies.
  14290. (WebKit::WebCookieManagerProxy::deleteCookiesForHostname): Call through to the web process to delete cookies
  14291. for the origin.
  14292. (WebKit::WebCookieManagerProxy::deleteAllCookies): Call through to the web process to delete all cookies.
  14293. * UIProcess/WebCookieManagerProxy.h: Added.
  14294. (WebKit::WebCookieManagerProxy::clearContext):
  14295. (WebKit::WebCookieManagerProxy::type):
  14296. * UIProcess/WebCookieManagerProxy.messages.in: Added.
  14297. * WebProcess/Cookies: Added.
  14298. * WebProcess/Cookies/WebCookieManager.cpp: Added.
  14299. (WebKit::WebCookieManager::shared):
  14300. (WebKit::WebCookieManager::WebCookieManager):
  14301. (WebKit::WebCookieManager::didReceiveMessage): Call through to didReceiveWebCookieManagerMessage.
  14302. (WebKit::WebCookieManager::getHostnamesWithCookies): Build an array from a HashSet (that isn't filled yet), and
  14303. convert that HashSet to a Vector to send to the UI process.
  14304. (WebKit::WebCookieManager::deleteCookiesForHostname): Added a stub.
  14305. (WebKit::WebCookieManager::deleteAllCookies): Ditto.
  14306. * WebProcess/Cookies/WebCookieManager.h: Added.
  14307. * WebProcess/Cookies/WebCookieManager.messages.in: Added.
  14308. 2011-02-24 Amruth Raj <amruthraj@motorola.com> and Ravi Phaneendra Kasibhatla <ravi.kasibhatla@motorola.com> and Alejandro G. Castro <alex@igalia.com>
  14309. Reviewed by Martin Robinson.
  14310. [GTK] Implement WebEventFactory, WebErrors classes for WebKit2
  14311. https://bugs.webkit.org/show_bug.cgi?id=48510
  14312. * GNUmakefile.am:
  14313. * Shared/gtk/WebEventFactory.cpp: Added. implementation for
  14314. WebMouseEvent, WebWheelEvent, WebKeyboardEvent.
  14315. * Shared/gtk/WebEventFactory.h: Added.
  14316. * WebProcess/WebCoreSupport/gtk/WebErrorsGtk.cpp: Added. Stubbed
  14317. implementation for GTK port.
  14318. 2011-02-24 Vsevolod Vlasov <vsevik@chromium.org>
  14319. Reviewed by Alexey Proskuryakov.
  14320. DumpRenderTree should reset frame opener between tests.
  14321. https://bugs.webkit.org/show_bug.cgi?id=54874
  14322. Added clearOpener method to WKBundleWebFramePrivate.
  14323. * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
  14324. (WKBundleFrameClearOpener):
  14325. * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
  14326. 2011-02-24 Benjamin Poulain <benjamin.poulain@nokia.com>
  14327. Reviewed by Eric Seidel.
  14328. Support building WebKit with Python 3
  14329. https://bugs.webkit.org/show_bug.cgi?id=55038
  14330. Update the generator scripts to support Python 3.
  14331. * Scripts/generate-message-receiver.py: print is a function in Python 3, write the output to
  14332. sys.stdout to be compatible with Python 2 and 3.
  14333. * Scripts/generate-messages-header.py:
  14334. * Scripts/webkit2/messages.py: dist.iteritems does not exist in Python 3, fallback
  14335. to dict.items which is common to Python 2 and 3.
  14336. 2011-02-24 Andras Becsi <abecsi@webkit.org>
  14337. Reviewed by Laszlo Gombos.
  14338. [Qt] MinGW build fails to link
  14339. https://bugs.webkit.org/show_bug.cgi?id=55050
  14340. Prepend the libraries of subcomponents instead of appending them
  14341. to fix the library order according to the dependency of the libraries
  14342. * WebKit2.pri:
  14343. 2011-02-24 Andras Becsi <abecsi@webkit.org>
  14344. Reviewed by Csaba Osztrogonác.
  14345. [Qt] REGRESSION(69304): WKNativeEvent.h forwarding header is always regenerated
  14346. https://bugs.webkit.org/show_bug.cgi?id=47589
  14347. In case of file name clashes only generate forwarding header for the current platform.
  14348. * Scripts/generate-forwarding-headers.pl:
  14349. 2011-02-23 Anders Carlsson <andersca@apple.com>
  14350. Reviewed by Sam Weinig.
  14351. Remove some of the old accelerated compositing code
  14352. https://bugs.webkit.org/show_bug.cgi?id=55084
  14353. * UIProcess/API/mac/PageClientImpl.h:
  14354. * UIProcess/API/mac/PageClientImpl.mm:
  14355. (WebKit::PageClientImpl::exitAcceleratedCompositingMode):
  14356. * UIProcess/API/mac/WKView.mm:
  14357. * UIProcess/API/mac/WKViewInternal.h:
  14358. * UIProcess/API/qt/qwkpage_p.h:
  14359. * UIProcess/PageClient.h:
  14360. * UIProcess/WebPageProxy.cpp:
  14361. (WebKit::WebPageProxy::exitAcceleratedCompositingMode):
  14362. * UIProcess/WebPageProxy.h:
  14363. * UIProcess/WebPageProxy.messages.in:
  14364. * UIProcess/mac/LayerBackedDrawingAreaProxyMac.mm:
  14365. (WebKit::LayerBackedDrawingAreaProxy::attachCompositingContext):
  14366. (WebKit::LayerBackedDrawingAreaProxy::detachCompositingContext):
  14367. * UIProcess/win/WebView.cpp:
  14368. * UIProcess/win/WebView.h:
  14369. * WebProcess/WebPage/WebPage.cpp:
  14370. (WebKit::WebPage::enterAcceleratedCompositingMode):
  14371. (WebKit::WebPage::exitAcceleratedCompositingMode):
  14372. * WebProcess/WebPage/WebPage.h:
  14373. 2011-02-23 Enrica Casucci <enrica@apple.com>
  14374. Reverting an unintentional change that was part of http://trac.webkit.org/changeset/79494.
  14375. Unreviewed.
  14376. * WebProcess/WebPage/mac/WebPageMac.mm:
  14377. (WebKit::WebPage::interceptEditingKeyboardEvent):
  14378. 2011-02-18 Enrica Casucci <enrica@apple.com>
  14379. Reviewed by Adam Roben.
  14380. Mac OS X Services are not available for selected text in WebKit2 windows.
  14381. https://bugs.webkit.org/show_bug.cgi?id=54777
  14382. <rdar://problem/8666428>
  14383. This patch adds support for Mac OS X Services in WebKit2 windows.
  14384. In WKView we now call registerServicesMenuSendTypes providing the
  14385. pasteboard types supported by WebKit and we also implement the two
  14386. protocol methods required to validate the send type and write the
  14387. content to the pasteboard. Unfortunately, AppKit expects the content
  14388. to be available in the pasteboard upon return from writeSelectionToPasteboard and
  14389. this is the reason why the call to the WebProcess is synchronous.
  14390. * Shared/SelectionState.h:
  14391. (WebKit::SelectionState::SelectionState): Extended to include
  14392. isContentRichlyEditable
  14393. * Shared/mac/PasteboardTypes.h:
  14394. * Shared/mac/PasteboardTypes.mm:
  14395. (WebKit::PasteboardTypes::forSelection): Added.
  14396. * UIProcess/API/mac/WKView.mm:
  14397. (-[WKView initWithFrame:contextRef:pageGroupRef:]): Added call
  14398. to registerServicesMenuSendTypes.
  14399. (-[WKView writeSelectionToPasteboard:types:]): Added.
  14400. (-[WKView validRequestorForSendType:returnType:]): Added.
  14401. * UIProcess/WebPageProxy.cpp:
  14402. (WebKit::WebPageProxy::writeSelectionToPasteboard):
  14403. * UIProcess/WebPageProxy.h:
  14404. * WebProcess/WebCoreSupport/WebEditorClient.cpp:
  14405. (WebKit::WebEditorClient::respondToChangedSelection): Modified to
  14406. support the new SelectionState value.
  14407. * WebProcess/WebPage/WebPage.h:
  14408. * WebProcess/WebPage/WebPage.messages.in:
  14409. * WebProcess/WebPage/mac/WebPageMac.mm:
  14410. (WebKit::WebPage::writeSelectionToPasteboard): Added synchronous
  14411. message to write the selected content to the pasteboard.
  14412. 2011-02-23 Anders Carlsson <andersca@apple.com>
  14413. Reviewed by Sam Weinig.
  14414. Add a ShareableBitmap::create overload that takes an existing SharedMemory object
  14415. https://bugs.webkit.org/show_bug.cgi?id=55081
  14416. * Shared/ShareableBitmap.cpp:
  14417. (WebKit::ShareableBitmap::createShareable):
  14418. (WebKit::ShareableBitmap::create):
  14419. * Shared/ShareableBitmap.h:
  14420. 2011-02-23 Anders Carlsson <andersca@apple.com>
  14421. Reviewed by Dan Bernstein.
  14422. Web Inspector toolbar looks bad in WebKit2
  14423. https://bugs.webkit.org/show_bug.cgi?id=55076
  14424. <rdar://problem/8866258>
  14425. * UIProcess/API/mac/WKView.mm:
  14426. (-[WKView mouseDownCanMoveWindow]):
  14427. Return NO from mouseDownCanMoveWindow to prevent drags in the (now transparent) inspector WKView
  14428. from dragging the window around.
  14429. * UIProcess/mac/WebInspectorProxyMac.mm:
  14430. (WebKit::WebInspectorProxy::platformCreateInspectorPage):
  14431. Call [WKView setDrawsBackground:NO].
  14432. 2011-02-23 Sam Weinig <sam@webkit.org>
  14433. Reviewed by Anders Carlsson.
  14434. Remove WKPageForceRepaintWithInvalidation and instead make WKPageForceRepaint
  14435. always dirty the entire page.
  14436. * Shared/ForceRepaintFlags.h: Removed.
  14437. * UIProcess/API/C/WKPage.cpp:
  14438. (WKPageForceRepaint):
  14439. * UIProcess/API/C/WKPage.h:
  14440. * UIProcess/WebPageProxy.cpp:
  14441. (WebKit::WebPageProxy::forceRepaint):
  14442. * UIProcess/WebPageProxy.h:
  14443. * WebKit2.pro:
  14444. * WebKit2.xcodeproj/project.pbxproj:
  14445. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  14446. (WebKit::DrawingAreaImpl::forceRepaint):
  14447. * WebProcess/WebPage/WebPage.cpp:
  14448. (WebKit::WebPage::forceRepaint):
  14449. * WebProcess/WebPage/WebPage.h:
  14450. * WebProcess/WebPage/WebPage.messages.in:
  14451. * win/WebKit2.vcproj:
  14452. 2011-02-23 Anders Carlsson <andersca@apple.com>
  14453. Reviewed by Sam Weinig.
  14454. Race condition when creating and destroying pages quickly
  14455. https://bugs.webkit.org/show_bug.cgi?id=55061
  14456. <rdar://problem/8708435>
  14457. When the last page in a web process is closed, the web process would
  14458. previously terminate, even if the UI process had created a new page
  14459. (the CreateNewPage message just wouldn't have reached the web process yet).
  14460. Fix this by adding a ShouldTerminate message that the web process sends when it's
  14461. about to terminate. If the UI process has any pending pages, downloads etc. it will
  14462. prevent the web process from terminating. Otherwise, it will immmediately disconnect
  14463. the WebPageProxy so that creating a page after that will launch a new web process.
  14464. * UIProcess/Plugins/WebPluginSiteDataManager.cpp:
  14465. (WebKit::WebPluginSiteDataManager::shouldTerminate):
  14466. * UIProcess/Plugins/WebPluginSiteDataManager.h:
  14467. * UIProcess/WebContext.cpp:
  14468. (WebKit::WebContext::shouldTerminate):
  14469. (WebKit::WebContext::disconnectProcess):
  14470. * UIProcess/WebContext.h:
  14471. * UIProcess/WebProcessProxy.cpp:
  14472. (WebKit::WebProcessProxy::disconnect):
  14473. (WebKit::WebProcessProxy::didReceiveSyncMessage):
  14474. (WebKit::WebProcessProxy::didClose):
  14475. (WebKit::WebProcessProxy::shouldTerminate):
  14476. * UIProcess/WebProcessProxy.h:
  14477. * UIProcess/WebProcessProxy.messages.in:
  14478. * WebProcess/WebProcess.cpp:
  14479. (WebKit::WebProcess::terminateIfPossible):
  14480. 2011-02-23 Mike Thole <mthole@apple.com>
  14481. Reviewed by Darin Adler.
  14482. WKBundleNavigationAction.h should be exposed as a public header
  14483. https://bugs.webkit.org/show_bug.cgi?id=55059
  14484. * WebKit2.xcodeproj/project.pbxproj:
  14485. Changed WKBundleNavigationAction.h from 'project' to 'public'.
  14486. 2011-02-23 Siddharth Mathur <siddharth.mathur@nokia.com>
  14487. Reviewed by Laszlo Gombos.
  14488. [Qt] Make sure Symbian binary UIDs are unique
  14489. * WebProcess.pro: Resolve the UID collision with QtTestBrowser.pro
  14490. by changing the UID.
  14491. 2011-02-23 Siddharth Mathur <siddharth.mathur@nokia.com>
  14492. Reviewed by Laszlo Gombos.
  14493. [Qt] Fix the Symbian build after r79334
  14494. https://bugs.webkit.org/show_bug.cgi?id=55044
  14495. * WebKit2.pri: Copy the rules from JavaScriptCore.pri for
  14496. defineTest().
  14497. Remove addWebKit2LibWholeArchive as it is no longer needed.
  14498. 2011-02-23 Alejandro G. Castro <alex@igalia.com>
  14499. Unreviewed, fixed GTK WebKit2 compilation after r79366.
  14500. * GNUmakefile.am:
  14501. 2011-02-23 Patrick Gansterer <paroga@webkit.org>
  14502. Reviewed by Darin Adler.
  14503. Rename PLATFORM(CF) to USE(CF)
  14504. https://bugs.webkit.org/show_bug.cgi?id=53540
  14505. * UIProcess/WebBackForwardList.h:
  14506. * UIProcess/WebPageProxy.cpp:
  14507. * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
  14508. (WebKit::formatLocalizedString):
  14509. 2011-02-23 Benjamin Poulain <benjamin.poulain@nokia.com>
  14510. Reviewed by Andreas Kling.
  14511. [Qt] [WK2] When the context menu is empty, we should still send the signal QWKPage::showContextMenu()
  14512. https://bugs.webkit.org/show_bug.cgi?id=54996
  14513. Send the signal QWKPage::showContextMenu() with an empty menu even if the content menu generated
  14514. is empty/contain only disabled elements.
  14515. * UIProcess/API/qt/qgraphicswkview.cpp:
  14516. (QGraphicsWKView::showContextMenu):
  14517. * UIProcess/qt/WebContextMenuProxyQt.cpp:
  14518. (WebKit::WebContextMenuProxyQt::showContextMenu):
  14519. 2011-02-22 Dan Bernstein <mitz@apple.com>
  14520. LLVM Compiler build fix.
  14521. * Scripts/webkit2/messages.py:
  14522. * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
  14523. 2011-02-22 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  14524. Reviewed by Alexey Proskuryakov.
  14525. Drop the language tag part from the User Agent string
  14526. https://bugs.webkit.org/show_bug.cgi?id=54560
  14527. * UIProcess/gtk/WebPageProxyGtk.cpp:
  14528. (WebKit::WebPageProxy::standardUserAgent):
  14529. * UIProcess/mac/WebPageProxyMac.mm:
  14530. (WebKit::WebPageProxy::standardUserAgent):
  14531. * UIProcess/qt/WebPageProxyQt.cpp:
  14532. (WebKit::WebPageProxy::standardUserAgent):
  14533. * UIProcess/win/WebPageProxyWin.cpp:
  14534. (WebKit::WebPageProxy::standardUserAgent): Drop the language tag
  14535. part and fix style.
  14536. 2011-02-22 Sam Weinig <sam@webkit.org>
  14537. Reviewed by Anders Carlsson.
  14538. Add WebKit2 API to force a repaint with an invalidation
  14539. https://bugs.webkit.org/show_bug.cgi?id=55015
  14540. * Shared/ForceRepaintFlags.h: Added.
  14541. * UIProcess/API/C/WKPage.cpp:
  14542. (WKPageForceRepaint):
  14543. (WKPageForceRepaintWithInvalidation):
  14544. * UIProcess/API/C/WKPage.h:
  14545. Add WKPageForceRepaintWithInvalidation which does the same thing WKPageForceRepaint
  14546. but also calls setNeedsDisplay on the entire bounds of the page.
  14547. * UIProcess/WebPageProxy.cpp:
  14548. (WebKit::WebPageProxy::forceRepaint):
  14549. * UIProcess/WebPageProxy.h:
  14550. * WebProcess/WebPage/WebPage.cpp:
  14551. (WebKit::WebPage::forceRepaint):
  14552. * WebProcess/WebPage/WebPage.h:
  14553. * WebProcess/WebPage/WebPage.messages.in:
  14554. Pipe the flag down to the WebProcess.
  14555. * WebKit2.pro:
  14556. * WebKit2.xcodeproj/project.pbxproj:
  14557. * win/WebKit2.vcproj:
  14558. Add ForceRepaintFlags.h.
  14559. 2011-02-22 Simon Fraser <simon.fraser@apple.com>
  14560. Reviewed by Dan Bernstein.
  14561. <rdar://problem/9039670>
  14562. Make sure that we set the accelerateDrawing property on the LayerTreeHosts's
  14563. non-composited content layer if the preference is set.
  14564. * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
  14565. (WebKit::LayerTreeHostMac::LayerTreeHostMac):
  14566. 2011-02-22 Brady Eidson <beidson@apple.com>
  14567. Fix it Windows-style.
  14568. * WebProcess/WebProcess.cpp:
  14569. (WebKit::WebProcess::getSitesWithPluginData):
  14570. (WebKit::WebProcess::clearPluginSiteData):
  14571. 2011-02-22 Anders Carlsson <andersca@apple.com>
  14572. Reviewed by Dan Bernstein.
  14573. Rename WebProcess::shutdownIfPossible to WebProcess::terminateIfPossible
  14574. https://bugs.webkit.org/show_bug.cgi?id=55008
  14575. * WebProcess/Downloads/DownloadManager.cpp:
  14576. (WebKit::DownloadManager::downloadFinished):
  14577. * WebProcess/WebProcess.cpp:
  14578. (WebKit::WebProcess::removeWebPage):
  14579. (WebKit::WebProcess::terminateIfPossible):
  14580. (WebKit::WebProcess::getSitesWithPluginData):
  14581. * WebProcess/WebProcess.h:
  14582. * WebProcess/gtk/WebProcessGtk.cpp:
  14583. (WebKit::WebProcess::platformTerminate):
  14584. * WebProcess/mac/WebProcessMac.mm:
  14585. (WebKit::WebProcess::platformTerminate):
  14586. * WebProcess/qt/WebProcessQt.cpp:
  14587. (WebKit::WebProcess::platformTerminate):
  14588. * WebProcess/win/WebProcessWin.cpp:
  14589. (WebKit::WebProcess::platformTerminate):
  14590. 2011-02-22 Brady Eidson <beidson@apple.com>
  14591. Windows build-fix attempt.
  14592. * win/WebKit2Generated.make:
  14593. 2011-02-22 Csaba Osztrogonác <ossy@webkit.org>
  14594. Unreviewed.
  14595. <rdar://problem/8762042> and https://bugs.webkit.org/show_bug.cgi?id=54514
  14596. API to view and delete Application Cache data by origin.
  14597. [Qt][WK2] Buildfix after r79364.
  14598. * DerivedSources.pro:
  14599. * WebKit2.pri:
  14600. 2011-02-22 Brady Eidson <beidson@apple.com>
  14601. Reviewed by Anders Carlsson and looked over by Brian Weinstein.
  14602. <rdar://problem/8762042> and https://bugs.webkit.org/show_bug.cgi?id=54514
  14603. API to view and delete Application Cache data by origin.
  14604. I couldn't help myself - I also re-alphabetized WebResourceCacheManager in many places where
  14605. it's sorting was wrong due to a last minute name change.
  14606. Project file changes:
  14607. * GNUmakefile.am:
  14608. * win/WebKit2.vcproj:
  14609. * win/WebKit2Common.vsprops:
  14610. * win/WebKit2Generated.make:
  14611. * WebKit2.pro:
  14612. * WebKit2.xcodeproj/project.pbxproj:
  14613. WK2 build-system and API paperwork:
  14614. * DerivedSources.make:
  14615. * Platform/CoreIPC/MessageID.h:
  14616. * Shared/API/c/WKBase.h:
  14617. * Shared/APIObject.h:
  14618. * UIProcess/API/C/WKAPICast.h:
  14619. Add a helper to perform an ArrayCallback with a Vector of SecurityOriginDatas:
  14620. * Shared/SecurityOriginData.cpp:
  14621. (WebKit::performAPICallbackWithSecurityOriginDataVector):
  14622. * Shared/SecurityOriginData.h:
  14623. * UIProcess/WebResourceCacheManagerProxy.cpp:
  14624. (WebKit::WebResourceCacheManagerProxy::didGetCacheOrigins): Use performAPICallbackWithSecurityOriginDataVector here.
  14625. Add an ApplicationCacheManagerProxy to the context and invalidate it at the appropriate times:
  14626. * UIProcess/WebContext.cpp:
  14627. (WebKit::WebContext::WebContext):
  14628. (WebKit::WebContext::~WebContext):
  14629. (WebKit::WebContext::processDidClose):
  14630. (WebKit::WebContext::didReceiveMessage): Route messages to the right proxy.
  14631. * UIProcess/WebContext.h:
  14632. (WebKit::WebContext::applicationCacheManagerProxy):
  14633. (WebKit::WebContext::resourceCacheManagerProxy):
  14634. Add API to get the ApplicationCacheManager for a context:
  14635. * UIProcess/API/C/WKContext.cpp:
  14636. (WKContextGetApplicationCacheManager):
  14637. (WKContextGetResourceCacheManager):
  14638. * UIProcess/API/C/WKContext.h:
  14639. Route messages to the right place:
  14640. * UIProcess/WebProcessProxy.cpp:
  14641. (WebKit::WebProcessProxy::didReceiveMessage):
  14642. * WebProcess/WebProcess.cpp:
  14643. (WebKit::WebProcess::didReceiveMessage):
  14644. Add the API object, which wraps to WebApplicationCacheManagerProxy:
  14645. * UIProcess/API/C/WKApplicationCacheManager.cpp: Added.
  14646. (WKApplicationCacheManagerGetTypeID):
  14647. (WKApplicationCacheManagerGetApplicationCacheOrigins):
  14648. (WKApplicationCacheManagerDeleteEntriesForOrigin):
  14649. (WKApplicationCacheManagerDeleteAllEntries):
  14650. * UIProcess/API/C/WKApplicationCacheManager.h: Added.
  14651. The UIProcess implementation of the manager to send messages to the WebProcess and pipe a callback back up to the client:
  14652. * UIProcess/WebApplicationCacheManagerProxy.cpp: Added.
  14653. (WebKit::WebApplicationCacheManagerProxy::create):
  14654. (WebKit::WebApplicationCacheManagerProxy::WebApplicationCacheManagerProxy):
  14655. (WebKit::WebApplicationCacheManagerProxy::~WebApplicationCacheManagerProxy):
  14656. (WebKit::WebApplicationCacheManagerProxy::invalidate):
  14657. (WebKit::WebApplicationCacheManagerProxy::didReceiveMessage):
  14658. (WebKit::WebApplicationCacheManagerProxy::getApplicationCacheOrigins):
  14659. (WebKit::WebApplicationCacheManagerProxy::didGetApplicationCacheOrigins): Use performAPICallbackWithSecurityOriginDataVector here.
  14660. (WebKit::WebApplicationCacheManagerProxy::deleteEntriesForOrigin):
  14661. (WebKit::WebApplicationCacheManagerProxy::deleteAllEntries):
  14662. * UIProcess/WebApplicationCacheManagerProxy.h: Added.
  14663. (WebKit::WebApplicationCacheManagerProxy::clearContext):
  14664. (WebKit::WebApplicationCacheManagerProxy::type):
  14665. * UIProcess/WebApplicationCacheManagerProxy.messages.in: Added.
  14666. The WebProcess implementation to response to UIProcess messages and actually do the dirty-work in WebCore:
  14667. * WebProcess/ApplicationCache: Added.
  14668. * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp: Added.
  14669. (WebKit::WebApplicationCacheManager::shared):
  14670. (WebKit::WebApplicationCacheManager::WebApplicationCacheManager):
  14671. (WebKit::WebApplicationCacheManager::didReceiveMessage):
  14672. (WebKit::WebApplicationCacheManager::getApplicationCacheOrigins):
  14673. (WebKit::WebApplicationCacheManager::deleteEntriesForOrigin):
  14674. (WebKit::WebApplicationCacheManager::deleteAllEntries):
  14675. * WebProcess/ApplicationCache/WebApplicationCacheManager.h: Added.
  14676. * WebProcess/ApplicationCache/WebApplicationCacheManager.messages.in: Added.
  14677. 2011-02-22 Anders Carlsson <andersca@apple.com>
  14678. Reviewed by Sam Weinig.
  14679. Get rid of WebProcessManager
  14680. https://bugs.webkit.org/show_bug.cgi?id=55001
  14681. WebProcessManager had become a stupid map of WebContext > WebProcess relations,
  14682. which isn't really useful since the WebContext already knows about its process.
  14683. * Shared/WebURLRequest.cpp:
  14684. * UIProcess/API/mac/WKView.mm:
  14685. * UIProcess/WebContext.cpp:
  14686. (WebKit::WebContext::~WebContext):
  14687. (WebKit::WebContext::ensureWebProcess):
  14688. (WebKit::WebContext::processDidFinishLaunching):
  14689. * UIProcess/WebProcessManager.cpp: Removed.
  14690. * UIProcess/WebProcessManager.h: Removed.
  14691. * UIProcess/WebProcessProxy.cpp:
  14692. (WebKit::WebProcessProxy::didClose):
  14693. * WebKit2.pro:
  14694. * WebKit2.xcodeproj/project.pbxproj:
  14695. * win/WebKit2.vcproj:
  14696. 2011-02-22 Anders Carlsson <andersca@apple.com>
  14697. Reviewed by Darin Adler.
  14698. Get rid of WebProcessManager::getAllWebProcessContexts
  14699. https://bugs.webkit.org/show_bug.cgi?id=55000
  14700. * Shared/WebURLRequest.cpp:
  14701. (WebKit::WebURLRequest::setDefaultTimeoutInterval):
  14702. Call WebContext::allContexts instead.
  14703. * UIProcess/WebContext.cpp:
  14704. * UIProcess/WebContext.h:
  14705. Add a vector of WebContext objects. Update it when creating and destroying contexts.
  14706. * UIProcess/WebProcessManager.cpp:
  14707. * UIProcess/WebProcessManager.h:
  14708. Remove WebProcessManager::getAllWebProcessContexts.
  14709. 2011-02-22 Sam Weinig <sam@webkit.org>
  14710. Reviewed by Anders Carlsson.
  14711. Re-add early bail out in dispatchDecidePolicyForNavigationAction with prevents
  14712. a crash running fast/loader/empty-embed-src-attribute.html. This matches a
  14713. bail out in the default policy delegate in WebKit1.
  14714. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  14715. (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
  14716. 2011-02-22 Anders Carlsson <andersca@apple.com>
  14717. Reviewed by Dan Bernstein.
  14718. Grammar correction from Spelling & Grammar window doesn't work
  14719. https://bugs.webkit.org/show_bug.cgi?id=54982
  14720. <rdar://problem/8940918>
  14721. * UIProcess/API/mac/WKView.mm:
  14722. (-[WKView isGrammarCheckingEnabled]):
  14723. (-[WKView setGrammarCheckingEnabled:]):
  14724. Call down to the text checker.
  14725. * UIProcess/TextChecker.h:
  14726. Add updateSpellingUIWithGrammarString.
  14727. * UIProcess/WebPageProxy.cpp:
  14728. (WebKit::WebPageProxy::updateSpellingUIWithGrammarString):
  14729. Call TextChecker::updateSpellingUIWithGrammarString.
  14730. * UIProcess/WebPageProxy.messages.in:
  14731. Add UpdateSpellingUIWithGrammarString message.
  14732. * UIProcess/gtk/TextCheckerGtk.cpp:
  14733. (WebKit::TextChecker::updateSpellingUIWithGrammarString):
  14734. * UIProcess/qt/TextCheckerQt.cpp:
  14735. (WebKit::TextChecker::updateSpellingUIWithGrammarString):
  14736. * UIProcess/win/TextCheckerWin.cpp:
  14737. (WebKit::TextChecker::updateSpellingUIWithGrammarString):
  14738. Add stubs.
  14739. * UIProcess/mac/TextCheckerMac.mm:
  14740. (WebKit::TextChecker::updateSpellingUIWithGrammarString):
  14741. Update the spelling panel.
  14742. * WebProcess/WebCoreSupport/WebEditorClient.cpp:
  14743. (WebKit::WebEditorClient::updateSpellingUIWithGrammarString):
  14744. Send an UpdateSpellingUIWithGrammarString message to the UI process.
  14745. 2011-02-22 Balazs Kelemen <kbalazs@webkit.org>
  14746. Reviewed by Anders Carlsson.
  14747. notImplemented() should behave identical in WebCore and WebKit2
  14748. https://bugs.webkit.org/show_bug.cgi?id=54449
  14749. Use NotImplemented.h from WebCore. Initialize logging channels.
  14750. Remove the WebKit2 concept of notImplemented().
  14751. * Platform/gtk/SharedMemoryGtk.cpp:
  14752. * Platform/gtk/WorkQueueGtk.cpp:
  14753. * Platform/qt/WorkQueueQt.cpp:
  14754. * Platform/win/WorkQueueWin.cpp:
  14755. * Shared/NotImplemented.h: Removed.
  14756. * Shared/Plugins/NPIdentifierData.cpp:
  14757. * Shared/Plugins/NPRemoteObjectMap.cpp:
  14758. * Shared/Plugins/NPVariantData.cpp:
  14759. * Shared/cairo/ShareableBitmapCairo.cpp:
  14760. * Shared/gtk/ShareableBitmapGtk.cpp:
  14761. * Shared/gtk/WebCoreArgumentCodersGtk.cpp:
  14762. * Shared/qt/WebCoreArgumentCodersQt.cpp:
  14763. * Shared/win/LayerTreeContextWin.cpp:
  14764. * UIProcess/API/mac/PageClientImpl.mm:
  14765. * UIProcess/API/qt/qwkpage.cpp:
  14766. * UIProcess/Launcher/gtk/ThreadLauncherGtk.cpp:
  14767. * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
  14768. * UIProcess/Plugins/gtk/PluginInfoStoreGtk.cpp:
  14769. * UIProcess/WebContext.cpp:
  14770. (WebKit::WebContext::WebContext):
  14771. * UIProcess/WebInspectorProxy.cpp:
  14772. * UIProcess/gtk/TextCheckerGtk.cpp:
  14773. * UIProcess/gtk/WebInspectorGtk.cpp:
  14774. * UIProcess/gtk/WebPreferencesGtk.cpp:
  14775. * UIProcess/qt/TextCheckerQt.cpp:
  14776. * UIProcess/qt/WebInspectorProxyQt.cpp:
  14777. * UIProcess/win/TextCheckerWin.cpp:
  14778. * UIProcess/win/WebContextMenuProxyWin.cpp:
  14779. * WebKit2.pro:
  14780. * WebKit2.xcodeproj/project.pbxproj:
  14781. * WebProcess/Downloads/cf/DownloadCFNet.cpp:
  14782. * WebProcess/Downloads/curl/DownloadCurl.cpp:
  14783. * WebProcess/Downloads/mac/DownloadMac.mm:
  14784. * WebProcess/Downloads/qt/DownloadQt.cpp:
  14785. * WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp:
  14786. * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
  14787. * WebProcess/Plugins/Netscape/NPJSObject.cpp:
  14788. * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
  14789. * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
  14790. * WebProcess/Plugins/Netscape/gtk/NetscapePluginGtk.cpp:
  14791. * WebProcess/Plugins/Netscape/qt/NetscapePluginQt.cpp:
  14792. * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
  14793. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  14794. * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
  14795. * WebProcess/WebCoreSupport/WebDragClient.cpp:
  14796. * WebProcess/WebCoreSupport/WebEditorClient.cpp:
  14797. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  14798. * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
  14799. * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
  14800. * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
  14801. * WebProcess/WebCoreSupport/gtk/WebContextMenuClientGtk.cpp:
  14802. * WebProcess/WebCoreSupport/gtk/WebPopupMenuGtk.cpp:
  14803. * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
  14804. * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
  14805. * WebProcess/WebCoreSupport/qt/WebContextMenuClientQt.cpp:
  14806. * WebProcess/WebPage/gtk/WebInspectorGtk.cpp:
  14807. * WebProcess/WebPage/qt/WebInspectorQt.cpp:
  14808. * WebProcess/WebProcess.cpp:
  14809. (WebKit::WebProcess::WebProcess):
  14810. * WebProcess/gtk/WebProcessGtk.cpp:
  14811. * config.h:
  14812. * win/WebKit2.vcproj:
  14813. 2011-02-22 Brian Weinstein <bweinstein@apple.com>
  14814. Rubber-stamped by Brady Eidson.
  14815. Invalidate the WebResourceCacheManagerProxy in WebContext::processDidClose.
  14816. * UIProcess/WebContext.cpp:
  14817. (WebKit::WebContext::processDidClose):
  14818. 2011-02-21 Adam Roben <aroben@apple.com>
  14819. Make DrawingAreaProxyImpl keep track of the most recent state ID it sent to the web process
  14820. This will be useful for sending repeated messages for the same state ID to the web process.
  14821. We don't do this currently, but will need to if we're asked to paint after we've thrown away
  14822. our backing store to save memory.
  14823. Fixes <http://webkit.org/b/54916> DrawingAreaProxyImpl should keep track of the state ID it
  14824. last sent to the web process
  14825. Reviewed by Anders Carlsson.
  14826. * UIProcess/DrawingAreaProxyImpl.cpp:
  14827. (WebKit::DrawingAreaProxyImpl::DrawingAreaProxyImpl): Initialize m_requestedStateID, and
  14828. reordered member initialization to match the new declaration order.
  14829. (WebKit::DrawingAreaProxyImpl::didUpdateState): Added an assertion that the stateID we got
  14830. from the web process is no newer than the most recent one we requested.
  14831. (WebKit::DrawingAreaProxyImpl::sendUpdateState): Changed to increment and send
  14832. m_requestedStateID instead of a new global stateID.
  14833. * UIProcess/DrawingAreaProxyImpl.h: Added m_requestedStateID, and moved the state IDs before
  14834. other data members. Also beefed the comment explaining m_currentStateID.
  14835. 2011-02-22 Andras Becsi <abecsi@webkit.org>
  14836. Reviewed by Laszlo Gombos.
  14837. [Qt] Redesign the build system
  14838. https://bugs.webkit.org/show_bug.cgi?id=51339
  14839. Part 2.
  14840. Build WebCore as a static library, compile the WebKit API and WebKit2 API
  14841. in a final step and link to WebKit2, WebCore and JSC libraries to fix
  14842. linking issues resulting from stripped away symbols.
  14843. * WebKit2.pri: Add include paths.
  14844. * WebKit2.pro: Move include paths to WebKit2.pri and move
  14845. the API source to WebKit/qt/QtWebKit.pro
  14846. 2011-02-22 Benjamin Poulain <benjamin.poulain@nokia.com>
  14847. Reviewed by Kenneth Rohde Christiansen.
  14848. [Qt] [WK2] Improve the memory handling of the context menu for WebKit 2
  14849. https://bugs.webkit.org/show_bug.cgi?id=54902
  14850. Refactor the context menu handling of Qt to make it simpler to manage memory.
  14851. WebContextMenuProxyQt uses smart pointer for all the references to menu so
  14852. there is no need to delete it explicitely.
  14853. Passing the QMenu from QWKPage to the client of the signal now uses a QSharedPointer so
  14854. the client can choose to handle the memory, but there is no leak if it does not.
  14855. * UIProcess/API/qt/qgraphicswkview.cpp:
  14856. (QGraphicsWKView::QGraphicsWKView):
  14857. (QGraphicsWKView::showContextMenu):
  14858. * UIProcess/API/qt/qgraphicswkview.h:
  14859. * UIProcess/API/qt/qwkpage.h:
  14860. * UIProcess/qt/WebContextMenuProxyQt.cpp:
  14861. (WebKit::WebContextMenuProxyQt::showContextMenu):
  14862. (WebKit::WebContextMenuProxyQt::createContextMenu):
  14863. * UIProcess/qt/WebContextMenuProxyQt.h:
  14864. 2011-02-22 Philippe Normand <pnormand@igalia.com>
  14865. Reviewed by Xan Lopez.
  14866. [GTK] make distcheck fails
  14867. https://bugs.webkit.org/show_bug.cgi?id=54943
  14868. Removed reference to NotImplemented.h which was removed.
  14869. * GNUmakefile.am:
  14870. 2011-02-22 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>
  14871. Reviewed by Kenneth Rohde Christiansen.
  14872. [Qt] QtWebProcess should be installed with 'make install'
  14873. https://bugs.webkit.org/show_bug.cgi?id=44100
  14874. Follow the standard in other project files and allow install
  14875. location to be changed with INSTALL_BINS variable.
  14876. * WebProcess.pro: Install QtWebProcess.
  14877. 2011-02-22 Sheriff Bot <webkit.review.bot@gmail.com>
  14878. Unreviewed, rolling out r79296.
  14879. http://trac.webkit.org/changeset/79296
  14880. https://bugs.webkit.org/show_bug.cgi?id=54941
  14881. Breaks compilation on SnowLeapard Intel Release (Requested by
  14882. kbalazs_ on #webkit).
  14883. * Platform/gtk/SharedMemoryGtk.cpp:
  14884. * Platform/gtk/WorkQueueGtk.cpp:
  14885. * Platform/qt/WorkQueueQt.cpp:
  14886. * Platform/win/WorkQueueWin.cpp:
  14887. * Shared/NotImplemented.h: Copied from Source/WebKit2/WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp.
  14888. * Shared/Plugins/NPIdentifierData.cpp:
  14889. * Shared/Plugins/NPRemoteObjectMap.cpp:
  14890. * Shared/Plugins/NPVariantData.cpp:
  14891. * Shared/cairo/ShareableBitmapCairo.cpp:
  14892. * Shared/gtk/ShareableBitmapGtk.cpp:
  14893. * Shared/gtk/WebCoreArgumentCodersGtk.cpp:
  14894. * Shared/qt/WebCoreArgumentCodersQt.cpp:
  14895. * Shared/win/LayerTreeContextWin.cpp:
  14896. * UIProcess/API/mac/PageClientImpl.mm:
  14897. * UIProcess/API/qt/qwkpage.cpp:
  14898. * UIProcess/Launcher/gtk/ThreadLauncherGtk.cpp:
  14899. * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
  14900. * UIProcess/Plugins/gtk/PluginInfoStoreGtk.cpp:
  14901. * UIProcess/WebContext.cpp:
  14902. (WebKit::WebContext::WebContext):
  14903. * UIProcess/WebInspectorProxy.cpp:
  14904. * UIProcess/gtk/TextCheckerGtk.cpp:
  14905. * UIProcess/gtk/WebInspectorGtk.cpp:
  14906. * UIProcess/gtk/WebPreferencesGtk.cpp:
  14907. * UIProcess/qt/TextCheckerQt.cpp:
  14908. * UIProcess/qt/WebInspectorProxyQt.cpp:
  14909. * UIProcess/win/TextCheckerWin.cpp:
  14910. * UIProcess/win/WebContextMenuProxyWin.cpp:
  14911. * WebKit2.pro:
  14912. * WebKit2.xcodeproj/project.pbxproj:
  14913. * WebProcess/Downloads/cf/DownloadCFNet.cpp:
  14914. * WebProcess/Downloads/curl/DownloadCurl.cpp:
  14915. * WebProcess/Downloads/mac/DownloadMac.mm:
  14916. * WebProcess/Downloads/qt/DownloadQt.cpp:
  14917. * WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp:
  14918. * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
  14919. * WebProcess/Plugins/Netscape/NPJSObject.cpp:
  14920. * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
  14921. * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
  14922. * WebProcess/Plugins/Netscape/gtk/NetscapePluginGtk.cpp:
  14923. * WebProcess/Plugins/Netscape/qt/NetscapePluginQt.cpp:
  14924. * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
  14925. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  14926. * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
  14927. * WebProcess/WebCoreSupport/WebDragClient.cpp:
  14928. * WebProcess/WebCoreSupport/WebEditorClient.cpp:
  14929. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  14930. * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
  14931. * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
  14932. * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
  14933. * WebProcess/WebCoreSupport/gtk/WebContextMenuClientGtk.cpp:
  14934. * WebProcess/WebCoreSupport/gtk/WebPopupMenuGtk.cpp:
  14935. * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
  14936. * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
  14937. * WebProcess/WebCoreSupport/qt/WebContextMenuClientQt.cpp:
  14938. * WebProcess/WebPage/gtk/WebInspectorGtk.cpp:
  14939. * WebProcess/WebPage/qt/WebInspectorQt.cpp:
  14940. * WebProcess/WebProcess.cpp:
  14941. (WebKit::WebProcess::WebProcess):
  14942. * WebProcess/gtk/WebProcessGtk.cpp:
  14943. * config.h:
  14944. * win/WebKit2.vcproj:
  14945. 2011-02-16 Balazs Kelemen <kbalazs@webkit.org>
  14946. Reviewed by Anders Carlsson.
  14947. notImplemented() should behave identical in WebCore and WebKit2
  14948. https://bugs.webkit.org/show_bug.cgi?id=54449
  14949. Use NotImplemented.h from WebCore. Initialize logging channels.
  14950. Remove the WebKit2 concept of notImplemented().
  14951. * Platform/gtk/SharedMemoryGtk.cpp:
  14952. * Platform/gtk/WorkQueueGtk.cpp:
  14953. * Platform/qt/WorkQueueQt.cpp:
  14954. * Platform/win/WorkQueueWin.cpp:
  14955. * Shared/NotImplemented.h: Removed.
  14956. * Shared/Plugins/NPIdentifierData.cpp:
  14957. * Shared/Plugins/NPRemoteObjectMap.cpp:
  14958. * Shared/Plugins/NPVariantData.cpp:
  14959. * Shared/cairo/ShareableBitmapCairo.cpp:
  14960. * Shared/gtk/ShareableBitmapGtk.cpp:
  14961. * Shared/gtk/WebCoreArgumentCodersGtk.cpp:
  14962. * Shared/qt/WebCoreArgumentCodersQt.cpp:
  14963. * Shared/win/LayerTreeContextWin.cpp:
  14964. * UIProcess/API/qt/qwkpage.cpp:
  14965. * UIProcess/Launcher/gtk/ThreadLauncherGtk.cpp:
  14966. * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
  14967. * UIProcess/Plugins/gtk/PluginInfoStoreGtk.cpp:
  14968. * UIProcess/WebContext.cpp:
  14969. (WebKit::WebContext::WebContext):
  14970. * UIProcess/WebInspectorProxy.cpp:
  14971. * UIProcess/gtk/TextCheckerGtk.cpp:
  14972. * UIProcess/gtk/WebInspectorGtk.cpp:
  14973. * UIProcess/gtk/WebPreferencesGtk.cpp:
  14974. * UIProcess/qt/TextCheckerQt.cpp:
  14975. * UIProcess/qt/WebInspectorProxyQt.cpp:
  14976. * UIProcess/win/TextCheckerWin.cpp:
  14977. * UIProcess/win/WebContextMenuProxyWin.cpp:
  14978. * WebKit2.pro:
  14979. * WebProcess/Downloads/cf/DownloadCFNet.cpp:
  14980. * WebProcess/Downloads/curl/DownloadCurl.cpp:
  14981. * WebProcess/Downloads/mac/DownloadMac.mm:
  14982. * WebProcess/Downloads/qt/DownloadQt.cpp:
  14983. * WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp:
  14984. * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
  14985. * WebProcess/Plugins/Netscape/NPJSObject.cpp:
  14986. * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
  14987. * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
  14988. * WebProcess/Plugins/Netscape/gtk/NetscapePluginGtk.cpp:
  14989. * WebProcess/Plugins/Netscape/qt/NetscapePluginQt.cpp:
  14990. * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
  14991. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  14992. * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
  14993. * WebProcess/WebCoreSupport/WebDragClient.cpp:
  14994. * WebProcess/WebCoreSupport/WebEditorClient.cpp:
  14995. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  14996. * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
  14997. * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
  14998. * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
  14999. * WebProcess/WebCoreSupport/gtk/WebContextMenuClientGtk.cpp:
  15000. * WebProcess/WebCoreSupport/gtk/WebPopupMenuGtk.cpp:
  15001. * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
  15002. * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
  15003. * WebProcess/WebCoreSupport/qt/WebContextMenuClientQt.cpp:
  15004. * WebProcess/WebPage/gtk/WebInspectorGtk.cpp:
  15005. * WebProcess/WebPage/qt/WebInspectorQt.cpp:
  15006. * WebProcess/WebProcess.cpp:
  15007. (WebKit::WebProcess::WebProcess):
  15008. * WebProcess/gtk/WebProcessGtk.cpp:
  15009. 2011-02-21 Timothy Hatcher <timothy@apple.com>
  15010. Set and update the window title for the Web Inspector in WebKit2.
  15011. https://webkit.org/b/50945
  15012. rdar://problem/8762410
  15013. Reviewed by Adam Roben.
  15014. * UIProcess/WebInspectorProxy.cpp:
  15015. (WebKit::WebInspectorProxy::inspectedURLChanged): Added. Call platformInspectedURLChanged.
  15016. * UIProcess/WebInspectorProxy.h:
  15017. * UIProcess/WebInspectorProxy.messages.in: Added InspectedURLChanged.
  15018. * UIProcess/mac/WebInspectorProxyMac.mm:
  15019. (WebKit::WebInspectorProxy::platformInspectedURLChanged): Added. Set the window title.
  15020. * UIProcess/win/WebInspectorProxyWin.cpp:
  15021. (WebKit::WebInspectorProxy::platformInspectedURLChanged): Added. Set the window title.
  15022. * UIProcess/gtk/WebInspectorGtk.cpp:
  15023. (WebKit::WebInspectorProxy::platformInspectedURLChanged): Added. Not implemented.
  15024. * UIProcess/qt/WebInspectorProxyQt.cpp:
  15025. (WebKit::WebInspectorProxy::platformInspectedURLChanged): Added. Not implemented.
  15026. * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
  15027. (WebKit::WebInspectorFrontendClient::inspectedURLChanged): Call WebInspector::inspectedURLChanged.
  15028. * WebProcess/WebPage/WebInspector.cpp:
  15029. (WebKit::WebInspector::inspectedURLChanged): Added. Send the InspectedURLChanged message.
  15030. * WebProcess/WebPage/WebInspector.h:
  15031. 2011-02-21 Sam Weinig <sam@webkit.org>
  15032. Reviewed by Anders Carlsson.
  15033. Can't paste from 3rd party text editor into WebKit2 window.
  15034. <rdar://problem/8978624>
  15035. * WebProcess/com.apple.WebProcess.sb:
  15036. 2011-02-21 Anders Carlsson <andersca@apple.com>
  15037. Reviewed by Dan Bernstein.
  15038. Initialize DrawingAreaProxy::m_size
  15039. https://bugs.webkit.org/show_bug.cgi?id=54913
  15040. This was removed in r76962 since it caused flashes when switching drawing areas due to
  15041. entering and exiting composited mode, but since we no longer switch drawing areas we can
  15042. put it back.
  15043. * UIProcess/DrawingAreaProxy.cpp:
  15044. (WebKit::DrawingAreaProxy::DrawingAreaProxy):
  15045. 2011-02-21 Adam Roben <aroben@apple.com>
  15046. Add some assertions about the state IDs we receive from the web process
  15047. Rubber-stamped by Anders Carlsson.
  15048. * UIProcess/DrawingAreaProxyImpl.cpp:
  15049. (WebKit::DrawingAreaProxyImpl::update):
  15050. (WebKit::DrawingAreaProxyImpl::enterAcceleratedCompositingMode):
  15051. (WebKit::DrawingAreaProxyImpl::exitAcceleratedCompositingMode):
  15052. Assert that the state ID the web process sent us is no newer than our own state ID.
  15053. 2011-02-21 Adam Roben <aroben@apple.com>
  15054. Rename DrawingArea[Proxy]Impl's "sequence number" concept to "state ID".
  15055. As explained in r79251, DrawingAreaProxyImpl has some state that, when it changes, causes
  15056. all operations performed before that state change to become invalid. Currently, this state
  15057. consists of a single piece of data: the view's size. Eventually it will encompass more data
  15058. (e.g., the backing store we're drawing into; when we start throwing away the backing store
  15059. to save memory, our state will have changed, and any operations that were intended for the
  15060. old backing store will have become invalid). r79251 effectively transformed
  15061. DrawingArea[Proxy]Impl's "sequence number," which incremented every time DrawingAreaImpl
  15062. sent DrawingAreaProxyImpl a message, to a "state ID," which only increments when the view's
  15063. size changes.
  15064. This patch is just a set of simple renames to reflect the transformation that r79251
  15065. effected. It should not introduce any changes in behavior. The renames are:
  15066. - Messages::DrawingArea::SetSize -> UpdateState
  15067. - Messages::DrawingAreaProxy::DidSetSize -> DidUpdateState
  15068. - DrawingAreaProxyImpl::m_lastDidSetSizeSequenceNumber -> m_currentStateID
  15069. - DrawingAreaProxyImpl::m_isWaitingForDidSetSize -> m_isWaitingForDidUpdateState
  15070. - DrawingAreaProxyImpl::waitForAndDispatchDidSetSize -> waitForAndDispatchDidUpdateState
  15071. - DrawingAreaImpl::m_inSetSize -> m_inUpdateState
  15072. - generateSequenceNumber -> generateStateID
  15073. - sequenceNumber -> stateID
  15074. Fixes <http://webkit.org/b/54911> DrawingArea[Proxy]Impl's "sequence number" concept should
  15075. be renamed to "state ID"
  15076. Reviewed by Anders Carlsson.
  15077. * UIProcess/DrawingAreaProxy.h:
  15078. * UIProcess/DrawingAreaProxy.messages.in:
  15079. * UIProcess/DrawingAreaProxyImpl.cpp:
  15080. * UIProcess/DrawingAreaProxyImpl.h:
  15081. * WebProcess/WebPage/DrawingArea.h:
  15082. * WebProcess/WebPage/DrawingArea.messages.in:
  15083. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  15084. * WebProcess/WebPage/DrawingAreaImpl.h:
  15085. Performed the renames described above.
  15086. 2011-02-21 Alexey Proskuryakov <ap@apple.com>
  15087. Reviewed by Adam Roben.
  15088. REGRESSION (WebKit2): HTTP requests time out after 60 seconds
  15089. https://bugs.webkit.org/show_bug.cgi?id=54755
  15090. <rdar://problem/9006592>
  15091. * Shared/API/c/WKURLRequest.cpp:
  15092. (WKURLRequestSetDefaultTimeoutInterval):
  15093. * Shared/API/c/WKURLRequest.h:
  15094. Added an API to set a default timeout interval for requests created from URLs. The API
  15095. affects both the UI process and requests created internally by the Web process. Requests
  15096. created from NSURLRequest or CFURLRequest take timeout from those.
  15097. * Shared/WebURLRequest.cpp: (WebKit::WebURLRequest::setDefaultTimeoutInterval):
  15098. * Shared/WebURLRequest.h:
  15099. Pipe the default timeout interval from WKURLRequest down to actual implementation. Since
  15100. WebURLRequest is currently implemented with WebCore::ResourceRequest, it automatically respects
  15101. NSURLRequest default timeout interval.
  15102. * UIProcess/WebProcessManager.cpp: (WebKit::WebProcessManager::getAllWebProcessContexts):
  15103. * UIProcess/WebProcessManager.h:
  15104. Added a way to enumerate all contexts running in separate processes.
  15105. * Shared/WebProcessCreationParameters.cpp:
  15106. (WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
  15107. (WebKit::WebProcessCreationParameters::encode):
  15108. (WebKit::WebProcessCreationParameters::decode):
  15109. * Shared/WebProcessCreationParameters.h:
  15110. (WebKit::WebContext::ensureWebProcess):
  15111. (WebKit::WebContext::setDefaultRequestTimeoutInterval):
  15112. * UIProcess/WebContext.h:
  15113. * WebProcess/WebProcess.cpp:
  15114. (WebKit::WebProcess::initializeWebProcess):
  15115. (WebKit::WebProcess::setDefaultRequestTimeoutInterval):
  15116. * WebProcess/WebProcess.h:
  15117. * WebProcess/WebProcess.messages.in:
  15118. Use UI process default timeout interval in separate process contexts, too.
  15119. 2011-02-18 Brian Weinstein <bweinstein@apple.com>
  15120. Reviewed by Adam Roben.
  15121. WebResourceCacheManager should be responsible for managing the CFURLCache as well
  15122. as the WebCore memory cache.
  15123. https://bugs.webkit.org/show_bug.cgi?id=54886
  15124. Part of <rdar://problem/8971738>
  15125. * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
  15126. (WebKit::WebResourceCacheManager::getCacheOrigins): Call through to cFURLCacheHostNames, and add
  15127. create SecurityOrigin's for them and add them to the set of SecurityOrigins with cache.
  15128. (WebKit::WebResourceCacheManager::clearCacheForOrigin): Call through to clear the CFURLCache for
  15129. the origin's hostname.
  15130. * WebProcess/ResourceCache/WebResourceCacheManager.h:
  15131. * WebProcess/ResourceCache/cf: Added.
  15132. * WebProcess/ResourceCache/cf/WebResourceCacheManagerCFNet.cpp: Added.
  15133. (WebKit::WebResourceCacheManager::cfURLCacheHostNames): Call through to WebKitSystemInterface.
  15134. (WebKit::WebResourceCacheManager::clearCFURLCacheForHostNames): Ditto.
  15135. * win/WebKit2.vcproj: Added new file.
  15136. * WebKit2.xcodeproj/project.pbxproj: Ditto.
  15137. 2011-02-21 Adam Roben <aroben@apple.com>
  15138. Move control of the sequence number from DrawingAreaImpl to DrawingAreaProxyImpl
  15139. DrawingAreaProxyImpl has some state that, when it changes, causes all operations performed
  15140. before that state change to become invalid. When painting, we need to have performed at
  15141. least one Update for the most recent state; otherwise, we'll be painting old/incorrect bits
  15142. into the view.
  15143. Currently, this state consists of a single piece of data: the view's size. Whenever the
  15144. state (i.e., size) changes, we tell the web process via the SetSize message, and the web
  15145. process lets us know that it has updated to match the new state (i.e., size) via the
  15146. DidSetSize message.
  15147. When it's time to paint, if we're waiting for the web process to update to match our current
  15148. state (i.e., size), we block for a little while hoping to receive a DidSetSize message so
  15149. that we can paint up-to-date bits into the window. This can cause us to receive messages
  15150. out-of-order; the DidSetSize message will be processed immediately, and any messages that
  15151. were sent before the DidSetSize message will be processed later. Since the messages from
  15152. before the DidSetSize message correspond to an old state (i.e., size), they are no longer
  15153. useful (e.g., they contain bits of the page that are drawn at the wrong size/location), so
  15154. we discard them.
  15155. The way we identify and discard these messages is by keeping track of a sequence number.
  15156. Currently, DrawingAreaImpl sends a monotonically-increasing sequence number to
  15157. DrawingAreaProxyImpl with every message. Whenever DrawingAreaProxyImpl receives a DidSetSize
  15158. message, it records the sequence number that came along with it. If we then later receive
  15159. any messages that have a lower sequence number, we know they correspond to an old state
  15160. (i.e., size) and can discard them.
  15161. This patch moves control of the sequence number to DrawingAreaProxyImpl.
  15162. DrawingAreaProxyImpl now sends a monotonically-increasing sequence number in the SetSize
  15163. message. DrawingAreaImpl records this sequence number when it receives the SetSize message,
  15164. and sends it back to DrawingAreaProxyImpl in every message. Otherwise the logic is the same
  15165. as before.
  15166. This should cause no changes in behavior, but will allow DrawingAreaProxyImpl to request a
  15167. full backing store update (by incrementing the sequence number) at times other than when the
  15168. view's size changes (e.g., after it has thrown away its backing store in order to save
  15169. memory).
  15170. Fixes <http://webkit.org/b/54907> DrawingAreaProxyImpl should tell DrawingAreaImpl what
  15171. sequence number to use
  15172. Reviewed by Anders Carlsson.
  15173. * UIProcess/DrawingAreaProxyImpl.cpp:
  15174. (WebKit::generateSequenceNumber): Moved here from DrawingAreaImpl.cpp.
  15175. (WebKit::DrawingAreaProxyImpl::sendSetSize): Changed to pass a new sequence number in the
  15176. SetSize message.
  15177. (WebKit::DrawingAreaProxyImpl::waitForAndDispatchDidSetSize): Added a FIXME about a
  15178. potential improvement.
  15179. * WebProcess/WebPage/DrawingArea.h:
  15180. (WebKit::DrawingArea::setSize): Updated to match the message's new parameters.
  15181. * WebProcess/WebPage/DrawingArea.messages.in: Added a sequenceNumber parameter to SetSize.
  15182. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  15183. (WebKit::DrawingAreaImpl::DrawingAreaImpl): Initialize m_sequenceNumber.
  15184. (WebKit::DrawingAreaImpl::setSize): Record the new sequence number from the UI process.
  15185. (WebKit::DrawingAreaImpl::layerHostDidFlushLayers):
  15186. (WebKit::DrawingAreaImpl::exitAcceleratedCompositingMode):
  15187. (WebKit::DrawingAreaImpl::display):
  15188. Send m_sequenceNumber, instead of a new sequence number, back to the UI process.
  15189. * WebProcess/WebPage/DrawingAreaImpl.h: Added m_sequenceNumber, updated setSize function to
  15190. match the base class.
  15191. 2011-02-21 Gavin Barraclough <barraclough@apple.com>
  15192. Reviewed by Sam Weinig.
  15193. Bug 54894 - Make inheritance structure described by ClassInfo match C++ class hierarchy.
  15194. The ClassInfo objects describe an inheritance hierarchy, with each ClassInfo instance
  15195. containing a pointer to its parent class. These links should reflect the inheritance
  15196. hierarchy of C++ classes below JSObject. For the large part it does, but in some cases
  15197. entries in the C++ hierarchy are skipped over. This presently likely doesn't matter,
  15198. since intervening C++ classes may not have ClassInfo - but would be a potential bug
  15199. were ClassInfo were to be added.
  15200. * WebProcess/Plugins/Netscape/JSNPObject.cpp:
  15201. 2011-02-21 Balazs Kelemen <kbalazs@webkit.org>
  15202. Reviewed by Kenneth Rohde Christiansen.
  15203. [Qt] Implement WorkQueue::sheduleWorkAfterDelay
  15204. https://bugs.webkit.org/show_bug.cgi?id=54878
  15205. * Platform/qt/WorkQueueQt.cpp:
  15206. (WorkQueue::scheduleWorkAfterDelay):
  15207. 2011-02-20 Alejandro G. Castro <alex@igalia.com>
  15208. Reviewed by Martin Robinson.
  15209. [GTK] Add WebResourceCacheDataManager to the compilation after r78848
  15210. https://bugs.webkit.org/show_bug.cgi?id=54732
  15211. Added resource cache manager API to GTK+ compilation after r78848.
  15212. * GNUmakefile.am:
  15213. 2011-02-20 Sam Weinig <sam@webkit.org>
  15214. Reviewed by Dan Bernstein.
  15215. Crash in WebProcess at com.apple.WebCore: WebCore::Page::goToItem + 46
  15216. <rdar://problem/8942726>
  15217. * WebProcess/WebPage/WebPage.cpp:
  15218. (WebKit::WebPage::goForward):
  15219. (WebKit::WebPage::goBack):
  15220. (WebKit::WebPage::goToBackForwardItem):
  15221. Defend agains null HistoryItems.
  15222. 2011-02-20 Anders Carlsson <andersca@apple.com>
  15223. Reviewed by Maciej Stachowiak.
  15224. Crash when a plug-in requests a javascript: url that destroys the plug-in
  15225. https://bugs.webkit.org/show_bug.cgi?id=54837
  15226. <rdar://problem/9005475>
  15227. * WebProcess/Plugins/PluginProxy.cpp:
  15228. (WebKit::PluginProxy::destroy):
  15229. Null out m_pluginController.
  15230. * WebProcess/Plugins/PluginView.cpp:
  15231. (WebKit::PluginView::performJavaScriptURLRequest):
  15232. Don't access the frame through m_pluginElement since it will be nulled out
  15233. when the plug-in is destroyed.
  15234. 2011-02-20 Anders Carlsson <andersca@apple.com>
  15235. Reviewed by Sam Weinig.
  15236. Fix another crash when a plug-in is destroyed when evaluating JavaScript
  15237. https://bugs.webkit.org/show_bug.cgi?id=54834
  15238. <rdar://problem/9005475>
  15239. This contains three separate fixes:
  15240. - In unprotectPluginFromDestruction we can't just destroy the plug-in once
  15241. the count reaches zero, because the plug-in might still have code executing
  15242. on the stack. To fix this we use a zero-delay timer to defer destruction
  15243. of the plug-in.
  15244. - Trying to get the NPObject for the window using NPN_GetValue would return
  15245. NPERR_NO_ERROR, even if the returned NPObject was null. Fix this to return
  15246. NPERR_GENERIC_ERROR instead.
  15247. - Protect the plug-in from destruction anytime an NPAPI call that sends a
  15248. synchronous IPC message is made.
  15249. * PluginProcess/PluginControllerProxy.cpp:
  15250. (WebKit::PluginControllerProxy::PluginControllerProxy):
  15251. (WebKit::PluginControllerProxy::destroy):
  15252. (WebKit::PluginControllerProxy::unprotectPluginFromDestruction):
  15253. * PluginProcess/PluginControllerProxy.h:
  15254. * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
  15255. (WebKit::PluginDestructionProtector::PluginDestructionProtector):
  15256. (WebKit::NPN_GetValue):
  15257. (WebKit::NPN_Evaluate):
  15258. (WebKit::NPN_GetProperty):
  15259. (WebKit::NPN_SetProperty):
  15260. (WebKit::NPN_RemoveProperty):
  15261. (WebKit::NPN_HasProperty):
  15262. (WebKit::NPN_HasMethod):
  15263. (WebKit::NPN_Enumerate):
  15264. (WebKit::NPN_Construct):
  15265. (WebKit::NPN_GetValueForURL):
  15266. (WebKit::NPN_SetValueForURL):
  15267. 2011-02-19 Sam Weinig <sam@webkit.org>
  15268. Reviewed by Anders Carlsson.
  15269. Add phase in addition to momentumPhase to platform wheel events
  15270. Part of <rdar://problem/8945362>
  15271. Rename existing phase to momentumPhase.
  15272. * Shared/WebEvent.h:
  15273. (WebKit::WebWheelEvent::momentumPhase):
  15274. * Shared/WebEventConversion.cpp:
  15275. (WebKit::WebKit2PlatformWheelEvent::WebKit2PlatformWheelEvent):
  15276. * Shared/WebWheelEvent.cpp:
  15277. (WebKit::WebWheelEvent::WebWheelEvent):
  15278. (WebKit::WebWheelEvent::encode):
  15279. (WebKit::WebWheelEvent::decode):
  15280. * Shared/mac/WebEventFactory.mm:
  15281. (WebKit::phaseForEvent):
  15282. (WebKit::momentumPhaseForEvent):
  15283. (WebKit::WebEventFactory::createWebWheelEvent):
  15284. 2011-02-19 Anders Carlsson <andersca@apple.com>
  15285. Reviewed by Dan Bernstein.
  15286. Crash when trying to take a snapshot of an uninitialized plug-in
  15287. https://bugs.webkit.org/show_bug.cgi?id=54812
  15288. * WebProcess/Plugins/PluginView.cpp:
  15289. (WebKit::PluginView::notifyWidget):
  15290. Don't try to create a snapshot of the plug-in if it hasn't been initialized.
  15291. 2011-02-18 Gavin Barraclough <barraclough@apple.com>
  15292. Reviewed by Sam Weinig.
  15293. Bug 54786 - Devirtualize JSCell::classInfo()
  15294. Instead of making a virtual function call, add a pointer to the ClassInfo
  15295. onto Structure.
  15296. This removes a virtual function call, and paves the way towards removing all
  15297. the createStructure methods, and StructureFlags/AnonymousSlotCount properties
  15298. (these should be able to move onto ClassInfo).
  15299. Calls to Structure::create must now pass a pointer to the ClassInfo for the
  15300. structure. All objects now have a ClassInfo pointer, non-object cell types
  15301. still do not.
  15302. Changes are most mechanical, involving three steps:
  15303. * Remove virtual classInfo() methods.
  15304. * Add &s_info parameter to calls to Structure::create.
  15305. * Rename ClassInfo static members on classes from 'info' to 's_info',
  15306. for consistency.
  15307. * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
  15308. (WebKit::JSNPMethod::JSNPMethod):
  15309. * WebProcess/Plugins/Netscape/JSNPMethod.h:
  15310. (WebKit::JSNPMethod::createStructure):
  15311. * WebProcess/Plugins/Netscape/JSNPObject.cpp:
  15312. (WebKit::JSNPObject::JSNPObject):
  15313. * WebProcess/Plugins/Netscape/JSNPObject.h:
  15314. (WebKit::JSNPObject::createStructure):
  15315. 2011-02-19 Sam Weinig <sam@webkit.org>
  15316. Reviewed by Anders Carlsson.
  15317. Rename performLookupAtCurrentMouseLocation to performDictionaryLookupAtCurrentMouseLocation
  15318. * UIProcess/API/mac/WKView.mm:
  15319. (-[WKView performDictionaryLookupAtCurrentMouseLocation]):
  15320. * UIProcess/API/mac/WKViewPrivate.h:
  15321. 2011-02-19 Charlie Reis <creis@chromium.org>
  15322. Reviewed by Mihai Parparita.
  15323. Ensure loading has stopped in HistoryController::goToItem
  15324. https://bugs.webkit.org/show_bug.cgi?id=54517
  15325. Add a FrameLoaderClient callback for whether to stop loading before goToItem.
  15326. Test: http/tests/navigation/forward-to-fragment-fires-onload.html
  15327. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  15328. (WebFrameLoaderClient::shouldStopLoadingForHistoryItem): Added.
  15329. * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
  15330. 2011-02-18 Sam Weinig <sam@webkit.org>
  15331. Reviewed by Adele Peterson.
  15332. Real fix for <rdar://problem/9025723> CrashTracer: [USER]
  15333. 1 crash in WebProcess at com.apple.WebKit2:
  15334. WebKit::WebPage::didChangeScrollOffsetForMainFrame + 31
  15335. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  15336. (WebKit::WebFrameLoaderClient::didChangeScrollOffset):
  15337. Add null check for the FrameView. This function can be called when the
  15338. FrameView is being torn down during a transition to a new FrameView.
  15339. * WebProcess/WebPage/WebPage.cpp:
  15340. (WebKit::WebPage::didChangeScrollOffsetForMainFrame):
  15341. Revert last attempt.
  15342. 2011-02-18 Anders Carlsson <andersca@apple.com>
  15343. Reviewed by Sam Weinig.
  15344. Hang trying to load nytimes.com with Flash installed
  15345. <rdar://problem/9018113>
  15346. * Platform/CoreIPC/Connection.cpp:
  15347. (CoreIPC::Connection::sendSyncMessage):
  15348. Call beginWaitForSyncReply() before sending the message. Otherwise, in some cases we could
  15349. have gotten back a synchronous request before calling beginWaitForSyncReply(), and then we wouldn't
  15350. process it correctly. (Which would lead to the hang).
  15351. 2011-02-18 Simon Fraser <simon.fraser@apple.com>
  15352. Reviewed by Kevin Decker.
  15353. <rdar://problem/9021296> Some plug-ins are the wrong size after zooming
  15354. Use the same frame/bounds adjustment that we use for NSView-based
  15355. plugins in WebKit2, which allows plug-ins and their snapshots to
  15356. render with the correct size after scaling.
  15357. * WebProcess/Plugins/PluginView.cpp:
  15358. (WebKit::PluginView::setBoundsSize):
  15359. (WebKit::PluginView::viewGeometryDidChange):
  15360. (WebKit::PluginView::clipRectInWindowCoordinates):
  15361. * WebProcess/Plugins/PluginView.h:
  15362. 2011-02-18 Beth Dakin <bdakin@apple.com>
  15363. Rubber-stamped by Adele Peterson.
  15364. Fix for <rdar://problem/9025723> CrashTracer: [USER]
  15365. 1 crash in WebProcess at com.apple.WebKit2:
  15366. WebKit::WebPage::didChangeScrollOffsetForMainFrame + 31
  15367. Simple null-check.
  15368. * WebProcess/WebPage/WebPage.cpp:
  15369. (WebKit::WebPage::didChangeScrollOffsetForMainFrame):
  15370. 2011-02-18 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
  15371. Reviewed by Kenneth Rohde Christiansen.
  15372. Tiled backing store area is too big.
  15373. Error in area calculcation causes size of backing store
  15374. up to 8 times bigger than viewport with default multipliers.
  15375. https://bugs.webkit.org/show_bug.cgi?id=54587
  15376. * UIProcess/TiledDrawingAreaProxy.cpp:
  15377. (WebKit::TiledDrawingAreaProxy::calculateKeepRect):
  15378. (WebKit::TiledDrawingAreaProxy::calculateCoverRect):
  15379. 2011-02-18 John Sullivan <sullivan@apple.com>
  15380. Reviewed by Maciej Stachowiak.
  15381. <rdar://problem/9026169>
  15382. https://bugs.webkit.org/show_bug.cgi?id=54780
  15383. pendingAPIRequestURL isn't updated for WKPageGoToBackForwardListItem
  15384. * UIProcess/WebPageProxy.cpp:
  15385. (WebKit::WebPageProxy::goToBackForwardItem):
  15386. Update the pending API URL.
  15387. 2011-02-18 Anders Carlsson <andersca@apple.com>
  15388. Reviewed by Sam Weinig.
  15389. Accelerated content fades in when using a layer backed WKView
  15390. <rdar://problem/9021586>
  15391. * UIProcess/API/mac/WKView.mm:
  15392. (-[WKView _enterAcceleratedCompositingMode:]):
  15393. Make a new nested CATransaction and disable animations when adding the layer
  15394. hosting subview. This avoids an implicit fade animation that would otherwise occur.
  15395. 2011-02-18 Simon Fraser <simon.fraser@apple.com>
  15396. Reviewed by Dan Bernstein.
  15397. Plugin snapshot location is wrong for subframes
  15398. https://bugs.webkit.org/show_bug.cgi?id=54776
  15399. Only change the CTM to the way that the plugin expects it
  15400. when painting the plugin, not when drawing the snapshot.
  15401. This fixes the snapshot location when painting flattened
  15402. frames.
  15403. * WebProcess/Plugins/PluginView.cpp:
  15404. (WebKit::PluginView::paint):
  15405. 2011-02-18 Anders Carlsson <andersca@apple.com>
  15406. Reviewed by Simon Fraser.
  15407. Implement NetscapePlugin::pluginComplexTextInputIdentifier
  15408. https://bugs.webkit.org/show_bug.cgi?id=54770
  15409. * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
  15410. (WebKit::NetscapePlugin::pluginComplexTextInputIdentifier):
  15411. 2011-02-18 Sam Weinig <sam@webkit.org>
  15412. Reviewed by Maciej Stachowiak.
  15413. Add the ability to ask the WKPage if the main frame is pinned
  15414. to the right or left hand side.
  15415. Part of <rdar://problem/9017043>.
  15416. * UIProcess/API/C/WKPage.cpp:
  15417. (WKPageIsPinnedToLeftSide):
  15418. (WKPageIsPinnedToRightSide):
  15419. * UIProcess/API/C/WKPage.h:
  15420. Add new API calls.
  15421. * UIProcess/WebPageProxy.cpp:
  15422. (WebKit::WebPageProxy::WebPageProxy):
  15423. (WebKit::WebPageProxy::close):
  15424. (WebKit::WebPageProxy::processDidCrash):
  15425. (WebKit::WebPageProxy::didChangeScrollOffsetPinningForMainFrame):
  15426. * UIProcess/WebPageProxy.h:
  15427. (WebKit::WebPageProxy::isPinnedToLeftSide):
  15428. (WebKit::WebPageProxy::isPinnedToRightSide):
  15429. Initialize, reset and update the pinned state.
  15430. * UIProcess/WebPageProxy.messages.in:
  15431. Add message to update the pinned state.
  15432. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
  15433. (WebKit::WebFrameLoaderClient::didChangeScrollOffset):
  15434. * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
  15435. * WebProcess/WebPage/WebPage.cpp:
  15436. (WebKit::WebPage::WebPage):
  15437. (WebKit::WebPage::didChangeScrollOffsetForMainFrame):
  15438. * WebProcess/WebPage/WebPage.h:
  15439. Cache the pinned state, and only update the UIProcess when it
  15440. changes.
  15441. 2011-02-18 Anders Carlsson <andersca@apple.com>
  15442. Reviewed by Simon Fraser.
  15443. Fix assertion in SharedMemory::create when trying to snapshot 0x0 plug-in
  15444. https://bugs.webkit.org/show_bug.cgi?id=54768
  15445. * PluginProcess/PluginControllerProxy.cpp:
  15446. (WebKit::PluginControllerProxy::snapshot):
  15447. Don't try to create a handle from a null ShareableBitmap.
  15448. * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
  15449. (WebKit::NetscapePlugin::snapshot):
  15450. Check for a zero sized plug-in before trying to create a snapshot.
  15451. 2011-02-18 Anders Carlsson <andersca@apple.com>
  15452. Reviewed by Simon Fraser.
  15453. WKView flashes when entering/exiting compositing mode
  15454. https://bugs.webkit.org/show_bug.cgi?id=54695
  15455. <rdar://problem/9011554>
  15456. * UIProcess/API/mac/WKView.mm:
  15457. (-[WKView _exitAcceleratedCompositingMode]):
  15458. Remove the layer hosting view before clearing out its layer, otherwise we can get
  15459. white flashes when exiting accelerated compositing mode.
  15460. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  15461. When entering accelerated compositing mode, we want to defer sending the message
  15462. until we've actually committed the layer tree and pushed all changes over to the
  15463. UI process.
  15464. (WebKit::DrawingAreaImpl::layerHostDidFlushLayers):
  15465. Tell the layer tree host to force a repaint. This will ensure that all layer tree
  15466. changes are pushed over to the UI process. When that is done, send the new layer tree
  15467. context over to the UI process.
  15468. (WebKit::DrawingAreaImpl::setRootCompositingLayer):
  15469. When exiting compositing mode in response to a didSetSize, we want to exit accelerated
  15470. compositing mode right away to avoid flashes. This is safe since we've laid out the page
  15471. already so we won't end up reentering setRootCompositingLayer.
  15472. (WebKit::DrawingAreaImpl::enterAcceleratedCompositingMode):
  15473. Tell the layer tree host to notify us when the next layer tree flush happened, so we can
  15474. let the UI process know. If we're entering accelerated compositing mode in response to a
  15475. SetSize message, the new layer tree context will be passed in the DidSetSize message.
  15476. * WebProcess/WebPage/DrawingAreaImpl.h:
  15477. Add layerHostDidFlushLayers.
  15478. * WebProcess/WebPage/LayerTreeHost.h:
  15479. Add setShouldNotifyAfterNextScheduledLayerFlush.
  15480. * WebProcess/WebPage/mac/LayerTreeHostMac.h:
  15481. Add a m_notifyAfterScheduledLayerFlush flag.
  15482. * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
  15483. (WebKit::LayerTreeHostMac::LayerTreeHostMac):
  15484. Initialize m_notifyAfterScheduledLayerFlush to false.
  15485. (WebKit::LayerTreeHostMac::setShouldNotifyAfterNextScheduledLayerFlush):
  15486. Set m_notifyAfterScheduledLayerFlush to true.
  15487. (WebKit::LayerTreeHostMac::flushPendingLayerChangesRunLoopObserverCallback):
  15488. If m_notifyAfterScheduledLayerFlush is true, call DrawingAreaImpl::layerHostDidFlushLayers.
  15489. 2011-02-18 Alexey Proskuryakov <ap@apple.com>
  15490. Reviewed by Adele Peterson.
  15491. REGRESSION (WebKit2): Wrong frame printed on tivofaq.com
  15492. https://bugs.webkit.org/show_bug.cgi?id=54677
  15493. <rdar://problem/8994133>
  15494. * WebProcess/WebCoreSupport/WebChromeClient.cpp:
  15495. (WebKit::area): Use visible frame bounds.
  15496. (WebKit::findLargestFrameInFrameSet): Added a comment explaining what we're up to here.
  15497. WebKit2 shouldn't be making policy decisions for the client, but it gets dangerously close
  15498. to that. We used to expose the same as WK1 API though.
  15499. 2011-02-18 Balazs Kelemen <kbalazs@webkit.org>
  15500. Unreviwed.
  15501. Remove CleanupHandler since we do not use it anymore.
  15502. * Shared/qt/CleanupHandler.cpp: Removed.
  15503. * Shared/qt/CleanupHandler.h: Removed.
  15504. 2011-02-18 Alejandro G. Castro <alex@igalia.com>
  15505. Fix GTK build by fixing signature of platformPaint(), required after r78956.
  15506. * WebProcess/Plugins/Netscape/gtk/NetscapePluginGtk.cpp:
  15507. (WebKit::NetscapePlugin::platformPaint):
  15508. 2011-02-17 Dan Bernstein <mitz@apple.com>
  15509. LLVM Compiler build fix.
  15510. * UIProcess/WebResourceCacheManagerProxy.h:
  15511. * WebProcess/ResourceCache/WebResourceCacheManager.h:
  15512. 2011-02-17 Simon Fraser <simon.fraser@apple.com>
  15513. Fix Windows and Qt builds by fixing signature of platformPaint().
  15514. * WebProcess/Plugins/Netscape/qt/NetscapePluginQt.cpp:
  15515. (WebKit::NetscapePlugin::platformPaint):
  15516. * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
  15517. (WebKit::NetscapePlugin::platformPaint):
  15518. 2011-02-17 Simon Fraser <simon.fraser@apple.com>
  15519. Reviewed by Sam Weinig.
  15520. WebKit2 snapshots don't show plug-ins
  15521. https://bugs.webkit.org/show_bug.cgi?id=54716
  15522. Fix WebKit2 plug-ins to do a software paint for
  15523. snapshotting.
  15524. * PluginProcess/PluginControllerProxy.h:
  15525. * PluginProcess/PluginControllerProxy.cpp:
  15526. (WebKit::PluginControllerProxy::snapshot): Respond to the snapshot
  15527. message by getting a sharable bitmap from the plugin, and returning
  15528. a handle to it in the reply.
  15529. * PluginProcess/PluginControllerProxy.messages.in: Add the snapshot
  15530. message.
  15531. * Shared/Plugins/PluginQuirks.h:
  15532. * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
  15533. (WebKit::NetscapePluginModule::determineQuirks): Add a quirk for the
  15534. ability to be snapshotted, which we only set for Flash at the moment.
  15535. * WebProcess/Plugins/Netscape/NetscapePlugin.h:
  15536. * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
  15537. (WebKit::NetscapePlugin::snapshot): Create a shareable bitmap, and
  15538. paint into it.
  15539. (WebKit::NetscapePlugin::supportsSnapshotting): Test the quirk.
  15540. * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
  15541. (WebKit::NetscapePlugin::platformPaint): Allow the paint to happen
  15542. if we're snapshotting, even when using the CoreAnimation drawing
  15543. model.
  15544. * WebProcess/Plugins/Plugin.h: New snapshot method.
  15545. * WebProcess/Plugins/PluginProxy.h:
  15546. * WebProcess/Plugins/PluginProxy.cpp:
  15547. (WebKit::PluginProxy::snapshot): Send a sync message to the plugin process,
  15548. asking for a snapshot in a shareble bitmap.
  15549. * WebProcess/Plugins/PluginView.h:
  15550. * WebProcess/Plugins/PluginView.cpp:
  15551. (WebKit::PluginView::paint): Use the snapshot if we have one, to avoid
  15552. calling into the plugin to draw, which may run script.
  15553. (WebKit::PluginView::notifyWidget): Generate the snapshot before
  15554. a flattening paint, and throw it away after.
  15555. 2011-02-17 Jessie Berlin <jberlin@apple.com>
  15556. Reviewed by Adam Roben.
  15557. WebKit2: The CFNetwork Cache should be shared between the UI Process and the Web Process on
  15558. Windows.
  15559. https://bugs.webkit.org/show_bug.cgi?id=54683
  15560. * Shared/WebProcessCreationParameters.cpp:
  15561. (WebKit::WebProcessCreationParameters::encode):
  15562. (WebKit::WebProcessCreationParameters::decode):
  15563. * Shared/WebProcessCreationParameters.h:
  15564. * UIProcess/win/WebContextWin.cpp:
  15565. (WebKit::WebContext::platformInitializeWebProcess):
  15566. Make sure to remove the ending slash, as CFNetwork does not recognize the directory with
  15567. that slash.
  15568. * WebProcess/win/WebProcessWin.cpp:
  15569. (WebKit::WebProcess::platformInitializeWebProcess):
  15570. Create a cache using the path, disk capacity, and memory capacity and set it as default.
  15571. 2011-02-17 Anders Carlsson <andersca@apple.com>
  15572. Reviewed by Sam Weinig.
  15573. Web and/or plug-in process crashes when NPN_Evaluate destroys the plug-in
  15574. https://bugs.webkit.org/show_bug.cgi?id=54686
  15575. <rdar://problem/9013384>
  15576. This patch fixes two bugs with a plug-in calling NPN_Evaluate to destroy itself:
  15577. - The PluginProxy object would be destroyed in the middle of PluginProxy::evaluate.
  15578. This would cause the web process to crash.
  15579. - The PluginControllerProxy would call NPP_Destroy while the plug-in was busy running
  15580. code. This would cause the plug-in process to crash.
  15581. To fix this, we add protectPluginFromDestruction/unprotectPluginFromDestruction to
  15582. PluginControllerProxy and use it to defer calling destroy() in the plug-in process,
  15583. and defer actually destroying the plug-in in the web process.
  15584. https://bugs.webkit.org/show_bug.cgi?id=54171 tracks adding a test for this.
  15585. * PluginProcess/PluginControllerProxy.cpp:
  15586. (WebKit::PluginControllerProxy::PluginControllerProxy):
  15587. (WebKit::PluginControllerProxy::destroy):
  15588. (WebKit::PluginControllerProxy::evaluate):
  15589. (WebKit::PluginControllerProxy::protectPluginFromDestruction):
  15590. (WebKit::PluginControllerProxy::unprotectPluginFromDestruction):
  15591. * PluginProcess/PluginControllerProxy.h:
  15592. (WebKit::PluginControllerProxy::asPluginController):
  15593. * PluginProcess/WebProcessConnection.cpp:
  15594. (WebKit::WebProcessConnection::destroyPluginControllerProxy):
  15595. (WebKit::WebProcessConnection::didReceiveMessage):
  15596. (WebKit::WebProcessConnection::didReceiveSyncMessage):
  15597. * PluginProcess/WebProcessConnection.h:
  15598. (WebKit::WebProcessConnection::connection):
  15599. * WebProcess/Plugins/PluginController.h:
  15600. (WebKit::PluginController::PluginDestructionProtector::PluginDestructionProtector):
  15601. (WebKit::PluginController::PluginDestructionProtector::~PluginDestructionProtector):
  15602. * WebProcess/Plugins/PluginProxy.cpp:
  15603. (WebKit::PluginProxy::evaluate):
  15604. * WebProcess/Plugins/PluginView.cpp:
  15605. (WebKit::PluginView::protectPluginFromDestruction):
  15606. (WebKit::PluginView::unprotectPluginFromDestruction):
  15607. * WebProcess/Plugins/PluginView.h:
  15608. 2011-02-17 Sam Weinig <sam@webkit.org>
  15609. Build fix.
  15610. * WebProcess/WebPage/mac/WebPageMac.mm:
  15611. (WebKit::WebPage::performDictionaryLookupAtLocation):
  15612. 2011-02-17 Sam Weinig <sam@webkit.org>
  15613. Reviewed by Maciej Stachowiak.
  15614. WebKit2: Support Dictionary popup
  15615. <rdar://problem/7660670>
  15616. * Shared/TextInfo.cpp: Added.
  15617. (WebKit::TextInfo::encode):
  15618. (WebKit::TextInfo::decode):
  15619. * Shared/TextInfo.h: Added.
  15620. (WebKit::TextInfo::TextInfo):
  15621. Add class to represent the location and style of a run of text.
  15622. * UIProcess/PageClient.h:
  15623. * UIProcess/API/mac/PageClientImpl.h:
  15624. * UIProcess/API/mac/PageClientImpl.mm:
  15625. (WebKit::PageClientImpl::didPerformDictionaryLookup):
  15626. Invoke the dictionary popup.
  15627. * UIProcess/API/mac/WKView.mm:
  15628. (-[WKView performLookupAtCurrentMouseLocation]):
  15629. Tell the WebProcess to get get the text under the mouse and cause
  15630. the dictionary popup to appear.
  15631. * UIProcess/API/mac/WKViewPrivate.h:
  15632. Add performLookupAtCurrentMouseLocation.
  15633. * UIProcess/WebPageProxy.cpp:
  15634. (WebKit::WebPageProxy::performDictionaryLookupAtLocation):
  15635. (WebKit::WebPageProxy::didPerformDictionaryLookup):
  15636. * UIProcess/WebPageProxy.h:
  15637. * UIProcess/WebPageProxy.messages.in:
  15638. * WebProcess/WebPage/WebPage.cpp:
  15639. * WebProcess/WebPage/WebPage.h:
  15640. * WebProcess/WebPage/WebPage.messages.in:
  15641. Pipe messages through.
  15642. * WebProcess/WebPage/mac/WebPageMac.mm:
  15643. (WebKit::characterRangeAtPoint): Fix to return PassRefPtr
  15644. and not potentially stale pointers.
  15645. (WebKit::WebPage::characterIndexForPoint):
  15646. Change to use a RefPtr.
  15647. (WebKit::WebPage::performDictionaryLookupAtLocation):
  15648. Add simple heuristic to get the word at the current point (or the current selection
  15649. if it is at that point) and grab the style of the word to send the UIProcess.
  15650. * WebKit2.pro:
  15651. * WebKit2.xcodeproj/project.pbxproj:
  15652. * win/WebKit2.vcproj:
  15653. Add new files.
  15654. 2011-02-17 Brian Weinstein <bweinstein@apple.com>
  15655. Qt build fix.
  15656. * WebKit2.pro: Update after renaming of MemoryCache to ResourceCache.
  15657. 2011-02-17 Brian Weinstein <bweinstein@apple.com>
  15658. Mac build fix.
  15659. * WebKit2.xcodeproj/project.pbxproj: Use relative to group instead of absolute paths. Not everyone's home
  15660. directory is /Users/brian_weinstein.
  15661. 2011-02-16 Brian Weinstein <bweinstein@apple.com>
  15662. Reviewed by Brady Eidson.
  15663. WebKit2: Need a way to manage the WebCore Cache
  15664. https://bugs.webkit.org/show_bug.cgi?id=54501
  15665. Implement a WebKit2 API to manage the WebCore memory cache. This API exposes three functions:
  15666. 1) A method to get a list of all security origins that have entries in the WebCore memory cache.
  15667. 2) A method to remove all entries in the WebCore memory cache from a SecurityOrigin.
  15668. 3) A method to remove all entries from the WebCore memory cache.
  15669. * Platform/CoreIPC/MessageID.h: Add two new MessageClasses.
  15670. * Shared/API/c/WKBase.h:
  15671. * Shared/APIObject.h: Add a CacheManager type.
  15672. * Shared/WebSecurityOrigin.h: Typedef WKCacheManagerRef.
  15673. (WebKit::WebSecurityOrigin::createFromString): Creates a WebCore::SecurityOrigin using
  15674. SecurityOrigin::createFromString.
  15675. (WebKit::WebSecurityOrigin::toString): Calls through to SecurityOrigin::toString.
  15676. * UIProcess/API/C/WKAPICast.h:
  15677. * UIProcess/API/C/WKCacheManager.cpp: Added.
  15678. (WKCacheManagerGetTypeID): Returns the WebResourceCacheManagerProxy type.
  15679. (WKCacheManagerGetCacheOrigins): Calls through to WebResourceCacheManagerProxy::getCacheOrigins.
  15680. (callGetCacheOriginsBlockBlockAndDispose):
  15681. (WKCacheManagerGetCacheOrigins_b):
  15682. (WKCacheManagerDeleteCacheForOrigin): Calls through to WebResourceCacheManagerProxy::deleteCacheForOrigin.
  15683. (WKCacheManagerDeleteAllCache): Calls through to WebResourceCacheManagerProxy::deleteAllCache.
  15684. * UIProcess/API/C/WKCacheManager.h: Added.
  15685. * UIProcess/API/C/WKContext.cpp:
  15686. (WKContextGetCacheManager): Calls to get the WebResourceCacheManagerProxy.
  15687. * UIProcess/API/C/WKContext.h:
  15688. * UIProcess/WebResourceCacheManagerProxy.cpp: Added.
  15689. (WebKit::WebResourceCacheManagerProxy::create): Calls through to the constructor.
  15690. (WebKit::WebResourceCacheManagerProxy::WebResourceCacheManagerProxy): Initialize the m_webContext variable.
  15691. (WebKit::WebResourceCacheManagerProxy::~WebResourceCacheManagerProxy):
  15692. (WebKit::WebResourceCacheManagerProxy::invalidate): Invalidate the callback map.
  15693. (WebKit::WebResourceCacheManagerProxy::getCacheOrigins): Call through to the web process to get the cache
  15694. origins.
  15695. (WebKit::WebResourceCacheManagerProxy::didGetCacheOrigins): Call the callback.
  15696. (WebKit::WebResourceCacheManagerProxy::deleteCacheForOrigin): Call through to the web process to delete cache
  15697. for the given origin.
  15698. (WebKit::WebResourceCacheManagerProxy::deleteAllCache): Call through to the web process to delete all of the cache.
  15699. * UIProcess/WebResourceCacheManagerProxy.h: Added.
  15700. (WebKit::WebResourceCacheManagerProxy::clearContext):
  15701. (WebKit::WebResourceCacheManagerProxy::type):
  15702. * UIProcess/WebResourceCacheManagerProxy.messages.in: Added.
  15703. * UIProcess/WebContext.cpp:
  15704. (WebKit::WebContext::WebContext): Initialize new member variable.
  15705. (WebKit::WebContext::~WebContext): Invalidates new member variable.
  15706. (WebKit::WebContext::didReceiveMessage): Passes cache messages to the cache manager.
  15707. * UIProcess/WebContext.h:
  15708. (WebKit::WebContext::cacheManagerProxy):
  15709. * UIProcess/WebProcessProxy.cpp:
  15710. (WebKit::WebProcessProxy::didReceiveMessage): Add a new message class.
  15711. * WebProcess/ResourceCache/WebResourceCacheManager.cpp: Added.
  15712. (WebKit::WebResourceCacheManager::shared):
  15713. (WebKit::WebResourceCacheManager::WebResourceCacheManager):
  15714. (WebKit::WebResourceCacheManager::~WebResourceCacheManager):
  15715. (WebKit::WebResourceCacheManager::didReceiveMessage): Calls through to didReceiveWebResourceCacheManagerMessage.
  15716. (WebKit::WebResourceCacheManager::getCacheOrigins): Gets a list of origins with cache entries from the memory
  15717. cache, and puts them into a vector to send to the UI process.
  15718. (WebKit::WebResourceCacheManager::deleteCacheForOrigin): Calls through to ResourceCache to delete all cache entries
  15719. from a given origin.
  15720. (WebKit::WebResourceCacheManager::deleteAllCache):
  15721. * WebProcess/ResourceCache/WebResourceCacheManager.h: Added.
  15722. * WebProcess/ResourceCache/WebResourceCacheManager.messages.in: Added.
  15723. * WebProcess/WebProcess.cpp:
  15724. (WebKit::WebProcess::didReceiveMessage):
  15725. (WebKit::WebProcess::clearResourceCaches): Tell the memory cache to evict its resources. This was done on WebKit1,
  15726. but not WebKit2.
  15727. * WebProcess/WebProcess.h:
  15728. * WebKit2.xcodeproj/project.pbxproj: Added new files.
  15729. * win/WebKit2.vcproj: Ditto.
  15730. * win/WebKit2Common.vsprops: Added new include directory.
  15731. * win/WebKit2Generated.make: Added new header.
  15732. 2011-02-16 David Hyatt <hyatt@apple.com>
  15733. Reviewed by Dan Bernstein.
  15734. https://bugs.webkit.org/show_bug.cgi?id=54244
  15735. Convert the line box tree to floating point and eliminate font rounding hacks. This patch removes all of the rounding
  15736. hacks from the Font code and makes sure all Font APIs involving width measurement and width offsets use floats.
  15737. The line box tree's x, y and logicalWidth members have all been converted to floats and all of the line box APIs have
  15738. been changed as well.
  15739. In terms of pixel adjustments, overflow is using an enclosing model (so it will be enclosingIntRect of a line box's x/y/width/height).
  15740. Background and border painting is using a rounding model, so borders and backgrounds will round to the nearest pixel when painting.
  15741. Replaced elements still snap to integer positions on lines, and they use a rounding model as well, although their underlying line boxes
  15742. still have a precise floating point position.
  15743. Justification will now allow subpixel positioning to occur as well. Platforms that don't support subpixel positioning should already
  15744. be rounding justification spacing in their font code.
  15745. Many layout test results change on Mac, since rounding hacks were used there and are now gone.
  15746. * WebProcess/WebCoreSupport/win/WebPopupMenuWin.cpp:
  15747. (WebKit::WebPopupMenu::setUpPlatformData):
  15748. 2011-02-10 Luiz Agostini <luiz.agostini@openbossa.org>
  15749. Reviewed by Adam Roben.
  15750. HTML5 <details> and <summary>: localized text
  15751. https://bugs.webkit.org/show_bug.cgi?id=54260
  15752. The method defaultDetailsSummaryText was added to LocalizationStrategy class. It is used to
  15753. provide the default label to be used by a <details> tag that has no <summary> child.
  15754. * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
  15755. (WebKit::WebPlatformStrategies::defaultDetailsSummaryText):
  15756. * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
  15757. 2011-02-17 Adam Roben <aroben@apple.com>
  15758. Make sure layout is up-to-date before rendering the layer tree in DrawingAreaImpl
  15759. Fixes <http://webkit.org/b/54646> <rdar://problem/9016889> Assertion failure in
  15760. FrameView::paintContents when calling WKPageForceRepaint on a page that uses accelerated
  15761. compositing
  15762. Reviewed by Anders Carlsson.
  15763. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  15764. (WebKit::DrawingAreaImpl::forceRepaint): Lay out before we do anything else.
  15765. 2011-02-17 Alejandro G. Castro <alex@igalia.com>
  15766. Reviewed by Martin Robinson.
  15767. [GTK] Add WKPluginSiteDataManager.cpp compilation after r78647
  15768. https://bugs.webkit.org/show_bug.cgi?id=54564
  15769. * GNUmakefile.am: Added files to compilation.
  15770. * Shared/Plugins/Netscape/NetscapePluginModule.h: used
  15771. npruntime_internal.h in the include to avoid problems with X
  15772. types.
  15773. * WebProcess/WebProcess.cpp:
  15774. (WebKit::WebProcess::setAlwaysUsesComplexTextCodePath): fixed
  15775. ambiguous reference to Font caused by the X headers required by
  15776. the plugins.
  15777. 2011-02-16 Matthew Delaney <mdelaney@apple.com>
  15778. Reviewed by Simon Fraser.
  15779. Allow acceleratesDrawing for WebKit2
  15780. https://bugs.webkit.org/show_bug.cgi?id=54511
  15781. Plumb through preference for accelerated drawing.
  15782. If accelerated drawing is enabled, keep the DrawingAreaImpl in
  15783. accelerated compositing mode.
  15784. * Shared/WebPreferencesStore.h:
  15785. * UIProcess/API/C/WKPreferences.cpp:
  15786. (WKPreferencesSetAcceleratedDrawingEnabled):
  15787. (WKPreferencesGetAcceleratedDrawingEnabled):
  15788. * UIProcess/API/C/WKPreferencesPrivate.h:
  15789. * WebProcess/WebPage/DrawingAreaImpl.cpp:
  15790. (WebKit::DrawingAreaImpl::DrawingAreaImpl):
  15791. (WebKit::DrawingAreaImpl::setRootCompositingLayer):
  15792. (WebKit::DrawingAreaImpl::exitAcceleratedCompositingMode):
  15793. * WebProcess/WebPage/DrawingAreaImpl.h:
  15794. * WebProcess/WebPage/WebPage.cpp:
  15795. (WebKit::WebPage::updatePreferences):
  15796. 2011-02-16 Yael Aharon <yael.aharon@nokia.com>
  15797. Reviewed by Andreas Kling.
  15798. [Qt] White screen is displayed when tiled backing store is enabled in MiniBrowser.
  15799. https://bugs.webkit.org/show_bug.cgi?id=54583
  15800. Make sure to invalidate all the tiles, including the last one.
  15801. * UIProcess/TiledDrawingAreaProxy.cpp:
  15802. (WebKit::TiledDrawingAreaProxy::invalidate):
  15803. 2011-02-16 Yael Aharon <yael.aharon@nokia.com>
  15804. Reviewed by Andreas Kling.
  15805. [Qt] Tiles are not created for webkit2 after r77286.
  15806. https://bugs.webkit.org/show_bug.cgi?id=54577
  15807. When using the default tile size of 1024x1024, only one tile is created.
  15808. Make sure to create this tile by undoing what seems to be a typo in r77286.
  15809. * UIProcess/TiledDrawingAreaProxy.cpp:
  15810. (WebKit::TiledDrawingAreaProxy::paint):
  15811. (WebKit::TiledDrawingAreaProxy::createTiles):
  15812. == Rolled over to ChangeLog-2011-02-16 ==