ChangeLog-2002-12-03 834 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985
  1. 2002-12-03 Trey Matteson <trey@apple.com>
  2. Re-fix of 3113393 - Clients side redirects shouldn't always add item to back/forward list
  3. Fix 3116980 - REGRESSION: Back button goes back twice
  4. Fix 3099631 - assertion failure at http://www.calendarlive.com/ when pop-up blocking is off
  5. The earlier fix for the first bug was to consider any redirect happening within one
  6. second as a continuation of the previous load. To fix the regressions I re-cast that
  7. fix using a similar, pre-existing mechanism.
  8. Reviewed by: Richwill
  9. * WebView.subproj/WebFramePrivate.h: Nuke shortRedirectComing, rename
  10. instantRedirectComing to quickRedirectComing.
  11. * WebView.subproj/WebFramePrivate.m:
  12. (-[WebFrame _createOrUpdateItem]): Remove code related to shortRedirectComing,
  13. the fix that brought the regressions.
  14. (-[WebFrame _setState:]): Don't cache the page we're leaving if we're doing
  15. a redirect (since we don't want the redirecting page in the cache).
  16. (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:request:]): Above rename.
  17. (-[WebFrame _loadURL:loadType:triggeringEvent:isFormSubmission:]): Above rename.
  18. (-[WebFrame _loadURL:intoChild:]): Comment fix.
  19. (-[WebFrame _clientRedirectedTo:delay:fireDate:]): Use 1 second instead of 0
  20. seconds as the metric of a client redirect. Do not consider whether the frame
  21. state is completed as part of the decision.
  22. (-[WebFrame _clientRedirectCancelled]): Above rename.
  23. 2002-12-03 John Sullivan <sullivan@apple.com>
  24. Reviewed by: Darin
  25. - REALLY changed the default state for block pop-ups to be off.
  26. * WebView.subproj/WebPreferences.m:
  27. (+[WebPreferences load]):
  28. change default for letting JavaScript open windows automatically
  29. to YES
  30. 2002-12-03 Darin Adler <darin@apple.com>
  31. - fixed 3117135 -- world leak: drag any image, get a leak of 1 WebFrame
  32. Reviewed by John.
  33. * WebView.subproj/WebHTMLView.m:
  34. (-[WebHTMLView mouseDragged:]): Retain the URL of the dragged image, not the entire
  35. element dictionary. The element dictionary creates a reference cycle since it includes
  36. a reference to the WebFrame.
  37. (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Use the URL rather than
  38. extracting it from the dictionary with a WebElementImageURLKey.
  39. * WebView.subproj/WebHTMLViewPrivate.h: URL, not element dictionary.
  40. * WebView.subproj/WebHTMLViewPrivate.m: (-[WebHTMLViewPrivate dealloc]): Release the
  41. URL, not the element dictionary.
  42. 2002-12-03 Richard Williamson <rjw@apple.com>
  43. Added a preference to change the page cache size, i.e.:
  44. Alexander.app/Contents/MacOS/Alexander -WebKitPageCacheSizePreferenceKey 4
  45. Reviewed by: hyatt
  46. * History.subproj/WebBackForwardList.m:
  47. (+[WebBackForwardList setPageCacheSize:]):
  48. (+[WebBackForwardList pageCacheSize]):
  49. * WebView.subproj/WebPreferences.m:
  50. (+[WebPreferences load]):
  51. (-[WebPreferences _initialTimedLayoutSize]):
  52. (-[WebPreferences _pageCacheSize]):
  53. * WebView.subproj/WebPreferencesPrivate.h:
  54. 2002-12-03 Richard Williamson <rjw@apple.com>
  55. Fixed 3019986. Use an array of font families instead of a single
  56. font family to support CSS family lists.
  57. r=hyatt
  58. * Misc.subproj/WebKitNSStringExtras.m:
  59. (-[NSString _web_widthForString:font:]):
  60. * Misc.subproj/WebStringTruncator.m:
  61. (+[WebStringTruncator rightTruncateString:toWidth:withFont:]):
  62. (+[WebStringTruncator centerTruncateString:toWidth:withFont:]):
  63. * WebCoreSupport.subproj/WebTextRenderer.h:
  64. * WebCoreSupport.subproj/WebTextRenderer.m:
  65. (-[WebTextRenderer substituteFontForString:families:]):
  66. (-[WebTextRenderer substituteFontForCharacters:length:families:]):
  67. (-[WebTextRenderer widthForCharacters:length:]):
  68. (-[WebTextRenderer drawCharacters:stringLength:fromCharacterPosition:toCharacterPosition:atPoint:withPadding:withTextColor:backgroundColor:rightToLeft:letterSpacing:wordSpacing:fontFamilies:]):
  69. (-[WebTextRenderer floatWidthForCharacters:stringLength:characterPosition:]):
  70. (-[WebTextRenderer floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:]):
  71. (-[WebTextRenderer floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:letterSpacing:wordSpacing:fontFamilies:]):
  72. (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:letterSpacing:wordSpacing:fontFamilies:]):
  73. * WebCoreSupport.subproj/WebTextRendererFactory.h:
  74. * WebCoreSupport.subproj/WebTextRendererFactory.m:
  75. (-[WebTextRendererFactory fontWithFamilies:traits:size:]):
  76. (-[WebTextRendererFactory fontWithFamily:traits:size:]):
  77. (+[WebTextRendererFactory fallbackFontWithTraits:size:]):
  78. (-[WebTextRendererFactory cachedFontFromFamily:traits:size:]):
  79. (-[WebTextRendererFactory cachedFontFromFamilies:traits:size:]):
  80. (-[WebTextRendererFactory rendererWithFamilies:traits:size:]):
  81. 2002-12-03 Chris Blumenberg <cblu@apple.com>
  82. Fixed: 3115073 - REGRESSION: plants.com is crashing in WebIconDB with bad retain count
  83. The plants.com favicon was marked to be removed from disk and thus it had no retain count. The problem was that it was still on disk and _hasIconForIconURL would return YES. If hasIconForIconURL returns YES, its is ok to call _setIconURL:forSiteURL:. Since there was no retain count, the assert in _setIconURL:forSiteURL: would be hit.
  84. We now consider icons without retain counts to not exist even if they're on disk.
  85. * Misc.subproj/WebIconDatabase.m:
  86. (-[WebIconDatabase _updateFileDatabase]):
  87. (-[WebIconDatabase _setIconURL:forSiteURL:]):
  88. 2002-12-03 Chris Blumenberg <cblu@apple.com>
  89. Fixed:
  90. 3112477 - REGRESSION: dropping image within window loads image in current window
  91. Fix: Unregister the parent webview for dragging when the drag starts, reregister after the drag ends.
  92. 3116423 - Dragged images sometimes have the wrong promised-file file type
  93. Fix: Make the - [NSView_web_dragPromisedImage...] method take a file type rather than deriving the file type from the URL
  94. 3115768 - REGRESSION: contextual menu item "copy url to clipboard" doesn't work
  95. Fix: In [NSPastboard _web_writeURL:andTitle:withOwner:] adding pboard types doesn't work for the general pasteboard, have to redeclare.
  96. 3116594 - Image on the drag pasteboard shouldn't have applied transparency and scaling
  97. Fix: In - [NSView_web_dragPromisedImage...] put the original image on the pboard
  98. Reviewed by John.
  99. * Misc.subproj/WebNSPasteboardExtras.m:
  100. (-[NSPasteboard _web_writeURL:andTitle:withOwner:]): don't use addTypes as it doesn't work as I expected
  101. * Misc.subproj/WebNSViewExtras.h:
  102. * Misc.subproj/WebNSViewExtras.m:
  103. (-[NSView _web_dragPromisedImage:origin:URL:fileType:title:event:]): put the original image on the pboard, not the drag image
  104. * WebView.subproj/WebHTMLView.m:
  105. (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]):
  106. (-[WebHTMLView mouseDragged:]): call _web_dragPromisedImage
  107. (-[WebHTMLView draggedImage:endedAt:operation:]): call -[WebView _reregisterDraggedTypes]
  108. * WebView.subproj/WebImageView.m:
  109. (-[WebImageView mouseDragged:]): call _web_dragPromisedImage
  110. (-[WebImageView draggedImage:endedAt:operation:]): call -[WebView _reregisterDraggedTypes]
  111. * WebView.subproj/WebView.m:
  112. (-[WebView initWithFrame:]): call _reregisterDraggedTypes
  113. (-[WebView draggingEntered:]): simplified, don't need to check drag source
  114. * WebView.subproj/WebViewPrivate.h:
  115. * WebView.subproj/WebViewPrivate.m:
  116. (-[WebView _reregisterDraggedTypes]):
  117. 2002-12-03 Darin Adler <darin@apple.com>
  118. - fixed 3114796 -- WORLD LEAKS: 1 WebFrame leaked on trivial source file with <html> tag only
  119. (probably fixed a ton of other bugs too, since this always leaks)
  120. Reviewed by Chris.
  121. * WebView.subproj/WebHTMLViewPrivate.m: (-[WebHTMLView _elementAtPoint:]):
  122. Added a missing autorelease.
  123. 2002-12-03 Darin Adler <darin@apple.com>
  124. Reviewed by Maciej.
  125. * WebView.subproj/WebView.m: Fixed a pair of strings that conflict.
  126. * English.lproj/Localizable.strings: Regenerated.
  127. * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
  128. 2002-12-02 Trey Matteson <trey@apple.com>
  129. Refined bookmark notifications to be more detailed. We now have added, removed,
  130. willChange and didChange.
  131. * Bookmarks.subproj/WebBookmarkGroup.h: New API.
  132. * Bookmarks.subproj/WebBookmarkGroup.m:
  133. (-[WebBookmarkGroup _sendNotification:forBookmark:children:]):
  134. (-[WebBookmarkGroup _setTopBookmark:]):
  135. (-[WebBookmarkGroup _bookmarkWillChange:]):
  136. (-[WebBookmarkGroup _bookmarkDidChange:]):
  137. (-[WebBookmarkGroup _bookmarkChildren:wereAddedToParent:]):
  138. (-[WebBookmarkGroup _bookmarkChildren:wereRemovedToParent:]):
  139. All just small pieces of flow control for posting the notes.
  140. * Bookmarks.subproj/WebBookmarkGroupPrivate.h: Internal methods for posting the notes.
  141. * Bookmarks.subproj/WebBookmarkLeaf.m:
  142. (-[WebBookmarkLeaf setTitle:]): Post da note
  143. (-[WebBookmarkLeaf setURLString:]): Post da note
  144. (-[WebBookmarkLeaf description]): Added for debugging.
  145. * Bookmarks.subproj/WebBookmarkList.m:
  146. (-[WebBookmarkList setTitle:]): Post da note
  147. (-[WebBookmarkList removeChild:]): Post da note
  148. (-[WebBookmarkList insertChild:atIndex:]): Post da note
  149. * Bookmarks.subproj/WebBookmarkProxy.m:
  150. (-[WebBookmarkProxy setTitle:]): Post da note
  151. * English.lproj/StringsNotToBeLocalized.txt: New strings.
  152. * WebKit.exp: New strings.
  153. 2002-12-02 Maciej Stachowiak <mjs@apple.com>
  154. - added original URL field to action dictionary so that policy delegates
  155. can avoid prompting over and over on redirects.
  156. * WebKit.exp:
  157. * WebView.subproj/WebControllerPolicyDelegate.h:
  158. * WebView.subproj/WebControllerPolicyDelegate.m:
  159. * WebView.subproj/WebDataSource.m:
  160. (-[WebDataSource initWithRequest:]):
  161. * WebView.subproj/WebDataSourcePrivate.m:
  162. (-[WebDataSource _startLoading:]):
  163. * WebView.subproj/WebFrame.m:
  164. (-[WebFrame loadRequest:]):
  165. * WebView.subproj/WebFramePrivate.h:
  166. * WebView.subproj/WebFramePrivate.m:
  167. (-[WebFrame _actionInformationForNavigationType:event:originalURL:]):
  168. (-[WebFrame _checkNavigationPolicyForRequest:dataSource:andCall:withSelector:]):
  169. (-[WebFrame _addExtraFieldsToRequest:]):
  170. (-[WebFrame _loadURL:loadType:triggeringEvent:isFormSubmission:]):
  171. (-[WebFrame _postWithURL:data:contentType:triggeringEvent:]):
  172. 2002-11-28 Darin Adler <darin@apple.com>
  173. * Downloads.subproj/WebDownloadHandler.m:
  174. (-[WebDownloadHandler createFileIfNecessary]): Add a FIXME.
  175. (-[WebDownloadHandler writeDataForkData:resourceForkData:]): Notify that the file system has
  176. changed so the Finder can respond to the size change.
  177. (-[WebDownloadHandler finishedLoading]): Notify that the file system has changed now that the
  178. download has completed and the files are closed (may be redundant now that we have the above,
  179. but will do no harm).
  180. * Plugins.subproj/WebBaseNetscapePluginView.m:
  181. (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
  182. Use _web_isCaseInsensitiveEqualToString instead of lowercaseString.
  183. * Misc.subproj/WebNSViewExtras.m: Tweak formatting.
  184. 2002-11-27 Richard Williamson <rjw@apple.com>
  185. Fixed 3113393. Client side redirects that happen <= 1 second
  186. update the current back/forward item, rather than creating
  187. a new one.
  188. * WebView.subproj/WebFramePrivate.h:
  189. * WebView.subproj/WebFramePrivate.m:
  190. (-[WebFrame _addBackForwardItemClippedAtTarget:]):
  191. (-[WebFrame _createOrUpdateItem]):
  192. (-[WebFrame _createItemTreeWithTargetFrame:clippedAtTarget:]):
  193. (-[WebFrame _transitionToCommitted:]):
  194. (-[WebFrame _clientRedirectedTo:delay:fireDate:]):
  195. (-[WebFrame _clientRedirectCancelled]):
  196. 2002-11-27 Richard Williamson <rjw@apple.com>
  197. Fixed measurement error for Ahem font (and any font that
  198. has a tiny fractional value). 3112745, 3112742
  199. * WebCoreSupport.subproj/WebTextRenderer.m:
  200. (-[WebTextRenderer initWithFont:]):
  201. 2002-11-26 Chris Blumenberg <cblu@apple.com>
  202. Fixed: 3090834 - Launch WMP (Window Media Player) when encountering WMP content
  203. Added contentURL to WebPluginError.
  204. * Plugins.subproj/WebNetscapePluginDocumentView.m:
  205. (-[WebNetscapePluginDocumentView setDataSource:]):
  206. * Plugins.subproj/WebNetscapePluginPackage.m:
  207. (-[WebNetscapePluginPackage initWithPath:]):
  208. * Plugins.subproj/WebNullPluginView.m:
  209. (-[WebNullPluginView viewDidMoveToWindow]):
  210. * Plugins.subproj/WebPluginError.h:
  211. * Plugins.subproj/WebPluginError.m:
  212. (-[WebPluginErrorPrivate dealloc]):
  213. (-[WebPluginError dealloc]):
  214. * WebCoreSupport.subproj/WebBridge.m:
  215. (-[WebBridge viewForPluginWithURL:attributes:baseURL:MIMEType:]):
  216. (-[WebBridge viewForJavaAppletWithFrame:attributes:baseURL:]):
  217. === Alexander-34 ===
  218. 2002-11-26 Richard Williamson <rjw@apple.com>
  219. Only cache page if the load has completed.
  220. * WebView.subproj/WebFramePrivate.m:
  221. (-[WebFrame _setState:]):
  222. 2002-11-26 Chris Blumenberg <cblu@apple.com>
  223. Removed some logging.
  224. * WebView.subproj/WebControllerPrivate.m:
  225. (+[WebController _supportedImageMIMETypes]):
  226. 2002-11-26 Chris Blumenberg <cblu@apple.com>
  227. Fixed: 3112003 - Show standalone tiffs using AppKit not QT plug-in
  228. We now dynamically check NSImage for supported image types when registering WebImageView's and WebImageRepresentation's supported MIME types.
  229. * WebView.subproj/WebControllerPrivate.h:
  230. * WebView.subproj/WebControllerPrivate.m:
  231. (+[WebController _supportedImageMIMETypes]): convert NSImage types to mime types
  232. * WebView.subproj/WebDataSourcePrivate.m:
  233. (+[WebDataSource _repTypes]): use _supportedImageMIMETypes to register mime types of WebImageRepresentation
  234. * WebView.subproj/WebViewPrivate.m:
  235. (+[WebView _viewTypes]): use _supportedImageMIMETypes to register mime types of WebImageView
  236. 2002-11-26 Chris Blumenberg <cblu@apple.com>
  237. Fixed: 3061174 - javascript: URLs sent by plugins don't work
  238. For "Javascript:" URLs.
  239. * Plugins.subproj/WebBaseNetscapePluginView.m:
  240. (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]): lowercase the scheme
  241. 2002-11-26 Richard Williamson <rjw@apple.com>
  242. More work on back/forward cache. It's ready for
  243. more general testing. Although, to be safe I've
  244. left it disabled by default for tomorrow's release.
  245. It will log when a page is save and restored from
  246. the page cache.
  247. * WebCoreSupport.subproj/WebBridge.m:
  248. (-[WebBridge saveDocumentToPageCache:]):
  249. * WebView.subproj/WebDataSourcePrivate.m:
  250. (-[WebDataSource _startLoading:]):
  251. (-[WebDataSource _commitIfReady:]):
  252. (-[WebDataSource _loadIcon]):
  253. * WebView.subproj/WebFramePrivate.h:
  254. * WebView.subproj/WebFramePrivate.m:
  255. (-[WebFrame _transitionToCommitted:]):
  256. (-[WebFrame _setState:]):
  257. (-[WebFrame _loadItem:fromItem:withLoadType:]):
  258. (-[WebFrame _continueLoadRequestAfterNavigationPolicy:request:]):
  259. (-[WebFrame _setProvisionalDataSource:]):
  260. 2002-11-25 Richard Williamson <rjw@apple.com>
  261. Cleanup leaking objects in page cache.
  262. Cleaned up API a bit.
  263. * History.subproj/WebBackForwardList.h:
  264. * History.subproj/WebBackForwardList.m:
  265. (-[WebBackForwardList dealloc]):
  266. (+[WebBackForwardList setUsesPageCache:]):
  267. (+[WebBackForwardList usesPageCache]):
  268. (+[WebBackForwardList setPageCacheSize:]):
  269. (+[WebBackForwardList pageCacheSize]):
  270. * History.subproj/WebHistoryItem.h:
  271. * History.subproj/WebHistoryItem.m:
  272. (-[WebHistoryItem setHasPageCache:]):
  273. * WebCoreSupport.subproj/WebBridge.m:
  274. (-[WebBridge saveDocumentToPageCache:]):
  275. * WebKit.exp:
  276. * WebView.subproj/WebFramePrivate.m:
  277. (-[WebFrame _canCachePage]):
  278. (-[WebFrame _purgePageCache]):
  279. (-[WebFrame _setState:]):
  280. (-[WebFrame _continueLoadRequestAfterNavigationPolicy:request:]):
  281. 2002-11-25 Richard Williamson <rjw@apple.com>
  282. Changed ordering of cachability check.
  283. * WebView.subproj/WebFramePrivate.m:
  284. (-[WebFrame _setState:]):
  285. 2002-11-25 Richard Williamson <rjw@apple.com>
  286. Changes fro back/forward cache.
  287. * History.subproj/WebHistoryItem.h:
  288. * History.subproj/WebHistoryItem.m:
  289. (+[WebHistoryItem setUsePageCache:]):
  290. (+[WebHistoryItem usePageCache]):
  291. * WebCoreSupport.subproj/WebBridge.m:
  292. (-[WebBridge saveDocumentToPageCache:]):
  293. * WebView.subproj/WebFramePrivate.h:
  294. * WebView.subproj/WebFramePrivate.m:
  295. (-[WebFrame _detachFromParent]):
  296. (-[WebFrame _canCachePage]):
  297. (-[WebFrame _setState:]):
  298. 2002-11-25 Chris Blumenberg <cblu@apple.com>
  299. Fixed 2 drag-related crashes. Oops.
  300. * Misc.subproj/WebNSViewExtras.m:
  301. (-[NSView _web_dragPromisedImage:fromOrigin:withURL:title:event:]): put nil at the end of the array list.
  302. * WebView.subproj/WebHTMLView.m:
  303. (-[WebHTMLView mouseDragged:]): retain self before drag
  304. 2002-11-25 Chris Blumenberg <cblu@apple.com>
  305. - Allow missing icons to be restored when going to the page of the missing icon.
  306. * Misc.subproj/WebIconDatabase.m:
  307. (-[WebIconDatabase _setIconURL:forSiteURL:]):
  308. 2002-11-25 Richard Williamson <rjw@apple.com>
  309. Changes for back/forward. Currently disabled.
  310. * History.subproj/WebHistoryItem.h:
  311. * History.subproj/WebHistoryItem.m:
  312. (-[WebHistoryItem dealloc]):
  313. (-[WebHistoryItem setPageCacheEnabled:]):
  314. (-[WebHistoryItem pageCache]):
  315. * Misc.subproj/WebKitLogging.h:
  316. * Misc.subproj/WebKitLogging.m:
  317. * WebCoreSupport.subproj/WebBridge.m:
  318. (-[WebBridge saveDocumentToPageCache:]):
  319. * WebView.subproj/WebDataSource.m:
  320. (-[WebDataSource startLoading]):
  321. * WebView.subproj/WebDataSourcePrivate.h:
  322. * WebView.subproj/WebDataSourcePrivate.m:
  323. (-[WebDataSource _startLoading:]):
  324. (-[WebDataSource _startLoading]):
  325. (-[WebDataSource _commitIfReady:]):
  326. (-[WebDataSource _commitIfReady]):
  327. (-[WebDataSource _setStoredInPageCache:]):
  328. (-[WebDataSource _storedInPageCache]):
  329. * WebView.subproj/WebFramePrivate.h:
  330. * WebView.subproj/WebFramePrivate.m:
  331. (-[WebFrame _transitionToCommitted:]):
  332. (-[WebFrame _canCachePage]):
  333. (-[WebFrame _purgePageCache]):
  334. (-[WebFrame _setState:]):
  335. (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:request:]):
  336. (-[WebFrame _continueLoadRequestAfterNavigationPolicy:request:]):
  337. 2002-11-25 Richard Williamson <rjw@apple.com>
  338. Fixed exception thrown often when creating mouseover status text (3110186).
  339. * WebView.subproj/WebHTMLViewPrivate.m:
  340. (-[WebHTMLView _elementAtPoint:]):
  341. 2002-11-25 Darin Adler <darin@apple.com>
  342. - fixed a problem I discovered in testing where multiple identical bookmarks confuse us
  343. * Bookmarks.subproj/WebBookmarkList.m:
  344. (-[WebBookmarkList removeChild:]): Use indexOfObjectIdenticalTo: and removeObjectIdenticalTo:
  345. instead of containsObject: and removeObject:.
  346. (-[WebBookmarkList insertChild:atIndex:]): Use indexOfObjectIdenticalTo: instead of
  347. containsObject: in the assertion.
  348. 2002-11-25 Chris Blumenberg <cblu@apple.com>
  349. Fixed: 3084350 - No URL flavors provided for images
  350. * Misc.subproj/WebNSViewExtras.h:
  351. * Misc.subproj/WebNSViewExtras.m:
  352. (-[NSView _web_dragPromisedImage:fromOrigin:withURL:title:event:]): renamed, simplifies dragging an image
  353. (-[WebFilePromiseDragSource initWithSource:]): subclass of NSFilePromiseDragSource, to be used later
  354. (-[WebFilePromiseDragSource draggingSource]):
  355. (-[WebFilePromiseDragSource dealloc]):
  356. * WebView.subproj/WebHTMLView.m:
  357. (-[WebHTMLView mouseDragged:]): call _web_dragPromisedImage:fromOrigin:withURL:title:event:, retain self
  358. (-[WebHTMLView draggedImage:endedAt:operation:]): added, release self
  359. * WebView.subproj/WebImageView.m:
  360. (-[WebImageView mouseDragged:]): call _web_dragPromisedImage:fromOrigin:withURL:title:event:, retain self
  361. (-[WebImageView draggedImage:endedAt:operation:]): added, release self
  362. * WebView.subproj/WebView.m:
  363. (-[WebView isDocumentHTML]): call isKindOfClass instead of className
  364. (-[WebView draggingEntered:]): check for WebFilePromiseDragSource
  365. 2002-11-24 Trey Matteson <trey@apple.com>
  366. Added URLString method to WebHistoryItem to avoid silly conversions between
  367. NSURL and NSString. When the dust settles with our plans for NSURL we can
  368. rationalize this API with the rest of WebKit.
  369. * History.subproj/WebHistoryItem.h:
  370. * History.subproj/WebHistoryItem.m:
  371. (-[WebHistoryItem URLString]):
  372. 2002-11-24 Chris Blumenberg <cblu@apple.com>
  373. Added element keys for the image ALT and link TITLE attributes. This will eventually be used to fix other bugs. Also made WebKit and WebCore use the same element keys to simplify the conversion of the element dictionary.
  374. * WebView.subproj/WebController.h:
  375. * WebView.subproj/WebController.m:
  376. * WebView.subproj/WebHTMLViewPrivate.m:
  377. (-[WebHTMLView _elementAtPoint:]):
  378. 2002-11-24 Chris Blumenberg <cblu@apple.com>
  379. Fixed: 3109945 - Assertion failure in -[WebIconDatabase_largestIconFromDictionary:]
  380. Added error strings for download decoding errors.
  381. * English.lproj/Localizable.strings: Added error strings for download decoding errors
  382. * English.lproj/StringsNotToBeLocalized.txt:
  383. * Misc.subproj/WebIconDatabase.m:
  384. (-[WebIconDatabase _loadIconDictionaries]): tweak
  385. (-[WebIconDatabase _updateFileDatabase]): more error checking to prevent assert
  386. (-[WebIconDatabase _setIconURL:forSiteURL:]): added asserts to prevent a site URL <-> icon URL mapping without a icon URL -> icon mapping
  387. (-[WebIconDatabase _largestIconFromDictionary:]): tweak
  388. * Misc.subproj/WebNSPasteboardExtras.m:
  389. (-[NSPasteboard _web_writeURL:andTitle:withOwner:]): declare pboard types if none have been declared, else append types
  390. * WebView.subproj/WebView.m:
  391. (+[WebView initialize]): Added error strings for download decoding errors
  392. 2002-11-24 Maciej Stachowiak <mjs@apple.com>
  393. - fixed 3067939 - no support for window.document.lastModified
  394. * WebView.subproj/WebDataSourcePrivate.m:
  395. (-[WebDataSource _commitIfReady]): Pass last modified date to WebCore.
  396. * WebView.subproj/WebFramePrivate.m:
  397. (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:request:]): Pass
  398. nil last modified date.
  399. 2002-11-23 Chris Blumenberg <cblu@apple.com>
  400. Fixed: 3109835 - Download errors aren't communicated to client
  401. Cleaned-up WebMainResourceClient and WebBaseResourceHandleDelegate a little.
  402. * Misc.subproj/WebIconDatabase.m:
  403. (-[WebIconDatabase defaultIconWithSize:]): tweak
  404. (-[WebIconDatabase releaseIconForSiteURL:]): don't retain site URL here
  405. (-[WebIconDatabase _setIcon:forIconURL:]): tweak
  406. (-[WebIconDatabase _setIconURL:forSiteURL:]): tweak
  407. (-[WebIconDatabase _releaseIconForIconURLString:]): retain site URL here
  408. (-[WebIconDatabase _releaseFutureIconForSiteURL:]): tweak
  409. (-[WebIconDatabase _sendNotificationForSiteURL:]): tweak
  410. * WebView.subproj/WebBaseResourceHandleDelegate.h:
  411. * WebView.subproj/WebBaseResourceHandleDelegate.m:
  412. (-[WebBaseResourceHandleDelegate cancelWithError:]): made public
  413. (-[WebBaseResourceHandleDelegate cancel]): cancel downloads too, call cancelWithError
  414. (-[WebBaseResourceHandleDelegate cancelQuietly]): call cancelWithError
  415. (-[WebBaseResourceHandleDelegate cancelledError]): tweak
  416. (-[WebBaseResourceHandleDelegate notifyDelegatesOfInterruptionByPolicyChange]): tweak
  417. * WebView.subproj/WebMainResourceClient.m:
  418. (-[WebMainResourceClient receivedError:]): stop downloadHandler if downloading, else notify controller
  419. (-[WebMainResourceClient cancel]): call receivedError
  420. (-[WebMainResourceClient checkContentPolicyForResponse:andCallSelector:]): tweak
  421. (-[WebMainResourceClient handle:didReceiveData:]): stop load for download errors, report error
  422. (-[WebMainResourceClient handleDidFinishLoading:]): call didFailLoadingWithError is download error
  423. (-[WebMainResourceClient handle:didFailLoadingWithError:]): call receivedError
  424. 2002-11-22 Darin Adler <darin@apple.com>
  425. * Misc.subproj/WebCoreStatistics.h:
  426. * Misc.subproj/WebCoreStatistics.m:
  427. (+[WebCoreStatistics javaScriptRootObjectClasses]):
  428. Update for name change -- root object classes, not all live object classes.
  429. 2002-11-22 Chris Blumenberg <cblu@apple.com>
  430. Fixed assertion while loading local files.
  431. * Misc.subproj/WebIconDatabase.m: we don't have icon URLs for files
  432. * WebView.subproj/WebDataSourcePrivate.m:
  433. (-[WebDataSource _loadIcon]): Only try loading favicon as the root of server if scheme is http or https. This isn't really a feature of other protocols.
  434. 2002-11-22 Chris Blumenberg <cblu@apple.com>
  435. * WebView.subproj/WebMainResourceClient.m:
  436. (-[WebMainResourceClient continueAfterContentPolicy:response:]): Added a FIXME around saveFilenameForResponse:andRequest: because the API expects a path but is asking for a filename.
  437. 2002-11-22 Chris Blumenberg <cblu@apple.com>
  438. Fixed: 3104693 - QT movie doesn't show video while still downloading
  439. The initial size of plug-in should be 0,0 instead of 1,1 or else we don't get the layout
  440. * Plugins.subproj/WebNetscapePluginDocumentView.m:
  441. (-[WebNetscapePluginDocumentView initWithFrame:]):
  442. 2002-11-22 Chris Blumenberg <cblu@apple.com>
  443. Fixed: 3078737 - Crash in -[WebHistoryItem dealloc] after closing last window
  444. * Misc.subproj/WebIconDatabase.m:
  445. (-[WebIconDatabase releaseIconForSiteURL:]): retain the site URL string because it may get released from beneath
  446. (-[WebIconDatabase _updateFileDatabase]): tweak
  447. (-[WebIconDatabase _iconsForIconURLString:]): disable timings for deployment build
  448. (-[WebIconDatabase _setIconURL:forSiteURL:]): tweak
  449. (-[WebIconDatabase _releaseIconForIconURLString:]): tweak
  450. (-[WebIconDatabase _scaleIcon:toSize:]): disable timings for deployment build
  451. * Misc.subproj/WebIconDatabasePrivate.h:
  452. * WebView.subproj/WebDataSourcePrivate.m:
  453. (-[WebDataSource _updateIconDatabaseWithURL:]): new, does the db binding
  454. (-[WebDataSource _loadIcon]): call _updateIconDatabaseWithURL
  455. 2002-11-22 Chris Blumenberg <cblu@apple.com>
  456. Attempt to fix: 3078737 - Crash in -[WebHistoryItem dealloc] after closing last window
  457. I haven't found anything that would cause the crash. I did some clean-up, added asserts and error messages in hopes that this help me track this down.
  458. * Misc.subproj/WebIconDatabase.h:
  459. * Misc.subproj/WebIconDatabase.m:
  460. (-[WebIconDatabase init]):
  461. (-[WebIconDatabase iconForSiteURL:withSize:cache:]):
  462. (-[WebIconDatabase iconForSiteURL:withSize:]):
  463. (-[WebIconDatabase retainIconForSiteURL:]):
  464. (-[WebIconDatabase releaseIconForSiteURL:]):
  465. (-[WebIconDatabase delayDatabaseCleanup]):
  466. (-[WebIconDatabase allowDatabaseCleanup]):
  467. (-[WebIconDatabase _iconDictionariesAreGood]):
  468. (-[WebIconDatabase _loadIconDictionaries]):
  469. (-[WebIconDatabase _updateFileDatabase]):
  470. (-[WebIconDatabase _hasIconForSiteURL:]):
  471. (-[WebIconDatabase _iconsForIconURLString:]):
  472. (-[WebIconDatabase _iconForFileURL:withSize:]):
  473. (-[WebIconDatabase _setIcon:forIconURL:]):
  474. (-[WebIconDatabase _setIconURL:forSiteURL:]):
  475. (-[WebIconDatabase _retainIconForIconURLString:]):
  476. (-[WebIconDatabase _releaseIconForIconURLString:]):
  477. (-[WebIconDatabase _retainFutureIconForSiteURL:]):
  478. (-[WebIconDatabase _releaseFutureIconForSiteURL:]):
  479. (-[WebIconDatabase _releaseOriginalIconsOnDisk]):
  480. (-[WebIconDatabase _sendNotificationForSiteURL:]):
  481. (-[WebIconDatabase _addObject:toSetForKey:inDictionary:]):
  482. (-[WebIconDatabase _largestIconFromDictionary:]):
  483. (-[WebIconDatabase _iconsBySplittingRepresentationsOfIcon:]):
  484. (-[WebIconDatabase _iconFromDictionary:forSize:cache:]):
  485. (-[WebIconDatabase _scaleIcon:toSize:]):
  486. * Misc.subproj/WebIconDatabasePrivate.h:
  487. * WebKit.exp:
  488. * WebView.subproj/WebDataSourcePrivate.m:
  489. (-[WebDataSource _loadIcon]):
  490. 2002-11-22 Richard Williamson <rjw@apple.com>
  491. Fixed rendering issues associated with 3100120.
  492. We now correctly map surrogate pairs in UTF-16. khtml still has
  493. issues dealing with characters outside BMP. These are tracked
  494. with 3109251 and 3109258.
  495. Surrogate pairs are treated as exceptions and have their own character
  496. to glyph map.
  497. * Misc.subproj/WebUnicode.h:
  498. * Misc.subproj/WebUnicode.m:
  499. (shapedString):
  500. * WebCoreSupport.subproj/WebTextRenderer.h:
  501. * WebCoreSupport.subproj/WebTextRenderer.m:
  502. (glyphForUnicodeCharacter):
  503. (findLengthOfCharacterCluster):
  504. (-[WebTextRenderer substituteFontForString:]):
  505. (-[WebTextRenderer convertUnicodeCharacters:length:toGlyphs:]):
  506. (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:letterSpacing:wordSpacing:]):
  507. (-[WebTextRenderer extendUnicodeCharacterToGlyphMapToInclude:]):
  508. (-[WebTextRenderer extendCharacterToGlyphMapToInclude:]):
  509. 2002-11-22 John Sullivan <sullivan@apple.com>
  510. * Resources/url_icon.tiff:
  511. new generic URL icon -- little blue globe, pretty nice
  512. * WebKit.exp:
  513. removed symbol for WebTextRendererFactory which was in here
  514. to support an obsolete SPI hack
  515. 2002-11-22 Trey Matteson <trey@apple.com>
  516. Added more detailed notifications on history changes.
  517. All changes below are just posting the new notes at the right time.
  518. * English.lproj/StringsNotToBeLocalized.txt:
  519. * History.subproj/WebHistory.h:
  520. * History.subproj/WebHistory.m:
  521. (-[WebHistory _sendNotification:entries:]):
  522. (-[WebHistory addEntry:]):
  523. (-[WebHistory removeEntry:]):
  524. (-[WebHistory removeEntries:]):
  525. (-[WebHistory removeAllEntries]):
  526. (-[WebHistory addEntries:]):
  527. (-[WebHistory loadHistory]):
  528. * WebKit.exp:
  529. 2002-11-22 Richard Williamson <rjw@apple.com>
  530. Changed NSString category methods to include _web_ prefix.
  531. * Misc.subproj/WebKitNSStringExtras.h:
  532. * Misc.subproj/WebKitNSStringExtras.m:
  533. (-[NSString _web_widthForString:font:]):
  534. 2002-11-22 Richard Williamson <rjw@apple.com>
  535. Simplified drawing and measuring SPI for use by Alex.
  536. * Misc.subproj/WebKitNSStringExtras.h: Added.
  537. * Misc.subproj/WebKitNSStringExtras.m: Added.
  538. (-[NSString widthForString:font:]):
  539. * WebKit.pbproj/project.pbxproj:
  540. 2002-11-21 Chris Blumenberg <cblu@apple.com>
  541. Removed workaround for: 3093170 - Handle clients receive data with length 0
  542. as it's now fixed.
  543. * Downloads.subproj/WebDownloadHandler.m:
  544. (-[WebDownloadHandler receivedData:]): remove workaround
  545. * WebView.subproj/WebMainResourceClient.m:
  546. (-[WebMainResourceClient handle:didReceiveData:]): added asserts
  547. 2002-11-21 Richard Williamson <rjw@apple.com>
  548. A different fix to 3078065 that doesn't depend on the appkit's idea of
  549. fixed pitch font.
  550. The fix is to adjust the width of all characters that have the same width
  551. as the space character to match the adjustment of the space character.
  552. This has the slight downside that non-monospace fonts that contain glyphs
  553. with the same width as the space character will have an extra adjustment.
  554. In practice this is not noticeable as the adjustment is always sub-pixel.
  555. Nor of course does this cause any mislayout, as it's done at the lowest
  556. level for both measurement and drawing.
  557. Until we move kthml internals to floats this will be just fine.
  558. * WebCoreSupport.subproj/WebTextRenderer.h:
  559. * WebCoreSupport.subproj/WebTextRenderer.m:
  560. (widthForGlyph):
  561. (-[WebTextRenderer initWithFont:]):
  562. (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:letterSpacing:wordSpacing:]):
  563. tAfterNavigationPolicy:request:]):
  564. 2002-11-21 Maciej Stachowiak <mjs@apple.com>
  565. * Makefile.am: Pass symroots for this tree to pbxbuild.
  566. 2002-11-21 Chris Blumenberg <cblu@apple.com>
  567. Fixed: 3009881 - plugins get mouse-overs even when mouse is in menus
  568. Fixed: 3108240 - Loading datasource sometimes doesn't have cancelled error when cancelled
  569. * Plugins.subproj/WebBaseNetscapePluginView.m:
  570. (-[WebBaseNetscapePluginView sendNullEvent]): check if menus are showing
  571. (-[WebBaseNetscapePluginView restartNullEvents]): tweak
  572. * WebView.subproj/WebDataSourcePrivate.m:
  573. (-[WebDataSource _stopLoading]): set cancelled error if main handle is gone
  574. === Alexander-33 ===
  575. 2002-11-20 Darin Adler <darin@apple.com>
  576. * Plugins.subproj/WebBaseNetscapePluginView.m:
  577. (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
  578. Unescape the string before executing it, so we don't suffer from bug 3083043
  579. here in the javascript: URLs that come from plug-ins.
  580. * English.lproj/StringsNotToBeLocalized.txt: Update.
  581. 2002-11-20 Chris Blumenberg <cblu@apple.com>
  582. Fixed: 3079134 - Throttle plug-ins while in background
  583. * Plugins.subproj/WebBaseNetscapePluginView.h:
  584. * Plugins.subproj/WebBaseNetscapePluginView.m:
  585. (-[WebBaseNetscapePluginView sendNullEvent]): new
  586. (-[WebBaseNetscapePluginView stopNullEvents]): stops timer
  587. (-[WebBaseNetscapePluginView restartNullEvents]): stops timer if there is one, and starts a new one based on window activation state
  588. (-[WebBaseNetscapePluginView start]): call restartNullEvents
  589. (-[WebBaseNetscapePluginView stop]): call stopNullEvents
  590. (-[WebBaseNetscapePluginView windowBecameKey:]): call restartNullEvents
  591. (-[WebBaseNetscapePluginView windowResignedKey:]): call restartNullEvents
  592. (-[WebBaseNetscapePluginView windowDidMiniaturize:]): call stopNullEvents
  593. (-[WebBaseNetscapePluginView windowDidDeminiaturize:]): call restartNullEvents
  594. * Plugins.subproj/WebNetscapePluginNullEventSender.h: Removed. No need for another class, use a timer.
  595. * Plugins.subproj/WebNetscapePluginNullEventSender.m: Removed. No need for another class, use a timer.
  596. * WebKit.pbproj/project.pbxproj:
  597. 2002-11-20 Richard Williamson <rjw@apple.com>
  598. Fixed 3107007. Letter-spacing is causing width to be miscalculated.
  599. This also fixed some selection problems.
  600. * WebCoreSupport.subproj/WebTextRenderer.m:
  601. (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:letterSpacing:wordSpacing:]):
  602. 2002-11-20 Richard Williamson <rjw@apple.com>
  603. Fixed mono spaced fonts to always render with mono spacing! (3078065)
  604. * WebCoreSupport.subproj/WebTextRenderer.h:
  605. * WebCoreSupport.subproj/WebTextRenderer.m:
  606. (widthForGlyph):
  607. (-[WebTextRenderer initWithFont:]):
  608. 2002-11-20 Chris Blumenberg <cblu@apple.com>
  609. Fixed: 3074926 - crash in BitsToPix() trying to print cnet page
  610. * Plugins.subproj/WebBaseNetscapePluginView.m:
  611. (-[WebBaseNetscapePluginView drawRect:]): disable experimental plug-in printing code.
  612. 2002-11-20 Chris Blumenberg <cblu@apple.com>
  613. Minor clean-up, logging and more error checking in plug-in code.
  614. * Plugins.subproj/WebBaseNetscapePluginStream.m:
  615. (-[WebBaseNetscapePluginStream setResponse:]):
  616. (-[WebBaseNetscapePluginStream receivedData:]):
  617. (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
  618. * Plugins.subproj/npapi.m:
  619. (NPN_UserAgent):
  620. (NPN_MemFree):
  621. (NPN_MemFlush):
  622. (NPN_ReloadPlugins):
  623. 2002-11-20 Chris Blumenberg <cblu@apple.com>
  624. Fixed: 3061174 - javascript: URLs sent by plugins don't work
  625. * Plugins.subproj/WebBaseNetscapePluginView.m:
  626. (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
  627. 2002-11-20 Darin Adler <darin@apple.com>
  628. * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
  629. 2002-11-19 Chris Blumenberg <cblu@apple.com>
  630. Fixed: 3106061 - REGRESSION: Copy in text view copies all text not just selection
  631. * Misc.subproj/WebSearchableTextView.m:
  632. (-[WebSearchableTextView copy:]):
  633. 2002-11-19 Chris Blumenberg <cblu@apple.com>
  634. Fixed: 3092588 - redraw errors in QT controller if window is in background
  635. We need to send update events after we activate/deactivate after all.
  636. * Plugins.subproj/WebBaseNetscapePluginView.m:
  637. (-[WebBaseNetscapePluginView windowBecameKey:]):
  638. (-[WebBaseNetscapePluginView windowResignedKey:]):
  639. 2002-11-19 Chris Blumenberg <cblu@apple.com>
  640. Fixed: 3020720 - dropping a folder in the page address makes the folder open in Finder, empties the field
  641. * Misc.subproj/WebNSPasteboardExtras.m:
  642. (-[NSPasteboard _web_bestURL]): Don't accept directories.
  643. 2002-11-19 Chris Blumenberg <cblu@apple.com>
  644. Fixed: 3068112 - extra line breaks when copying from source window
  645. * Misc.subproj/WebSearchableTextView.m:
  646. (-[WebSearchableTextView copy:]): Convert CRLF to LF
  647. 2002-11-19 David Hyatt <hyatt@apple.com>
  648. Make sure that if the scrollers are shown/hidden that we
  649. force an immediate layout, since if we don't, an intervening
  650. display can cause us to show scrollbars when they really
  651. shouldn't be there.
  652. * WebView.subproj/WebDynamicScrollBarsView.m:
  653. (-[WebDynamicScrollBarsView updateScrollers]):
  654. 2002-11-19 Chris Blumenberg <cblu@apple.com>
  655. Fixed: 3100597 - repro NSArray exception using contextual menu
  656. * Misc.subproj/WebNSPasteboardExtras.m:
  657. (-[NSPasteboard _web_writeURL:andTitle:withOwner:]): more error checking
  658. 2002-11-19 Trey Matteson <trey@apple.com>
  659. Just a tweak to the description printout.
  660. * History.subproj/WebHistoryItem.m:
  661. (-[WebHistoryItem description]):
  662. 2002-11-18 Chris Blumenberg <cblu@apple.com>
  663. Real fix for: 3104183 - Assert loading www.louisvuitton.com
  664. Since we don't consider plug-in content as a subresource, attaching plug-in streams to the datasource has no affect on the loading state of the datasource. Both stopLoading on WebFrame and _stopLoading datasource, would not stop plug-ins streams after th
  665. e data source was done loading. Because of this, I've decided to not keep a list of plug-in streams attached to the data source and pulled my previous change. To fix this bug, WebBaseResourceHandleDelegate now retains the controller.
  666. * Plugins.subproj/WebNetscapePluginStream.m:
  667. (-[WebNetscapePluginStream start]):
  668. (-[WebNetscapePluginStream cancel]):
  669. (-[WebNetscapePluginStream handleDidFinishLoading:]):
  670. (-[WebNetscapePluginStream handle:didFailLoadingWithError:]):
  671. * WebView.subproj/WebBaseResourceHandleDelegate.h:
  672. * WebView.subproj/WebBaseResourceHandleDelegate.m:
  673. (-[WebBaseResourceHandleDelegate _releaseResources]):
  674. (-[WebBaseResourceHandleDelegate setDataSource:]):
  675. (-[WebBaseResourceHandleDelegate handle:willSendRequest:]):
  676. (-[WebBaseResourceHandleDelegate handleDidFinishLoading:]):
  677. (-[WebBaseResourceHandleDelegate handle:didFailLoadingWithError:]):
  678. (-[WebBaseResourceHandleDelegate _cancelWithError:]):
  679. * WebView.subproj/WebDataSourcePrivate.h:
  680. * WebView.subproj/WebDataSourcePrivate.m:
  681. (-[WebDataSourcePrivate dealloc]):
  682. (-[WebDataSource _stopLoading]):
  683. (-[WebDataSource _makeHandleDelegates:deferCallbacks:]):
  684. (-[WebDataSource _defersCallbacksChanged]):
  685. 2002-11-18 Chris Blumenberg <cblu@apple.com>
  686. Fixed: 3104183 - Assert loading www.louisvuitton.com
  687. We need to treat plug-in streams like subresources except they don't change the loading state of the data source.
  688. * Plugins.subproj/WebNetscapePluginStream.m:
  689. (-[WebNetscapePluginStream start]): call _addPluginStream
  690. (-[WebNetscapePluginStream cancel]): call _removePluginStream
  691. (-[WebNetscapePluginStream handleDidFinishLoading:]): call _removePluginStream
  692. (-[WebNetscapePluginStream handle:didFailLoadingWithError:]): call _removePluginStream
  693. * WebView.subproj/WebDataSourcePrivate.h:
  694. * WebView.subproj/WebDataSourcePrivate.m:
  695. (-[WebDataSourcePrivate dealloc]): release pluginStreams
  696. (-[WebDataSource _addPluginStream:]): just like addSubresourceClient except don't change the loading state.
  697. (-[WebDataSource _removePluginStream:]): just like removeSubresourceClient except don't change the loading state.
  698. (-[WebDataSource _stopLoading]): stop plug-ins streams
  699. (-[WebDataSource _makeHandleDelegates:deferCallbacks:]):
  700. (-[WebDataSource _defersCallbacksChanged]): call _makeHandleDelegates:deferCallbacks: for subresources and plug-in streams.
  701. 2002-11-18 Richard Williamson <rjw@apple.com>
  702. Check for usesBackForwardList was excluding all load types.
  703. * WebView.subproj/WebFramePrivate.m:
  704. (-[WebFrame _transitionToCommitted]):
  705. 2002-11-18 Chris Blumenberg <cblu@apple.com>
  706. Fixed: 3098767 - REGRESSION: standalone quicktime content just shows blank window
  707. Check the instance not the class for the class type.
  708. * Plugins.subproj/WebNetscapePluginRepresentation.m:
  709. (-[WebNetscapePluginRepresentation receivedData:withDataSource:]):
  710. 2002-11-18 Ken Kocienda <kocienda@apple.com>
  711. Added feature to import bookmarks/favorites from MSIE. This
  712. fixes Radar 2961230 (import Mac IE bookmarks).
  713. * Bookmarks.subproj/WebBookmarkImporter.h: Added.
  714. * Bookmarks.subproj/WebBookmarkImporter.m: Added.
  715. (_breakStringIntoLines):
  716. (_HREFRangeFromSpec):
  717. (_HREFTextFromSpec):
  718. (_linkTextRangeFromSpec):
  719. (_linkTextFromSpec):
  720. (-[WebBookmarkImporter initWithPath:group:]):
  721. (-[WebBookmarkImporter topBookmark]):
  722. (-[WebBookmarkImporter error]):
  723. (-[WebBookmarkImporter dealloc]):
  724. * Bookmarks.subproj/WebBookmarkList.m:
  725. (-[WebBookmarkList init]): Create the bookmark list object. This
  726. was not created with the -init initializer, causing bookmark lists
  727. to fail.
  728. * English.lproj/Localizable.strings:
  729. * English.lproj/StringsNotToBeLocalized.txt:
  730. * WebKit.exp:
  731. * WebKit.pbproj/project.pbxproj:
  732. 2002-11-17 Trey Matteson <trey@apple.com>
  733. Code cleanup to make some internal methods return autoreleased objects.
  734. * WebView.subproj/WebFramePrivate.m:
  735. (-[WebFrame _addBackForwardItemClippedAtTarget:]):
  736. (-[WebFrame _createItem]):
  737. (-[WebFrame _createItemTreeWithTargetFrame:clippedAtTarget:]):
  738. (-[WebFrame _transitionToCommitted]):
  739. 2002-11-17 Trey Matteson <trey@apple.com>
  740. Fixed 3102076 - REGRESSION: infinite recursion involving bridge end
  741. Fixed 3100929 - REGRESSION: serverRedirectedForDataSource: not sent on server redirects
  742. Fixed 3103381 - REGRESSION: Going back from anchor doesn't restore scroll position
  743. * WebView.subproj/WebBaseResourceHandleDelegate.m:
  744. (-[WebBaseResourceHandleDelegate handle:willSendRequest:]): Return the copy of the
  745. request that we make instead of the original.
  746. * WebView.subproj/WebMainResourceClient.m:
  747. (-[WebMainResourceClient handle:willSendRequest:]): Call super after we make our mods
  748. to the request, so the copy that super makes for us includes those mods.
  749. * WebView.subproj/WebFramePrivate.h: Added new state, WebFrameStateCompleting.
  750. * WebView.subproj/WebFramePrivate.m:
  751. (-[WebFrame _transitionToLayoutAcceptable]): Completing state is a NOP.
  752. (-[WebFrame _transitionToCommitted]): Completing state is a NOP.
  753. (-[WebFrame _isLoadComplete]): Go to Completing state before calling [bridge end].
  754. Go to Completed state afterwards, only if no new loads started in the meantime.
  755. (-[WebFrame _loadItem:fromItem:withLoadType:]): When doing anchor nav to get to the
  756. item, save and restore scroll state, and set the current item.
  757. (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:request:]):
  758. Reorder the steps so the right scroll state gets saved to the right place. Also, don't
  759. add a backForward item if we're doing a client redirect to an anchor.
  760. 2002-11-17 David Hyatt <hyatt@apple.com>
  761. Back out my previous fix. I have a better one that is
  762. confined to WebCore.
  763. * WebView.subproj/WebFramePrivate.m:
  764. (-[WebFrame _isLoadComplete]):
  765. 2002-11-17 David Hyatt <hyatt@apple.com>
  766. The needsdisplay is necessary even for HTML documents.
  767. I over-optimized here. Fixes the directory.apple.com
  768. regression and the santa clara library regression.
  769. * WebView.subproj/WebFramePrivate.m:
  770. (-[WebFrame _isLoadComplete]):
  771. 2002-11-17 Darin Adler <darin@apple.com>
  772. - update for change to WebCore API so it never uses NSURL
  773. * WebCoreSupport.subproj/WebBridge.m:
  774. (-[WebBridge createWindowWithURL:frameName:]): Take NSString instead of NSURL.
  775. (-[WebBridge startLoadingResource:withURL:]): Ditto.
  776. (-[WebBridge objectLoadedFromCacheWithURL:response:size:]): Ditto.
  777. (-[WebBridge reportClientRedirectToURL:delay:fireDate:]): Ditto.
  778. (-[WebBridge setIconURL:]): Ditto.
  779. (-[WebBridge setIconURL:withType:]): Ditto.
  780. (-[WebBridge loadURL:reload:triggeringEvent:isFormSubmission:]): Ditto.
  781. (-[WebBridge postWithURL:data:contentType:triggeringEvent:]): Ditto.
  782. (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]): Ditto.
  783. (-[WebBridge userAgentForURL:]): Ditto.
  784. (-[WebBridge requestedURL]): Return NSString instead of NSURL.
  785. (-[WebBridge viewForPluginWithURL:attributes:baseURL:MIMEType:]): Take NSString instead of NSURL.
  786. (-[WebBridge viewForJavaAppletWithFrame:attributes:baseURL:]): Take NSString instead of NSURL.
  787. * WebCoreSupport.subproj/WebCookieAdapter.m:
  788. (-[WebCookieAdapter cookiesForURL:]): Take NSString instead of NSURL.
  789. (-[WebCookieAdapter setCookies:forURL:policyBaseURL:]): Ditto.
  790. * WebView.subproj/WebDataSourcePrivate.m:
  791. (-[WebDataSource _commitIfReady]): Pass NSString instead of NSURL.
  792. * WebView.subproj/WebFramePrivate.m:
  793. (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:request:]): Pass NSString instead of NSURL
  794. (-[WebFrame _loadURL:loadType:triggeringEvent:isFormSubmission:]): Turn bridge URL into NSURL so we
  795. can call _web_URLByRemovingFragment on it.
  796. * WebView.subproj/WebHTMLViewPrivate.m:
  797. (-[WebHTMLView _elementAtPoint:]): Convert NSString to NSURL when making the WebKit element dictionary.
  798. 2002-11-17 Maciej Stachowiak <mjs@apple.com>
  799. - fixed 2949193 - implement onKeyDown, onKeyPress, and onKeyUp event handlers
  800. * WebView.subproj/WebHTMLViewPrivate.h:
  801. * WebView.subproj/WebHTMLViewPrivate.m:
  802. (+[WebHTMLView load]): Pose as NSWindow too now.
  803. (-[WebHTMLView _interceptKeyEvent:toView:]): Pass event to WebCore and
  804. see if WebCore wants to block it.
  805. (-[WebNSWindow sendEvent:]): For all key events that would go to a
  806. subview of a WebHTMLView, let the WebHTMLView take a first crack
  807. at it.
  808. 2002-11-15 Darin Adler <darin@apple.com>
  809. - fixed 3079214 -- text/plain page shows up slowly, a few pages at a time
  810. * WebView.subproj/WebTextView.m:
  811. (-[WebTextView initWithFrame:]): Remove unneeded setWidthTracksTextView:, because
  812. that's the default.
  813. (-[WebTextView dataSourceUpdated:]): Replace the thing each time in the RTF case.
  814. (-[WebTextView viewDidMoveToSuperview]): Here's where we resize, but only the width.
  815. Resizing the height was causing the bug.
  816. (-[WebTextView layout]): Do nothing.
  817. (-[WebTextView setAcceptsDrags:]): Update to new name. Since we weren't
  818. importing WebDocument.h, we never noticed that this file got out of sync.
  819. (-[WebTextView acceptsDrags]): Ditto.
  820. (-[WebTextView setAcceptsDrops:]): Ditto.
  821. (-[WebTextView acceptsDrops]): Ditto.
  822. * WebView.subproj/WebDocument.h: Fix typo. It said setAcceptsDrags: twice.
  823. 2002-11-15 Darin Adler <darin@apple.com>
  824. * WebView.subproj/WebFramePrivate.m: Removed a bunch of tabs and fixed indenting.
  825. 2002-11-15 Maciej Stachowiak <mjs@apple.com>
  826. - fixed 3102016 - REGRESSION: Command-clicking on a link can open _two_ windows.
  827. * WebView.subproj/WebDataSourcePrivate.h:
  828. * WebView.subproj/WebDataSourcePrivate.m:
  829. (-[WebDataSource _setJustOpenedForTargetedLink:]):
  830. (-[WebDataSource _justOpenedForTargetedLink]):
  831. * WebView.subproj/WebFrame.m:
  832. (-[WebFrame findOrCreateFramedNamed:]):
  833. * WebView.subproj/WebFramePrivate.h:
  834. * WebView.subproj/WebFramePrivate.m:
  835. (-[WebFrame _continueAfterNavigationPolicy:]):
  836. (-[WebFrame _loadDataSource:withLoadType:]):
  837. (-[WebFrame _downloadRequest:toPath:]):
  838. (-[WebFrame _setJustOpenedForTargetedLink:]):
  839. 2002-11-15 Darin Adler <darin@apple.com>
  840. * WebView.subproj/WebFramePrivate.m:
  841. (-[WebFrame _checkNavigationPolicyForRequest:dataSource:andCall:withSelector:]):
  842. Give the listener a slightly longer lifetime, to make this API a bit more foolproof.
  843. 2002-11-15 Maciej Stachowiak <mjs@apple.com>
  844. Fix world leak I introduced, and also add an early return when needed.
  845. * WebView.subproj/WebFramePrivate.m:
  846. (-[WebFrame _invalidatePendingPolicyDecisionCallingDefaultAction:]):
  847. (-[WebFrame _checkNavigationPolicyForRequest:dataSource:andCall:withSelector:]):
  848. 2002-11-15 Maciej Stachowiak <mjs@apple.com>
  849. Make navigation policy asynchronous for real.
  850. * WebKit.pbproj/project.pbxproj:
  851. * WebView.subproj/WebControllerPolicyDelegate.h:
  852. * WebView.subproj/WebControllerPolicyDelegate.m:
  853. (-[WebPolicyDecisionListenerPrivate initWithTarget:action:]):
  854. (-[WebPolicyDecisionListenerPrivate dealloc]):
  855. (-[WebPolicyDecisionListener usePolicy:]):
  856. (-[WebPolicyDecisionListener _initWithTarget:action:]):
  857. (-[WebPolicyDecisionListener dealloc]):
  858. (-[WebPolicyDecisionListener _invalidate]):
  859. * WebView.subproj/WebControllerPolicyDelegatePrivate.h: Added.
  860. * WebView.subproj/WebDefaultPolicyDelegate.m:
  861. (-[WebDefaultPolicyDelegate decideNavigationPolicyForAction:andRequest:inFrame:decisionListener:]):
  862. * WebView.subproj/WebFrame.m:
  863. (-[WebFrame stopLoading]):
  864. * WebView.subproj/WebFramePrivate.h:
  865. * WebView.subproj/WebFramePrivate.m:
  866. (-[WebFramePrivate dealloc]):
  867. (-[WebFrame _invalidatePendingPolicyDecisionCallingDefaultAction:]):
  868. (-[WebFrame _checkNavigationPolicyForRequest:dataSource:andCall:withSelector:]):
  869. (-[WebFrame _continueAfterNavigationPolicy:]):
  870. (-[WebFrame _loadURL:loadType:triggeringEvent:isFormSubmission:]):
  871. (-[WebFrame _loadDataSource:withLoadType:]):
  872. 2002-11-15 Maciej Stachowiak <mjs@apple.com>
  873. Wrap content policy invocation to look asynchronous.
  874. * WebView.subproj/WebBaseResourceHandleDelegate.h:
  875. * WebView.subproj/WebMainResourceClient.m:
  876. (-[WebMainResourceClient continueAfterContentPolicy:response:]):
  877. (-[WebMainResourceClient checkContentPolicyForResponse:andCallSelector:]):
  878. (-[WebMainResourceClient handle:didReceiveResponse:]):
  879. 2002-11-15 Maciej Stachowiak <mjs@apple.com>
  880. Refactor so that all invocations of navigation policy are set up
  881. to be asynchronous. However, the actually delegate method is not
  882. async yet.
  883. * WebView.subproj/WebFramePrivate.h:
  884. * WebView.subproj/WebFramePrivate.m:
  885. (-[WebFrame _checkNavigationPolicyForRequest:dataSource:andCall:withSelector:]):
  886. (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:request:]):
  887. (-[WebFrame _loadURL:loadType:triggeringEvent:isFormSubmission:]):
  888. (-[WebFrame _continueLoadRequestAfterNavigationPolicy:request:]):
  889. (-[WebFrame _loadDataSource:withLoadType:]):
  890. * WebView.subproj/WebMainResourceClient.h:
  891. * WebView.subproj/WebMainResourceClient.m:
  892. (-[WebMainResourceClient stopLoadingForPolicyChange]):
  893. (-[WebMainResourceClient continueAfterNavigationPolicy:request:]):
  894. (-[WebMainResourceClient handle:willSendRequest:]):
  895. (-[WebMainResourceClient handle:didReceiveResponse:]):
  896. 2002-11-14 Maciej Stachowiak <mjs@apple.com>
  897. Refactor things a bit so all loads bottleneck through a single
  898. method (_loadDataSource:withLoadType:).
  899. * WebView.subproj/WebFrame.m:
  900. (-[WebFrame loadRequest:]):
  901. (-[WebFrame reload]):
  902. * WebView.subproj/WebFramePrivate.h:
  903. * WebView.subproj/WebFramePrivate.m:
  904. (-[WebFrame _loadItem:fromItem:withLoadType:]):
  905. (-[WebFrame _loadRequest:triggeringAction:loadType:]):
  906. (-[WebFrame _loadURL:loadType:triggeringEvent:isFormSubmission:]):
  907. (-[WebFrame _postWithURL:data:contentType:triggeringEvent:]):
  908. (-[WebFrame _reloadAllowingStaleDataWithOverrideEncoding:]):
  909. (-[WebFrame _loadDataSource:withLoadType:]):
  910. (-[WebFrame _downloadRequest:toPath:]):
  911. 2002-11-14 Maciej Stachowiak <mjs@apple.com>
  912. Change things so the public interface to loading is loadRequest:
  913. and everything else is private.
  914. * Plugins.subproj/WebBaseNetscapePluginView.m:
  915. (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
  916. * Plugins.subproj/WebPluginController.m:
  917. (-[WebPluginController showURL:inFrame:]):
  918. * WebView.subproj/WebController.h:
  919. * WebView.subproj/WebController.m:
  920. (-[WebController init]):
  921. * WebView.subproj/WebControllerPrivate.m:
  922. (-[WebController _createFrameNamed:inParent:allowsScrolling:]):
  923. (-[WebController _downloadURL:toPath:]):
  924. * WebView.subproj/WebFrame.h:
  925. * WebView.subproj/WebFrame.m:
  926. (-[WebFrame init]):
  927. (-[WebFrame initWithName:webView:controller:]):
  928. (-[WebFrame loadRequest:]):
  929. (-[WebFrame reload]):
  930. * WebView.subproj/WebFramePrivate.h:
  931. * WebView.subproj/WebFramePrivate.m:
  932. (-[WebFrame _timedLayout:]):
  933. (-[WebFrame _clearProvisionalDataSource]):
  934. (-[WebFrame _loadItem:fromItem:withLoadType:]):
  935. (-[WebFrame _loadRequest:triggeringAction:]):
  936. (-[WebFrame _reloadAllowingStaleDataWithOverrideEncoding:]):
  937. (-[WebFrame _itemForRestoringDocState]):
  938. (-[WebFrame _setProvisionalDataSource:]):
  939. (-[WebFrame _startLoading]):
  940. (-[WebFrame _downloadRequest:toPath:]):
  941. * WebView.subproj/WebMainResourceClient.m:
  942. (-[WebMainResourceClient handle:willSendRequest:]):
  943. (-[WebMainResourceClient stopLoadingAfterContentPolicy]):
  944. (-[WebMainResourceClient handle:didReceiveResponse:]):
  945. * WebView.subproj/WebView.m:
  946. (-[WebView concludeDragOperation:]):
  947. 2002-11-14 David Hyatt <hyatt@apple.com>
  948. Move text measurement and layout beyond onload. This
  949. shoudl speed up i-bench substantially and morrison's
  950. PLT test slightly. Note that the adjustFrames layout
  951. stuff has been removed from isLoadComplete.
  952. * WebView.subproj/WebFramePrivate.m:
  953. (-[WebFrame _timedLayout:]):
  954. (-[WebFrame _isLoadComplete]):
  955. 2002-11-14 Darin Adler <darin@apple.com>
  956. * English.lproj/Localizable.strings: Updated to include the new
  957. error messages that Maciej just added. I wonder what effect this
  958. will have if we see those errors in Alex-32?
  959. === Alexander-32 ===
  960. 2002-11-14 Don Melton <gramps@apple.com>
  961. * WebView.subproj/WebControllerPolicyDelegate.h:
  962. Added missing semi-colon in definition of WebPolicyDecisionListener to
  963. fix build error.
  964. 2002-11-14 Maciej Stachowiak <mjs@apple.com>
  965. Combined file URL policy with content policy. We don't actually
  966. bother to ask earlier for file URLs yet, since that will make
  967. things more complicated.
  968. * Misc.subproj/WebKitErrors.h:
  969. * WebView.subproj/WebControllerPolicyDelegate.h:
  970. * WebView.subproj/WebDefaultPolicyDelegate.m:
  971. * WebView.subproj/WebFramePrivate.h:
  972. * WebView.subproj/WebFramePrivate.m:
  973. (-[WebFrame _handleUnimplementablePolicy:errorCode:forURL:]):
  974. (-[WebFrame _continueAfterNavigationPolicyForRequest:dataSource:]):
  975. * WebView.subproj/WebMainResourceClient.h:
  976. * WebView.subproj/WebMainResourceClient.m:
  977. (-[WebMainResourceClient stopLoadingAfterContentPolicy]):
  978. (-[WebMainResourceClient handle:didReceiveResponse:]):
  979. * WebView.subproj/WebView.m:
  980. (+[WebView initialize]):
  981. 2002-11-14 Darin Adler <darin@apple.com>
  982. - fixed 3099240 -- REGRESSION: repro assert d->m_doc->parsing
  983. Make the reload flag pass across the bridge.
  984. * WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _commitIfReady]):
  985. Pass a reload flag, based on the load type, to the bridge.
  986. * WebView.subproj/WebFramePrivate.m:
  987. (-[WebFrame _loadURL:loadType:triggeringEvent:isFormSubmission:]): Pass a
  988. reload flag of NO in the anchor case. Preserve reload load types even when
  989. doing client redirects (have to talk with Trey about this tomorrow).
  990. 2002-11-14 Darin Adler <darin@apple.com>
  991. - fixed 3100235 -- nil-deference in khtml::RenderTable at money.cnn.com
  992. * WebView.subproj/WebHTMLView.m: (-[WebHTMLView drawRect:]):
  993. If the WebCore side needs layout, then do layout before trying to draw.
  994. 2002-11-13 Trey Matteson <trey@apple.com>
  995. Fixed client redirects, some more. The upshot is that they do not
  996. generate two items in the back-forward list. iBench still works.
  997. * WebCoreSupport.subproj/WebBridge.m:
  998. (-[WebBridge reportClientRedirectTo:delay:fireDate:]): Call straight to the frame for all impl.
  999. (-[WebBridge reportClientRedirectCancelled]): Call straight to the frame for all impl.
  1000. (-[WebBridge loadURL:reload:triggeringEvent:isFormSubmission:]):
  1001. clientRedirect param removed when sending _loadURL: to frame.
  1002. * WebView.subproj/WebFramePrivate.h:
  1003. * WebView.subproj/WebFramePrivate.m:
  1004. (-[WebFrame _loadURL:loadType:triggeringEvent:isFormSubmission:]):
  1005. clientRedirect param removed. Check our own ivar to know if we are in client redirect case.
  1006. (-[WebFrame _loadURL:intoChild:]):
  1007. clientRedirect param removed when sending _loadURL: .
  1008. (-[WebFrame _clientRedirectedTo:delay:fireDate:]):
  1009. Note that we are doing a redirect if time=0 and we're not completed. Also includes
  1010. previous impl moved from Bridge.
  1011. (-[WebFrame _clientRedirectCancelled]): Previous impl moved from Bridge.
  1012. 2002-11-13 Maciej Stachowiak <mjs@apple.com>
  1013. Pass mime type instead of full response to content policy delegate
  1014. method, in preparation for merging it with the file URL policy.
  1015. * WebView.subproj/WebControllerPolicyDelegate.h:
  1016. * WebView.subproj/WebDefaultPolicyDelegate.m:
  1017. * WebView.subproj/WebMainResourceClient.m:
  1018. (-[WebMainResourceClient handle:didReceiveResponse:]):
  1019. 2002-11-13 Darin Adler <darin@apple.com>
  1020. - fixed 3083982 -- Logging into AOL gives null view
  1021. Turns out AOL was using a refresh header, which we were not supporting.
  1022. * WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _commitIfReady]):
  1023. Call openURL: and pass headers in.
  1024. * WebView.subproj/WebFramePrivate.m:
  1025. (-[WebFrame _loadURL:loadType:clientRedirect:triggeringEvent:isFormSubmission:]):
  1026. Pass nil for headers in this case, since we know it's just an anchor change.
  1027. - other things
  1028. * WebCoreSupport.subproj/WebBridge.h: Remove dataSourceChanged and dataSource
  1029. methods. We try to keep the bridge methods down to actual bridging.
  1030. * WebCoreSupport.subproj/WebBridge.m: Remove dataSourceChanged altogether,
  1031. and move dataSource up in the file.
  1032. * WebView.subproj/WebHTMLRepresentation.m:
  1033. (-[WebHTMLRepresentation setDataSource:]): Keep the data source around, so we
  1034. don't need to ask the bridge for it.
  1035. (-[WebHTMLRepresentation documentSource]): Use it here.
  1036. 2002-11-13 Trey Matteson <trey@apple.com>
  1037. Fixed 3100084 - REGRESSION: web page is not first responder after visiting web page
  1038. * WebView.subproj/WebDataSourcePrivate.m:
  1039. (-[WebDataSource _commitIfReady]): Make the rep before _transitionToCommitted. This is the way it used to be.
  1040. (-[WebDataSource _makeRepresentation]): Don't make the docView here.
  1041. * WebView.subproj/WebFramePrivate.m:
  1042. (-[WebFrame _transitionToCommitted]): Make the docView here, after we save the scroll state but before notifying the delegate.
  1043. 2002-11-13 Darin Adler <darin@apple.com>
  1044. - fixed 3100013 -- REGRESSION: Can't get results from i-Bench anymore
  1045. * WebView.subproj/WebFramePrivate.m: (-[WebFrame _isLoadComplete]):
  1046. Don't set the state to WebFrameStateComplete if it has already been set
  1047. to WebFrameStateProvisional. If it has, that means we already began a new
  1048. load; that one is not yet complete.
  1049. 2002-11-13 John Sullivan <sullivan@apple.com>
  1050. - fixed 3099922 -- REGRESSION: Back button always pops up menu
  1051. * Misc.subproj/WebNSViewExtras.h:
  1052. * Misc.subproj/WebNSViewExtras.m:
  1053. (-[NSView _web_dragShouldBeginFromMouseDown:withExpiration:xHysteresis:yHysteresis:]:
  1054. Fixed a copy/paste error I made yesterday -- this method was never
  1055. noticing the mouse-up events because it was checking the event type
  1056. against the wrong number. Also changed the hysteresis values from
  1057. unsigneds to floats (unsigned was just wrong).
  1058. 2002-11-13 Maciej Stachowiak <mjs@apple.com>
  1059. - fixed 3050447 - Policy handlers have no way of telling client
  1060. that the proposed navigation is a form post
  1061. Now we pass form submissions through all the normal policy steps.
  1062. * WebCoreSupport.subproj/WebBridge.m:
  1063. (-[WebBridge loadURL:reload:triggeringEvent:isFormSubmission:]):
  1064. (-[WebBridge postWithURL:data:contentType:triggeringEvent:]):
  1065. (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]):
  1066. * WebView.subproj/WebDataSourcePrivate.h:
  1067. * WebView.subproj/WebDataSourcePrivate.m:
  1068. (-[WebDataSourcePrivate dealloc]):
  1069. (-[WebDataSource _setTriggeringAction:]):
  1070. (-[WebDataSource _triggeringAction]):
  1071. (-[WebDataSource _lastCheckedRequest]):
  1072. (-[WebDataSource _setLastCheckedRequest:]):
  1073. * WebView.subproj/WebFrame.m:
  1074. (-[WebFrame setProvisionalDataSource:]):
  1075. * WebView.subproj/WebFramePrivate.h:
  1076. * WebView.subproj/WebFramePrivate.m:
  1077. (-[WebFrame _shouldShowRequest:]):
  1078. (-[WebFrame _loadRequest:triggeringAction:]):
  1079. (-[WebFrame _actionInformationForNavigationType:event:]):
  1080. (-[WebFrame _continueAfterNavigationPolicyForRequest:dataSource:]):
  1081. (-[WebFrame _loadURL:loadType:clientRedirect:triggeringEvent:isFormSubmission:]):
  1082. (-[WebFrame _loadURL:intoChild:]):
  1083. (-[WebFrame _postWithURL:data:contentType:triggeringEvent:]):
  1084. 2002-11-12 Maciej Stachowiak <mjs@apple.com>
  1085. Combine click policy and URL policy into navigation policy.
  1086. * WebView.subproj/WebControllerPolicyDelegate.h:
  1087. * WebView.subproj/WebDefaultPolicyDelegate.h:
  1088. * WebView.subproj/WebDefaultPolicyDelegate.m:
  1089. (-[WebDefaultPolicyDelegate navigationPolicyForAction:andRequest:inFrame:]):
  1090. * WebView.subproj/WebFramePrivate.h:
  1091. * WebView.subproj/WebFramePrivate.m:
  1092. (-[WebFrame _shouldShowRequest:]):
  1093. (-[WebFrame _actionInformationForNavigationType:event:]):
  1094. (-[WebFrame _continueAfterFileURLPolicyForRequest:]):
  1095. (-[WebFrame _continueAfterNavigationPolicyForRequest:event:]):
  1096. (-[WebFrame _loadURL:loadType:clientRedirect:triggeringEvent:]):
  1097. 2002-11-12 Trey Matteson <trey@apple.com>
  1098. fixed 3096030 - Crash in -[WebBackForwardList goToEntry:] when playing with SnapBack and dictionary.com
  1099. * WebView.subproj/WebFramePrivate.m:
  1100. (-[WebFrame _isLoadComplete]): Set state=completed only after we tell the bridge to
  1101. end the load. This allows client redirects to be processed before we think we're complete.
  1102. (-[WebFrame _loadURL:loadType:clientRedirect:triggeringEvent:]):
  1103. Only process client redirects as such if we are not already complete. This makes JS driven
  1104. navigations after load-time work like the user would expect, as normal navigations.
  1105. 2002-11-12 Maciej Stachowiak <mjs@apple.com>
  1106. - fixed 3099487 - REGRESSION: dragging an image always puts it in
  1107. the download directory
  1108. * WebView.subproj/WebControllerPrivate.h:
  1109. * WebView.subproj/WebControllerPrivate.m:
  1110. (-[WebController _downloadURL:]): Call _downloadURL:toPath: with nil path.
  1111. (-[WebController _downloadURL:toPath:]): New method that
  1112. predetermines the path to download to (needed for DnD).
  1113. * WebView.subproj/WebHTMLView.m:
  1114. (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Use
  1115. _downloadURL:toPath:
  1116. * WebView.subproj/WebImageView.m:
  1117. (-[WebImageView namesOfPromisedFilesDroppedAtDestination:]): Use
  1118. _downloadURL:toPath:
  1119. * WebView.subproj/WebMainResourceClient.m:
  1120. (-[WebMainResourceClient handle:didReceiveResponse:]): Don't ask
  1121. delegate for download path if we already have one.
  1122. 2002-11-12 Richard Williamson <rjw@apple.com>
  1123. Fixed likely cause of 3099047 (and others). Width buffer could underrun in
  1124. some situations.
  1125. * WebCoreSupport.subproj/WebTextRenderer.m:
  1126. (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:letterSpacing:wordSpacing:]):
  1127. 2002-11-12 John Sullivan <sullivan@apple.com>
  1128. * Misc.subproj/WebNSViewExtras.h:
  1129. * Misc.subproj/WebNSViewExtras.m:
  1130. (-[NSView _web_dragShouldBeginFromMouseDown:withExpiration:xHysteresis:yHysteresis:]):
  1131. new method
  1132. (-[NSView _web_dragShouldBeginFromMouseDown:withExpiration:]):
  1133. now calls the new method, passing the default hysteresis values
  1134. 2002-11-12 Richard Williamson <rjw@apple.com>
  1135. Implemented letter-spacing and word-spacing CSS properties.
  1136. * Misc.subproj/WebStringTruncator.m:
  1137. (+[WebStringTruncator rightTruncateString:toWidth:withFont:]):
  1138. (+[WebStringTruncator centerTruncateString:toWidth:withFont:]):
  1139. * WebCoreSupport.subproj/WebTextRenderer.h:
  1140. * WebCoreSupport.subproj/WebTextRenderer.m:
  1141. (-[WebTextRenderer widthForCharacters:length:]):
  1142. (-[WebTextRenderer drawCharacters:stringLength:fromCharacterPosition:toCharacterPosition:atPoint:withPadding:withTextColor:backgroundColor:rightToLeft:letterSpacing:wordSpacing:]):
  1143. (-[WebTextRenderer floatWidthForCharacters:stringLength:characterPosition:]):
  1144. (-[WebTextRenderer floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:]):
  1145. (-[WebTextRenderer floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:letterSpacing:wordSpacing:]):
  1146. (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:letterSpacing:wordSpacing:]):
  1147. 2002-11-12 Maciej Stachowiak <mjs@apple.com>
  1148. Removed policy classes and instead use the policy enums directly,
  1149. since we no longer hold the path in the enum.
  1150. * Downloads.subproj/WebDownloadHandler.m:
  1151. * WebKit.exp:
  1152. * WebKit.pbproj/project.pbxproj:
  1153. * WebView.subproj/WebControllerPolicyDelegate.h:
  1154. * WebView.subproj/WebControllerPolicyDelegate.m:
  1155. * WebView.subproj/WebControllerPolicyDelegatePrivate.h: Removed.
  1156. * WebView.subproj/WebControllerPrivate.m:
  1157. * WebView.subproj/WebDefaultPolicyDelegate.h:
  1158. * WebView.subproj/WebDefaultPolicyDelegate.m:
  1159. (+[WebDefaultPolicyDelegate defaultURLPolicyForRequest:]):
  1160. (-[WebDefaultPolicyDelegate URLPolicyForRequest:inFrame:]):
  1161. (-[WebDefaultPolicyDelegate fileURLPolicyForMIMEType:andRequest:inFrame:]):
  1162. (-[WebDefaultPolicyDelegate unableToImplementPolicy:error:forURL:inFrame:]):
  1163. (-[WebDefaultPolicyDelegate clickPolicyForAction:andRequest:inFrame:]):
  1164. * WebView.subproj/WebFramePrivate.m:
  1165. (-[WebFrame handleUnimplementablePolicy:errorCode:forURL:]):
  1166. (-[WebFrame _shouldShowRequest:]):
  1167. (-[WebFrame _continueAfterClickPolicyForEvent:request:]):
  1168. * WebView.subproj/WebMainResourceClient.m:
  1169. (-[WebMainResourceClient handle:didReceiveResponse:]):
  1170. 2002-11-12 Maciej Stachowiak <mjs@apple.com>
  1171. Keep the triggering event around on the data source, so it can be
  1172. used with redirects.
  1173. * WebView.subproj/WebFramePrivate.m:
  1174. (-[WebFrame _loadRequest:triggeringEvent:]):
  1175. (-[WebFrame _loadURL:loadType:clientRedirect:triggeringEvent:]):
  1176. (-[WebFrame _postWithURL:data:contentType:]):
  1177. 2002-11-12 Darin Adler <darin@apple.com>
  1178. - improved the code that manages observing the window and superview
  1179. * WebView.subproj/WebHTMLView.m:
  1180. (-[WebHTMLView addSuperviewObservers]): Added.
  1181. (-[WebHTMLView removeSuperviewObservers]): Added.
  1182. (-[WebHTMLView addWindowObservers]): Added.
  1183. (-[WebHTMLView removeWindowObservers]): Added.
  1184. (-[WebHTMLView viewWillMoveToSuperview:]): Call removeSuperviewObservers.
  1185. (-[WebHTMLView viewDidMoveToSuperview]): Call addSuperviewObservers.
  1186. (-[WebHTMLView viewWillMoveToWindow:]): Call removeWindowObservers and
  1187. removeSuperviewObservers.
  1188. (-[WebHTMLView viewDidMoveToWindow]): Call addWindowObservers and
  1189. addSuperviewObservers.
  1190. 2002-11-11 Maciej Stachowiak <mjs@apple.com>
  1191. Remove contentPolicy parameter from _downloadURL, and remove
  1192. remaining traces of path from policy object.
  1193. * WebView.subproj/WebControllerPolicyDelegate.h:
  1194. * WebView.subproj/WebControllerPolicyDelegate.m:
  1195. (-[WebPolicyPrivate dealloc]):
  1196. (+[WebURLPolicy webPolicyWithURLAction:]):
  1197. (+[WebFileURLPolicy webPolicyWithFileAction:]):
  1198. (+[WebContentPolicy webPolicyWithContentAction:]):
  1199. (+[WebClickPolicy webPolicyWithClickAction:]):
  1200. * WebView.subproj/WebControllerPolicyDelegatePrivate.h:
  1201. * WebView.subproj/WebControllerPrivate.h:
  1202. * WebView.subproj/WebControllerPrivate.m:
  1203. (-[WebController _downloadURL:]):
  1204. * WebView.subproj/WebDefaultContextMenuDelegate.m:
  1205. (-[WebDefaultContextMenuDelegate downloadURL:]):
  1206. * WebView.subproj/WebDefaultPolicyDelegate.m:
  1207. (-[WebDefaultPolicyDelegate clickPolicyForAction:andRequest:inFrame:]):
  1208. * WebView.subproj/WebFramePrivate.m:
  1209. (-[WebFrame _continueAfterClickPolicyForEvent:request:]):
  1210. * WebView.subproj/WebHTMLView.m:
  1211. (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
  1212. * WebView.subproj/WebImageView.m:
  1213. (-[WebImageView namesOfPromisedFilesDroppedAtDestination:]):
  1214. * WebView.subproj/WebMainResourceClient.m:
  1215. (-[WebMainResourceClient handle:didReceiveResponse:]):
  1216. 2002-11-11 Darin Adler <darin@apple.com>
  1217. * Plugins.subproj/WebNetscapePluginPackage.m: (-[WebNetscapePluginPackage load]):
  1218. Use fileSystemRepresentationWithPath, not cString, to turn a path into something
  1219. to pass to FSPathMakeRef.
  1220. * English.lproj/StringsNotToBeLocalized.txt: Update.
  1221. 2002-11-11 Darin Adler <darin@apple.com>
  1222. - tighten up cursor handling a bit more
  1223. * WebView.subproj/WebDynamicScrollBarsView.m:
  1224. * WebView.subproj/WebHTMLView.m:
  1225. (-[WebHTMLView addMouseMovedObserver]): Call _frameOrBoundsChanged
  1226. so we emit a mouse moved event right away.
  1227. (-[WebHTMLView viewWillMoveToSuperview:]): Remove the colon since I
  1228. removed the parameter from _frameOrBoundsChanged.
  1229. * WebView.subproj/WebHTMLViewPrivate.h: Declare _frameOrBoundsChanged.
  1230. * WebView.subproj/WebHTMLViewPrivate.m:
  1231. (-[WebHTMLView _frameOrBoundsChanged]): Remove parameter.
  1232. 2002-11-11 Trey Matteson <trey@apple.com>
  1233. Fixed 3015884 - Reloading a page should remember the scroll position
  1234. * WebView.subproj/WebFramePrivate.m:
  1235. (-[WebFrame _transitionToCommitted]): Save scroll position on reload
  1236. (-[WebFrame _isLoadComplete]): Restore position on reload
  1237. 2002-11-11 Trey Matteson <trey@apple.com>
  1238. * History.subproj/WebBackForwardList.m:
  1239. (-[WebBackForwardList addEntry:]): Yank code to avoid adding a duplicate entry, to catch the
  1240. refresh case. That's dealt with in WebFramePrivate now.
  1241. (-[WebBackForwardList description]): Enhanced to print more info.
  1242. * History.subproj/WebHistoryItem.h:
  1243. History items now hold an array of subitems to mirror the frame tree. One item in the tree
  1244. is designated the target of the navigation.
  1245. * History.subproj/WebHistoryItem.m:
  1246. (-[WebHistoryItem dealloc]): Release new ivars.
  1247. (-[WebHistoryItem isTargetItem]):
  1248. (-[WebHistoryItem setIsTargetItem:]):
  1249. New setter and setter.
  1250. (-[WebHistoryItem _recurseToFindTargetItem]):
  1251. (-[WebHistoryItem targetItem]):
  1252. Search the tree to find the target item.
  1253. (-[WebHistoryItem children]):
  1254. (-[WebHistoryItem addChildItem:]):
  1255. (-[WebHistoryItem childItemWithName:]):
  1256. Maintain and search new child item list.
  1257. (-[WebHistoryItem description]):
  1258. Enhanced to print out the tree of items.
  1259. (-[WebHistoryItem dictionaryRepresentation]):
  1260. (-[WebHistoryItem initFromDictionaryRepresentation:]):
  1261. Save and load the new state.
  1262. * WebCoreSupport.subproj/WebBridge.m:
  1263. (-[WebBridge generateFrameName]): New call from KWQ, just forwards to Frame.
  1264. (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]):
  1265. Call new frame method dedicated to this case.
  1266. (-[WebBridge saveDocumentState:]):
  1267. (-[WebBridge documentState]):
  1268. Call frame methods to get the right item to save/restore to/from.
  1269. * WebView.subproj/WebController.m:
  1270. (-[WebController _goToItem:withLoadType:]): Stop any current loading before going to a new item.
  1271. (-[WebController goBack]):
  1272. (-[WebController goForward]):
  1273. (-[WebController goBackOrForwardToItem:]): Name change of private method (for consistency)
  1274. * WebView.subproj/WebDataSourcePrivate.h:
  1275. ProvisionalItem and PreviousItem are moved back up to WebFrame, where we know more about the
  1276. state transitions that happen during loading.
  1277. * WebView.subproj/WebDataSourcePrivate.m:
  1278. (-[WebDataSourcePrivate dealloc]): Don't release removed ivars.
  1279. (-[WebDataSource _commitIfReady]): Make the view representations -after- the transition to committed.
  1280. This allows us to save away the scroll location successfully, since making the view was resetting it.
  1281. * WebView.subproj/WebFrame.h:
  1282. * WebView.subproj/WebFrame.m:
  1283. (-[WebFrame setProvisionalDataSource:]): Saving the scroll location has moved elsewhere to handle frames.
  1284. (-[WebFrame stopLoading]): Skip all the work if we're already state=complete.
  1285. * WebView.subproj/WebFramePrivate.h:
  1286. The frame now holds a ref to the current, previous and provisional back-forward items.
  1287. * WebView.subproj/WebFramePrivate.m:
  1288. (-[WebFramePrivate dealloc]): Release new state.
  1289. (-[WebFramePrivate setProvisionalItem:]):
  1290. (-[WebFramePrivate setPreviousItem:]):
  1291. (-[WebFramePrivate setCurrentItem:]): New setters (1 line getters were missed by script)
  1292. (-[WebFrame _addBackForwardItemClippedAtTarget:]): Adds a BF item to the top of the BF list.
  1293. (-[WebFrame _createItem]): Create a single BF item.
  1294. (-[WebFrame _createItemTreeWithTargetFrame:clippedAtTarget:]): Create a tree of BF items, which
  1295. mirror the frame tree.
  1296. (-[WebFrame _immediateChildFrameNamed:]): New frame search utility (doesn't recurse)
  1297. (-[WebFrame _detachFromParent]): Save the scroll position when detaching a frame.
  1298. (-[WebFrame _transitionToCommitted]): Maintain new item ivars. Save scroll position when
  1299. appropriate. Hook up items for child frames to their parent, as they are created.
  1300. (-[WebFrame _setState:]): Clear previousItem whenever we reach committed.
  1301. (-[WebFrame _isLoadComplete]): Clear previousItem if we are committed.
  1302. (-[WebFrame _childFramesMatchItem:]): Does the frame's frame tree match the one held by the item?
  1303. (-[WebFrame _loadItem:fromItem:withLoadType:]): Only do simple anchor navigation if the frame
  1304. has no children (fixes oddball corner case with a frame reloading itself). Set provisional item.
  1305. (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]): Heart of returning to an item that had
  1306. frames. We either find that the existing content is good, or initiate a load.
  1307. (-[WebFrame _goToItem:withLoadType:]): Adjust the BF list cursor, and recurse to do the work.
  1308. (-[WebFrame _loadURL:loadType:clientRedirect:triggeringEvent:]): Only do anchor-style nav if
  1309. the destination URL has a fragment. Save scroll position.
  1310. (-[WebFrame _loadURL:intoChild:]): If returning to an item with frames, possibly replace the
  1311. new content with the stuff that was there at the time, substituting the URL.
  1312. (-[WebFrame _saveScrollPositionToItem:]): Don't croak on nil item or view.
  1313. (-[WebFrame _restoreScrollPosition]): Do croak (ASSERT) on nil item.
  1314. (-[WebFrame _scrollToTop]): Nit cleanup.
  1315. (-[WebFrame _addFramePathToString:]): Add a component for our frame to the frame name we're generating.
  1316. (-[WebFrame _generateFrameName]): Generate a frame name that is repeatable.
  1317. (-[WebFrame _itemForSavingDocState]): Returns correct item to use for formstate save.
  1318. (-[WebFrame _itemForRestoringDocState]): Returns correct item to use for formstate restore
  1319. 2002-11-11 Maciej Stachowiak <mjs@apple.com>
  1320. Store path and the fact that we're downloading in the data source,
  1321. instead of storing the content policy.
  1322. * Downloads.subproj/WebDownloadHandler.m:
  1323. (-[WebDownloadHandler cleanUpAfterFailure]):
  1324. (-[WebDownloadHandler createFileIfNecessary]):
  1325. (-[WebDownloadHandler finishedLoading]):
  1326. * WebView.subproj/WebControllerPrivate.m:
  1327. (-[WebController _downloadURL:withContentPolicy:]):
  1328. * WebView.subproj/WebDataSource.h:
  1329. * WebView.subproj/WebDataSource.m:
  1330. (+[WebDataSource registerRepresentationClass:forMIMEType:]):
  1331. (-[WebDataSource isDownloading]):
  1332. (-[WebDataSource downloadPath]):
  1333. * WebView.subproj/WebDataSourcePrivate.h:
  1334. * WebView.subproj/WebDataSourcePrivate.m:
  1335. (-[WebDataSourcePrivate dealloc]):
  1336. (-[WebDataSource _commitIfReady]):
  1337. (-[WebDataSource _setIsDownloading:]):
  1338. (-[WebDataSource _setDownloadPath:]):
  1339. * WebView.subproj/WebMainResourceClient.m:
  1340. (-[WebMainResourceClient receivedError:]):
  1341. (-[WebMainResourceClient handle:didReceiveResponse:]):
  1342. (-[WebMainResourceClient handleDidFinishLoading:]):
  1343. 2002-11-11 Maciej Stachowiak <mjs@apple.com>
  1344. Don't ask for the content policy any more if the previous policies
  1345. said to save - in effect this means to ask only if the previous
  1346. policies said to use the content policy. Also, remove now-useless
  1347. previous content policy parameter from content policy delegate.
  1348. * WebView.subproj/WebControllerPolicyDelegate.h:
  1349. * WebView.subproj/WebDataSourcePrivate.m:
  1350. (-[WebDataSource _setContentPolicy:]): Retain new policy before
  1351. releasing the old one.
  1352. * WebView.subproj/WebDefaultPolicyDelegate.m:
  1353. * WebView.subproj/WebMainResourceClient.m:
  1354. (-[WebMainResourceClient handle:didReceiveResponse:]): Don't ask
  1355. for content policy if the delegate already decided to save.
  1356. 2002-11-11 Maciej Stachowiak <mjs@apple.com>
  1357. Added new policy delegate callback to get the filename - this
  1358. won't be up to the content policy any more.
  1359. * WebView.subproj/WebControllerPolicyDelegate.h:
  1360. * WebView.subproj/WebDefaultPolicyDelegate.m:
  1361. (-[WebDefaultPolicyDelegate saveFilenameForResponse:andRequest:]):
  1362. * WebView.subproj/WebMainResourceClient.m:
  1363. (-[WebMainResourceClient handle:didReceiveResponse:]):
  1364. 2002-11-11 Darin Adler <darin@apple.com>
  1365. - made some improvements to cursor setting for greater speed and correctness
  1366. * WebView.subproj/WebDynamicScrollBarsView.m:
  1367. (-[WebDynamicScrollBarsView setCursor:]): Just use setDocumentCursor: instead of
  1368. our own logic. This allows us to remove code and may fix some bugs or anomalies as well.
  1369. (-[WebDynamicScrollBarsView dealloc]): Release the cursor. I think we were leaking before.
  1370. * WebView.subproj/WebHTMLView.m:
  1371. (-[WebHTMLView viewWillMoveToSuperview:]): Use _frameOrBoundsChanged: method now, which
  1372. has been moved into the private file.
  1373. (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]): Don't bother finding
  1374. topmost WebHTMLView to call _updateMouseoverWithEvent: on; now it works fine no matter
  1375. which level it's called at.
  1376. * WebView.subproj/WebHTMLViewPrivate.m:
  1377. (-[WebHTMLView _frameOrBoundsChanged:]): Moved the code here that was formerly in the
  1378. _setNeedsLayoutIfSizeChanged method, also added code that does _updateMouseoverWithEvent:
  1379. so that we get properly updated cursor when we scroll.
  1380. (-[WebHTMLView _updateMouseoverWithEvent:]): Remove unneeded assert. This method works
  1381. equally well no matter which WebHTMLView calls it; everything is done at the window and
  1382. controller level.
  1383. * WebView.subproj/WebControllerPrivate.h: Added lastElementWasNotNil field and
  1384. _mouseDidMoveOverElement:modifierFlags: method.
  1385. * WebView.subproj/WebControllerPrivate.m:
  1386. (-[WebController _mouseDidMoveOverElement:modifierFlags:]): Call through to the delegate,
  1387. but don't do multiple calls if they are all nil.
  1388. * WebCoreSupport.subproj/WebBridge.m: Remove unused modifierTrackingEnabled method.
  1389. * WebView.subproj/WebHTMLViewPrivate.h: Remove unused _setModifierTrackingEnabled and
  1390. _modifierTrackingEnabled methods.
  1391. 2002-11-10 Darin Adler <darin@apple.com>
  1392. * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
  1393. 2002-11-10 Chris Blumenberg <cblu@apple.com>
  1394. Fixed: 3021681 - downloaded files' creation and modification dates are not set
  1395. * Downloads.subproj/WebDownloadHandler.m:
  1396. (-[WebDownloadHandler createFileIfNecessary]): call [response creationDate] and [response lastModifiedDate] when setting file attributes.
  1397. * Plugins.subproj/WebBaseNetscapePluginStream.m:
  1398. (-[WebBaseNetscapePluginStream setResponse:]): call [response lastModifiedDate] when giving content to plug-ins.
  1399. 2002-11-10 Darin Adler <darin@apple.com>
  1400. * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
  1401. 2002-11-09 Darin Adler <darin@apple.com>
  1402. - fixed 3095156 -- reproducible leak of WebDataSource due to bad URL in stylesheet
  1403. * WebCoreSupport.subproj/WebSubresourceClient.m:
  1404. (+[WebSubresourceClient startLoadingResource:withURL:referrer:forDataSource:]):
  1405. Check for errors by looking at the return value from loadWithRequest: rather than
  1406. making a separate call to canInitWithRequest.
  1407. * WebView.subproj/WebBaseResourceHandleDelegate.h: Add boolean success/failure result
  1408. loadWithRequest:.
  1409. * WebView.subproj/WebBaseResourceHandleDelegate.m:
  1410. (-[WebBaseResourceHandleDelegate loadWithRequest:]): Return NO if we fail to make a handle.
  1411. * WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _startLoading]):
  1412. Check result of loadWithRequest: and complain if it's NO.
  1413. * WebView.subproj/WebMainResourceClient.m: Tweak whitespace.
  1414. 2002-11-09 Chris Blumenberg <cblu@apple.com>
  1415. Fixed: 2991610 - Alexander should support services, including Speech
  1416. * WebView.subproj/WebHTMLView.m:
  1417. (+[WebHTMLView initialize]): register for service types
  1418. (-[WebHTMLView dealloc]): moved to top of file
  1419. (-[WebHTMLView copy:]): call _writeSelectionToPasteboard
  1420. (-[WebHTMLView writeSelectionToPasteboard:types:]): call _writeSelectionToPasteboard
  1421. (-[WebHTMLView validRequestorForSendType:returnType:]): return self for our pboard types
  1422. * WebView.subproj/WebHTMLViewPrivate.h:
  1423. * WebView.subproj/WebHTMLViewPrivate.m:
  1424. (+[WebHTMLView _pasteboardTypes]): new, returns the array of supported pboard types
  1425. (-[WebHTMLView _writeSelectionToPasteboard:]): new, adds data to pboard
  1426. * WebView.subproj/WebImageView.m:
  1427. (-[WebImageView initialize]): register for service types
  1428. (-[WebImageView validateUserInterfaceItem:]): respond to copy
  1429. (-[WebImageView validRequestorForSendType:returnType:]): return self for images
  1430. (-[WebImageView writeImageToPasteboard:]): writes image data to pboard
  1431. (-[WebImageView copy:]): calls writeImageToPasteboard
  1432. (-[WebImageView writeSelectionToPasteboard:types:]): calls writeImageToPasteboard
  1433. 2002-11-08 Darin Adler <darin@apple.com>
  1434. * History.subproj/WebHistoryItem.m:
  1435. (-[WebHistoryItem setTitle:]): Use display title if it matches, so
  1436. we don't end up with two identical strings, as when reading from
  1437. the property list.
  1438. (-[WebHistoryItem setDisplayTitle:]): The same thing, the other way round.
  1439. 2002-11-08 Darin Adler <darin@apple.com>
  1440. - fixed 3095078 -- image loop counts still not handled right
  1441. * WebCoreSupport.subproj/WebImageRenderer.m:
  1442. (-[WebImageRenderer blockHasGIFExtensionSignature:length:]): Look for the tag
  1443. "NETSCAPE2.0", not "NETSCAPE1.0".
  1444. (-[WebImageRenderer nextFrame:]): Remove special handling for last frames with
  1445. a duration of 0. That was just a misunderstanding.
  1446. 2002-11-08 Darin Adler <darin@apple.com>
  1447. * WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _setRequest:]):
  1448. Slightly better fix. Essentially just take out the assert.
  1449. 2002-11-08 Darin Adler <darin@apple.com>
  1450. - fixed an assert I am seeing a lot
  1451. * WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _setRequest:]): Oops.
  1452. 2002-11-08 Richard Williamson <rjw@apple.com>
  1453. Solved missing glyph problem, but it's very slow, so
  1454. it's disabled for now. I'll turn back on after extending
  1455. the character to glyph map in each renderer to include
  1456. substituted font.
  1457. * WebCoreSupport.subproj/WebTextRenderer.m:
  1458. (-[WebTextRenderer substituteFontForString:]):
  1459. (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:]):
  1460. 2002-11-08 Darin Adler <darin@apple.com>
  1461. - separate WebBaseNetscapePluginStream more cleanly from its subclasses
  1462. by making most fields private
  1463. * Plugins.subproj/WebBaseNetscapePluginStream.m:
  1464. (-[WebBaseNetscapePluginStream setResponse:]):
  1465. * Plugins.subproj/WebNetscapePluginStream.h:
  1466. * Plugins.subproj/WebNetscapePluginStream.m:
  1467. (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:]):
  1468. (-[WebNetscapePluginStream dealloc]):
  1469. (-[WebNetscapePluginStream start]):
  1470. (-[WebNetscapePluginStream handle:didReceiveData:]):
  1471. (-[WebNetscapePluginStream handle:didFailLoadingWithError:]):
  1472. * WebCoreSupport.subproj/WebSubresourceClient.m:
  1473. (-[WebSubresourceClient handle:didReceiveResponse:]):
  1474. (-[WebSubresourceClient handle:didReceiveData:]):
  1475. (-[WebSubresourceClient handleDidFinishLoading:]):
  1476. (-[WebSubresourceClient handle:didFailLoadingWithError:]):
  1477. (-[WebSubresourceClient cancel]):
  1478. * WebView.subproj/WebBaseResourceHandleDelegate.h:
  1479. * WebView.subproj/WebBaseResourceHandleDelegate.m:
  1480. (-[WebBaseResourceHandleDelegate handle:willSendRequest:]):
  1481. (-[WebBaseResourceHandleDelegate handle:didFailLoadingWithError:]):
  1482. (-[WebBaseResourceHandleDelegate _cancelWithError:]):
  1483. (-[WebBaseResourceHandleDelegate cancel]):
  1484. (-[WebBaseResourceHandleDelegate cancelQuietly]):
  1485. (-[WebBaseResourceHandleDelegate cancelledError]):
  1486. (-[WebBaseResourceHandleDelegate notifyDelegatesOfInterruptionByPolicyChange]):
  1487. * WebView.subproj/WebMainResourceClient.h:
  1488. * WebView.subproj/WebMainResourceClient.m:
  1489. (-[WebMainResourceClient cancel]):
  1490. (-[WebMainResourceClient handle:willSendRequest:]):
  1491. (-[WebMainResourceClient notifyDelegatesOfInterruptionByPolicyChange]):
  1492. (-[WebMainResourceClient handle:didReceiveResponse:]):
  1493. (-[WebMainResourceClient handle:didReceiveData:]):
  1494. (-[WebMainResourceClient handleDidFinishLoading:]):
  1495. 2002-11-08 Darin Adler <darin@apple.com>
  1496. - changed persistent dictionaries to use NSString instead of NSURL
  1497. because of impact on memory footprint
  1498. Also changed WebIconDatabase code to verify what it reads from disk,
  1499. and ignore it if it can't verify the format.
  1500. * Misc.subproj/WebIconDatabase.m:
  1501. (-[WebIconDatabase iconForSiteURL:withSize:cache:]):
  1502. (-[WebIconDatabase retainIconForSiteURL:]):
  1503. (-[WebIconDatabase releaseIconForSiteURL:]):
  1504. (-[WebIconDatabase _iconDictionariesAreGood]):
  1505. (-[WebIconDatabase _loadIconDictionaries]):
  1506. (-[WebIconDatabase _updateFileDatabase]):
  1507. (-[WebIconDatabase _hasIconForSiteURL:]):
  1508. (-[WebIconDatabase _iconsForIconURLString:]):
  1509. (-[WebIconDatabase _setIcon:forIconURL:]):
  1510. (-[WebIconDatabase _setIconURL:forSiteURL:]):
  1511. (-[WebIconDatabase _setBuiltInIconAtPath:forHost:]):
  1512. (-[WebIconDatabase _retainIconForIconURLString:]):
  1513. (-[WebIconDatabase _releaseIconForIconURLString:]):
  1514. (-[WebIconDatabase _retainFutureIconForSiteURL:]):
  1515. (-[WebIconDatabase _releaseFutureIconForSiteURL:]):
  1516. (-[WebIconDatabase _retainOriginalIconsOnDisk]):
  1517. (-[WebIconDatabase _releaseOriginalIconsOnDisk]):
  1518. (-[NSEnumerator _web_isAllStrings]):
  1519. * Panels.subproj/WebStandardPanels.m:
  1520. (-[WebStandardPanels didStartLoadingURL:inWindow:]):
  1521. (-[WebStandardPanels didStopLoadingURL:inWindow:]):
  1522. (-[WebStandardPanels _didStartLoadingURL:inController:]):
  1523. (-[WebStandardPanels _didStopLoadingURL:inController:]):
  1524. (-[WebStandardPanels frontmostWindowLoadingURL:]):
  1525. 2002-11-08 Darin Adler <darin@apple.com>
  1526. - fixed crash on boot that Don was seeing
  1527. * History.subproj/WebHistoryItem.m:
  1528. (-[WebHistoryItem URL]): Make this work when _URLString is nil.
  1529. (-[WebHistoryItem initFromDictionaryRepresentation:]): Make this work for nil URL.
  1530. - my own private war on the cString method
  1531. * Downloads.subproj/WebDownloadHandler.m:
  1532. (-[WebDownloadHandler initWithDataSource:]): Use %@ in LOG to avoid cString.
  1533. (-[WebDownloadHandler finishedLoading]): Ditto.
  1534. * WebView.subproj/WebDataSourcePrivate.m:
  1535. (-[WebDataSource _commitIfReady]): Ditto.
  1536. * WebView.subproj/WebFramePrivate.m:
  1537. (-[WebFrame _timedLayout:]): Ditto.
  1538. (-[WebFrame _setState:]): More of the same.
  1539. (-[WebFrame _isLoadComplete]): Ditto.
  1540. 2002-11-08 Ken Kocienda <kocienda@apple.com>
  1541. Fix deployment build breaker: a variable was used only in a
  1542. LOG statement, causing the variable to become usused when
  1543. building with the Deployment build style.
  1544. * Downloads.subproj/WebDownloadHandler.m:
  1545. (-[WebDownloadHandler finishedLoading])
  1546. 2002-11-07 Darin Adler <darin@apple.com>
  1547. * History.subproj/WebHistoryItem.h: Replace _URL with _URLString.
  1548. * History.subproj/WebHistoryItem.m:
  1549. (-[WebHistoryItem _retainIconInDatabase:]): Get the URL with [self URL].
  1550. (-[WebHistoryItem initWithURL:target:parent:title:]): Set up _URLString.
  1551. (-[WebHistoryItem dealloc]): Release _URLString.
  1552. (-[WebHistoryItem URL]): Make a URL from _URLString.
  1553. (-[WebHistoryItem icon]): Use [self URL] instead of _URL.
  1554. (-[WebHistoryItem setURL:]): Store a URL string.
  1555. (-[WebHistoryItem hash]): Use the URL string's hash.
  1556. (-[WebHistoryItem isEqual:]): Compare the URL strings.
  1557. (-[WebHistoryItem description]): Use _URLString.
  1558. (-[WebHistoryItem dictionaryRepresentation]): Use _URLString.
  1559. (-[WebHistoryItem initFromDictionaryRepresentation:]): Call through to
  1560. the other init functions so we have only one designated initializer.
  1561. Leave the date as nil if there's no date in the dictionary instead of
  1562. setting the date to 0.
  1563. 2002-11-07 Maciej Stachowiak <mjs@apple.com>
  1564. Removed SaveAndOpenExternally policy.
  1565. * Downloads.subproj/WebDownloadHandler.m:
  1566. (-[WebDownloadHandler finishedLoading]):
  1567. * WebView.subproj/WebControllerPolicyDelegate.h:
  1568. * WebView.subproj/WebFramePrivate.m:
  1569. (-[WebFrame _continueAfterClickPolicyForEvent:request:]):
  1570. * WebView.subproj/WebMainResourceClient.m:
  1571. (-[WebMainResourceClient receivedError:]):
  1572. (-[WebMainResourceClient handle:didReceiveResponse:]):
  1573. (-[WebMainResourceClient handleDidFinishLoading:]):
  1574. 2002-11-07 Chris Blumenberg <cblu@apple.com>
  1575. * WebKit.pbproj/project.pbxproj:
  1576. 2002-11-07 Richard Williamson <rjw@apple.com>
  1577. * WebCoreSupport.subproj/WebImageRenderer.m:
  1578. (-[WebImageRenderer stopAnimation]):
  1579. 2002-11-07 Maciej Stachowiak <mjs@apple.com>
  1580. - fixed 3095628 - REGRESSION: exception when clicking on link to load content into iframe
  1581. * WebView.subproj/WebFramePrivate.m:
  1582. (-[WebFrame _actionInformationForNavigationType:event:]): Get the
  1583. element info from the HTML view where the click originally
  1584. happened, not the current document view. Add some asserts to make
  1585. sure this is working.
  1586. 2002-11-07 Richard Williamson <rjw@apple.com>
  1587. Tweaks
  1588. * WebCoreSupport.subproj/WebTextRenderer.m:
  1589. (-[WebTextRenderer convertCharacters:length:toGlyphs:skipControlCharacters:]):
  1590. (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:]):
  1591. === Alexander-31 ===
  1592. 2002-11-07 Maciej Stachowiak <mjs@apple.com>
  1593. - fixed 3094778 - REGRESSION: Assert on logout from schwab.com
  1594. (probably fixed it anyway - I'm flying blind on this one)
  1595. * WebCoreSupport.subproj/WebBridge.m:
  1596. (-[WebBridge createWindowWithURL:frameName:]): Use a nil request
  1597. if the URL was nil, instead of making a request that contains a
  1598. nil URL.
  1599. 2002-11-07 Maciej Stachowiak <mjs@apple.com>
  1600. Changed things so that creating a window takes a request rather
  1601. than a URL and referrer.
  1602. * WebCoreSupport.subproj/WebBridge.m:
  1603. (-[WebBridge createWindowWithURL:frameName:]):
  1604. * WebView.subproj/WebControllerPrivate.h:
  1605. * WebView.subproj/WebControllerPrivate.m:
  1606. (-[WebController _openNewWindowWithRequest:behind:]):
  1607. * WebView.subproj/WebDataSourcePrivate.h:
  1608. * WebView.subproj/WebDataSourcePrivate.m:
  1609. (-[WebDataSourcePrivate dealloc]):
  1610. (-[WebDataSource _setTriggeringEvent:]):
  1611. (-[WebDataSource _triggeringEvent]):
  1612. * WebView.subproj/WebDefaultContextMenuDelegate.m:
  1613. (-[WebDefaultContextMenuDelegate openNewWindowWithURL:]):
  1614. * WebView.subproj/WebFrame.m:
  1615. (-[WebFrame setProvisionalDataSource:]):
  1616. (-[WebFrame findOrCreateFramedNamed:]):
  1617. * WebView.subproj/WebFramePrivate.m:
  1618. (-[WebFrame _continueAfterClickPolicyForEvent:request:]):
  1619. * WebView.subproj/WebWindowOperationsDelegate.h:
  1620. 2002-11-06 Darin Adler <darin@apple.com>
  1621. - fixed problem where files small enough to fit entirely in the buffer
  1622. (8K or less) would not be decoded
  1623. * Downloads.subproj/WebDownloadHandler.m:
  1624. (-[WebDownloadHandler decodeData:]): Added. Moved most of the code from
  1625. receivedData into here.
  1626. (-[WebDownloadHandler receivedData:]): Changed to call decodeData.
  1627. (-[WebDownloadHandler finishedLoading]): Call decodeData on any remaining
  1628. bytes rather than writing them straight out to the data fork.
  1629. 2002-11-06 Richard Williamson <rjw@apple.com>
  1630. More work on rendering scripts. Now most complex scripts render correctly.
  1631. Working new features include:
  1632. bidi, diacriticals, cursive forms, and arabic ligatures.
  1633. Selection of text rendered in these scripts, is however, not working.
  1634. Also, line height is incorrect when renderering combined below glyphs.
  1635. ajami is, sadly, horrendously broken.
  1636. * Misc.subproj/WebUnicode.m:
  1637. (glyphVariantLogical):
  1638. (shapedString):
  1639. * WebCoreSupport.subproj/WebTextRenderer.m:
  1640. (-[WebTextRenderer drawCharacters:stringLength:fromCharacterPosition:toCharacterPosition:atPoint:withPadding:withTextColor:backgroundColor:rightToLeft:]):
  1641. (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:]):
  1642. 2002-11-06 John Sullivan <sullivan@apple.com>
  1643. * Bookmarks.subproj/WebBookmark.m:
  1644. (+[WebBookmark bookmarkOfType:]):
  1645. made this handle WebBookmarkTypeProxy
  1646. 2002-11-06 Darin Adler <darin@apple.com>
  1647. - fixed bug that affected BinHex-encoded files with no resource fork
  1648. * Downloads.subproj/WebBinHexDecoder.m:
  1649. (-[WebBinHexDecoder decodeData:dataForkData:resourceForkData:]):
  1650. Don't decode the resource fork unless done with the data fork.
  1651. * Downloads.subproj/WebDownloadHandler.m: (-[WebDownloadHandler receivedData:]):
  1652. Set the forks to nil before calling through.
  1653. 2002-11-06 Darin Adler <darin@apple.com>
  1654. * Downloads.subproj/WebMacBinaryDecoder.m: (+[WebMacBinaryDecoder canDecodeHeaderData:]):
  1655. Fix == 129 check that was supposed to be <= 129.
  1656. * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
  1657. 2002-11-06 Darin Adler <darin@apple.com>
  1658. * Downloads.subproj/WebBinHexDecoder.m: (-[WebBinHexDecoder decodeIntoBuffer:size:]):
  1659. Fix an off-by-one error handling repeat counts.
  1660. * WebKit.pbproj/project.pbxproj: Fix group name I accidentally mangled.
  1661. 2002-11-06 Darin Adler <darin@apple.com>
  1662. - added a BinHex decoder and did a little work on the MacBinary decoder
  1663. I'm not supposed to be working on this, but I didn't feel like doing "real" work.
  1664. * Downloads.subproj/WebBinHexDecoder.h: Added.
  1665. * Downloads.subproj/WebBinHexDecoder.m: Added.
  1666. * WebKit.pbproj/project.pbxproj: Added WebBinHexDecoder.
  1667. * Downloads.subproj/WebDownloadDecoder.h: Added WEB_DOWNLOAD_DECODER_MINIMUM_HEADER_LENGTH.
  1668. * Downloads.subproj/WebDownloadHandler.m:
  1669. (-[WebDownloadHandler closeFile]): Check to be sure we don't close the same file twice.
  1670. * Downloads.subproj/WebMacBinaryDecoder.h: Added _scriptCode.
  1671. * Downloads.subproj/WebMacBinaryDecoder.m:
  1672. (+[WebMacBinaryDecoder canDecodeHeaderData:]): Added check of MacBinary version field.
  1673. (-[WebMacBinaryDecoder decodeData:dataForkData:resourceForkData:]): Added MacBinary III
  1674. part that gets the script code.
  1675. (-[WebMacBinaryDecoder filename]): Use the script code.
  1676. 2002-11-06 Maciej Stachowiak <mjs@apple.com>
  1677. Took URL field out of click policy - open in new window policy
  1678. will always open the request URL.
  1679. * WebView.subproj/WebControllerPolicyDelegate.h:
  1680. * WebView.subproj/WebControllerPolicyDelegate.m:
  1681. (-[WebPolicyPrivate dealloc]):
  1682. (+[WebURLPolicy webPolicyWithURLAction:]):
  1683. (+[WebFileURLPolicy webPolicyWithFileAction:]):
  1684. (+[WebContentPolicy webPolicyWithContentAction:andPath:]):
  1685. * WebView.subproj/WebDefaultPolicyDelegate.m:
  1686. (-[WebDefaultPolicyDelegate clickPolicyForAction:andRequest:inFrame:]):
  1687. * WebView.subproj/WebFramePrivate.m:
  1688. (-[WebFrame _continueAfterClickPolicyForEvent:request:]):
  1689. 2002-11-06 Chris Blumenberg <cblu@apple.com>
  1690. Support MacBinary I by checking that bytes 99-127 are 0. Also check byte 82 for all formats.
  1691. * Downloads.subproj/WebMacBinaryDecoder.m:
  1692. (+[WebMacBinaryDecoder canDecodeHeaderData:]):
  1693. 2002-11-06 Ken Kocienda <kocienda@apple.com>
  1694. Call new WebHTTPResourceRequest method to set the amount of time
  1695. to cache a 404 response when trying to fetch a favicon.
  1696. This change helps to fix this bug:
  1697. Radar 3004422 (Loader should cache misses)
  1698. * Misc.subproj/WebIconLoader.m:
  1699. (-[WebIconLoader startLoading])
  1700. 2002-11-05 Maciej Stachowiak <mjs@apple.com>
  1701. Reworked clickPolicy arguments to be closer to proposed version.
  1702. * WebKit.exp:
  1703. * WebView.subproj/WebControllerPolicyDelegate.h:
  1704. * WebView.subproj/WebControllerPolicyDelegate.m:
  1705. * WebView.subproj/WebDefaultPolicyDelegate.m:
  1706. (-[WebDefaultPolicyDelegate clickPolicyForAction:andRequest:inFrame:]):
  1707. * WebView.subproj/WebFramePrivate.h:
  1708. * WebView.subproj/WebFramePrivate.m:
  1709. (-[WebFrame _actionInformationForNavigationType:event:]):
  1710. (-[WebFrame _continueAfterClickPolicyForEvent:request:]):
  1711. 2002-11-05 Darin Adler <darin@apple.com>
  1712. * WebCoreSupport.subproj/WebTextRenderer.m: Made a slightly simpler and faster
  1713. version of the new "lose precision" CEIL_TO_INT macro.
  1714. 2002-11-05 Richard Williamson <rjw@apple.com>
  1715. Fixed a couple of issues that Dave highlighted w/ his whitespace
  1716. fixes. CG sometimes introduces very small 'error' in metrics, specifically
  1717. we saw character widths of 20.0000019 that should have been 20. As a
  1718. work-around we loose precision beyond the 1000th place. Also, always
  1719. ceil spaces.
  1720. * WebCoreSupport.subproj/WebTextRenderer.m:
  1721. (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:]):
  1722. 2002-11-05 Darin Adler <darin@apple.com>
  1723. - fixed 3084704 -- crash in HTMLTokenizer on page with JavaScript
  1724. HTMLDocument::Close inside a <script>
  1725. * WebView.subproj/WebFramePrivate.m: (-[WebFrame _detachFromParent]):
  1726. We need to stop loading here. Otherwise we might do loading after closeURL,
  1727. which could lead to a problem like the one above.
  1728. 2002-11-05 Darin Adler <darin@apple.com>
  1729. - changed our MacBinary decoding to not pay any attention to the comment
  1730. Before we would "fail to decode" if the comment was truncated, now we just
  1731. don't worry about it.
  1732. * Downloads.subproj/WebMacBinaryDecoder.h: Remove _commentLength and _commentEnd.
  1733. * Downloads.subproj/WebMacBinaryDecoder.m:
  1734. (-[WebMacBinaryDecoder decodeData:dataForkData:resourceForkData:]): Remove code
  1735. to get _commentLength and code to compute _commentEnd.
  1736. (-[WebMacBinaryDecoder finishDecoding]): Check offset against the resource fork
  1737. end rather than the comment end to see if we got enough data.
  1738. 2002-11-05 John Sullivan <sullivan@apple.com>
  1739. * Resources/url_icon.tiff:
  1740. reverted generic URL icon back to the one that
  1741. looks like a document until we get something from
  1742. HI that SJ likes
  1743. 2002-11-05 Chris Blumenberg <cblu@apple.com>
  1744. Fixed: 3074108 - Decode macbinary files during download
  1745. * Downloads.subproj/WebDownloadDecoder.h:
  1746. * Downloads.subproj/WebDownloadHandler.h:
  1747. * Downloads.subproj/WebDownloadHandler.m:
  1748. (-[WebDownloadHandler initWithDataSource:]):
  1749. (-[WebDownloadHandler dealloc]):
  1750. (-[WebDownloadHandler decodeHeaderData:dataForkData:resourceForkData:]):
  1751. (-[WebDownloadHandler decodeData:dataForkData:resourceForkData:]):
  1752. (-[WebDownloadHandler closeFile]):
  1753. (-[WebDownloadHandler cleanUpAfterFailure]):
  1754. (-[WebDownloadHandler createFileIfNecessary]):
  1755. (-[WebDownloadHandler writeData:toFork:]):
  1756. (-[WebDownloadHandler writeDataForkData:resourceForkData:]):
  1757. (-[WebDownloadHandler dataIfDoneBufferingData:]):
  1758. (-[WebDownloadHandler receivedData:]):
  1759. (-[WebDownloadHandler finishDecoding]):
  1760. (-[WebDownloadHandler finishedLoading]):
  1761. (-[WebDownloadHandler cancel]):
  1762. * Downloads.subproj/WebMacBinaryDecoder.h:
  1763. * Downloads.subproj/WebMacBinaryDecoder.m:
  1764. (-[WebMacBinaryDecoder decodeData:dataForkData:resourceForkData:]):
  1765. (-[WebMacBinaryDecoder fileAttributes]):
  1766. (-[WebMacBinaryDecoder filename]):
  1767. * Misc.subproj/WebKitErrors.h: added new errors
  1768. * WebView.subproj/WebMainResourceClient.m:
  1769. (-[WebMainResourceClient handle:didReceiveResponse:]): don't send response to download handler
  1770. (-[WebMainResourceClient handle:didReceiveData:]): watch for decoding errors
  1771. 2002-11-05 Ken Kocienda <kocienda@apple.com>
  1772. Fix for this bug:
  1773. Radar 3092747 (javascript cookieEnabled property returns incorrect value)
  1774. Now, we return "true" for navigator.cookieEnabled when
  1775. "Only accept cookies from the same domain as the current page" option
  1776. is selected is user preferences.
  1777. * WebCoreSupport.subproj/WebCookieAdapter.m:
  1778. (-[WebCookieAdapter cookiesEnabled])
  1779. 2002-11-05 John Sullivan <sullivan@apple.com>
  1780. - fixed 3091271 -- missing plug-in icon is on white
  1781. background, not transparent.
  1782. * Resources/nullplugin.tiff: Photoshopped the white away. It's
  1783. still ugly, but that's a separate bug (3091274)
  1784. 2002-11-05 Maciej Stachowiak <mjs@apple.com>
  1785. - fixed 3083732 - SJ: window comes out blank on samsung site
  1786. * WebCoreSupport.subproj/WebBridge.m:
  1787. (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]):
  1788. Don't start loading if the URL is exactly the same as the parent
  1789. URL. We may need a more stringent check, but this seems to match
  1790. the tolerance of other browsers OK.
  1791. 2002-11-05 Maciej Stachowiak <mjs@apple.com>
  1792. Added request and frame to click policy callback.
  1793. * WebView.subproj/WebControllerPolicyDelegate.h:
  1794. * WebView.subproj/WebDefaultPolicyDelegate.m:
  1795. (-[WebDefaultPolicyDelegate clickPolicyForElement:button:modifierFlags:request:inFrame:]):
  1796. * WebView.subproj/WebFramePrivate.h:
  1797. * WebView.subproj/WebFramePrivate.m:
  1798. (-[WebFrame _continueAfterClickPolicyForEvent:request:]):
  1799. (-[WebFrame _loadURL:loadType:clientRedirect:triggeringEvent:]):
  1800. 2002-11-04 Richard Williamson <rjw@apple.com>
  1801. Changes to support cursive letter forms. It works, but I've
  1802. disabled it for now. It's buggy and needs cleanup.
  1803. Arabic now renders correctly except for ligature substitution.
  1804. * Misc.subproj/WebUnicode.h:
  1805. * Misc.subproj/WebUnicode.m:
  1806. (_unicodeIsMark):
  1807. (getShape):
  1808. (prevChar):
  1809. (nextChar):
  1810. (prevLogicalCharJoins):
  1811. (nextLogicalCharJoins):
  1812. (glyphVariantLogical):
  1813. (shapedString):
  1814. * Misc.subproj/WebUnicodeTables.m:
  1815. * WebCoreSupport.subproj/WebTextRenderer.m:
  1816. (-[WebTextRenderer drawCharacters:stringLength:fromCharacterPosition:toCharacterPosition:atPoint:withPadding:withTextColor:backgroundColor:rightToLeft:]):
  1817. (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:]):
  1818. * WebKitPrefix.h:
  1819. 2002-11-04 Maciej Stachowiak <mjs@apple.com>
  1820. Changes to send NSEvents all the way through WebCore and then pass
  1821. them back out to WebKit, so that click policy can have a
  1822. WebResourceRequest added.
  1823. * WebCoreSupport.subproj/WebBridge.m:
  1824. (-[WebBridge loadURL:reload:triggeringEvent:]):
  1825. (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]):
  1826. * WebView.subproj/WebFramePrivate.h:
  1827. * WebView.subproj/WebFramePrivate.m:
  1828. (-[WebFrame _continueAfterClickPolicyForEvent:]):
  1829. (-[WebFrame _loadURL:loadType:clientRedirect:triggeringEvent:]):
  1830. * WebView.subproj/WebHTMLView.m:
  1831. (-[WebHTMLView mouseUp:]):
  1832. * WebView.subproj/WebHTMLViewPrivate.h:
  1833. * WebView.subproj/WebHTMLViewPrivate.m:
  1834. 2002-11-04 Chris Blumenberg <cblu@apple.com>
  1835. Fixed - 3091658: REGRESSION: cmd-left for back doesn't work in plain-text viewer
  1836. We now pass text field key events to the next responder which would be WebView in this case.
  1837. * WebView.subproj/WebTextView.m:
  1838. (-[WebTextView keyDown:]):
  1839. (-[WebTextView keyUp:]):
  1840. 2002-11-04 Darin Adler <darin@apple.com>
  1841. - fixed 3090257 -- "leak the world" using the Wallace and Gromit "console"
  1842. * Plugins.subproj/WebNetscapePluginStream.m: Update for changes to the base delegate.
  1843. (-[WebNetscapePluginStream start]): Use loadWithRequest:.
  1844. (-[WebNetscapePluginStream stop]): Call cancel instead of just canceling the handle
  1845. directly. This fixes the world leak.
  1846. (-[WebNetscapePluginStream cancel]): Do some of the work that was formerly in "stop".
  1847. * WebView.subproj/WebMainResourceClient.m:
  1848. (-[WebMainResourceClient handle:willSendRequest:]): Call the "stop loading URL" whenever
  1849. we cancel I/O, so we don't leak the world.
  1850. (-[WebMainResourceClient handle:didReceiveResponse:]): Ditto.
  1851. * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge objectLoadedFromCache:response:size:]):
  1852. * WebCoreSupport.subproj/WebSubresourceClient.m: (-[WebSubresourceClient handleDidFinishLoading:]):
  1853. * WebView.subproj/WebControllerPrivate.h:
  1854. * WebView.subproj/WebControllerPrivate.m:
  1855. (-[WebController _finishedLoadingResourceFromDataSource:]):
  1856. Fix a typo in the word "finished".
  1857. * WebView.subproj/WebBaseResourceHandleDelegate.m:
  1858. (-[WebBaseResourceHandleDelegate handle:willSendRequest:]): Tweak.
  1859. (-[WebBaseResourceHandleDelegate cancel]): Tweak.
  1860. * Panels.subproj/WebStandardPanels.m:
  1861. (-[WebStandardPanels didStartLoadingURL:inWindow:]): Add assertions.
  1862. (-[WebStandardPanels didStopLoadingURL:inWindow:]): Ditto.
  1863. (-[WebStandardPanels _didStartLoadingURL:inController:]): Ditto.
  1864. (-[WebStandardPanels _didStopLoadingURL:inController:]): Ditto.
  1865. 2002-11-04 Darin Adler <darin@apple.com>
  1866. * Downloads.subproj/WebMacBinaryDecoder.h: Removed many unneeded fields.
  1867. * Downloads.subproj/WebMacBinaryDecoder.m:
  1868. (+[WebMacBinaryDecoder canDecodeHeaderData:]): Added comments. Changed maximum filename
  1869. length to 63 as the format supports, rather than the 31 that's based on historical
  1870. HFS limitations. Fix endian dependency in CRC check.
  1871. (-[WebMacBinaryDecoder decodeData:dataForkData:resourceForkData:]): Simplified this,
  1872. and removed the state machine and the accumulator. Also added some asserts. Fixed endian
  1873. dependency in the code to extract the header.
  1874. (-[WebMacBinaryDecoder finishDecoding]): New simpler check now that we don't have a
  1875. _streamComplete boolean.
  1876. (-[WebMacBinaryDecoder fileAttributes]): Rewrote to take advantage of the above changes,
  1877. and also to use kCFAbsoluteTimeIntervalSince1904 rather than parsing a date string.
  1878. * Downloads.subproj/crc16.h: Tweaks.
  1879. * Downloads.subproj/crc16.m: Tweaks.
  1880. 2002-11-04 Darin Adler <darin@apple.com>
  1881. * WebCoreSupport.subproj/WebImageRenderer.m: (-[WebImageRenderer dealloc]):
  1882. Replaced a useless call to stopAnimation with a couple of asserts.
  1883. 2002-11-04 John Sullivan <sullivan@apple.com>
  1884. * Resources/url_icon.tiff:
  1885. new "generic URL" icon from HI -- this one looks like
  1886. a red ribbon (!)
  1887. 2002-11-03 Darin Adler <darin@apple.com>
  1888. * Plugins.subproj/WebPluginError.h:
  1889. * Plugins.subproj/WebPluginError.m:
  1890. Not __MyCompanyName__, but rather Apple Computer.
  1891. 2002-11-03 Darin Adler <darin@apple.com>
  1892. * Plugins.subproj/WebPlugin.h: Fix comment.
  1893. * Plugins.subproj/WebPluginError.m: (-[WebPluginErrorPrivate dealloc]):
  1894. Fix leak by calling [super dealloc].
  1895. * WebView.subproj/WebFramePrivate.m: (-[WebFramePrivate dealloc]): Remove the
  1896. timer invalidate since, as Trey pointed out, it's pointless to invalidate a
  1897. timer in dealloc if it's retaining this object while valid.
  1898. 2002-11-03 Chris Blumenberg <cblu@apple.com>
  1899. - Added MacBinary decoding code. Not yet used.
  1900. * Downloads.subproj/WebMacBinaryDecoder.h: Added.
  1901. * Downloads.subproj/WebMacBinaryDecoder.m: Added.
  1902. (+[WebMacBinaryDecoder canDecodeHeaderData:]):
  1903. (-[WebMacBinaryDecoder init]):
  1904. (-[WebMacBinaryDecoder dealloc]):
  1905. (-[WebMacBinaryDecoder decodeData:dataForkData:resourceForkData:]):
  1906. (-[WebMacBinaryDecoder finishDecoding]):
  1907. (-[WebMacBinaryDecoder fileAttributes]):
  1908. * Downloads.subproj/crc16.h: Added.
  1909. * Downloads.subproj/crc16.m: Added.
  1910. (CRC16):
  1911. * Plugins.subproj/WebPluginPackage.m:
  1912. (-[WebPluginPackage isLoaded]):
  1913. * WebKit.pbproj/project.pbxproj:
  1914. 2002-11-03 Darin Adler <darin@apple.com>
  1915. * English.lproj/StringsNotToBeLocalized.txt: Update for recent
  1916. changes both to the code here and to the extract script.
  1917. 2002-11-03 Darin Adler <darin@apple.com>
  1918. - fixed 3091300 -- "prelighting" on local page is still slow, despite recent bug fix
  1919. Turns out all updating would be slow if any resources on the page failed to load.
  1920. * WebCoreSupport.subproj/WebSubresourceClient.m:
  1921. (+[WebSubresourceClient startLoadingResource:withURL:referrer:forDataSource:]):
  1922. Call the new reportError instead of cancel.
  1923. (-[WebSubresourceClient handle:didFailLoadingWithError:]): Ditto.
  1924. 2002-11-02 Darin Adler <darin@apple.com>
  1925. * Panels.subproj/WebAuthenticationPanel.m: (-[WebAuthenticationPanel setUpForRequest:]):
  1926. Do the previous fix one better by using _web_hostWithPort.
  1927. 2002-11-02 Darin Adler <darin@apple.com>
  1928. - fixed bug where the address of an NSNumber object would be used for the port number
  1929. * Panels.subproj/WebAuthenticationPanel.m: (-[WebAuthenticationPanel setUpForRequest:]):
  1930. Call intValue on the object returned from [NSURL port].
  1931. 2002-11-01 Darin Adler <darin@apple.com>
  1932. * Plugins.subproj/WebBaseNetscapePluginView.m: (-[WebBaseNetscapePluginView sendEvent:]):
  1933. Fixed uninitialized variable problem.
  1934. 2002-11-01 Darin Adler <darin@apple.com>
  1935. - fixed 3090239 -- crash on window close
  1936. * WebView.subproj/WebFramePrivate.m: (-[WebFrame _detachFromParent]): Nil out the bridge and
  1937. release it so we don't close the URL twice.
  1938. - fixed 3058598 -- animated gif animates repeatedly in Alex, but only once in other browsers
  1939. * WebCoreSupport.subproj/WebImageRenderer.h: Added fields used by bug workaround.
  1940. * WebCoreSupport.subproj/WebImageRenderer.m:
  1941. (-[WebImageRenderer blockHasGIFExtensionSignature:length:]): Helper method for bug workaround.
  1942. (-[WebImageRenderer checkDataForGIFExtensionSignature:]): Checks incoming data for the GIF
  1943. extension signatures.
  1944. (-[WebImageRenderer initWithData:]): Override to call checkDataForGIFExtensionSignature.
  1945. (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]): Call checkDataForGIFExtensionSignature.
  1946. (-[WebImageRenderer repetitionCount]): Return 1 if we were going to return 0, but we didn't see a
  1947. GIF extension signature. This workaround can be removed once we require a system new enough to have
  1948. the bug fix for bug 3090341.
  1949. (-[WebImageRenderer nextFrame:]): Stop on last frame, don't wrap around to first.
  1950. * WebCoreSupport.subproj/WebImageRendererFactory.h: Update for changes to WebCore.
  1951. * WebCoreSupport.subproj/WebImageRendererFactory.m: Tweaks.
  1952. * WebView.subproj/WebImageRepresentation.m: Update imports.
  1953. * WebView.subproj/WebImageView.m: Update imports.
  1954. 2002-11-01 Richard Williamson <rjw@apple.com>
  1955. Implemented rendering of diacriticals.
  1956. * Misc.subproj/WebUnicode.h:
  1957. * Misc.subproj/WebUnicode.m:
  1958. (_unicodeDigitValue):
  1959. (_unicodeCategory):
  1960. (_unicodeDirection):
  1961. (_unicodeJoining):
  1962. (_unicodeDecompositionTag):
  1963. (_unicodeMirrored):
  1964. (_unicodeCombiningClass):
  1965. (_unicodeLower):
  1966. (_unicodeUpper):
  1967. * WebCoreSupport.subproj/WebTextRenderer.m:
  1968. (-[WebTextRenderer drawCharacters:stringLength:fromCharacterPosition:toCharacterPosition:atPoint:withPadding:withTextColor:backgroundColor:rightToLeft:]):
  1969. (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:]):
  1970. (-[WebTextRenderer extendCharacterToGlyphMapToInclude:]):
  1971. 2002-11-01 Darin Adler <darin@apple.com>
  1972. * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
  1973. 2002-11-01 Chris Blumenberg <cblu@apple.com>
  1974. Check that the plug-in is loaded before calling it.
  1975. * Plugins.subproj/WebBaseNetscapePluginStream.h:
  1976. * Plugins.subproj/WebBaseNetscapePluginStream.m:
  1977. (-[WebBaseNetscapePluginStream dealloc]):
  1978. (-[WebBaseNetscapePluginStream setPluginPointer:]):
  1979. (-[WebBaseNetscapePluginStream setResponse:]):
  1980. (-[WebBaseNetscapePluginStream receivedData:]):
  1981. (-[WebBaseNetscapePluginStream destroyStreamWithReason:]):
  1982. (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
  1983. * Plugins.subproj/WebBasePluginPackage.h:
  1984. * Plugins.subproj/WebBasePluginPackage.m:
  1985. (-[WebBasePluginPackage isLoaded]):
  1986. * Plugins.subproj/WebNetscapePluginDocumentView.m:
  1987. (-[WebNetscapePluginDocumentView setDataSource:]):
  1988. * Plugins.subproj/WebNetscapePluginPackage.m:
  1989. (-[WebNetscapePluginPackage isLoaded]):
  1990. * Plugins.subproj/WebNetscapePluginRepresentation.m:
  1991. (-[WebNetscapePluginRepresentation receivedData:withDataSource:]):
  1992. 2002-11-01 Chris Blumenberg <cblu@apple.com>
  1993. - Moved plug-in error handling to WebResourceLoadDelegate
  1994. - Report plug-in load failure, java load failure, and plug-in not found errors.
  1995. - Added WebPluginError, subclass of WebError.
  1996. - Attempted fix: 3090675 - Standalone WMP (Window Media Player) content crashes Alexander
  1997. * English.lproj/Localizable.strings:
  1998. * Misc.subproj/WebKitErrors.h:
  1999. * Plugins.subproj/WebBaseNetscapePluginView.m:
  2000. (-[WebBaseNetscapePluginView sendEvent:]): don't send event to null function
  2001. * Plugins.subproj/WebNetscapePluginDocumentView.m:
  2002. (-[WebNetscapePluginDocumentView setDataSource:]): report plug-in load failure
  2003. * Plugins.subproj/WebNullPluginView.h:
  2004. * Plugins.subproj/WebNullPluginView.m: take a WebPluginError
  2005. (-[WebNullPluginView dealloc]):
  2006. (-[WebNullPluginView viewDidMoveToWindow]):
  2007. * Plugins.subproj/WebPluginError.h: Added.
  2008. * Plugins.subproj/WebPluginError.m: Added.
  2009. (-[WebPluginErrorPrivate dealloc]):
  2010. (-[WebPluginError dealloc]):
  2011. (-[WebPluginError pluginPageURL]):
  2012. (-[WebPluginError pluginName]):
  2013. (-[WebPluginError MIMEType]):
  2014. * WebCoreSupport.subproj/WebBridge.m:
  2015. (-[WebBridge viewForPluginWithURL:attributes:baseURL:MIMEType:]): report plug-in load failure
  2016. (-[WebBridge viewForJavaAppletWithFrame:attributes:baseURL:]): report plug-in load failure
  2017. * WebKit.pbproj/project.pbxproj:
  2018. * WebView.subproj/WebController.m:
  2019. (-[WebResourceLoadDelegate pluginFailedWithError:dataSource:]): added, does nothing
  2020. * WebView.subproj/WebControllerPolicyDelegate.h:
  2021. * WebView.subproj/WebResourceLoadDelegate.h:
  2022. * WebView.subproj/WebView.m:
  2023. (+[WebView initialize]): added new error strings
  2024. 2002-11-01 John Sullivan <sullivan@apple.com>
  2025. - some weaning of WebBookmark API from WebBookmarkGroup
  2026. * Bookmarks.subproj/WebBookmark.m:
  2027. (-[WebBookmark dealloc]):
  2028. set group to nil instead of asserting that it's non-nil
  2029. * Bookmarks.subproj/WebBookmarkGroup.h:
  2030. removed obsolete ivar _bookmarksByID
  2031. * Bookmarks.subproj/WebBookmarkGroup.m:
  2032. (-[WebBookmarkGroup initWithFile:]):
  2033. removed obsolete ivar _bookmarksByID
  2034. (-[WebBookmarkGroup dealloc]):
  2035. removed obsolete ivar _bookmarksByID
  2036. (-[WebBookmarkGroup removeBookmark:]):
  2037. removed this unnecessary method; callers need to use
  2038. [[bookmark parent] removeChild:bookmark] instead
  2039. 2002-11-01 Trey Matteson <trey@apple.com>
  2040. Moved involved code for loading URLs from WebBridge up to WebFrame, with a little
  2041. consolidation along the way. I need to get all this stuff in one place in prep
  2042. for doing back-forward properly with frames. There should be no change in
  2043. functionality as a result of these changes.
  2044. * WebCoreSupport.subproj/WebBridge.m:
  2045. (-[WebBridge loadURL:reload:]):
  2046. (-[WebBridge postWithURL:data:contentType:]):
  2047. (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]):
  2048. Much of the guts of these is moved to WebFramePrivate.
  2049. * WebView.subproj/WebDataSourcePrivate.h:
  2050. * WebView.subproj/WebDataSourcePrivate.m:
  2051. (-[WebDataSource _setIsClientRedirect:]):
  2052. (-[WebDataSource _isClientRedirect]):
  2053. Keep state of whether we're processing a redirect in DataSource. I had previously
  2054. to do this with a loadType, but that failed because cliRedir is orthogonal.
  2055. * WebView.subproj/WebFramePrivate.h:
  2056. WebFrameLoadTypeClientRedirect is gone.
  2057. * WebView.subproj/WebFramePrivate.m:
  2058. (-[WebFramePrivate init]):
  2059. Initialize loadType explicitly.
  2060. (-[WebFrame _transitionToCommitted]):
  2061. Test [dataSource _isClientRedirect] instead of looking at loadType.
  2062. (-[WebFrame _isLoadComplete]):
  2063. Nuke WebFrameLoadTypeClientRedirect
  2064. (-[WebFrame _goToItem:withFrameLoadType:]):
  2065. Nuke WebFrameLoadTypeClientRedirect.
  2066. (-[WebFrame _loadRequest:]):
  2067. Helper method moved from WebBridge.
  2068. (-[WebFrame _loadURL:loadType:clientRedirect:]):
  2069. Core impl moved up from WebBridge.
  2070. (-[WebFrame _postWithURL:data:contentType:]):
  2071. Core impl moved up from WebBridge.
  2072. 2002-11-01 Darin Adler <darin@apple.com>
  2073. - implemented loop counts
  2074. * WebCoreSupport.subproj/WebImageRenderer.h: Added repetitionsComplete field.
  2075. * WebCoreSupport.subproj/WebImageRenderer.m:
  2076. (-[WebImageRenderer repetitionCount]): Get NSImageLoopCount.
  2077. (-[WebImageRenderer nextFrame:]): Check repetitionCount and stop once we hit it.
  2078. 2002-10-31 Darin Adler <darin@apple.com>
  2079. * WebView.subproj/WebFrame.m: (-[WebFrame setController:]): Add an assert,
  2080. hoping to catch a reported bug earlier or disprove one theory.
  2081. 2002-10-31 Trey Matteson <trey@apple.com>
  2082. Added API to support 3072505 - SnapBack for user-entered page address
  2083. Refixed 3041616 - Extra page added in back button history
  2084. Previous fix was stepped on by a later checkin. Re-established that fix, then
  2085. went on to make sure we have the final URL and title in the BF item in the
  2086. case of a client redirect. Also handles redirects that happen within frames.
  2087. Fixed 3078560 - div added to "back" list
  2088. * History.subproj/WebBackForwardList.h:
  2089. * History.subproj/WebBackForwardList.m:
  2090. (-[WebBackForwardList containsEntry:]):
  2091. Added new API for 3072505.
  2092. * WebCoreSupport.subproj/WebBridge.h:
  2093. * WebCoreSupport.subproj/WebBridge.m:
  2094. (-[WebBridge reportClientRedirectTo:delay:fireDate:]):
  2095. (-[WebBridge reportClientRedirectCancelled]):
  2096. (-[WebBridge loadURL:reload:]):
  2097. Added logging. Renamed flag. Establish the right loadtype and set BF items
  2098. from the old dataSource onto the new dataSource in the case of a client redirect.
  2099. * WebView.subproj/WebDataSourcePrivate.h:
  2100. * WebView.subproj/WebDataSourcePrivate.m:
  2101. (-[WebDataSource _setRequest:]):
  2102. Add logging.
  2103. (-[WebDataSource _addBackForwardItem:]):
  2104. (-[WebDataSource _addBackForwardItems:]):
  2105. (-[WebDataSource _backForwardItems]):
  2106. New setters/getters to support setting up the new dataSource of a client redirect.
  2107. * WebView.subproj/WebFramePrivate.h:
  2108. New loadType WebFrameLoadTypeClientRedirect.
  2109. * WebView.subproj/WebFramePrivate.m:
  2110. (-[WebFrame _transitionToCommitted]):
  2111. Update the URL in the BF list in the client redirect case.
  2112. (-[WebFrame _isLoadComplete]):
  2113. NOP case for WebFrameLoadTypeClientRedirect
  2114. (-[WebFrame _goToItem:withFrameLoadType:]):
  2115. ASSERT_NOT_REACHED case for WebFrameLoadTypeClientRedirect
  2116. 2002-10-31 Richard Williamson <rjw@apple.com>
  2117. Corrected extern definitions of lookup tables.
  2118. * Misc.subproj/WebUnicode.h:
  2119. * Misc.subproj/WebUnicode.m:
  2120. (_unicodeDirection):
  2121. * WebCoreSupport.subproj/WebTextRenderer.m:
  2122. (+[WebTextRenderer initialize]):
  2123. === Alexander-30 ===
  2124. 2002-10-30 Richard Williamson <rjw@apple.com>
  2125. More work on bidi and contextual forms.
  2126. Table lookup code for unicode characters attributes.
  2127. * Misc.subproj/WebUnicode.h: Added.
  2128. * Misc.subproj/WebUnicode.m: Added.
  2129. (_unicodeDigitValue):
  2130. (_unicodeCategory):
  2131. (_unicodeDirection):
  2132. (_unicodeJoining):
  2133. (_unicodeDecompositionTag):
  2134. (_unicodeMirrored):
  2135. (_unicodeMirroredChar):
  2136. (_unicodeCombiningClass):
  2137. (_unicodeLower):
  2138. (_unicodeUpper):
  2139. (WebKitInitializeUnicode):
  2140. * Misc.subproj/WebUnicodeTables.m: Added.
  2141. * WebKit.pbproj/project.pbxproj:
  2142. Additional logging parameter.
  2143. * Misc.subproj/WebKitLogging.h:
  2144. * Misc.subproj/WebKitLogging.m:
  2145. 2002-10-30 Maciej Stachowiak <mjs@apple.com>
  2146. Pass WebResourceRequest rather than just NSURL to URL policy
  2147. delegate method.
  2148. * WebView.subproj/WebControllerPolicyDelegate.h:
  2149. * WebView.subproj/WebDefaultPolicyDelegate.h:
  2150. * WebView.subproj/WebDefaultPolicyDelegate.m:
  2151. (+[WebDefaultPolicyDelegate defaultURLPolicyForRequest:]):
  2152. (-[WebDefaultPolicyDelegate URLPolicyForRequest:inFrame:]):
  2153. * WebView.subproj/WebFramePrivate.m:
  2154. (-[WebFrame _shouldShowRequest:]):
  2155. 2002-10-30 Darin Adler <darin@apple.com>
  2156. * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
  2157. 2002-10-30 Chris Blumenberg <cblu@apple.com>
  2158. Fixed: 3088122 - Assertion failure/crash closing window with QuickTime streaming in
  2159. * WebView.subproj/WebDataSourcePrivate.m:
  2160. (-[WebDataSource _setMainDocumentError:]): call receivedError on the representation.
  2161. 2002-10-30 Darin Adler <darin@apple.com>
  2162. - fixed memory leaks in plugin package creation code
  2163. * Plugins.subproj/WebNetscapePluginPackage.m:
  2164. (-[WebNetscapePluginPackage initWithPath:]): Rearrange this code, and make sure
  2165. that it does a [self release] if it's going to return nil instead of self.
  2166. (-[WebNetscapePluginPackage unload]): Set bundle to 0 when we release it.
  2167. (-[WebNetscapePluginPackage dealloc]): Release the bundle if it's not 0.
  2168. * Plugins.subproj/WebPluginPackage.m:
  2169. (-[WebPluginPackage initWithPath:]): Rearrange this code, and make sure
  2170. that it does a [self release] if it's going to return nil instead of self.
  2171. 2002-10-30 Darin Adler <darin@apple.com>
  2172. - fixed 3086564 -- REGRESSION: meta-refresh to the same page doesn't refresh
  2173. The key is to respect the new reload: parameter from the bridge.
  2174. * WebCoreSupport.subproj/WebBridge.m:
  2175. (-[WebBridge loadURL:reload:]): Don't ever treat a reload as a redirect.
  2176. Set the cache policy to WebRequestCachePolicyLoadFromOrigin if it's a reload.
  2177. - fixed 3087214 -- REGRESSION: <WebKit/WebKit.h> contains #import of non-existent header
  2178. * Misc.subproj/WebKit.h: Removed import of WebControllerSets.h, which is private.
  2179. 2002-10-30 Maciej Stachowiak <mjs@apple.com>
  2180. Another step towards the policy API change - add request argument
  2181. to file URL policy and remove isDirectory argument.
  2182. * WebView.subproj/WebControllerPolicyDelegate.h:
  2183. * WebView.subproj/WebDefaultPolicyDelegate.m:
  2184. (-[WebDefaultPolicyDelegate fileURLPolicyForMIMEType:andRequest:inFrame:]):
  2185. * WebView.subproj/WebFrame.m:
  2186. (-[WebFrame setProvisionalDataSource:]):
  2187. * WebView.subproj/WebFramePrivate.h:
  2188. * WebView.subproj/WebFramePrivate.m:
  2189. (-[WebFrame _shouldShowRequest:]):
  2190. * WebView.subproj/WebMainResourceClient.m:
  2191. (-[WebMainResourceClient handle:willSendRequest:]):
  2192. 2002-10-29 Maciej Stachowiak <mjs@apple.com>
  2193. First step towards policy API change. Pass request instead of URL
  2194. to content policy delegate method.
  2195. * WebView.subproj/WebControllerPolicyDelegate.h:
  2196. * WebView.subproj/WebDefaultPolicyDelegate.m:
  2197. * WebView.subproj/WebMainResourceClient.m:
  2198. (-[WebMainResourceClient handle:didReceiveResponse:]):
  2199. 2002-10-29 Maciej Stachowiak <mjs@apple.com>
  2200. - fixed 3087548 - REGRESSION: two windows open for netflix confirmation
  2201. * WebView.subproj/WebControllerPrivate.h:
  2202. * WebView.subproj/WebControllerPrivate.m:
  2203. (-[WebController _findFrameInThisWindowNamed:]): Added this function back,
  2204. and added check for top-level frame name.
  2205. (-[WebController _findFrameNamed:]): Use
  2206. _findFrameInThisWindowNamed: to make sure top-level frame names
  2207. get checked.
  2208. 2002-10-29 Chris Blumenberg <cblu@apple.com>
  2209. Created Downloads.subproj to hold the to-be-implemented download decoders.
  2210. * Downloads.subproj/WebDownloadDecoder.h: Added.
  2211. * Downloads.subproj/WebDownloadHandler.h: Added.
  2212. * Downloads.subproj/WebDownloadHandler.m: Added.
  2213. (-[WebDownloadHandler initWithDataSource:]):
  2214. (-[WebDownloadHandler dealloc]):
  2215. (-[WebDownloadHandler errorWithCode:]):
  2216. (-[WebDownloadHandler receivedResponse:]):
  2217. (-[WebDownloadHandler receivedData:]):
  2218. (-[WebDownloadHandler finishedLoading]):
  2219. (-[WebDownloadHandler cancel]):
  2220. * Misc.subproj/WebDownloadHandler.h: Removed.
  2221. * Misc.subproj/WebDownloadHandler.m: Removed.
  2222. * WebKit.pbproj/project.pbxproj:
  2223. 2002-10-28 Darin Adler <darin@apple.com>
  2224. - fixed crash I just introduced
  2225. * Plugins.subproj/WebPluginDatabase.m: (-[WebPluginDatabase init]):
  2226. Remove the release call here. When I added the autorelease, I didn't realize that
  2227. the caller was doing a release.
  2228. 2002-10-28 Trey Matteson <trey@apple.com>
  2229. Fixed 3041616 - Extra page added in back button history
  2230. Client-side redirects would always put an extra item in the backforward list.
  2231. According to Darin this is a regression all the way back from functionality moving
  2232. from WebBrowser to WebKit.
  2233. * WebCoreSupport.subproj/WebBridge.h:
  2234. Added state to know if we're doing an "internal" type of load
  2235. * WebCoreSupport.subproj/WebBridge.m:
  2236. (-[WebBridge reportClientRedirectTo:delay:fireDate:]):
  2237. Set internalLoad bit if delay==0
  2238. (-[WebBridge reportClientRedirectCancelled]):
  2239. Clear internalLoad
  2240. (-[WebBridge loadURL:]):
  2241. Set frame's loadType if doing an internal load (similar to what we do when loading
  2242. child frames)
  2243. 2002-10-28 Darin Adler <darin@apple.com>
  2244. - fixed storage leak of WebNetscapePluginPackage objects
  2245. * Plugins.subproj/WebBasePluginPackage.m:
  2246. (+[WebBasePluginPackage pluginWithPath:]): Add missing autorelease.
  2247. * Plugins.subproj/WebBasePluginPackage.h:
  2248. * Plugins.subproj/WebPluginController.h:
  2249. * Plugins.subproj/WebPluginController.m:
  2250. * Plugins.subproj/WebPluginPackage.h:
  2251. * Plugins.subproj/WebPluginPackage.m:
  2252. Not __MyCompanyName__, but rather Apple Computer.
  2253. 2002-10-28 Darin Adler <darin@apple.com>
  2254. - fixed bug that caused us to leak all WebResourceHandles used for subresources
  2255. * WebCoreSupport.subproj/WebSubresourceClient.m:
  2256. (-[WebSubresourceClient dealloc]): Remove bogus "currentURL == nil" assert.
  2257. (+[WebSubresourceClient startLoadingResource:withURL:referrer:forDataSource:]):
  2258. Use the new loadWithRequest: call instead of making handle and doing loadWithDelegate:.
  2259. This is where the leak was, because no one ever released the handle, but releasing it
  2260. right away would be too soon.
  2261. * WebView.subproj/WebBaseResourceHandleDelegate.h: Added defersCallbacks field,
  2262. loadWithRequest: method, and setDefersCallbacks: method. Removed handle method.
  2263. * WebView.subproj/WebBaseResourceHandleDelegate.m:
  2264. (-[WebBaseResourceHandleDelegate loadWithRequest:]): New method. Sets up the handle,
  2265. set the defersCallbacks state on it, and calls loadWithDelegate:.
  2266. (-[WebBaseResourceHandleDelegate setDefersCallbacks:]): Stores defersCallbacks state,
  2267. and also sets it on the handle, if any.
  2268. (-[WebBaseResourceHandleDelegate handle:willSendRequest:]): Remove code to set up
  2269. the handle, since we now do that at loadWithRequest: time.
  2270. * WebView.subproj/WebDataSourcePrivate.h: Remove mainHandle field.
  2271. * WebView.subproj/WebDataSourcePrivate.m:
  2272. (-[WebDataSourcePrivate dealloc]): Don't release mainHandle.
  2273. (-[WebDataSource _setPrimaryLoadComplete:]): Ditto.
  2274. (-[WebDataSource _startLoading]): Use loadWithRequest: on the client, no need to deal
  2275. with the handle directly at all.
  2276. (-[WebDataSource _addSubresourceClient:]): Call setDefersCallbacks: on the client.
  2277. (-[WebDataSource _defersCallbacksChanged]): Ditto.
  2278. * WebView.subproj/WebControllerPrivate.m: Remove unneeded include.
  2279. * WebView.subproj/WebMainResourceClient.m: Ditto.
  2280. 2002-10-28 Chris Blumenberg <cblu@apple.com>
  2281. Fixed: 3056726 - View Source window always displays the source in current system encoding
  2282. Fixed: 3019352 - Text encoding is not handled when viewing plain text
  2283. * WebView.subproj/WebDataSource.h:
  2284. * WebView.subproj/WebDataSource.m:
  2285. (-[WebDataSource stringWithData:]): added, creates a string using the specified encoding.
  2286. * WebView.subproj/WebHTMLRepresentation.m:
  2287. (-[WebHTMLRepresentation documentSource]): uses the bridge specified encoding when creating the string
  2288. * WebView.subproj/WebTextView.h:
  2289. * WebView.subproj/WebTextView.m:
  2290. (-[WebTextView dataSourceUpdated:]): use stringWithData:
  2291. (-[WebTextView supportsTextEncoding]): Yup
  2292. 2002-10-28 Richard Williamson <rjw@apple.com>
  2293. Fixed crasher.
  2294. * WebCoreSupport.subproj/WebTextRenderer.m:
  2295. (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:]):
  2296. 2002-10-28 John Sullivan <sullivan@apple.com>
  2297. * Bookmarks.subproj/WebBookmark.h:
  2298. * Bookmarks.subproj/WebBookmark.m:
  2299. (-[WebBookmark contentMatches:]): new method, returns YES if
  2300. two bookmarks are the same, ignoring group and parent.
  2301. 2002-10-28 Trey Matteson <trey@apple.com>
  2302. Finished 2998200 - access to most-recent in submenu of back & forward buttons
  2303. * WebView.subproj/WebDataSourcePrivate.h:
  2304. The BF items we are going to and from were moved here from
  2305. WebFrame because of timing problems among multiple data sources
  2306. when using the BF buttons during a load.
  2307. In addition, the datasource has a list of relevant BF items for
  2308. which it keeps their titles up to date.
  2309. * WebView.subproj/WebDataSourcePrivate.m:
  2310. (-[WebDataSourcePrivate dealloc]):
  2311. Free new state.
  2312. (-[WebDataSource _setTitle:]):
  2313. Update titles of BF items.
  2314. (-[WebDataSource _provisionalBackForwardItem]):
  2315. (-[WebDataSource _setProvisionalBackForwardItem:]):
  2316. (-[WebDataSource _previousBackForwardItem]):
  2317. (-[WebDataSource _setPreviousBackForwardItem:]):
  2318. (-[WebDataSource _addBackForwardItem:]):
  2319. Maintain new state.
  2320. (-[WebDataSource _commitIfReady]):
  2321. Free up previous and provisional BF items after commit.
  2322. * WebCoreSupport.subproj/WebBridge.m:
  2323. (-[WebBridge loadURL:]):
  2324. Add the new BF item to the datasource.
  2325. (-[WebBridge saveDocumentState:]):
  2326. Use the right BF item to save the doc state.
  2327. * WebView.subproj/WebFramePrivate.h:
  2328. Previous and provisional BF are moved to datasource.
  2329. * WebView.subproj/WebFramePrivate.m:
  2330. (-[WebFrame _transitionToCommitted]):
  2331. Use provisional BF from datasource to set position in BF list.
  2332. Add new BF item to datasource.
  2333. (-[WebFrame _isLoadComplete]):
  2334. (-[WebFrame _checkLoadComplete]):
  2335. Comments, whitespace.
  2336. (-[WebFrame _goToItem:withFrameLoadType:]):
  2337. Set item we will use to saveDocState at commit time.
  2338. 2002-10-27 Darin Adler <darin@apple.com>
  2339. - WebKit part of filename width fix
  2340. * WebCoreSupport.subproj/WebFileButton.m:
  2341. (-[WebFileButton drawRect:]): Compute left position by starting at
  2342. the right side of the button frame rather than by starting at the right
  2343. side of the overall bounds. Removes dependency on fixed-width filename area.
  2344. (-[WebFileButton updateLabel]): Added. Computes ellipsized filename.
  2345. (-[WebFileButton setFilename:]): Use updateLabel instead of code in line here.
  2346. (-[WebFileButton setFrameSize:]): Call updateLabel.
  2347. (-[WebFileButton bestVisualFrameSizeForCharacterCount:]): Compute a width based
  2348. on the count passed in rather than a hardcoded 200-pixel constant.
  2349. 2002-10-27 Darin Adler <darin@apple.com>
  2350. - fixed 3037369 -- Status text not cleared after start of drag from page
  2351. * WebView.subproj/WebHTMLView.m:
  2352. (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]):
  2353. Find the highest-level enclosing WebHTMLView, and call _updateMouseoverWithEvent:
  2354. with the mouseUp event after the drag is done.
  2355. (-[WebHTMLView mouseMovedNotification:]): Just call _updateMouseoverWithEvent:,
  2356. the code from here was moved into there.
  2357. * WebView.subproj/WebHTMLViewPrivate.h: Declare _updateMouseoverWithEvent.
  2358. * WebView.subproj/WebHTMLViewPrivate.m: (-[WebHTMLView _updateMouseoverWithEvent:]):
  2359. Moved all the code from mouseMovedNotification: in here so it could be used twice.
  2360. 2002-10-27 Don Melton <gramps@apple.com>
  2361. * WebView.subproj/WebController.m:
  2362. (-[WebController userAgentForURL:]):
  2363. Changed default user agent to Mozilla 1.1.
  2364. 2002-10-27 Darin Adler <darin@apple.com>
  2365. * Bookmarks.subproj/WebBookmarkProxy.m: (-[WebBookmarkProxy dealloc]):
  2366. Added, so we don't leak the title.
  2367. * Bookmarks.subproj/WebBookmarkGroup.m: (-[WebBookmarkGroup removeBookmark:]):
  2368. * Bookmarks.subproj/WebBookmarkList.m: (-[WebBookmarkList removeChild:]):
  2369. Added retain/release pairs so we don't use an object after it's deallocated.
  2370. In practice this doesn't happen the way these are used by Alex since they are
  2371. in an array, but they have windows of vulnerability depending on exactly how
  2372. they are used.
  2373. 2002-10-26 Darin Adler <darin@apple.com>
  2374. * WebCoreSupport.subproj/WebViewFactory.m:
  2375. (-[WebViewFactory inputElementAltText]): Added.
  2376. (-[WebViewFactory resetButtonDefaultLabel]): Added.
  2377. (-[WebViewFactory searchableIndexIntroduction]): Added.
  2378. (-[WebViewFactory submitButtonDefaultLabel]): Added.
  2379. (-[WebViewFactory defaultLanguageCode]): Added.
  2380. * English.lproj/Localizable.strings: Update.
  2381. * English.lproj/StringsNotToBeLocalized.txt: Update.
  2382. 2002-10-25 Darin Adler <darin@apple.com>
  2383. * WebCoreSupport.subproj/WebViewFactory.m:
  2384. (-[WebViewFactory runJavaScriptAlertPanelWithMessage:]): Added.
  2385. (-[WebViewFactory runJavaScriptConfirmPanelWithMessage:]): Added.
  2386. * English.lproj/Localizable.strings: Update.
  2387. * English.lproj/StringsNotToBeLocalized.txt: Update.
  2388. 2002-10-25 Richard Williamson <rjw@apple.com>
  2389. Implemented support for bidi text layout.
  2390. * WebCoreSupport.subproj/WebTextRenderer.m:
  2391. (_drawGlyphs):
  2392. (-[WebTextRenderer drawCharacters:stringLength:fromCharacterPosition:toCharacterPosition:atPoint:withPadding:withTextColor:backgroundColor:rightToLeft:]):
  2393. 2002-10-25 Chris Blumenberg <cblu@apple.com>
  2394. Made frameNamed private in WebController and renamed it to _findFrameNamed. Got rid of _frameInThisWindowNamed in WebController because it isn't needed anymore.
  2395. * WebView.subproj/WebController.h:
  2396. * WebView.subproj/WebController.m:
  2397. (-[WebController _goToItem:withFrameLoadType:]): call _findFrameNamed
  2398. * WebView.subproj/WebControllerPrivate.h:
  2399. * WebView.subproj/WebControllerPrivate.m:
  2400. (-[WebController _findFrameNamed:]): renamed, made private, got rid of call to _frameInThisWindowNamed as it is not needed
  2401. * WebView.subproj/WebFrame.m:
  2402. (-[WebFrame findFrameNamed:]): call [WebController _findFrameNamed:]
  2403. 2002-10-25 Chris Blumenberg <cblu@apple.com>
  2404. - Fix case where we would name a new window _blank
  2405. - If a data source can't be created for a plug-in request, don't create the frame or open a window.
  2406. - cleaned up plug-in stream notifications
  2407. * Plugins.subproj/WebBaseNetscapePluginView.h:
  2408. * Plugins.subproj/WebBaseNetscapePluginView.m:
  2409. (-[WebBaseNetscapePluginView initWithFrame:]): create streamNotifications dict
  2410. (-[WebBaseNetscapePluginView dealloc]): release streamNotifications dict
  2411. (-[WebBaseNetscapePluginView frameStateChanged:]): cleaned up
  2412. (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]): create data source before frame
  2413. * Plugins.subproj/WebPluginController.m:
  2414. (-[WebPluginController showURL:inFrame:]): create data source before frame
  2415. * WebView.subproj/WebControllerPrivate.m:
  2416. (-[WebController _setTopLevelFrameName:]): don't allow _blank frames
  2417. * WebView.subproj/WebFrame.m:
  2418. (-[WebFrame findOrCreateFramedNamed:]): no need to check for _blank
  2419. 2002-10-25 Darin Adler <darin@apple.com>
  2420. Tighten up the code that observes mouse moved events.
  2421. * WebView.subproj/WebHTMLView.m:
  2422. (-[WebHTMLView initWithFrame:]): Don't set up observers here.
  2423. (-[WebHTMLView addMouseMovedObserver]): Added some assertions.
  2424. (-[WebHTMLView viewWillMoveToWindow:]): Stop observing the "become main" and "resign main"
  2425. notifications here.
  2426. (-[WebHTMLView viewDidMoveToWindow]): Start observing them here.
  2427. (-[WebHTMLView windowDidBecomeMain:]): Assert that the notification is for this window,
  2428. instead of checking with if.
  2429. (-[WebHTMLView windowDidResignMain:]): Assert that the notification is for this window.
  2430. 2002-10-25 Chris Blumenberg <cblu@apple.com>
  2431. Cleaned up the frame searching shenanigans. Things are much cleaner and clearer now.
  2432. * Plugins.subproj/WebBaseNetscapePluginView.m:
  2433. (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]): call findOrCreateFramedNamed
  2434. * Plugins.subproj/WebPluginController.m:
  2435. (-[WebPluginController showURL:inFrame:]): call findOrCreateFramedNamed
  2436. * WebCoreSupport.subproj/WebBridge.m:
  2437. (-[WebBridge childFrames]): moved
  2438. (-[WebBridge mainFrame]): moved
  2439. (-[WebBridge findOrCreateFramedNamed:]): call findOrCreateFramedNamed on the frame
  2440. (-[WebBridge pluginViewWithPackage:attributes:baseURL:]): call _pluginController
  2441. * WebView.subproj/WebControllerPrivate.m:
  2442. (-[WebController _frameInThisWindowNamed:]): call _descendantFrameNamed
  2443. * WebView.subproj/WebFrame.h:
  2444. * WebView.subproj/WebFrame.m:
  2445. (-[WebFrame findFrameNamed:]): was frameNamed. First checks special-case frame names, descendant frames, then the whole controller, then other controllers.
  2446. (-[WebFrame findOrCreateFramedNamed:]): calls findFrameNamed, opens new window if necessary
  2447. * WebView.subproj/WebFramePrivate.h:
  2448. * WebView.subproj/WebFramePrivate.m:
  2449. (-[WebFrame _descendantFrameNamed:]): searches children, children's children etc.
  2450. (-[WebFrame _pluginController]): this method needed an "_"
  2451. * WebView.subproj/WebHTMLView.m:
  2452. (-[WebHTMLView addSubview:]): call _pluginController
  2453. * WebView.subproj/WebHTMLViewPrivate.m:
  2454. (-[WebHTMLView _elementAtPoint:]): no need to special case for "_blank" since findFrameNamed will return nil for that name
  2455. 2002-10-25 Trey Matteson <trey@apple.com>
  2456. 2919039 - Implement limit on back/forward history list
  2457. 2998200 - access to most-recent in submenu of back & forward buttons
  2458. 3022566 - need WebKit API for accessing and visiting back/forward list items
  2459. 3084051 - forward button incorrectly enabled after going forward all the way
  2460. Remaining issues at this point are getting the title of the pages
  2461. into the menu items (instead of the URL), and saving document
  2462. state properly when you jump around in the list. Solutions are
  2463. known and coming soon.
  2464. * History.subproj/WebBackForwardList.h:
  2465. Added doc comments to API. Made ivars private. Replaced index-
  2466. based API with item-based API. Added a sizelimit to the overall
  2467. list. Tweaked API to get back and forward lists.
  2468. * History.subproj/WebBackForwardList.m:
  2469. Straightforward impl of the above, with the note that I dumped
  2470. WebHistoryList from the API and impl in favor of an NSArray,
  2471. which is efficient for this sort of use (queue, stack).
  2472. (-[WebBackForwardList init]):
  2473. (-[WebBackForwardList dealloc]):
  2474. (-[WebBackForwardList goBack]):
  2475. (-[WebBackForwardList goForward]):
  2476. (-[WebBackForwardList goToEntry:]):
  2477. (-[WebBackForwardList backEntry]):
  2478. (-[WebBackForwardList forwardEntry]):
  2479. (-[WebBackForwardList maximumSize]):
  2480. (-[WebBackForwardList setMaximumSize:]):
  2481. (-[WebBackForwardList description]):
  2482. * History.subproj/WebHistoryList.h: Removed.
  2483. Nuked from API, per above.
  2484. * History.subproj/WebHistoryList.m: Removed.
  2485. * Misc.subproj/WebKit.h:
  2486. WebHistoryList gone from API.
  2487. * WebCoreSupport.subproj/WebBridge.m:
  2488. (-[WebBridge loadURL:]):
  2489. Use if/else instead of buried "return;", so next person doesn;t
  2490. make the same mis-read I did.
  2491. (-[WebBridge saveDocumentState:]):
  2492. Site of future work.
  2493. * WebKit.pbproj/project.pbxproj:
  2494. Nuked WebHistoryList.
  2495. * WebView.subproj/WebController.h:
  2496. * WebView.subproj/WebController.m:
  2497. (-[WebController goBackOrForwardToItem:]):
  2498. New method to support random access nav in backforward list.
  2499. * WebView.subproj/WebDataSourcePrivate.m:
  2500. (-[WebDataSource _setTitle:]):
  2501. Site of future work (fixing title in items)
  2502. * WebView.subproj/WebFramePrivate.h:
  2503. WebFrameLoadTypeIndexedBack/WebFrameLoadTypeIndexedForward are
  2504. collapsed into WebFrameLoadTypeIndexedBackForward. Vestigial
  2505. WebFrameLoadTypeIntermediateBack is nuked.
  2506. * WebView.subproj/WebFramePrivate.m:
  2507. (-[WebFramePrivate setBackForwardItem:]):
  2508. (-[WebFrame _setBackForwardItem:]):
  2509. (-[WebFrame _backForwardItem]):
  2510. Must remember the BF item we're going to so we can update the
  2511. BF list on commit.
  2512. (-[WebFrame _transitionToCommitted]):
  2513. Update the BF list on commit.
  2514. (-[WebFrame _isLoadComplete]):
  2515. (-[WebFrame _goToItem:withFrameLoadType:]):
  2516. Update BF list on within-page nav.
  2517. Remember BF item we are going to for later update on commit.
  2518. 2002-10-25 Chris Blumenberg <cblu@apple.com>
  2519. Minor non-mentionable clean-up.
  2520. * WebCoreSupport.subproj/WebBridge.m:
  2521. (-[WebBridge viewForPluginWithURL:attributes:baseURL:MIMEType:]):
  2522. 2002-10-25 Chris Blumenberg <cblu@apple.com>
  2523. Cleaned up the plug-in API headers so they can be sent to other groups.
  2524. * Plugins.subproj/WebPlugin.h:
  2525. * Plugins.subproj/WebPluginContainer.h:
  2526. * Plugins.subproj/WebPluginViewFactory.h:
  2527. 2002-10-24 Richard Williamson <rjw@apple.com>
  2528. Fixed many font substitution related bugs, at least including:
  2529. 3006966, 3026675, 3071106, and more... (each of these bugs
  2530. has a list of related bugs).
  2531. Needs little more cleanup to correctly deal with non base characters.
  2532. * WebCoreSupport.subproj/WebTextRenderer.h:
  2533. * WebCoreSupport.subproj/WebTextRenderer.m:
  2534. (-[WebTextRenderer drawCharacters:stringLength:fromCharacterPosition:toCharacterPosition:atPoint:withPadding:withTextColor:backgroundColor:]):
  2535. (-[WebTextRenderer floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:]):
  2536. (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:]):
  2537. Against Darin's better judgement prevent extra layout when not in live resize. If
  2538. this introduces any regressions I owe darin a good bottle of wine.
  2539. * WebView.subproj/WebDynamicScrollBarsView.m:
  2540. (-[WebDynamicScrollBarsView updateScrollers]):
  2541. 2002-10-24 Chris Blumenberg <cblu@apple.com>
  2542. New Java plug-in works! Much faster to load and no spinny cursor! Unfortunately, it very unstable.
  2543. * Plugins.subproj/WebPluginController.m: cleaned-up the logging messages.
  2544. (-[WebPluginController addPluginView:]):
  2545. (-[WebPluginController didAddPluginView:]):
  2546. (-[WebPluginController startAllPlugins]):
  2547. (-[WebPluginController stopAllPlugins]):
  2548. (-[WebPluginController destroyAllPlugins]):
  2549. * WebCoreSupport.subproj/WebBridge.m:
  2550. (-[WebBridge viewForJavaAppletWithFrame:attributes:baseURL:]): make height and width an attribute.
  2551. 2002-10-24 Chris Blumenberg <cblu@apple.com>
  2552. Some clean-up and bug fixes for new plug-in support.
  2553. * Plugins.subproj/WebPluginController.m:
  2554. (-[WebPluginController initWithWebFrame:]): need a colon after windowWillClose
  2555. (-[WebPluginController addPluginView:]): added logging
  2556. (-[WebPluginController didAddPluginView:]): added logging
  2557. (-[WebPluginController startAllPlugins]): added logging
  2558. (-[WebPluginController stopAllPlugins]): added logging
  2559. (-[WebPluginController destroyAllPlugins]): added logging
  2560. * Plugins.subproj/WebPluginPackage.m:
  2561. (-[WebPluginPackage getMIMEInformation]): use correct dict key for getting MIME descriptions
  2562. * WebCoreSupport.subproj/WebBridge.m: no more didAddSubview
  2563. * WebView.subproj/WebFramePrivate.h: no more didAddSubview
  2564. * WebView.subproj/WebFramePrivate.m: no more didAddSubview
  2565. * WebView.subproj/WebHTMLView.m:
  2566. (-[WebHTMLView addSubview:]): call didAddPluginView on WebPluginController
  2567. 2002-10-24 John Sullivan <sullivan@apple.com>
  2568. * WebCoreSupport.subproj/WebBridge.m:
  2569. (-[WebBridge objectLoadedFromCache:response:size:]):
  2570. added ASSERT(response != nil), leftover from debugging
  2571. session on Tuesday, seems worth leaving in.
  2572. 2002-10-24 Darin Adler <darin@apple.com>
  2573. * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
  2574. 2002-10-24 Chris Blumenberg <cblu@apple.com>
  2575. Changed some method names in WebPluginController.
  2576. * Plugins.subproj/WebPluginController.h:
  2577. * Plugins.subproj/WebPluginController.m:
  2578. (-[WebPluginController didAddPluginView:]):
  2579. (-[WebPluginController startAllPlugins]):
  2580. (-[WebPluginController stopAllPlugins]):
  2581. (-[WebPluginController destroyAllPlugins]):
  2582. (-[WebPluginController windowWillClose:]):
  2583. * WebView.subproj/WebFramePrivate.m:
  2584. (-[WebFrame _transitionToCommitted]):
  2585. (-[WebFrame _didAddSubview:]):
  2586. === Alexander-29 ===
  2587. 2002-10-24 Richard Williamson <rjw@apple.com>
  2588. Don't leak request.
  2589. * WebView.subproj/WebBaseResourceHandleDelegate.m:
  2590. (-[WebBaseResourceHandleDelegate handle:willSendRequest:]):
  2591. 2002-10-24 Richard Williamson <rjw@apple.com>
  2592. Always copy request, we can't count on it being immutable.
  2593. This was the cause of the ASSERT from last night's checkin.
  2594. * WebView.subproj/WebBaseResourceHandleDelegate.m:
  2595. (-[WebBaseResourceHandleDelegate handle:willSendRequest:]):
  2596. Only send serverRedirectedForDataSource: if URL changed.
  2597. * WebView.subproj/WebDataSourcePrivate.m:
  2598. (-[WebDataSource _setRequest:]):
  2599. 2002-10-24 Chris Blumenberg <cblu@apple.com>
  2600. - Use "MIMEType" instead of "serviceType".
  2601. * Plugins.subproj/WebBasePluginPackage.h:
  2602. * Plugins.subproj/WebBasePluginPackage.m:
  2603. (-[WebBasePluginPackage load]):
  2604. (-[WebBasePluginPackage dealloc]):
  2605. (-[WebBasePluginPackage filename]):
  2606. (-[WebBasePluginPackage setPath:]):
  2607. * Plugins.subproj/WebNetscapePluginEmbeddedView.h:
  2608. * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
  2609. (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:MIMEType:attributes:]):
  2610. * Plugins.subproj/WebNetscapePluginPackage.m:
  2611. (-[WebNetscapePluginPackage getMIMEInformation]): changed name.
  2612. (-[WebNetscapePluginPackage initWithPath:]):
  2613. * Plugins.subproj/WebNullPluginView.h:
  2614. * Plugins.subproj/WebNullPluginView.m:
  2615. (-[WebNullPluginView initWithFrame:MIMEType:attributes:]):
  2616. (-[WebNullPluginView dealloc]):
  2617. (-[WebNullPluginView viewDidMoveToWindow]): send missing plug-ins notification here
  2618. * Plugins.subproj/WebPluginPackage.m:
  2619. (-[WebPluginPackage getMIMEInformation]): new, gets MIME info from plist
  2620. (-[WebPluginPackage initWithPath:]):
  2621. (-[WebPluginPackage dealloc]):
  2622. (-[WebPluginPackage viewFactory]):
  2623. (-[WebPluginPackage load]):
  2624. (-[WebPluginPackage unload]):
  2625. * WebCoreSupport.subproj/WebBridge.m:
  2626. (-[WebBridge viewForPluginWithURL:attributes:baseURL:MIMEType:]):
  2627. (-[WebBridge viewForJavaAppletWithFrame:attributes:baseURL:]):
  2628. 2002-10-24 Richard Williamson <rjw@apple.com>
  2629. Flag error instead of ASSERTing as a result of fix to 3083013.
  2630. Not clear why this condition occurs, but better than ASSERTing
  2631. for Alex 29.
  2632. * WebView.subproj/WebDataSourcePrivate.m:
  2633. (-[WebDataSource _setRequest:]):
  2634. 2002-10-24 Darin Adler <darin@apple.com>
  2635. - fixed a crash I ran into in the new delegate code
  2636. * WebView.subproj/WebBaseResourceHandleDelegate.m:
  2637. (-[WebBaseResourceHandleDelegate _releaseResources]): Retain self across this
  2638. deallocation to avoid reentering and being deallocated midstream. This happens
  2639. because the handle holds the only reference to us, and we may be releasing the
  2640. last reference to it.
  2641. (-[WebBaseResourceHandleDelegate dealloc]): Add call to [super dealloc].
  2642. * Plugins.subproj/WebBasePluginPackage.m: (-[WebBasePluginPackage dealloc]):
  2643. Add call to [super dealloc].
  2644. * WebView.subproj/WebMainResourceClient.m: Tweak.
  2645. 2002-10-23 Darin Adler <darin@apple.com>
  2646. - fixed 3083013 -- REGRESSION: Cookie refused at http://directory/ even on reload
  2647. Restore a bit of the cruft.
  2648. * WebView.subproj/WebMainResourceClient.m:
  2649. (-[WebMainResourceClient handle:willSendRequest:]):
  2650. We need to change the request on the data source when a redirect happens,
  2651. because the data source goes on to ultimately communicate this to WebCore.
  2652. Restored the code that did that, with some changes to fit into the new regime.
  2653. 2002-10-23 Richard Williamson <rjw@apple.com>
  2654. Cleaned up months of accumulated cruft.
  2655. Added base class to the three WebResourceHandleDelegate implementors.
  2656. Removed superfluous handle references to controller callbacks.
  2657. More can still be done.
  2658. All in the name of fixing 3076050.
  2659. * Misc.subproj/WebKitErrors.h:
  2660. * Plugins.subproj/WebBaseNetscapePluginStream.m:
  2661. (-[WebBaseNetscapePluginStream setResponse:]):
  2662. * Plugins.subproj/WebNetscapePluginRepresentation.m:
  2663. (-[WebNetscapePluginRepresentation receivedData:withDataSource:]):
  2664. (-[WebNetscapePluginRepresentation receivedError:withDataSource:]):
  2665. (-[WebNetscapePluginRepresentation finishedLoadingWithDataSource:]):
  2666. * Plugins.subproj/WebNetscapePluginStream.h:
  2667. * Plugins.subproj/WebNetscapePluginStream.m:
  2668. (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:]):
  2669. (-[WebNetscapePluginStream dealloc]):
  2670. (-[WebNetscapePluginStream start]):
  2671. (-[WebNetscapePluginStream stop]):
  2672. (-[WebNetscapePluginStream handle:willSendRequest:]):
  2673. (-[WebNetscapePluginStream handle:didReceiveResponse:]):
  2674. (-[WebNetscapePluginStream handle:didReceiveData:]):
  2675. (-[WebNetscapePluginStream handleDidFinishLoading:]):
  2676. (-[WebNetscapePluginStream handle:didFailLoadingWithError:]):
  2677. * WebCoreSupport.subproj/WebBridge.m:
  2678. (-[WebBridge reportBadURL:]):
  2679. * WebCoreSupport.subproj/WebSubresourceClient.h:
  2680. * WebCoreSupport.subproj/WebSubresourceClient.m:
  2681. (-[WebSubresourceClient initWithLoader:dataSource:]):
  2682. (-[WebSubresourceClient dealloc]):
  2683. (+[WebSubresourceClient startLoadingResource:withURL:referrer:forDataSource:]):
  2684. (-[WebSubresourceClient receivedError:]):
  2685. (-[WebSubresourceClient handle:willSendRequest:]):
  2686. (-[WebSubresourceClient handle:didReceiveResponse:]):
  2687. (-[WebSubresourceClient handle:didReceiveData:]):
  2688. (-[WebSubresourceClient handleDidFinishLoading:]):
  2689. (-[WebSubresourceClient handle:didFailLoadingWithError:]):
  2690. (-[WebSubresourceClient cancel]):
  2691. * WebView.subproj/WebBaseResourceHandleDelegate.h:
  2692. * WebView.subproj/WebBaseResourceHandleDelegate.m:
  2693. (-[WebBaseResourceHandleDelegate init]):
  2694. (-[WebBaseResourceHandleDelegate _releaseResources]):
  2695. (-[WebBaseResourceHandleDelegate dealloc]):
  2696. (-[WebBaseResourceHandleDelegate setDataSource:]):
  2697. (-[WebBaseResourceHandleDelegate dataSource]):
  2698. (-[WebBaseResourceHandleDelegate resourceLoadDelegate]):
  2699. (-[WebBaseResourceHandleDelegate downloadDelegate]):
  2700. (-[WebBaseResourceHandleDelegate setIsDownload:]):
  2701. (-[WebBaseResourceHandleDelegate isDownload]):
  2702. (-[WebBaseResourceHandleDelegate handle:willSendRequest:]):
  2703. (-[WebBaseResourceHandleDelegate handle:didReceiveResponse:]):
  2704. (-[WebBaseResourceHandleDelegate handle:didReceiveData:]):
  2705. (-[WebBaseResourceHandleDelegate handleDidFinishLoading:]):
  2706. (-[WebBaseResourceHandleDelegate handle:didFailLoadingWithError:]):
  2707. (-[WebBaseResourceHandleDelegate cancel]):
  2708. (-[WebBaseResourceHandleDelegate handle]):
  2709. * WebView.subproj/WebControllerPrivate.h:
  2710. * WebView.subproj/WebControllerPrivate.m:
  2711. (-[WebController _mainReceivedBytesSoFar:fromDataSource:complete:]):
  2712. (-[WebController _receivedError:fromDataSource:]):
  2713. (-[WebController _mainReceivedError:fromDataSource:]):
  2714. * WebView.subproj/WebDataSource.h:
  2715. * WebView.subproj/WebDataSource.m:
  2716. * WebView.subproj/WebDataSourcePrivate.h:
  2717. * WebView.subproj/WebDataSourcePrivate.m:
  2718. (-[WebDataSourcePrivate dealloc]):
  2719. (-[WebDataSource _startLoading]):
  2720. (-[WebDataSource _stopLoading]):
  2721. (-[WebDataSource _clearErrors]):
  2722. * WebView.subproj/WebFramePrivate.m:
  2723. (-[WebFrame _isLoadComplete]):
  2724. * WebView.subproj/WebMainResourceClient.h:
  2725. * WebView.subproj/WebMainResourceClient.m:
  2726. (-[WebMainResourceClient initWithDataSource:]):
  2727. (-[WebMainResourceClient dealloc]):
  2728. (-[WebMainResourceClient receivedError:]):
  2729. (-[WebMainResourceClient cancel]):
  2730. (-[WebMainResourceClient handle:willSendRequest:]):
  2731. (-[WebMainResourceClient _notifyDelegatesOfInterruptionByPolicyChange]):
  2732. (-[WebMainResourceClient handle:didReceiveResponse:]):
  2733. (-[WebMainResourceClient handle:didReceiveData:]):
  2734. (-[WebMainResourceClient handleDidFinishLoading:]):
  2735. (-[WebMainResourceClient handle:didFailLoadingWithError:]):
  2736. * WebView.subproj/WebResourceLoadDelegate.h:
  2737. 2002-10-23 Chris Blumenberg <cblu@apple.com>
  2738. Support for new plug-in API. This is about as much as I can do without the new java plug-in and java root.
  2739. * Plugins.subproj/WebPluginController.h:
  2740. * Plugins.subproj/WebPluginController.m:
  2741. (-[WebPluginController initWithWebFrame:]): observe window close changes
  2742. (-[WebPluginController dealloc]): remove observer, assert if we're still tracking plug-ins
  2743. (-[WebPluginController didAddSubview:]): start the plug-in
  2744. (-[WebPluginController stopAllPlugins]): stop and destroy all plug-ins.
  2745. (-[WebPluginController windowWillClose:]): call stopAllPlugins if the window in question is closing
  2746. * WebView.subproj/WebFramePrivate.m:
  2747. (-[WebFrame _transitionToCommitted]): call stopAllPlugins on WebPluginController
  2748. 2002-10-23 Chris Blumenberg <cblu@apple.com>
  2749. Changed the plug-in package API to return key enumerators instead dictionaries.
  2750. * Plugins.subproj/WebBasePluginPackage.h:
  2751. * Plugins.subproj/WebBasePluginPackage.m:
  2752. (-[WebBasePluginPackage initWithPath:]):
  2753. (-[WebBasePluginPackage load]):
  2754. (-[WebBasePluginPackage unload]):
  2755. (-[WebBasePluginPackage dealloc]):
  2756. (-[WebBasePluginPackage extensionEnumerator]):
  2757. (-[WebBasePluginPackage MIMETypeEnumerator]):
  2758. (-[WebBasePluginPackage descriptionForMIMEType:]):
  2759. (-[WebBasePluginPackage MIMETypeForExtension:]):
  2760. (-[WebBasePluginPackage extensionsForMIMEType:]):
  2761. (-[WebBasePluginPackage setName:]):
  2762. (-[WebBasePluginPackage setPath:]):
  2763. (-[WebBasePluginPackage setFilename:]):
  2764. (-[WebBasePluginPackage setPluginDescription:]):
  2765. (-[WebBasePluginPackage setMIMEToDescriptionDictionary:]):
  2766. (-[WebBasePluginPackage setMIMEToExtensionsDictionary:]):
  2767. * Plugins.subproj/WebNetscapePluginPackage.h:
  2768. * Plugins.subproj/WebNetscapePluginPackage.m:
  2769. (-[WebNetscapePluginPackage getPluginInfo]):
  2770. (-[WebNetscapePluginPackage pathByResolvingSymlinksAndAliasesInPath:]):
  2771. (-[WebNetscapePluginPackage initWithPath:]):
  2772. (-[WebNetscapePluginPackage executableType]):
  2773. * Plugins.subproj/WebPluginController.h:
  2774. * Plugins.subproj/WebPluginController.m:
  2775. (-[WebPluginController didAddSubview:]):
  2776. * Plugins.subproj/WebPluginDatabase.h:
  2777. * Plugins.subproj/WebPluginDatabase.m:
  2778. (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
  2779. (-[WebPluginDatabase pluginForMIMEType:]):
  2780. (-[WebPluginDatabase pluginForExtension:]):
  2781. (-[WebPluginDatabase MIMETypes]):
  2782. (-[WebPluginDatabase init]):
  2783. * WebCoreSupport.subproj/WebBridge.m:
  2784. (-[WebBridge viewForPluginWithURL:attributes:baseURL:serviceType:]):
  2785. (-[WebBridge viewForJavaAppletWithFrame:attributes:baseURL:]):
  2786. (-[WebBridge didAddSubview:]): new
  2787. * WebView.subproj/WebFramePrivate.h:
  2788. * WebView.subproj/WebFramePrivate.m:
  2789. (-[WebFrame _didAddSubview:]): new
  2790. 2002-10-23 Darin Adler <darin@apple.com>
  2791. - finished up the job of moving the file button here from WebCore.
  2792. I did this mainly for localization reasons.
  2793. * WebCoreSupport.subproj/WebFileButton.m:
  2794. (-[WebFileButton initWithFrame:]): Set up button control size, font, bezel style,
  2795. target, and action. Also add it as a subview.
  2796. (-[WebFileButton drawRect:]): Center icon in the "visual frame" part of the view,
  2797. not the entire bounds.
  2798. (-[WebFileButton setFilename:]): Don't show any icon when the filename is empty.
  2799. (-[WebFileButton bestVisualFrameSize]): Implemented this.
  2800. (-[WebFileButton visualFrame]): Ditto.
  2801. (-[WebFileButton setVisualFrame:]): Ditto.
  2802. (-[WebFileButton baseline]): Ditto.
  2803. (-[WebFileButton beginSheet]): Added. Shared between button presses and other clicks.
  2804. (-[WebFileButton chooseButtonPressed:]): Call beginSheet.
  2805. (-[WebFileButton mouseDown:]): Ditto.
  2806. (-[WebFileButton openPanelDidEnd:returnCode:contextInfo:]): Send the notification,
  2807. WebCoreFileButtonFilenameChanged, when the filename is changed.
  2808. * WebView.subproj/WebController.m: (-[WebController policyDelegate]):
  2809. Add a FIXME about the leak I found here.
  2810. 2002-10-23 Chris Blumenberg <cblu@apple.com>
  2811. Call the arguments for plug-ins "attributes" everywhere.
  2812. * Plugins.subproj/WebBaseNetscapePluginView.h:
  2813. * Plugins.subproj/WebBaseNetscapePluginView.m:
  2814. (-[WebBaseNetscapePluginView setAttributes:]):
  2815. * Plugins.subproj/WebNetscapePluginEmbeddedView.h:
  2816. * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
  2817. (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:mime:attributes:]):
  2818. * Plugins.subproj/WebNullPluginView.h:
  2819. * Plugins.subproj/WebNullPluginView.m:
  2820. (-[WebNullPluginView initWithFrame:mimeType:attributes:]):
  2821. (-[WebNullPluginView drawRect:]):
  2822. * Plugins.subproj/WebPluginController.h:
  2823. * Plugins.subproj/WebPluginController.m:
  2824. (-[WebPluginController initWithWebFrame:]):
  2825. (-[WebPluginController dealloc]):
  2826. (-[WebPluginController addPluginView:]):
  2827. * Plugins.subproj/WebPluginPackage.h:
  2828. * Plugins.subproj/WebPluginPackage.m:
  2829. (-[WebPluginPackage viewFactory]):
  2830. * WebCoreSupport.subproj/WebBridge.m:
  2831. (-[WebBridge pluginViewWithPackage:attributes:baseURL:]):
  2832. (-[WebBridge viewForPluginWithURL:attributes:baseURL:serviceType:]):
  2833. (-[WebBridge viewForJavaAppletWithFrame:attributes:baseURL:]):
  2834. 2002-10-23 Chris Blumenberg <cblu@apple.com>
  2835. * WebCoreSupport.subproj/WebBridge.m:
  2836. (-[WebBridge requestedURL]):
  2837. (-[WebBridge viewForPluginWithURL:serviceType:arguments:baseURL:]):
  2838. (-[WebBridge viewForJavaAppletWithFrame:baseURL:parameters:]):
  2839. * WebCoreSupport.subproj/WebViewFactory.m:
  2840. (-[WebViewFactory fileButton]):
  2841. (-[WebViewFactory pluginsInfo]):
  2842. 2002-10-23 Darin Adler <darin@apple.com>
  2843. - fix bug where plugins crashed closing a stream that was never opened
  2844. * Plugins.subproj/WebBaseNetscapePluginStream.h: Change type for parameter of
  2845. receivedError: to NPReason. It's not NPError.
  2846. * Plugins.subproj/WebBaseNetscapePluginStream.m:
  2847. (-[WebBaseNetscapePluginStream dealloc]): Assert that stream is destroyed by
  2848. checking stream.ndata.
  2849. (-[WebBaseNetscapePluginStream setResponse:]): Set stream.ndata to nil if the
  2850. stream is not successfully created by NPP_NewStream.
  2851. (-[WebBaseNetscapePluginStream destroyStreamWithReason:]): Added. Destroys the
  2852. stream, but only if it's present. Also set stream.ndata to nil. This was the bug fix.
  2853. (-[WebBaseNetscapePluginStream receivedError:]): Call destroyStreamWithReason:.
  2854. (-[WebBaseNetscapePluginStream finishedLoadingWithData:]): Call destroyStreamWithReason:.
  2855. * English.lproj/Localizable.strings: Update.
  2856. * English.lproj/StringsNotToBeLocalized.txt: Update.
  2857. 2002-10-23 Chris Blumenberg <cblu@apple.com>
  2858. Forgot to add WebPluginController back to the project after I had a project conflict.
  2859. * WebKit.pbproj/project.pbxproj:
  2860. 2002-10-23 Chris Blumenberg <cblu@apple.com>
  2861. Added WebPluginController which controls and reacts to plug-in requests. Its owned by the WebFrame.
  2862. * Plugins.subproj/WebPluginController.h: Added.
  2863. * Plugins.subproj/WebPluginController.m: Added.
  2864. (-[WebPluginController initWithWebFrame:]):
  2865. (-[WebPluginController showURL:inFrame:]):
  2866. (-[WebPluginController showStatus:]):
  2867. * WebView.subproj/WebFramePrivate.h:
  2868. * WebView.subproj/WebFramePrivate.m:
  2869. (-[WebFramePrivate dealloc]):
  2870. (-[WebFrame pluginController]):
  2871. 2002-10-23 Darin Adler <darin@apple.com>
  2872. Add WebFileButton, to be used by WebCore soon. It's about 1/2
  2873. done right now. Compiles but not used yet.
  2874. * WebCoreSupport.subproj/WebViewFactory.m: (-[WebViewFactory fileButton]): Added.
  2875. * WebCoreSupport.subproj/WebFileButton.h: Added.
  2876. * WebCoreSupport.subproj/WebFileButton.m: Added.
  2877. * WebKit.pbproj/project.pbxproj: Added WebFileButton files.
  2878. * WebCoreSupport.subproj/WebSubresourceClient.m:
  2879. (-[WebSubresourceClient handle:didReceiveResponse:]): Add an assertion.
  2880. 2002-10-23 Maciej Stachowiak <mjs@apple.com>
  2881. - fixed 2876448 - The authentication panel should give a note when
  2882. the user tried to log in and failed
  2883. Also, made the message different (and more helpful) when the
  2884. authentication is for a proxy server.
  2885. * Panels.subproj/WebAuthenticationPanel.m:
  2886. (-[WebAuthenticationPanel setUpForRequest:]): Use different
  2887. messages depending on proxy and previous failure count.
  2888. Updated localized strings:
  2889. * English.lproj/Localizable.strings:
  2890. * English.lproj/StringsNotToBeLocalized.txt:
  2891. 2002-10-23 Maciej Stachowiak <mjs@apple.com>
  2892. - fixed 2876446 - The label in the authentication panel needs to
  2893. adjust its height depending on content
  2894. Also improved [NSControl sizeToFitAndAdjustWindowHeight] method.
  2895. * Panels.subproj/English.lproj/WebAuthenticationPanel.nib: Adjusted
  2896. springs.
  2897. * Panels.subproj/WebAuthenticationPanel.m:
  2898. (-[WebAuthenticationPanel setUpForRequest:]): Use
  2899. sizeToFitAndAdjustWindowHeight on main label.
  2900. * Misc.subproj/WebNSControlExtras.m:
  2901. (-[NSControl sizeToFitAndAdjustWindowHeight]): Improved the logic
  2902. so the best height is picked while leaving the width
  2903. alone. Before, the label would always come out to be a very wide
  2904. single line.
  2905. 2002-10-22 Maciej Stachowiak <mjs@apple.com>
  2906. * WebKit.pbproj/project.pbxproj: Made WebControllerSets.h
  2907. private. Also alphabetized headers in target pane and subproject
  2908. folders.
  2909. 2002-10-22 Chris Blumenberg <cblu@apple.com>
  2910. load and unload is only a WebNetscapePluginPackage thing since you can't unload an NSBundle.
  2911. * Plugins.subproj/WebBasePluginPackage.h:
  2912. * Plugins.subproj/WebBasePluginPackage.m:
  2913. * Plugins.subproj/WebNetscapePluginPackage.h:
  2914. 2002-10-22 Chris Blumenberg <cblu@apple.com>
  2915. More moving stuff around for the new plug-in API. Added WebBasePluginPackage and added subclass WebPluginPackage. Also made WebNetscapePluginPackage a subclass of WebBasePluginPackage.
  2916. * Plugins.subproj/WebBasePluginPackage.h: Added.
  2917. * Plugins.subproj/WebBasePluginPackage.m: Added.
  2918. (+[WebBasePluginPackage pluginWithPath:]): creates a WebPluginPackage or WebNetscapePluginPackage
  2919. (-[WebBasePluginPackage initWithPath:]):
  2920. (-[WebBasePluginPackage name]):
  2921. (-[WebBasePluginPackage path]):
  2922. (-[WebBasePluginPackage filename]):
  2923. (-[WebBasePluginPackage pluginDescription]):
  2924. (-[WebBasePluginPackage extensionToMIMEDictionary]):
  2925. (-[WebBasePluginPackage MIMEToExtensionsDictionary]):
  2926. (-[WebBasePluginPackage MIMEToDescriptionDictionary]):
  2927. (-[WebBasePluginPackage load]):
  2928. (-[WebBasePluginPackage unload]):
  2929. (-[WebBasePluginPackage isLoaded]):
  2930. (-[WebBasePluginPackage description]):
  2931. * Plugins.subproj/WebNetscapePluginDocumentView.m:
  2932. (-[WebNetscapePluginDocumentView setDataSource:]):
  2933. * Plugins.subproj/WebNetscapePluginPackage.h:
  2934. * Plugins.subproj/WebNetscapePluginPackage.m:
  2935. (-[WebNetscapePluginPackage initWithPath:]):
  2936. * Plugins.subproj/WebPluginDatabase.h:
  2937. * Plugins.subproj/WebPluginDatabase.m:
  2938. (-[WebPluginDatabase pluginForMIMEType:]):
  2939. (-[WebPluginDatabase pluginForExtension:]):
  2940. (-[WebPluginDatabase pluginForFilename:]):
  2941. (-[WebPluginDatabase MIMETypes]):
  2942. (-[WebPluginDatabase init]):
  2943. * Plugins.subproj/WebPluginPackage.h: Added.
  2944. * Plugins.subproj/WebPluginPackage.m: Added.
  2945. (-[WebPluginPackage initWithPath:]):
  2946. * WebCoreSupport.subproj/WebViewFactory.m:
  2947. (-[WebViewFactory viewForPluginWithURL:serviceType:arguments:baseURL:]): check the class of the plug-in when deciding which view to create.
  2948. (-[WebViewFactory viewForJavaAppletWithFrame:baseURL:parameters:]): same here.
  2949. * WebKit.pbproj/project.pbxproj:
  2950. 2002-10-22 David Hyatt <hyatt@apple.com>
  2951. Getting XML docs at least made for XML files...
  2952. * WebView.subproj/WebHTMLRepresentation.m:
  2953. (-[WebHTMLRepresentation setDataSource:]):
  2954. 2002-10-22 Chris Blumenberg <cblu@apple.com>
  2955. Made new plug-in API headers private.
  2956. * WebKit.pbproj/project.pbxproj:
  2957. 2002-10-22 Darin Adler <darin@apple.com>
  2958. * Misc.subproj/WebKitErrors.h:
  2959. * WebView.subproj/WebMainResourceClient.m:
  2960. (-[WebMainResourceClient handle:willSendRequest:]):
  2961. (-[WebMainResourceClient handle:didReceiveResponse:]):
  2962. Rename WebErrorLocationChangeInterruptedByURLPolicyChange to
  2963. WebErrorLocationChangeInterruptedByPolicyChange.
  2964. 2002-10-22 Darin Adler <darin@apple.com>
  2965. * WebView.subproj/WebMainResourceClient.m:
  2966. (-[WebMainResourceClient handle:didReceiveResponse:]):
  2967. Send the new error whenever a policy change happens. The old code was
  2968. sending a successful completion in the download and ignore cases.
  2969. 2002-10-22 John Sullivan <sullivan@apple.com>
  2970. - fixed 3080873 -- Error in console when no bookmark file
  2971. found -[WebBookmarkGroup _loadBookmarkGroupGuts]
  2972. * Bookmarks.subproj/WebBookmarkGroup.m:
  2973. (-[WebBookmarkGroup _loadBookmarkGroupGuts]):
  2974. removed ERROR that was useful only long ago.
  2975. 2002-10-22 Richard Williamson <rjw@apple.com>
  2976. Added stubs from common WebResourceHandleDelegate base
  2977. class.
  2978. * Plugins.subproj/WebBaseNetscapePluginStream.h:
  2979. * Plugins.subproj/WebNetscapePluginStream.h:
  2980. * WebCoreSupport.subproj/WebSubresourceClient.h:
  2981. * WebKit.pbproj/project.pbxproj:
  2982. * WebView.subproj/WebBaseResourceHandleDelegate.h: Added.
  2983. * WebView.subproj/WebBaseResourceHandleDelegate.m: Added.
  2984. * WebView.subproj/WebMainResourceClient.h:
  2985. 2002-10-22 Darin Adler <darin@apple.com>
  2986. Make the panel position itself above the main window.
  2987. Too bad we can't use a sheet, but this is better than a random position.
  2988. * WebCoreSupport.subproj/WebJavaScriptTextInputPanel.m:
  2989. (-[WebJavaScriptTextInputPanel initWithPrompt:text:]):
  2990. Use the new [NSWindow sizeToFitAndAdjustWindowHeight]
  2991. and [NSControl sizeToFitAndAdjustWindowHeight].
  2992. * Misc.subproj/WebNSControlExtras.h: Added.
  2993. * Misc.subproj/WebNSControlExtras.m: Added.
  2994. * Misc.subproj/WebNSWindowExtras.h: Added.
  2995. * Misc.subproj/WebNSWindowExtras.m: Added.
  2996. * WebKit.pbproj/project.pbxproj: Added above files.
  2997. * English.lproj/StringsNotToBeLocalized.txt: Update.
  2998. 2002-10-22 Ken Kocienda <kocienda@apple.com>
  2999. * Misc.subproj/WebKitErrors.h: Add new error code to signify that a location
  3000. change has been interrupted by a change in the URLPolicy governing the load.
  3001. * WebView.subproj/WebMainResourceClient.m:
  3002. (-[WebMainResourceClient handle:willSendRequest:]): Add code to check the URLPolicy
  3003. for the URL in the request that is submitted to us in this delegate method. Send
  3004. a locationChangeDone:forDataSource: message with an error using the newly-defined
  3005. code in cases where the location change should be cancelled.
  3006. 2002-10-22 Chris Blumenberg <cblu@apple.com>
  3007. Added protocol headers for new plug-in API.
  3008. * Plugins.subproj/WebPlugin.h: Added.
  3009. * Plugins.subproj/WebPluginContainer.h: Added.
  3010. * Plugins.subproj/WebPluginViewFactory.h: Added.
  3011. * WebKit.pbproj/project.pbxproj:
  3012. 2002-10-22 Chris Blumenberg <cblu@apple.com>
  3013. - Moved things around to make room for new plug-in API.
  3014. - Renamed WebNetscapePlugin to WebNetscapePluginPackage.
  3015. - Renamed WebNetscapePluginDatabase to WebPluginDatabase.
  3016. * Plugins.subproj/WebBaseNetscapePluginStream.m:
  3017. (-[WebBaseNetscapePluginStream setPluginPointer:]):
  3018. * Plugins.subproj/WebBaseNetscapePluginView.h:
  3019. * Plugins.subproj/WebBaseNetscapePluginView.m:
  3020. (-[WebBaseNetscapePluginView plugin]):
  3021. * Plugins.subproj/WebNetscapePluginDocumentView.m:
  3022. (-[WebNetscapePluginDocumentView setDataSource:]):
  3023. * Plugins.subproj/WebNetscapePluginEmbeddedView.h:
  3024. * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
  3025. (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:mime:arguments:]):
  3026. * Plugins.subproj/WebNetscapePluginNullEventSender.h: Added.
  3027. * Plugins.subproj/WebNetscapePluginNullEventSender.m: Added.
  3028. (-[WebNetscapePluginNullEventSender initWithPluginView:]):
  3029. (-[WebNetscapePluginNullEventSender dealloc]):
  3030. (-[WebNetscapePluginNullEventSender sendNullEvents]):
  3031. (-[WebNetscapePluginNullEventSender stop]):
  3032. * Plugins.subproj/WebNetscapePluginPackage.h: Added.
  3033. * Plugins.subproj/WebNetscapePluginPackage.m: Added.
  3034. (-[WebNetscapePluginPackage openResourceFile]):
  3035. (-[WebNetscapePluginPackage closeResourceFile:]):
  3036. (-[WebNetscapePluginPackage stringForStringListID:andIndex:]):
  3037. (-[WebNetscapePluginPackage getPluginInfo]):
  3038. (-[WebNetscapePluginPackage stringByResolvingSymlinksAndAliasesInPath:]):
  3039. (-[WebNetscapePluginPackage initWithPath:]):
  3040. (-[WebNetscapePluginPackage load]):
  3041. (-[WebNetscapePluginPackage unload]):
  3042. (-[WebNetscapePluginPackage NPP_SetWindow]):
  3043. (-[WebNetscapePluginPackage NPP_New]):
  3044. (-[WebNetscapePluginPackage NPP_Destroy]):
  3045. (-[WebNetscapePluginPackage NPP_NewStream]):
  3046. (-[WebNetscapePluginPackage NPP_StreamAsFile]):
  3047. (-[WebNetscapePluginPackage NPP_DestroyStream]):
  3048. (-[WebNetscapePluginPackage NPP_WriteReady]):
  3049. (-[WebNetscapePluginPackage NPP_Write]):
  3050. (-[WebNetscapePluginPackage NPP_HandleEvent]):
  3051. (-[WebNetscapePluginPackage NPP_URLNotify]):
  3052. (-[WebNetscapePluginPackage NPP_GetValue]):
  3053. (-[WebNetscapePluginPackage NPP_SetValue]):
  3054. (-[WebNetscapePluginPackage NPP_Print]):
  3055. (-[WebNetscapePluginPackage MIMEToExtensionsDictionary]):
  3056. (-[WebNetscapePluginPackage extensionToMIMEDictionary]):
  3057. (-[WebNetscapePluginPackage MIMEToDescriptionDictionary]):
  3058. (-[WebNetscapePluginPackage name]):
  3059. (-[WebNetscapePluginPackage filename]):
  3060. (-[WebNetscapePluginPackage path]):
  3061. (-[WebNetscapePluginPackage isLoaded]):
  3062. (-[WebNetscapePluginPackage pluginDescription]):
  3063. (-[WebNetscapePluginPackage description]):
  3064. (functionPointerForTVector):
  3065. (tVectorForFunctionPointer):
  3066. * Plugins.subproj/WebPlugin.h: Removed.
  3067. * Plugins.subproj/WebPlugin.m: Removed.
  3068. * Plugins.subproj/WebPluginDatabase.h:
  3069. * Plugins.subproj/WebPluginDatabase.m:
  3070. (+[WebPluginDatabase installedPlugins]):
  3071. (-[WebPluginDatabase pluginForMIMEType:]):
  3072. (-[WebPluginDatabase pluginForExtension:]):
  3073. (-[WebPluginDatabase pluginForFilename:]):
  3074. (-[WebPluginDatabase MIMETypes]):
  3075. (-[WebPluginDatabase init]):
  3076. * Plugins.subproj/WebPluginNullEventSender.h: Removed.
  3077. * Plugins.subproj/WebPluginNullEventSender.m: Removed.
  3078. * WebCoreSupport.subproj/WebViewFactory.m:
  3079. (-[WebViewFactory viewForPluginWithURL:serviceType:arguments:baseURL:]):
  3080. (-[WebViewFactory pluginsInfo]):
  3081. (-[WebViewFactory viewForJavaAppletWithFrame:baseURL:parameters:]):
  3082. * WebKit.pbproj/project.pbxproj:
  3083. * WebView.subproj/WebController.m:
  3084. (+[WebController canShowMIMEType:]):
  3085. 2002-10-22 Darin Adler <darin@apple.com>
  3086. * WebCoreSupport.subproj/WebJavaScriptTextInputPanel.m: Added missing import.
  3087. 2002-10-22 Darin Adler <darin@apple.com>
  3088. - fixed 3077305 -- js dialog not yet implemented - crash (fatal error)
  3089. * WebCoreSupport.subproj/WebViewFactory.m:
  3090. (-[WebViewFactory runJavaScriptTextInputPanelWithPrompt:defaultText:returningText:]):
  3091. Create a WebJavaScriptTextInputPanel and run it.
  3092. * English.lproj/WebJavaScriptTextInputPanel.nib: Added.
  3093. * WebCoreSupport.subproj/WebJavaScriptTextInputPanel.h: Added.
  3094. * WebCoreSupport.subproj/WebJavaScriptTextInputPanel.m: Added.
  3095. * WebKit.pbproj/project.pbxproj: Added
  3096. 2002-10-22 Chris Blumenberg <cblu@apple.com>
  3097. Use the mouseDown point instead of the mouseDragged point to determine the mouseOffset when dragging images. When you drag an image now, the point where you clicked is the point where the cursor is in relation to the drag image.
  3098. * WebView.subproj/WebHTMLView.m:
  3099. (-[WebHTMLView mouseDown:]): retain the mouse down event
  3100. (-[WebHTMLView mouseDragged:]): use the mouse down event
  3101. * WebView.subproj/WebHTMLViewPrivate.h:
  3102. * WebView.subproj/WebHTMLViewPrivate.m:
  3103. (-[WebHTMLViewPrivate dealloc]): release the mouse down event
  3104. 2002-10-21 Darin Adler <darin@apple.com>
  3105. * WebCoreSupport.subproj/WebViewFactory.h: Changed to use new protocol scheme so we
  3106. get an error if we forget to implement something.
  3107. * WebCoreSupport.subproj/WebViewFactory.m:
  3108. (-[WebViewFactory runJavaScriptTextInputPanelWithPrompt:defaultText:returningText:]): Stub.
  3109. 2002-10-21 Richard Williamson <rjw@apple.com>
  3110. More incremental tweaks. Will be factoring common
  3111. handle delegate behavior into base class.
  3112. * Plugins.subproj/WebNetscapePluginStream.m:
  3113. (-[WebNetscapePluginStream handle:didReceiveData:]):
  3114. (-[WebNetscapePluginStream handleDidFinishLoading:]):
  3115. * WebCoreSupport.subproj/WebBridge.m:
  3116. (-[WebBridge objectLoadedFromCache:response:size:]):
  3117. * WebCoreSupport.subproj/WebSubresourceClient.m:
  3118. (+[WebSubresourceClient startLoadingResource:withURL:referrer:forDataSource:]):
  3119. (-[WebSubresourceClient handle:didReceiveData:]):
  3120. (-[WebSubresourceClient handleDidFinishLoading:]):
  3121. * WebView.subproj/WebControllerPrivate.h:
  3122. * WebView.subproj/WebControllerPrivate.m:
  3123. (-[WebController _finsishedLoadingResourceFromDataSource:]):
  3124. 2002-10-21 Trey Matteson trey@apple.com
  3125. Fixed typos and other doc comment errors found during API review.
  3126. * WebView.subproj/WebController.h:
  3127. 2002-10-21 Richard Williamson <rjw@apple.com>
  3128. Changed WebResourceLoadDelegate methods to include an identifier
  3129. as first parameter. This will help clients track callbacks relating
  3130. to a particular resource. Added identifierForInitialRequest:fromDataSource:
  3131. so clients can create their own identifier.
  3132. * WebCoreSupport.subproj/WebBridge.m:
  3133. (-[WebBridge objectLoadedFromCache:response:size:]):
  3134. * WebCoreSupport.subproj/WebSubresourceClient.h:
  3135. * WebCoreSupport.subproj/WebSubresourceClient.m:
  3136. (-[WebSubresourceClient handle:willSendRequest:]):
  3137. (-[WebSubresourceClient handle:didReceiveResponse:]):
  3138. (-[WebSubresourceClient handle:didReceiveData:]):
  3139. (-[WebSubresourceClient handleDidFinishLoading:]):
  3140. (-[WebSubresourceClient handle:didFailLoadingWithError:]):
  3141. * WebView.subproj/WebController.m:
  3142. (-[WebResourceLoadDelegate identifierForInitialRequest:fromDataSource:]):
  3143. (-[WebResourceLoadDelegate resource:willSendRequest:fromDataSource:]):
  3144. (-[WebResourceLoadDelegate resource:didReceiveResponse:fromDataSource:]):
  3145. (-[WebResourceLoadDelegate resource:didReceiveContentLength:fromDataSource:]):
  3146. (-[WebResourceLoadDelegate resource:didFinishLoadingFromDataSource:]):
  3147. (-[WebResourceLoadDelegate resource:didFailLoadingWithError:fromDataSource:]):
  3148. * WebView.subproj/WebMainResourceClient.h:
  3149. * WebView.subproj/WebMainResourceClient.m:
  3150. (-[WebMainResourceClient receivedError:forHandle:]):
  3151. (-[WebMainResourceClient handleDidFinishLoading:]):
  3152. (-[WebMainResourceClient handle:willSendRequest:]):
  3153. (-[WebMainResourceClient handle:didReceiveResponse:]):
  3154. (-[WebMainResourceClient handle:didReceiveData:]):
  3155. (-[WebMainResourceClient handle:didFailLoadingWithError:]):
  3156. * WebView.subproj/WebResourceLoadDelegate.h:
  3157. 2002-10-21 Chris Blumenberg <cblu@apple.com>
  3158. Changed content policy API to pass a response instead of MIME type so client can get the mime type and filename from one class.
  3159. * WebView.subproj/WebControllerPolicyDelegate.h:
  3160. * WebView.subproj/WebDefaultPolicyDelegate.m:
  3161. * WebView.subproj/WebMainResourceClient.m:
  3162. (-[WebMainResourceClient handle:didReceiveResponse:]):
  3163. 2002-10-21 Darin Adler <darin@apple.com>
  3164. - fixed 3080512 -- REGRESSION: moving from old page to new one, we get blank white
  3165. before the new one is ready
  3166. Roll out a bunch of my changes, because they weren't complete. Added FIXMEs for the
  3167. problems I was unsuccessfully trying to fix.
  3168. * WebView.subproj/WebFramePrivate.m: (-[WebFrame _setState:]):
  3169. * WebView.subproj/WebView.m:
  3170. (-[WebView initWithFrame:]), (-[WebView isOpaque]), (-[WebView drawRect:]):
  3171. Roll back.
  3172. 2002-10-21 Darin Adler <darin@apple.com>
  3173. - fixed 3080246 -- REGRESSION: Animated GIFs sometimes disappear after drag or scroll
  3174. Once more, with feeling.
  3175. * WebView.subproj/WebHTMLView.m:
  3176. (-[WebHTMLView _setNeedsLayoutIfSizeChanged:]): Added setNeedsDisplay:YES here. The lack
  3177. of this is what caused the bug. But also don't do any work when the size doesn't change.
  3178. This prevents this from being called at all in the scrolling case, which is what we want.
  3179. (-[WebHTMLView viewWillMoveToSuperview:]): Just the name change.
  3180. (-[WebHTMLView layout]): Store the layout size for the above methods.
  3181. * WebView.subproj/WebHTMLViewPrivate.h: Add a place to store the size.
  3182. * WebView.subproj/WebImageView.m: (-[WebImageView layout]):
  3183. Roll this change back in.
  3184. 2002-10-21 Darin Adler <darin@apple.com>
  3185. - fixed 3080246 -- REGRESSION: Animated GIFs sometimes disappear after drag or scroll
  3186. * WebView.subproj/WebImageView.m: (-[WebImageView layout]):
  3187. My change to this caused the regression. Not sure why, but I'll just back out
  3188. because the change wasn't important.
  3189. 2002-10-20 Chris Blumenberg <cblu@apple.com>
  3190. Fixed: 3025847 - Can't use any menu command keys after clicking on a plugin
  3191. Don't give plug-ins command-modified keys anymore because the ability wasn't worth the annoyance. If only plug-ins truthfully responded t events! Anyway, filed 3080103 so that I can look into a way to make this work for everybody.
  3192. * Plugins.subproj/WebBaseNetscapePluginView.m:
  3193. 2002-10-20 Chris Blumenberg <cblu@apple.com>
  3194. Fixed: 3025868 - Plugin context menu disappears then reappears if you click off of it
  3195. Also fixed some rare dragging weirdness in WebHTMLView. If you attempted to drag a plug-in after dragging an image, the image would drag again.
  3196. * Plugins.subproj/WebBaseNetscapePluginView.m:
  3197. (-[WebBaseNetscapePluginView mouseDragged:]): subclass and do nothing to prevent calling mouseDragged in WebHTMLView
  3198. (-[WebBaseNetscapePluginView performKeyEquivalent:]): no changes to this method, removed menuForEvent, wasn't needed after all
  3199. * Plugins.subproj/WebNetscapePluginStream.m:
  3200. (-[WebNetscapePluginStream stop]): minor clean-up
  3201. 2002-10-20 Darin Adler <darin@apple.com>
  3202. - fixed a minor problem with autorelease I just ran into
  3203. * WebView.subproj/WebHTMLViewPrivate.m: (+[WebHTMLView load]):
  3204. Create an autorelease pool for the benefit of the class initialize
  3205. functions that will be called.
  3206. 2002-10-20 Chris Blumenberg <cblu@apple.com>
  3207. Fixed 3050010: Should show contextual menu for WebImageView
  3208. Also made drags from WebImageView work.
  3209. * Misc.subproj/WebNSViewExtras.h:
  3210. * Misc.subproj/WebNSViewExtras.m: added _web_setPromisedImageDragImage which does the hackery to extend the promised file drag for images
  3211. * WebView.subproj/WebControllerPrivate.h:
  3212. * WebView.subproj/WebControllerPrivate.m:
  3213. (-[WebController _menuForElement:]): added, gets menu items from delegate and creates menu
  3214. * WebView.subproj/WebHTMLView.m:
  3215. (-[WebHTMLView menuForEvent:]): simplified, gets element and calls -[WebController _menuForElement:]
  3216. (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]): call _web_setPromisedImageDragImage: when dragging image
  3217. * WebView.subproj/WebImageRepresentation.h:
  3218. * WebView.subproj/WebImageRepresentation.m:
  3219. (-[WebImageRepresentation dealloc]): release the URL
  3220. (-[WebImageRepresentation URL]): added so WebImageView can get the URL
  3221. (-[WebImageRepresentation setDataSource:]): retain the URL
  3222. * WebView.subproj/WebImageView.h: use new drag bools
  3223. * WebView.subproj/WebImageView.m:
  3224. (-[WebImageView initWithFrame:]): ditto
  3225. (-[WebImageView setAcceptsDrags:]): ditto
  3226. (-[WebImageView acceptsDrags]): ditto
  3227. (-[WebImageView setAcceptsDrops:]): ditto
  3228. (-[WebImageView acceptsDrops]): ditto
  3229. (-[WebImageView controller]): new
  3230. (-[WebImageView menuForEvent:]): new, creates element and calls -[WebController _menuForElement:]
  3231. (-[WebImageView mouseDragged:]): drag promised file
  3232. (-[WebImageView dragImage:at:offset:event:pasteboard:source:slideBack:]): call _web_setPromisedImageDragImage:
  3233. (-[WebImageView namesOfPromisedFilesDroppedAtDestination:]): new
  3234. 2002-10-20 Darin Adler <darin@apple.com>
  3235. - fixed a problem where you would get garbage bits when resizing while loading a standalone image
  3236. Cleaned up some of the complexity of how we were handling resizing.
  3237. * WebView.subproj/WebDynamicScrollBarsView.m: (-[WebDynamicScrollBarsView updateScrollers]):
  3238. Do the update twice to properly handle the case where a disappearing scroller makes a second
  3239. scroller appear or vice versa.
  3240. * WebView.subproj/WebFramePrivate.m: (-[WebFrame _setState:]): Remove the code that was trying
  3241. to set the setDrawsBackground flag on the scroll view. It was doing it wrong, causing bugs with
  3242. drawing non-HTML views while loading. Also, it wasn't working as an optimization, since the
  3243. window was still drawing the metallic background behind. We can revisit adding an optimization
  3244. at the WebHTMLView level if it creates a measurable speed increase, but we must be careful to
  3245. test loading with non-HTML views along with the HTML cases.
  3246. * WebView.subproj/WebHTMLView.m:
  3247. (-[WebHTMLView _setNeedsLayoutToYes:]): Added. Calls setNeedsLayout:YES.
  3248. (-[WebHTMLView viewWillMoveToSuperview:]): Added. Registers so we get _setNeedsLayoutToYes:
  3249. calls when the superview's size changes. This allows us to do a layout at all the right times.
  3250. (-[WebHTMLView layout]): Call setNeedsDisplay:YES, because if we do a layout without a complete
  3251. display the screen will look bad. Also do a reapplyStyles, because if there are pending style
  3252. changes we want to apply them before doing a layout since they could affect the layout.
  3253. (-[WebHTMLView drawRect:]): Remove the special case that says to always relayout during live
  3254. resize, because it works without a special case now. For the other live resize case, turn it from
  3255. a special case into a general one. Any time layout is done, make sure to draw the entire view,
  3256. not just the passed-in rectangle, and call setNeedsDisplay:NO so we don't do it all over again.
  3257. * WebView.subproj/WebImageView.m: (-[WebImageView layout]): Explicitly set frame size to
  3258. 0,0 when there is no image.
  3259. * WebView.subproj/WebView.m: Remove now-unnecessary viewWillStartLiveResize, setFrame:,
  3260. viewDidEndLiveResize, isOpaque, and drawRect overrides.
  3261. (-[WebView initWithFrame:]): Don't call setDrawsBackground:NO for the reasons above.
  3262. Don't set scroll bar visibility because the dynamic scroll bars view handles that already.
  3263. 2002-10-19 Darin Adler <darin@apple.com>
  3264. - fixed 3073693 -- flash drawn to screen even when window minimized
  3265. * Plugins.subproj/WebBaseNetscapePluginView.m:
  3266. (-[WebBaseNetscapePluginView start]): Set up additional notifications.
  3267. Don't start the null event sender if the window is miniaturized.
  3268. (-[WebBaseNetscapePluginView windowDidMiniaturize:]): Stop the null event sender.
  3269. (-[WebBaseNetscapePluginView windowDidDeminiaturize:]): Start the null event sender.
  3270. 2002-10-19 Darin Adler <darin@apple.com>
  3271. * WebView.subproj/WebFramePrivate.m: (-[WebFrame _transitionToCommitted]):
  3272. Removed stray printf.
  3273. 2002-10-18 Richard Williamson <rjw@apple.com>
  3274. Changed name to setUsesBackForwardList: from
  3275. setUseBackForwardList. ditto for useBackForwardList
  3276. * WebView.subproj/WebController.h:
  3277. * WebView.subproj/WebController.m:
  3278. (-[WebController setUsesBackForwardList:]):
  3279. (-[WebController usesBackForwardList]):
  3280. * WebView.subproj/WebFramePrivate.m:
  3281. (-[WebFrame _transitionToCommitted]):
  3282. (-[WebFrame _isLoadComplete]):
  3283. Fixed history items that have "untitled" title after
  3284. redirect. (3078577).
  3285. * WebView.subproj/WebDataSourcePrivate.m:
  3286. (-[WebDataSource _setTitle:]):
  3287. 2002-10-18 Darin Adler <darin@apple.com>
  3288. * WebView.subproj/WebController.h:
  3289. * WebView.subproj/WebController.m:
  3290. (-[WebController stringByEvaluatingJavaScriptFromString:]):
  3291. Changed to return a string and changed name.
  3292. 2002-10-18 Darin Adler <darin@apple.com>
  3293. * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
  3294. 2002-10-18 Ken Kocienda <kocienda@apple.com>
  3295. Removed unneeded import of WebFoundation/WebResourceLoadManager.h
  3296. * Misc.subproj/WebIconLoader.m
  3297. 2002-10-18 Darin Adler <darin@apple.com>
  3298. * Makefile.am: Move dependency so clean happens before build.
  3299. 2002-10-18 Darin Adler <darin@apple.com>
  3300. * force-clean-timestamp: Dependencies don't work well enough, so
  3301. we need a clean build here after the WebFoundation domain change.
  3302. 2002-10-18 Darin Adler <darin@apple.com>
  3303. Update for WebFoundation error domain changes.
  3304. * Misc.subproj/WebKitErrors.h: Put WebErrorDomainWebKit in here.
  3305. Also remove WebErrorNoError and the WebErrorCode name for the enum.
  3306. * WebKit.exp: Export the WebErrorDomainWebKit constant.
  3307. * WebView.subproj/WebView.m: Define the WebErrorDomainWebKit.
  3308. * WebKit.pbproj/project.pbxproj: Always use WebKit.exp.
  3309. * Makefile.am: Don't generate WebKit-combined.exp any more.
  3310. * WebKit-tests.exp: Removed.
  3311. 2002-10-17 Darin Adler <darin@apple.com>
  3312. - fixed 3078644 -- Odd clipping in frame
  3313. * WebView.subproj/WebClipView.h: Add hasAdditionalClip and additionalClip methods.
  3314. * WebView.subproj/WebClipView.m:
  3315. (-[WebClipView resetAdditionalClip]): Add an assertion.
  3316. (-[WebClipView setAdditionalClip:]): Ditto.
  3317. (-[WebClipView hasAdditionalClip]): Added.
  3318. (-[WebClipView additionalClip]): Added.
  3319. * WebView.subproj/WebHTMLView.m: (-[WebHTMLView visibleRect]):
  3320. Turn off the additional clip while computing our visibleRect. This way, the additional
  3321. clip only affects people who ask for the clip view's visibleRect directly, which basically
  3322. means just the focus rectangle drawing code we are trying to influence.
  3323. 2002-10-17 Richard Williamson <rjw@apple.com>
  3324. Support for drawing frame borders (fixes 2982466).
  3325. * WebView.subproj/WebHTMLView.m:
  3326. (-[WebHTMLView _drawBorder:]):
  3327. (-[WebHTMLView drawRect:]):
  3328. 2002-10-17 John Sullivan <sullivan@apple.com>
  3329. - added support for bookmark identifiers, to be used for marking
  3330. bookmark proxies uniquely (independent of localized title). This
  3331. is not the old unique-identifier scheme; now identifiers are optional,
  3332. and initially nil, but the client can use them for its own purposes.
  3333. * Bookmarks.subproj/WebBookmark.h:
  3334. * Bookmarks.subproj/WebBookmark.m:
  3335. (-[WebBookmark dealloc]): release identifier
  3336. (-[WebBookmark identifier]): return identifier
  3337. (-[WebBookmark setIdentifier:]): set identifier
  3338. * Bookmarks.subproj/WebBookmarkLeaf.m:
  3339. (-[WebBookmarkLeaf initFromDictionaryRepresentation:withGroup:]):
  3340. restore identifier
  3341. (-[WebBookmarkLeaf dictionaryRepresentation]):
  3342. save identifier
  3343. (-[WebBookmarkLeaf copyWithZone:]):
  3344. copy identifier
  3345. * Bookmarks.subproj/WebBookmarkList.m:
  3346. (-[WebBookmarkList initFromDictionaryRepresentation:withGroup:]):
  3347. restore identifier
  3348. (-[WebBookmarkList dictionaryRepresentation]):
  3349. save identifier
  3350. (-[WebBookmarkList copyWithZone:]):
  3351. copy identifier
  3352. * Bookmarks.subproj/WebBookmarkPrivate.h:
  3353. * Bookmarks.subproj/WebBookmarkProxy.m:
  3354. (-[WebBookmarkProxy initFromDictionaryRepresentation:withGroup:]):
  3355. restore identifier
  3356. (-[WebBookmarkProxy dictionaryRepresentation]):
  3357. save identifier
  3358. (-[WebBookmarkProxy copyWithZone:]):
  3359. copy identifier
  3360. === Alexander-28 ===
  3361. 2002-10-17 Darin Adler <darin@apple.com>
  3362. - fixed 3062613 -- too many redirects at nytimes.com and apple
  3363. Our cookie policy was rejecting the cookies from nytimes.com -- the policy base
  3364. URL was still the news.com URL from before the redirect.
  3365. * WebView.subproj/WebMainResourceClient.m:
  3366. (-[WebMainResourceClient handle:willSendRequest:]):
  3367. Update the cookie policy URL when a redirect changes the data source's URL.
  3368. 2002-10-17 Darin Adler <darin@apple.com>
  3369. - fixed 3077910 -- REGRESSION: download window open at startup time -> no scrollbars
  3370. * WebView.subproj/WebDynamicScrollBarsView.m:
  3371. (-[WebDynamicScrollBarsView updateScrollers]):
  3372. Check for WebDocumentView protocol before making the layout method
  3373. call. Prevents exception when WebDynamicScrollBarsView is used with
  3374. a document that is not a WebDocumentView.
  3375. 2002-10-16 Richard Williamson <rjw@apple.com>
  3376. Added some drawing debug code (ifdef excluded).
  3377. * WebView.subproj/WebHTMLView.m:
  3378. (-[WebHTMLView drawRect:]):
  3379. 2002-10-16 Darin Adler <darin@apple.com>
  3380. Fixed anomalies with plugin positioning caused by my switch to
  3381. NSViewFocusDidChangeNotification. Turns out that is not sent during
  3382. live resize, but we need things to work during live resize.
  3383. * Plugins.subproj/WebBaseNetscapePluginView.m:
  3384. (-[WebBaseNetscapePluginView start]): Register for changes in the
  3385. bounds and frame of all superviews again, instead of using
  3386. NSViewFocusDidChangeNotification.
  3387. 2002-10-16 Richard Williamson <rjw@apple.com>
  3388. Fixed 2969367. Ensure layout happens before doing check
  3389. to determine if scrollbars are needed. Ahhh, dynamic
  3390. scrollbars work so much better now.
  3391. * WebView.subproj/WebDynamicScrollBarsView.m:
  3392. (-[WebDynamicScrollBarsView updateScrollers]):
  3393. 2002-10-16 Darin Adler <darin@apple.com>
  3394. Fixed the problem where we would leave white bits when making the window larger.
  3395. * WebView.subproj/WebHTMLView.m: (-[WebHTMLView drawRect:]): During live resize,
  3396. use the visible rectangle after doing layout, not before.
  3397. 2002-10-16 Richard Williamson <rjw@apple.com>
  3398. Fixed regression in visited links due to change is semantics of
  3399. [dataSource request], added [dataSource _originalRequest]. Items
  3400. always need to be added to history with the original request.
  3401. * WebView.subproj/WebDataSource.m:
  3402. (-[WebDataSource initWithRequest:]):
  3403. * WebView.subproj/WebDataSourcePrivate.h:
  3404. * WebView.subproj/WebDataSourcePrivate.m:
  3405. (-[WebDataSourcePrivate dealloc]):
  3406. (-[WebDataSource _defersCallbacksChanged]):
  3407. (-[WebDataSource _originalRequest]):
  3408. * WebView.subproj/WebFramePrivate.m:
  3409. (-[WebFrame _transitionToCommitted]):
  3410. 2002-10-16 Darin Adler <darin@apple.com>
  3411. - fixed 3017152 -- intra-page anchors not updating page address field
  3412. * WebView.subproj/WebLocationChangeDelegate.h: Rearrange methods so they are
  3413. in the order they are delivered. Add locationChangedWithinPageForDataSource method.
  3414. Renamed the redirect methods to match the verb tenses used in the others.
  3415. Removed the URL parameter from the server redirect method.
  3416. * WebView.subproj/WebLocationChangeDelegate.m: Update the class to match the
  3417. changes to the protocol.
  3418. * WebCoreSupport.subproj/WebBridge.m:
  3419. (-[WebBridge reportClientRedirectTo:delay:fireDate:]):
  3420. Update for change to clientWillRedirectTo method name.
  3421. (-[WebBridge loadURL:]): Call locationChangedWithinPageForDataSource:.
  3422. * WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _setRequest:]):
  3423. Update for change to serverRedirectedForDataSource method name.
  3424. * WebView.subproj/WebHTMLView.m: (-[WebHTMLView mouseMovedNotification:]):
  3425. Remove overzealous assert that was firing for me.
  3426. * WebCoreSupport.subproj/WebSubresourceClient.m: Update comment.
  3427. * WebView.subproj/WebDataSource.h: Fix comment.
  3428. 2002-10-15 Darin Adler <darin@apple.com>
  3429. - fixed 3062393 -- need to send proper referrer for "open in new window" menu items and keyboard shortcuts
  3430. * WebCoreSupport.subproj/WebBridge.m:
  3431. (-[WebBridge createWindowWithURL:frameName:]): Don't take a referrer parameter any more.
  3432. Get the referrer by calling to the other side of the bridge, instead.
  3433. (-[WebBridge startLoadingResource:withURL:]): Ditto.
  3434. (-[WebBridge loadURL:]): Ditto.
  3435. (-[WebBridge postWithURL:data:contentType:]): Ditto.
  3436. (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]):
  3437. Ditto.
  3438. * WebView.subproj/WebDefaultContextMenuDelegate.m:
  3439. (-[WebDefaultContextMenuDelegate openNewWindowWithURL:]): Don't take a referrer parameter,
  3440. which was always nil anyway. Instead, get the referrer from the bridge.
  3441. (-[WebDefaultContextMenuDelegate openLinkInNewWindow:]): Don't pass nil for referrer.
  3442. (-[WebDefaultContextMenuDelegate openImageInNewWindow:]): Ditto.
  3443. (-[WebDefaultContextMenuDelegate openFrameInNewWindow:]): Ditto.
  3444. * WebView.subproj/WebHTMLViewPrivate.m:
  3445. (-[WebHTMLView _continueAfterClickPolicyForEvent:]): Pass a referrer from the bridge, rather
  3446. than nil, for both WebClickPolicyOpenNewWindow and WebClickPolicyOpenNewWindowBehind.
  3447. * Plugins.subproj/WebBaseNetscapePluginView.m:
  3448. (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]): Add a FIXME.
  3449. 2002-10-15 Darin Adler <darin@apple.com>
  3450. * WebView.subproj/WebDataSourcePrivate.h: Remove unused stuff.
  3451. * WebView.subproj/WebDataSourcePrivate.m: Ditto.
  3452. 2002-10-15 Darin Adler <darin@apple.com>
  3453. * WebCoreSupport.subproj/WebBridge.m:
  3454. (-[WebBridge loadURL:referrer:]): Add a special case for when the URL is the
  3455. same as the previous URL for the same frame. This relies on some logic in
  3456. KHTML's openURL method that handles this case too.
  3457. * WebView.subproj/WebDataSource.m:
  3458. (-[WebDataSource initWithRequest:]): Don't bother keeping an inputURL.
  3459. (-[WebDataSource URL]): Just return [[self request] URL]. Maybe we can
  3460. remove this altogether.
  3461. * WebView.subproj/WebDataSourcePrivate.h: Remove inputURL, finalURL.
  3462. * WebView.subproj/WebDataSourcePrivate.m:
  3463. (-[WebDataSourcePrivate dealloc]): No need to release inputURL, finalURL.
  3464. (-[WebDataSource _setURL:]): Used only by the new code above. Makes a copy
  3465. of the request, changes the URL, and then drops the old request.
  3466. (-[WebDataSource _setRequest:]): Changed to no longer call _setURL. Now
  3467. does much of the work that _setURL used to do.
  3468. 2002-10-15 Darin Adler <darin@apple.com>
  3469. WebKit part of improved frame name support.
  3470. * WebView.subproj/WebFrame.m:
  3471. (-[WebFrame initWithName:webView:provisionalDataSource:controller:]):
  3472. Call setName on the newly created part.
  3473. 2002-10-15 John Sullivan <sullivan@apple.com>
  3474. - fixed 3075777 -- hysteresis for dragging links on web pages
  3475. is still too large
  3476. * WebView.subproj/WebHTMLView.m: changed hysteresis constants;
  3477. added comment.
  3478. 2002-10-15 Darin Adler <darin@apple.com>
  3479. Fix problem where timer was lasting after window was closed.
  3480. * WebView.subproj/WebFramePrivate.m: (-[WebFrame _detachFromParent]):
  3481. Add a call to [_private->bridge closeURL].
  3482. 2002-10-15 Richard Williamson <rjw@apple.com>
  3483. Added attributed string to pasteboard. Fixes 3006760.
  3484. We may want to scale back the content that is included in the
  3485. attributed string. Currently all text nodes in the selection
  3486. are converted. This include text nodes for non-visible content,
  3487. i.e. scripts.
  3488. [Note we may also want to put HTML snippet on the pboard. The appkit
  3489. does support reading text using htmldisplay today. Of course this should
  3490. eventually migrate to use WebView.]
  3491. * WebView.subproj/WebHTMLView.m:
  3492. (-[WebHTMLView copy:]):
  3493. 2002-10-15 Darin Adler <darin@apple.com>
  3494. Fixed bug where URLs dragged to the content area were not made canonical
  3495. the way URLs dragged to the page address field are.
  3496. * Misc.subproj/WebNSPasteboardExtras.m: (-[NSPasteboard _web_bestURL]):
  3497. Make URLs canonical before returning them.
  3498. 2002-10-15 Chris Blumenberg <cblu@apple.com>
  3499. If a file is renamed during download because a file of the same name already exists, show this in the UI.
  3500. * Misc.subproj/WebDownloadHandler.h:
  3501. * Misc.subproj/WebDownloadHandler.m:
  3502. (-[WebDownloadHandler receivedResponse:]): added, create file here
  3503. (-[WebDownloadHandler receivedData:]): don't create file here
  3504. * WebView.subproj/WebMainResourceClient.m:
  3505. (-[WebMainResourceClient handleDidFinishLoading:]): call [dataSource _setPrimaryLoadComplete:YES] for downloads
  3506. (-[WebMainResourceClient handle:didReceiveResponse:]): call [WebDownloadHandler receivedResponse:]
  3507. (-[WebMainResourceClient handle:didReceiveData:]): no download error to handle
  3508. 2002-10-14 Chris Blumenberg <cblu@apple.com>
  3509. - Made all downloads no matter how prompted, pass through the content policy API so the client can properly choose the file name and correct the extension if necessary. We now ask for the content policy even if one has been predetermined.
  3510. * WebView.subproj/WebControllerPolicyDelegate.h:
  3511. * WebView.subproj/WebControllerPrivate.h:
  3512. * WebView.subproj/WebControllerPrivate.m:
  3513. (-[WebController _downloadURL:withContentPolicy:]): Renamed, set the predetermined content policy.
  3514. * WebView.subproj/WebDefaultContextMenuDelegate.m:
  3515. (-[WebDefaultContextMenuDelegate downloadURL:]): call [WebController _downloadURL:withContentPolicy:]
  3516. * WebView.subproj/WebDefaultPolicyDelegate.m:
  3517. * WebView.subproj/WebHTMLView.m:
  3518. (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): call [WebController _downloadURL:withContentPolicy:]
  3519. * WebView.subproj/WebHTMLViewPrivate.m:
  3520. (-[WebHTMLView _continueAfterClickPolicyForEvent:]): call [WebController _downloadURL:withContentPolicy:]
  3521. * WebView.subproj/WebMainResourceClient.m:
  3522. (-[WebMainResourceClient handle:didReceiveResponse:]): ask for content policy even if one is predetermined
  3523. 2002-10-14 Chris Blumenberg <cblu@apple.com>
  3524. - Cleaned up download handler and download progress delegate interactions.
  3525. - Got rid of error suppression junk.
  3526. - Only send 1 final message to the download progress delegate
  3527. * WebView.subproj/WebMainResourceClient.h:
  3528. * WebView.subproj/WebMainResourceClient.m:
  3529. (-[WebMainResourceClient receivedError:forHandle:]): no error suppression
  3530. (-[WebMainResourceClient didCancelWithHandle:]): ignore cancel errors because 1 download error is enough
  3531. (-[WebMainResourceClient handleDidFinishLoading:]): don't send the special and odd final message to the download progress delegate
  3532. (-[WebMainResourceClient handle:didReceiveData:]): no error suppression
  3533. (-[WebMainResourceClient handle:didFailLoadingWithError:]): ignore cancel errors because 1 download error is enough
  3534. 2002-10-14 Darin Adler <darin@apple.com>
  3535. * Bookmarks.subproj/WebBookmark.m:
  3536. (+[WebBookmark bookmarkFromDictionaryRepresentation:withGroup:]):
  3537. * Bookmarks.subproj/WebBookmarkLeaf.m:
  3538. (-[WebBookmarkLeaf initFromDictionaryRepresentation:withGroup:]):
  3539. * Bookmarks.subproj/WebBookmarkList.m:
  3540. (-[WebBookmarkList initFromDictionaryRepresentation:withGroup:]):
  3541. * Bookmarks.subproj/WebBookmarkProxy.m:
  3542. (-[WebBookmarkProxy initFromDictionaryRepresentation:withGroup:]):
  3543. Add checking since we don't "trust" the dictionary passed in.
  3544. * History.subproj/WebHistoryItem.m:
  3545. (-[WebHistoryItem initFromDictionaryRepresentation:]):
  3546. Add FIXME about adding the checking.
  3547. * Bookmarks.subproj/WebBookmarkGroup.m:
  3548. (-[WebBookmarkGroup initWithFile:]): Use copy, not retain.
  3549. * WebView.subproj/WebControllerPrivate.m:
  3550. (-[WebControllerPrivate dealloc]): Fix storage leak by releasing
  3551. the default context menu delegate.
  3552. * WebView.subproj/WebControllerPrivate.h: Tweak.
  3553. 2002-10-14 Chris Blumenberg <cblu@apple.com>
  3554. Made WebNetscapePluginStream retain a WebNetscapePluginEmbeddedView not a WebBaseNetscapePluginView.
  3555. * Plugins.subproj/WebNetscapePluginStream.h:
  3556. * Plugins.subproj/WebNetscapePluginStream.m:
  3557. (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:]):
  3558. 2002-10-13 Darin Adler <darin@apple.com>
  3559. * English.lproj/StringsNotToBeLocalized.txt: Added strings from WebBookmarkProxy.m.
  3560. 2002-10-13 Chris Blumenberg <cblu@apple.com>
  3561. - Eliminated the dual-role behavior of WebPluginStream.
  3562. Renamed WebPluginStream to WebBaseNetscapePluginStream.
  3563. WebNetscapePluginRepresentation, a subclass of WebBaseNetscapePluginStream,
  3564. is the document representation for standalone plug-ins.
  3565. WebNetscapePluginStream, also a subclass of WebBaseNetscapePluginStream,
  3566. is the general plug-in stream loader for embedded plug-ins or plug-in requested streams.
  3567. 23 plug-in source files with more likely to come!
  3568. * Plugins.subproj/WebBaseNetscapePluginStream.h: Added.
  3569. * Plugins.subproj/WebBaseNetscapePluginStream.m: Added.
  3570. (-[WebBaseNetscapePluginStream dealloc]):
  3571. (-[WebBaseNetscapePluginStream setPluginPointer:]):
  3572. (-[WebBaseNetscapePluginStream setResponse:]):
  3573. (-[WebBaseNetscapePluginStream receivedData:]):
  3574. (-[WebBaseNetscapePluginStream receivedError:]):
  3575. (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
  3576. * Plugins.subproj/WebBaseNetscapePluginView.h:
  3577. * Plugins.subproj/WebBaseNetscapePluginView.m:
  3578. (-[WebBaseNetscapePluginView setWindow]):
  3579. (-[WebBaseNetscapePluginView pluginPointer]):
  3580. (-[WebBaseNetscapePluginView drawRect:]):
  3581. (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
  3582. * Plugins.subproj/WebNetscapePluginDocumentView.m:
  3583. * Plugins.subproj/WebNetscapePluginRepresentation.h: Added.
  3584. * Plugins.subproj/WebNetscapePluginRepresentation.m: Added.
  3585. (-[WebNetscapePluginRepresentation setDataSource:]):
  3586. (-[WebNetscapePluginRepresentation receivedData:withDataSource:]):
  3587. (-[WebNetscapePluginRepresentation receivedError:withDataSource:]):
  3588. (-[WebNetscapePluginRepresentation finishedLoadingWithDataSource:]):
  3589. * Plugins.subproj/WebNetscapePluginStream.h: Added.
  3590. * Plugins.subproj/WebNetscapePluginStream.m: Added.
  3591. (-[WebNetscapePluginStream setCurrentURL:]):
  3592. (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:]):
  3593. (-[WebNetscapePluginStream dealloc]):
  3594. (-[WebNetscapePluginStream start]):
  3595. (-[WebNetscapePluginStream stop]):
  3596. (-[WebNetscapePluginStream loadEnded]):
  3597. (-[WebNetscapePluginStream handle:willSendRequest:]):
  3598. (-[WebNetscapePluginStream handle:didReceiveResponse:]):
  3599. (-[WebNetscapePluginStream handle:didReceiveData:]):
  3600. (-[WebNetscapePluginStream handleDidFinishLoading:]):
  3601. (-[WebNetscapePluginStream handle:didFailLoadingWithError:]):
  3602. * Plugins.subproj/WebPluginDatabase.m:
  3603. (-[WebNetscapePluginDatabase init]):
  3604. * Plugins.subproj/WebPluginStream.h: Removed.
  3605. * Plugins.subproj/WebPluginStream.m: Removed.
  3606. * WebKit.pbproj/project.pbxproj:
  3607. 2002-10-11 Richard Williamson <rjw@apple.com>
  3608. More DOM/attributed string work.
  3609. * WebView.subproj/WebHTMLRepresentation.h:
  3610. * WebView.subproj/WebHTMLRepresentation.m:
  3611. (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
  3612. * WebView.subproj/WebHTMLRepresentationPrivate.h:
  3613. 2002-10-11 Richard Williamson <rjw@apple.com>
  3614. * WebView.subproj/WebHTMLRepresentation.m:
  3615. * WebView.subproj/WebHTMLRepresentationPrivate.h:
  3616. 2002-10-11 Ken Kocienda <kocienda@apple.com>
  3617. Fixed uninitialized variable build breaker I got when
  3618. doing a Deployment build.
  3619. * Bookmarks.subproj/WebBookmarkGroup.m:
  3620. (-[WebBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:URLString:type:]):
  3621. 2002-10-11 John Sullivan <sullivan@apple.com>
  3622. Added the concept of bookmark proxies; items that can be
  3623. stored and displayed with other bookmarks but represent
  3624. a source of bookmark-like items (e.g. Rendezvous, History)
  3625. * Bookmarks.subproj/WebBookmarkProxy.h: Added.
  3626. * Bookmarks.subproj/WebBookmarkProxy.m: Added.
  3627. (-[WebBookmarkProxy initFromDictionaryRepresentation:withGroup:]):
  3628. (-[WebBookmarkProxy dictionaryRepresentation]):
  3629. (-[WebBookmarkProxy bookmarkType]):
  3630. (-[WebBookmarkProxy copyWithZone:]):
  3631. (-[WebBookmarkProxy title]):
  3632. (-[WebBookmarkProxy setTitle:]):
  3633. (-[WebBookmarkProxy icon]):
  3634. New class, has a title and that's about it
  3635. * Bookmarks.subproj/WebBookmark.h:
  3636. * Bookmarks.subproj/WebBookmark.m:
  3637. (+[WebBookmark bookmarkFromDictionaryRepresentation:withGroup:]):
  3638. Handle proxy case
  3639. * Bookmarks.subproj/WebBookmarkGroup.m:
  3640. (-[WebBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:URLString:type:]):
  3641. Handle proxy case
  3642. * Bookmarks.subproj/WebBookmarkList.m:
  3643. (-[WebBookmarkList initFromDictionaryRepresentation:withGroup:]),
  3644. (-[WebBookmarkList dictionaryRepresentation]):
  3645. Handle proxy case
  3646. * Bookmarks.subproj/WebBookmarkPrivate.h:
  3647. Add #define for proxy
  3648. * WebKit.pbproj/project.pbxproj: updated for new files
  3649. 2002-10-11 Chris Blumenberg <cblu@apple.com>
  3650. Thought I has checking for nil enough, but not enough as I raised an exception on Avie's machine.
  3651. * Plugins.subproj/WebPlugin.m:
  3652. (-[WebNetscapePlugin getPluginInfo]): check for the nil extension case
  3653. 2002-10-11 Darin Adler <darin@apple.com>
  3654. Apply a simplified technique I learned while working on the Favorites button
  3655. class in the browser code.
  3656. * Plugins.subproj/WebBaseNetscapePluginView.m:
  3657. (-[WebBaseNetscapePluginView start]): Use the NSViewFocusDidChangeNotification
  3658. to track the plugin rectangles instead of the NSViewFrameDidChangeNotification
  3659. and NSViewBoundsDidChangeNotification on all the superviews.
  3660. 2002-10-11 John Sullivan <sullivan@apple.com>
  3661. * Resources/url_icon.tiff: new generic URL icon -- no more @!
  3662. 2002-10-10 Darin Adler <darin@apple.com>
  3663. - fixed 3069366 -- REGRESSION: no pop-up window at inkfinder.com
  3664. The window now pops up, but it doesn't seem to work right. But I
  3665. think the window working right is a separate issue.
  3666. * WebView.subproj/WebMainResourceClient.m:
  3667. (-[WebMainResourceClient handle:willSendRequest:]): Make sure we
  3668. use the copy of the request that we're keeping around when we call
  3669. _setRequest on the data source, rather than the copy we're returning
  3670. which can be modified by WebFoundation. Also rearrange things so we're
  3671. more likely to get things right when the delegate changes the URL on
  3672. the request.
  3673. 2002-10-10 Chris Blumenberg <cblu@apple.com>
  3674. No need to send update event when activating/deactivating.
  3675. This was as old workaround for the plug-in drawing problems.
  3676. * Plugins.subproj/WebBaseNetscapePluginView.m:
  3677. (-[WebBaseNetscapePluginView windowBecameKey:]):
  3678. (-[WebBaseNetscapePluginView windowResignedKey:]):
  3679. === Alexander-27 ===
  3680. 2002-10-10 Darin Adler <darin@apple.com>
  3681. - fixed 3071799 -- REGRESSION: hang and strange download loading about:blank
  3682. Chris fixed the strange download earlier. This fixes the "hang' by making sure
  3683. we commit even if we receive 0 bytes of data.
  3684. * WebView.subproj/WebDataSourcePrivate.h: Added a _finishedLoading method.
  3685. * WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _finishedLoading]):
  3686. Added. Sets the "first byte of data received" flag, and calls _commitIfReady.
  3687. * WebView.subproj/WebMainResourceClient.m:
  3688. (-[WebMainResourceClient handleDidFinishLoading:]): Call _finishedLoading.
  3689. 2002-10-10 Darin Adler <darin@apple.com>
  3690. - fixed 3072015 -- REGRESSION: frames multiply endlessly
  3691. * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge setFrame:]):
  3692. Remove code that sets the parent from here, because it's too early, always nil.
  3693. * WebView.subproj/WebFramePrivate.m: (-[WebFrame _addChild:]):
  3694. Do it here instead.
  3695. 2002-10-09 Richard Williamson <rjw@apple.com>
  3696. * WebCoreSupport.subproj/WebSubresourceClient.m:
  3697. (-[WebSubresourceClient handleDidFinishLoading:]):
  3698. * WebKit.exp:
  3699. * WebView.subproj/WebController.m:
  3700. (-[WebResourceLoadDelegate resourceRequest:willSendRequest:fromDataSource:]):
  3701. (-[WebResourceLoadDelegate resourceRequest:didReceiveResponse:fromDataSource:]):
  3702. (-[WebResourceLoadDelegate resourceRequest:didReceiveContentLength:fromDataSource:]):
  3703. (-[WebResourceLoadDelegate resourceRequest:didFinishLoadingFromDataSource:]):
  3704. (-[WebResourceLoadDelegate resourceRequest:didFailLoadingWithError:fromDataSource:]):
  3705. * WebView.subproj/WebMainResourceClient.m:
  3706. (-[WebMainResourceClient handleDidFinishLoading:]):
  3707. * WebView.subproj/WebResourceLoadDelegate.h:
  3708. 2002-10-09 John Sullivan <sullivan@apple.com>
  3709. - removed unnecessary concept of unique identifiers for bookmarks
  3710. * Bookmarks.subproj/WebBookmark.h:
  3711. * Bookmarks.subproj/WebBookmark.m:
  3712. (-[WebBookmark dealloc]):
  3713. (-[WebBookmark _setGroup:]):
  3714. * Bookmarks.subproj/WebBookmarkGroup.h:
  3715. * Bookmarks.subproj/WebBookmarkGroup.m:
  3716. * Bookmarks.subproj/WebBookmarkGroupPrivate.h:
  3717. removed all references to unique identifiers
  3718. 2002-10-09 Darin Adler <darin@apple.com>
  3719. WebKit support for creating windows and then showing them later
  3720. after setting them up.
  3721. * WebCoreSupport.subproj/WebBridge.m:
  3722. (-[WebBridge createWindowWithURL:referrer:frameName:]): Replaced the old
  3723. openNewWindowWithURL with this. It calls the new window operations delegate
  3724. method.
  3725. (-[WebBridge showWindow]): Added. Calls the window operations delegate showWindow method.
  3726. (-[WebBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
  3727. Call _createFrameNamed instead of createFrameNamed.
  3728. * WebView.subproj/WebWindowOperationsDelegate.h: Replaced the openNewWindowWithURL
  3729. method with a new method named createWindowWithURL. Added showWindow and showWindowBehindFrontmost.
  3730. * WebView.subproj/WebControllerPrivate.h: Renamed createFrameNamed to _createFrameNamed
  3731. and removed the data source parameter. Added _openNewWindowWithURL:referrer:behind:
  3732. for the convenience of those who used to call the window operations delegate directly
  3733. to open the window.
  3734. * WebView.subproj/WebControllerPrivate.m:
  3735. (-[WebController _createFrameNamed:inParent:allowsScrolling:]): Renamed, and removed
  3736. the data source parameter.
  3737. (-[WebController _openNewWindowWithURL:referrer:behind:]): Added.
  3738. * Plugins.subproj/WebBaseNetscapePluginView.m:
  3739. (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
  3740. * WebView.subproj/WebDefaultContextMenuDelegate.m:
  3741. (-[WebDefaultContextMenuDelegate openNewWindowWithURL:referrer:]):
  3742. * WebView.subproj/WebFrame.m: (-[WebFrame frameNamed:]):
  3743. * WebView.subproj/WebHTMLViewPrivate.m:
  3744. (-[WebHTMLView _continueAfterClickPolicyForEvent:]):
  3745. Use a private WebController method instead of calling the delegate directly,
  3746. because it now takes two method calls to create and display a new window.
  3747. * Misc.subproj/WebNSViewExtras.m:
  3748. * WebCoreSupport.subproj/WebSubresourceClient.m:
  3749. * WebView.subproj/WebController.m:
  3750. * WebView.subproj/WebDataSource.m:
  3751. * WebView.subproj/WebFramePrivate.m:
  3752. * WebView.subproj/WebHTMLView.m:
  3753. * WebView.subproj/WebMainResourceClient.m:
  3754. * WebView.subproj/WebPreferences.m:
  3755. * WebView.subproj/WebView.m:
  3756. * WebView.subproj/WebViewPrivate.m:
  3757. Tweaked comments.
  3758. 2002-10-09 Darin Adler <darin@apple.com>
  3759. * WebCoreSupport.subproj/WebImageRenderer.m:
  3760. (-[WebImageRenderer drawClippedToValidInRect:fromRect:]):
  3761. Fix positioning of progressively loading images that are flipped.
  3762. 2002-10-09 Darin Adler <darin@apple.com>
  3763. - fixed 3069764 -- REGRESSION: Plug-ins sometimes don't respond to
  3764. update events, causes disappearing
  3765. * Plugins.subproj/WebBaseNetscapePluginView.m:
  3766. (-[WebBaseNetscapePluginView drawRect:]): Set the visible region of the port to the
  3767. port bounds to work around the fact that NSWindow tries to help us by doing a
  3768. BeginUpdate call. This ensures we can draw where we think we are dirty, not just
  3769. where Carbon thinks we are dirty.
  3770. * Plugins.subproj/WebNetscapePluginDocumentView.m: Tweak includes.
  3771. * Plugins.subproj/WebNetscapePluginEmbeddedView.m: Tweak includes.
  3772. * WebCoreSupport.subproj/WebBridge.m:
  3773. (-[WebBridge openNewWindowWithURL:referrer:frameName:]): Tweak.
  3774. * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
  3775. 2002-10-08 Darin Adler <darin@apple.com>
  3776. Make WebFrame do the entire frame hierarchy, instead of having the
  3777. parent and child pointers in the data source.
  3778. * WebCoreSupport.subproj/WebBridge.m:
  3779. (-[WebBridge childFrames]): Get children from the frame, not the data source.
  3780. (-[WebBridge setFrame:]): Do the setParent: call on the bridge here, instead of
  3781. in dataSourceChanged, since the parent relationship is now established even without
  3782. having the data source.
  3783. (-[WebBridge dataSourceChanged]): Remove the setParent: call.
  3784. (-[WebBridge loadRequest:]): Remove the parent parameter. It's already set up at
  3785. this point so we don't need to set it.
  3786. (-[WebBridge loadURL:referrer:]): Don't pass a parent.
  3787. (-[WebBridge postWithURL:referrer:data:contentType:]): Don't pass a parent.
  3788. (-[WebBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
  3789. Don't pass a parent.
  3790. (-[WebBridge addBackForwardItemWithURL:anchor:]): Get the parent frame by just calling
  3791. the parent method instead of the more roundabout way that it was doing it before.
  3792. * WebView.subproj/WebController.m:
  3793. (-[WebController _frameForDataSource:fromFrame:]): Get the children list from the frame,
  3794. no need to ask the data source. And no need to deal with the provisional data source, since
  3795. those can't have children any more.
  3796. (-[WebController _frameForView:fromFrame:]): Ditto.
  3797. * WebView.subproj/WebControllerPrivate.h: Change parent parameter when creating a new
  3798. frame to be a frame, not a data source.
  3799. * WebView.subproj/WebControllerPrivate.m:
  3800. (-[WebControllerPrivate _clearControllerReferences:]): Get the children list from the frame.
  3801. (-[WebControllerPrivate dealloc]): Rename the _reset method _controllerWillBeDeallocated
  3802. to be more concrete. More simplification can happen here later.
  3803. (-[WebController createFrameNamed:for:inParent:allowsScrolling:]): Call _addChild on the
  3804. parent frame rather than calling addFrame on the parent data source.
  3805. * WebView.subproj/WebDataSource.h: Remove the parent, children, frameNamed, frameNames, and
  3806. frameExists methods.
  3807. * WebView.subproj/WebDataSource.m:
  3808. (-[WebDataSource controller]): Remove the assertion here about parents, since we don't have
  3809. a parent pointer any more.
  3810. (-[WebDataSource isLoading]): Get the list of children from the frame.
  3811. * WebView.subproj/WebDataSourcePrivate.h: Remove the parent pointer and the frames dictionary,
  3812. also remove the _setParent: and addFrame: methods.
  3813. * WebView.subproj/WebDataSourcePrivate.m:
  3814. (-[WebDataSourcePrivate dealloc]): Don't release the frames list.
  3815. (-[WebDataSource _recursiveStopLoading]): Get the frames list from the frame.
  3816. (-[WebDataSource _layoutChildren]): Ditto.
  3817. (-[WebDataSource _defersCallbacksChanged]): Ditto.
  3818. * WebView.subproj/WebFrame.h: Add parent and children methods.
  3819. * WebView.subproj/WebFrame.m:
  3820. (-[WebFrame dealloc]): Call _detachFromParent.
  3821. (-[WebFrame setProvisionalDataSource:]): Set the encoding of the data source to match
  3822. the encoding of the parent's data source. This used to be done in [WebDataSource _setParent:].
  3823. Further simplification can probably be done here.
  3824. (-[WebFrame reload]): Remove the call to [WebDataSource _setParent:].
  3825. (+[WebFrame _frameNamed:fromFrame:]): Get the children from the frame.
  3826. (-[WebFrame frameNamed:]): Get the parent from the frame.
  3827. (-[WebFrame parent]): Added.
  3828. (-[WebFrame children]): Added.
  3829. * WebView.subproj/WebFramePrivate.h: Added parent and children fields, changed reset to
  3830. _controllerWillBeDeallocated, changed _parentDataSourceWillBeDeallocated to _detachFromParent,
  3831. added _addChild method. Further simplification can probably be done here.
  3832. * WebView.subproj/WebFramePrivate.m:
  3833. (-[WebFramePrivate dealloc]): Release the children array.
  3834. (-[WebFrame _controllerWillBeDeallocated]): Renamed from reset. Now just calls _detachFromParent.
  3835. (-[WebFrame _detachFromParent]): Does all the work that reset and _parentDataSourceWillBeDeallocated
  3836. used to do.
  3837. (-[WebFrame _setDataSource:]): Call _detachFromParent on all the children and release them
  3838. before setting up the new data source.
  3839. (-[WebFrame _transitionToCommitted]): Get the parent from self instead of the data source.
  3840. (-[WebFrame _isLoadComplete]): Ditto.
  3841. (+[WebFrame _recursiveCheckCompleteFromFrame:]): Get the children from self instead of the data source.
  3842. (-[WebFrame _textSizeMultiplierChanged]): Ditto.
  3843. (-[WebFrame _reloadAllowingStaleDataWithOverrideEncoding:]): Remove the call to [WebDataSource _setParent:].
  3844. (-[WebFrame _addChild:]): Added. Puts the child in a children list, and also sets the override
  3845. encoding of the child based on our data source's override encoding.
  3846. 2002-10-08 John Sullivan <sullivan@apple.com>
  3847. * WebKit.pbproj/project.pbxproj:
  3848. Project Builder says I changed it only by setting
  3849. "hasScannedForEncodings" to 1 -- version wars again?
  3850. 2002-10-08 Richard Williamson <rjw@apple.com>
  3851. Removed unnecessary (and incorrect) include.
  3852. The *.m files in DOM.subproj might be removed,
  3853. they are empty now.
  3854. * DOM.subproj/WebDOMDocument.m:
  3855. 2002-10-08 Richard Williamson <rjw@apple.com>
  3856. Added selection API.
  3857. * WebView.subproj/WebHTMLRepresentation.h:
  3858. * WebView.subproj/WebHTMLRepresentation.m:
  3859. (-[WebHTMLRepresentation setSelectionFrom:startOffset:to:endOffset:]):
  3860. 2002-10-08 Richard Williamson <rjw@apple.com>
  3861. Add accessor for DOM document.
  3862. * WebKit.pbproj/project.pbxproj:
  3863. * WebView.subproj/WebHTMLRepresentation.h:
  3864. * WebView.subproj/WebHTMLRepresentation.m:
  3865. (-[WebHTMLRepresentation DOMDocument]):
  3866. 2002-10-08 Richard Williamson <rjw@apple.com>
  3867. Made getAttributeNodeNamed match spec, changed
  3868. to getAttributeNode.
  3869. * DOM.subproj/WebDOMElement.h:
  3870. 2002-10-08 John Sullivan <sullivan@apple.com>
  3871. - WebKit part of fix for 3069150 -- eliminate "separator"
  3872. feature from Bookmarks
  3873. * Bookmarks.subproj/WebBookmarkSeparator.h: Removed.
  3874. * Bookmarks.subproj/WebBookmarkSeparator.m: Removed.
  3875. Removed class
  3876. * Bookmarks.subproj/WebBookmark.h:
  3877. * Bookmarks.subproj/WebBookmark.m:
  3878. (+[WebBookmark bookmarkOfType:]):
  3879. (+[WebBookmark bookmarkFromDictionaryRepresentation:withGroup:]):
  3880. * Bookmarks.subproj/WebBookmarkGroup.m:
  3881. (-[WebBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:URLString:type:]):
  3882. * Bookmarks.subproj/WebBookmarkList.m:
  3883. (-[WebBookmarkList initFromDictionaryRepresentation:withGroup:]):
  3884. * Bookmarks.subproj/WebBookmarkPrivate.h:
  3885. * English.lproj/StringsNotToBeLocalized.txt:
  3886. Removed all references to class.
  3887. * WebKit.pbproj/project.pbxproj: Updated for removed files.
  3888. 2002-10-08 Richard Williamson <rjw@apple.com>
  3889. Fixes to the DOM API.
  3890. * DOM.subproj/WebDOMDocument.h:
  3891. * DOM.subproj/WebDOMDocument.m:
  3892. * DOM.subproj/WebDOMNode.h:
  3893. * DOM.subproj/WebDOMNode.m:
  3894. * DOM.subproj/WebDOMNamedNodeMap.h: Removed.
  3895. * DOM.subproj/WebDOMNamedNodeMap.m: Removed.
  3896. * WebKit.pbproj/project.pbxproj:
  3897. 2002-10-08 Ken Kocienda <kocienda@apple.com>
  3898. Use WebFrameLoadType variable to set the request cache policy for the WebResourceRequest.
  3899. This will help us to provide cached results for POST requests when the user navigates
  3900. using the back/forward list or history for navigation, while making sure we do not
  3901. use cached results when the user pokes the submit button for a form they have
  3902. submitted previously.
  3903. * WebView.subproj/WebFramePrivate.m:
  3904. (-[WebFrame _goToItem:withFrameLoadType:])
  3905. 2002-10-08 Chris Blumenberg <cblu@apple.com>
  3906. Moved assumption that a resource without a content type or extension is HTML to WebFoundation.
  3907. * WebView.subproj/WebMainResourceClient.m:
  3908. (-[WebMainResourceClient handle:didReceiveResponse:]):
  3909. 2002-10-08 Chris Blumenberg <cblu@apple.com>
  3910. Minor plug-in code clean-up.
  3911. * Plugins.subproj/WebBaseNetscapePluginView.m:
  3912. (-[WebBaseNetscapePluginView sendActivateEvent:]):
  3913. (-[WebBaseNetscapePluginView sendUpdateEvent]):
  3914. (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
  3915. * Plugins.subproj/WebPluginStream.m:
  3916. (-[WebNetscapePluginStream receivedData:]):
  3917. 2002-10-08 Chris Blumenberg <cblu@apple.com>
  3918. Partial fix for 2967073 - should open all TEXT type files, at least
  3919. * WebView.subproj/WebControllerPrivate.m:
  3920. (+[WebController _MIMETypeForFile:]): Sniff for HTML in the fail case.
  3921. 2002-10-07 Darin Adler <darin@apple.com>
  3922. WebKit part of implementation of multipart forms posting.
  3923. * WebCoreSupport.subproj/WebBridge.m:
  3924. (-[WebBridge postWithURL:referrer:data:contentType:]):
  3925. Add a contentType parameter to match change in WebCore API.
  3926. Put the contentType value into the request.
  3927. 2002-10-07 Chris Blumenberg <cblu@apple.com>
  3928. Icing fix for: 3063517 - crash loading .png in separate window
  3929. * Plugins.subproj/WebPluginDatabase.m:
  3930. (-[WebNetscapePluginDatabase init]): Don't override document view and rep
  3931. types for types that have already been registered.
  3932. 2002-10-07 Darin Adler <darin@apple.com>
  3933. WebKit part of the page up/down fix.
  3934. * WebView.subproj/WebHTMLViewPrivate.m: (-[WebHTMLView scrollPoint:]):
  3935. If we are called from the handling of a page up or page down keyboard
  3936. event, then ignore the specific scrolling requested, and do our idea of
  3937. page up and page down. This guarantees that we will get the smarter
  3938. idea of how to page from WebView instead of the one that's hardcoded
  3939. into NSTextView.
  3940. * WebView.subproj/WebView.m: (-[WebView keyDown:]): Use scrollPageUp:,
  3941. scrollPageDown:, scrollLineUp:, and scrollLineDown: instead of _pageUp,
  3942. _pageDown, _lineUp, and _lineDown. This lets other classes see and use
  3943. these selectors, which is useful when passing calls up the responder chain.
  3944. * WebView.subproj/WebViewPrivate.h: Remove the private methods that are
  3945. being changed to match the NSResponder keyboard methods.
  3946. * WebView.subproj/WebViewPrivate.m:
  3947. (-[WebView scrollPageUp:]): Rename from _pageUp, and also pass a scrollPageUp:
  3948. selector along the responder chain if we are already scrolled to the top.
  3949. (-[WebView scrollPageDown:]): Ditto.
  3950. (-[WebView scrollLineUp:]): Rename from _lineUp.
  3951. (-[WebView scrollLineDown:]): Rename from _lineDown.
  3952. 2002-10-07 Richard Williamson <rjw@apple.com>
  3953. 'Re'play the delegate messages when an item is loaded from
  3954. the WebCore cache.
  3955. Note that the client will NOT receive a willSendRequest: message. The client
  3956. presumably already did any request substitution before the object was loaded
  3957. into the cache. Allowing the delegate to override the request and replace
  3958. the object in the WebCore cache would introduce significant complexity.
  3959. Fixes 3069138.
  3960. * WebCoreSupport.subproj/WebBridge.m:
  3961. (-[WebBridge objectLoadedFromCache:response:size:]):
  3962. * WebCoreSupport.subproj/WebSubresourceClient.m:
  3963. (-[WebSubresourceClient handle:didReceiveResponse:]):
  3964. 2002-10-05 Darin Adler <darin@apple.com>
  3965. - fixed 3068323 -- nil object inserted in dictionary exception on mouse move
  3966. * WebView.subproj/WebHTMLViewPrivate.m: (-[WebHTMLView _elementAtPoint:]):
  3967. Add some assertions in the hope of finding if my assumptions about this are
  3968. wrong, and use the version of the dictionary setter that does nothing if it's
  3969. passed nil when putting in the frame found by name.
  3970. 2002-10-04 Darin Adler <darin@apple.com>
  3971. * English.lproj/StringsNotToBeLocalized.txt: Add a localization
  3972. exception for the WebKit bundle identifier.
  3973. 2002-10-04 Darin Adler <darin@apple.com>
  3974. * Misc.subproj/WebKitLocalizableStrings.m: Added.
  3975. Contains the definition of the WebKitLocalizableStringsBundle.
  3976. * WebKit.pbproj/project.pbxproj: Add -DFRAMEWORK_NAME=WebKit.
  3977. 2002-10-04 Richard Williamson <rjw@apple.com>
  3978. Stubs for DOM level 2 core API.
  3979. * DOM.subproj/WebDOMDocument.h: Added.
  3980. * DOM.subproj/WebDOMDocument.m: Added.
  3981. * DOM.subproj/WebDOMElement.h: Added.
  3982. * DOM.subproj/WebDOMElement.m: Added.
  3983. * DOM.subproj/WebDOMNamedNodeMap.h: Added.
  3984. * DOM.subproj/WebDOMNamedNodeMap.m: Added.
  3985. * DOM.subproj/WebDOMNode.h: Added.
  3986. * DOM.subproj/WebDOMNode.m: Added.
  3987. * WebKit.pbproj/project.pbxproj:
  3988. * WebView.subproj/WebHTMLViewPrivate.m: tweak.
  3989. 2002-10-04 Darin Adler <darin@apple.com>
  3990. * English.lproj/StringsNotToBeLocalized.txt: Add the last few exceptions.
  3991. We now have a completely-clean run of extract-localizable-strings in WebKit!
  3992. 2002-10-04 Darin Adler <darin@apple.com>
  3993. - fixed 3060140 -- REGRESSION: frames of animated gif drawn in wrong position.
  3994. I got the "fromRect" and "toRect" parameters backwards when I made the changes
  3995. to fix bug 3050810.
  3996. * WebCoreSupport.subproj/WebImageRenderer.m: (-[WebImageRenderer nextFrame:]):
  3997. Reverse targetRect and imageRect.
  3998. * WebKit.pbproj/project.pbxproj: Mark some new files as UTF-8 because Project
  3999. Builder asked me to.
  4000. 2002-10-04 Darin Adler <darin@apple.com>
  4001. * Panels.subproj/WebPanelCookieAcceptHandler.h: Removed.
  4002. * Panels.subproj/WebPanelCookieAcceptHandler.m: Removed.
  4003. 2002-10-04 Richard Williamson <rjw@apple.com>
  4004. Danger Will Robinson. We have to poseAsClass: as early as possible
  4005. so that any NSViews will be created with the appropriate poser.
  4006. This problem manifested itself with SimpleViewer failing
  4007. immediately. NSViews were created by loading a nib before
  4008. WebHTMLView class initialization occured. After posing the
  4009. already instantiated instances of NSView had a %NSView class,
  4010. causing many things to break.
  4011. * WebView.subproj/WebHTMLViewPrivate.m:
  4012. (+[WebHTMLView load]):
  4013. 2002-10-04 Richard Williamson <rjw@apple.com>
  4014. Ensure that we return non-nil request from handle:willSendRequest:
  4015. even when WK's laod delegate is nil.
  4016. * WebCoreSupport.subproj/WebSubresourceClient.m:
  4017. (-[WebSubresourceClient handle:willSendRequest:]):
  4018. * WebView.subproj/WebMainResourceClient.m:
  4019. (-[WebMainResourceClient handle:willSendRequest:]):
  4020. 2002-10-04 Darin Adler <darin@apple.com>
  4021. * Panels.subproj/WebAuthenticationPanel.m:
  4022. (-[WebAuthenticationPanel loadNib]): Use ERROR instead of NSLog here.
  4023. (-[WebAuthenticationPanel setUpForRequest:]): Mark some strings for localization.
  4024. * WebKit.pbproj/project.pbxproj: Change the encoding on a lot more files to UTF-8.
  4025. * English.lproj/StringsNotToBeLocalized.txt: Added some new exceptions.
  4026. * English.lproj/Localizable.strings: Re-generated.
  4027. 2002-10-04 Richard Williamson <rjw@apple.com>
  4028. Changed WebDOMNode name to WebDebugDOMNode to make room for
  4029. real node.
  4030. * WebKit.exp:
  4031. * WebKit.pbproj/project.pbxproj:
  4032. * WebView.subproj/WebDOMNode.h: Removed.
  4033. * WebView.subproj/WebDOMNode.m: Removed.
  4034. 2002-10-04 Richard Williamson <rjw@apple.com>
  4035. * WebKit.pbproj/project.pbxproj:
  4036. 2002-10-03 Richard Williamson <rjw@apple.com>
  4037. Changed name of controller's resourceProgressDelegate methods to resourceLoadDelegate.
  4038. * WebCoreSupport.subproj/WebSubresourceClient.m:
  4039. (-[WebSubresourceClient initWithLoader:dataSource:]):
  4040. (-[WebSubresourceClient handle:didReceiveResponse:]):
  4041. (-[WebSubresourceClient handle:didReceiveData:]):
  4042. (-[WebSubresourceClient handleDidFinishLoading:]):
  4043. (-[WebSubresourceClient handle:didFailLoadingWithError:]):
  4044. * WebView.subproj/WebController.h:
  4045. * WebView.subproj/WebController.m:
  4046. (-[WebController setResourceLoadDelegate:]):
  4047. (-[WebController resourceLoadDelegate]):
  4048. (-[WebController setDownloadDelegate:]):
  4049. (-[WebController downloadDelegate]):
  4050. * WebView.subproj/WebMainResourceClient.m:
  4051. (-[WebMainResourceClient initWithDataSource:]):
  4052. (-[WebMainResourceClient handle:didReceiveResponse:]):
  4053. 2002-10-03 Richard Williamson <rjw@apple.com>
  4054. Always call resourceRequest:willSendRequest: on resourceProgressDelegate.
  4055. * WebView.subproj/WebMainResourceClient.m:
  4056. (-[WebMainResourceClient handle:willSendRequest:]):
  4057. 2002-10-03 Richard Williamson <rjw@apple.com>
  4058. Add calls to downloadProgressDelegate.
  4059. * WebView.subproj/WebMainResourceClient.m:
  4060. (-[WebMainResourceClient handle:willSendRequest:]):
  4061. (-[WebMainResourceClient handle:didReceiveResponse:]):
  4062. (-[WebMainResourceClient handle:didReceiveData:]):
  4063. (-[WebMainResourceClient handle:didFailLoadingWithError:]):
  4064. 2002-10-03 Richard Williamson <rjw@apple.com>
  4065. * WebCoreSupport.subproj/WebBridge.m:
  4066. (-[WebBridge objectLoadedFromCache:size:]):
  4067. Hack to prevent handle creation with nil delegate,
  4068. still perform frame complete check.
  4069. * WebView.subproj/WebMainResourceClient.m:
  4070. (-[WebMainResourceClient initWithDataSource:]):
  4071. Removed unused code.
  4072. (-[WebMainResourceClient handle:willSendRequest:]):
  4073. Copy the request, ugh.
  4074. 2002-10-03 Darin Adler <darin@apple.com>
  4075. Add API for executing JavaScript.
  4076. * WebView.subproj/WebController.h: Add method.
  4077. * WebView.subproj/WebController.m:
  4078. (-[WebController executeJavaScriptFromString:]): Call through to
  4079. WebCore to do the heavy lifting.
  4080. 2002-10-03 Darin Adler <darin@apple.com>
  4081. * English.lproj/Localizable.strings: Generated by the script.
  4082. * English.lproj/StringsNotToBeLocalized.txt: Added many more strings to ignore.
  4083. * English.lproj/WebError.strings: Removed.
  4084. * WebView.subproj/WebDefaultContextMenuDelegate.m:
  4085. * WebView.subproj/WebView.m:
  4086. Use UI_STRING instead of NSLocalizedString.
  4087. * WebKit.pbproj/project.pbxproj: Changed encodings of some files to UTF-8.
  4088. Removed WebError.strings.
  4089. 2002-10-03 Richard Williamson <rjw@apple.com>
  4090. Renamed WebResourceProgressDelegate.h to WebResourceLoadDelegate.h
  4091. * Misc.subproj/WebKit.h:
  4092. * WebCoreSupport.subproj/WebSubresourceClient.m:
  4093. * WebKit.pbproj/project.pbxproj:
  4094. * WebView.subproj/WebController.m:
  4095. * WebView.subproj/WebControllerPrivate.m:
  4096. * WebView.subproj/WebMainResourceClient.m:
  4097. * WebView.subproj/WebResourceLoadDelegate.h:
  4098. * WebView.subproj/WebResourceProgressDelegate.h: Removed.
  4099. 2002-10-03 Richard Williamson <rjw@apple.com>
  4100. Changed to reflect new WebResourceLoadDelegate API.
  4101. * Misc.subproj/WebIconLoader.m:
  4102. * Misc.subproj/WebKit.h:
  4103. * Plugins.subproj/WebPluginStream.m:
  4104. (-[WebNetscapePluginStream handle:didReceiveData:]):
  4105. (-[WebNetscapePluginStream handleDidFinishLoading:]):
  4106. (-[WebNetscapePluginStream cancel]):
  4107. (-[WebNetscapePluginStream handle:didFailLoadingWithError:]):
  4108. * WebCoreSupport.subproj/WebBridge.m:
  4109. (-[WebBridge objectLoadedFromCache:size:]):
  4110. (-[WebBridge reportBadURL:]):
  4111. * WebCoreSupport.subproj/WebSubresourceClient.h:
  4112. * WebCoreSupport.subproj/WebSubresourceClient.m:
  4113. (-[WebSubresourceClient initWithLoader:dataSource:]):
  4114. (-[WebSubresourceClient dealloc]):
  4115. (-[WebSubresourceClient receivedProgressWithComplete:]):
  4116. (+[WebSubresourceClient startLoadingResource:withURL:referrer:forDataSource:]):
  4117. (-[WebSubresourceClient receivedError:]):
  4118. (-[WebSubresourceClient handle:willSendRequest:]):
  4119. (-[WebSubresourceClient handle:didReceiveResponse:]):
  4120. (-[WebSubresourceClient handle:didReceiveData:]):
  4121. (-[WebSubresourceClient handleDidFinishLoading:]):
  4122. (-[WebSubresourceClient handle:didFailLoadingWithError:]):
  4123. (-[WebSubresourceClient cancel]):
  4124. * WebKit.exp:
  4125. * WebKit.pbproj/project.pbxproj:
  4126. * WebView.subproj/WebController.h:
  4127. * WebView.subproj/WebController.m:
  4128. (-[WebController setResourceProgressDelegate:]):
  4129. (-[WebController resourceProgressDelegate]):
  4130. (-[WebController setDownloadProgressDelegate:]):
  4131. (-[WebController downloadProgressDelegate]):
  4132. * WebView.subproj/WebControllerPrivate.h:
  4133. * WebView.subproj/WebControllerPrivate.m:
  4134. (-[WebController _receivedProgressForResourceHandle:fromDataSource:complete:]):
  4135. (-[WebController _mainReceivedProgressForResourceHandle:bytesSoFar:fromDataSource:complete:]):
  4136. (-[WebController _receivedError:forResourceHandle:fromDataSource:]):
  4137. (-[WebController _mainReceivedError:forResourceHandle:fromDataSource:]):
  4138. * WebView.subproj/WebLoadProgress.h: Removed.
  4139. * WebView.subproj/WebLoadProgress.m: Removed.
  4140. * WebView.subproj/WebMainResourceClient.h:
  4141. * WebView.subproj/WebMainResourceClient.m:
  4142. (-[WebMainResourceClient initWithDataSource:]):
  4143. (-[WebMainResourceClient dealloc]):
  4144. (-[WebMainResourceClient receivedProgressWithHandle:complete:]):
  4145. (-[WebMainResourceClient receivedError:forHandle:]):
  4146. (-[WebMainResourceClient handleDidFinishLoading:]):
  4147. (-[WebMainResourceClient handle:willSendRequest:]):
  4148. (-[WebMainResourceClient handle:didReceiveResponse:]):
  4149. (-[WebMainResourceClient handle:didReceiveData:]):
  4150. (-[WebMainResourceClient handle:didFailLoadingWithError:]):
  4151. * WebView.subproj/WebResourceProgressDelegate.h:
  4152. === Alexander-26 ===
  4153. 2002-10-02 Maciej Stachowiak <mjs@apple.com>
  4154. - Added "remember my password" checkbox (underlying feature not
  4155. yet implemented).
  4156. - Fixed a bug that caused a crash when cancelling the auth sheet.
  4157. * Panels.subproj/English.lproj/WebAuthenticationPanel.nib: Added
  4158. "remember this password" checkbox.
  4159. * Panels.subproj/WebAuthenticationPanel.h:
  4160. * Panels.subproj/WebAuthenticationPanel.m:
  4161. (-[WebAuthenticationPanel cancel:]): Make sure the panel gets
  4162. retained a bit longer, so the cleanup that happens after this
  4163. message is sent can use the panel object.
  4164. (-[WebAuthenticationPanel logIn:]): Make sure the panel gets
  4165. retained a bit longer, so the cleanup that happens after this
  4166. message is sent can use the panel object.
  4167. (-[WebAuthenticationPanel runAsModalDialogWithRequest:]): Pass
  4168. proper remembered value with credential.
  4169. (-[WebAuthenticationPanel sheetDidEnd:returnCode:contextInfo:]):
  4170. Pass proper remembered value with credential.
  4171. * WebKit.pbproj/project.pbxproj: Project Builder had its way with
  4172. this file.
  4173. 2002-10-02 Darin Adler <darin@apple.com>
  4174. Machinery so we can handle mouseover feedback at the browser level.
  4175. * WebView.subproj/WebWindowOperationsDelegate.h: Added mouseDidMoveOverElement:modifierFlags:.
  4176. * WebKit.exp: Export WebElementLinkTargetFrameKey.
  4177. * WebView.subproj/WebController.h: Add WebElementLinkTargetFrameKey.
  4178. * WebView.subproj/WebController.m: Ditto.
  4179. * WebView.subproj/WebHTMLView.m:
  4180. (-[WebHTMLView removeMouseMovedObserver]): Send a callback when we
  4181. stop tracking the mouse altogether.
  4182. (-[WebHTMLView viewDidMoveToWindow]): Only set up the mouse moved
  4183. observer if we are the top-level HTML view.
  4184. (-[WebHTMLView windowDidBecomeMain:]): Ditto.
  4185. (-[WebHTMLView mouseMovedNotification:]): Handle mouse over if we are
  4186. over any subview of the HTML view. Also send the callback.
  4187. * WebView.subproj/WebHTMLViewPrivate.h: Added lastMouseOverElementWasNotNil,
  4188. _mouseOverElement:modifierFlags: and _insideAnotherHTMLView.
  4189. * WebView.subproj/WebHTMLViewPrivate.m:
  4190. (-[WebHTMLView _elementAtPoint:]): Copy over each element separately so
  4191. we don't rely on keys matching. Find the target frame given the target string,
  4192. and include it in the dictionary.
  4193. (-[WebHTMLView _mouseOverElement:modifierFlags]): Added. Calls the window
  4194. operations delegate method, but doesn't call it over and over again if the
  4195. information is still "nil".
  4196. (-[WebHTMLView _insideAnotherHTMLView]): Added.
  4197. (-[NSMutableDictionary _web_setObjectIfNotNil:forKey:]): Added. Helper for
  4198. the _elementAtPoint method which could be moved to WebNSDictionaryExtras some day.
  4199. 2002-10-02 Ken Kocienda <kocienda@apple.com>
  4200. Implemented HTTP-specific subclass for WebResourceResponse.
  4201. * Plugins.subproj/WebPluginStream.m:
  4202. (-[WebNetscapePluginStream receivedData:]): Add import for WebHTTPResourceResponse.
  4203. 2002-10-02 Darin Adler <darin@apple.com>
  4204. Add return value to willSendRequest callback.
  4205. * Misc.subproj/WebIconLoader.m:
  4206. (-[WebIconLoader handle:willSendRequest:]):
  4207. * Plugins.subproj/WebPluginStream.m:
  4208. (-[WebNetscapePluginStream handle:willSendRequest:]):
  4209. * WebCoreSupport.subproj/WebSubresourceClient.m:
  4210. (-[WebSubresourceClient handle:willSendRequest:]):
  4211. * WebView.subproj/WebMainResourceClient.m:
  4212. (-[WebMainResourceClient handle:willSendRequest:]):
  4213. Update to return the request.
  4214. 2002-10-02 Darin Adler <darin@apple.com>
  4215. Use the text encoding name from the response and got rid of
  4216. [WebDataSource encoding]. Also remove the "first chunk" logic since we
  4217. now get a separate callback for the response.
  4218. * WebCoreSupport.subproj/WebBridge.m:
  4219. (-[WebBridge receivedData:withDataSource:]): Get the encoding name
  4220. from the response, or fall back on the default.
  4221. * WebView.subproj/WebDataSource.h: Removed encoding.
  4222. * WebView.subproj/WebDataSource.m: Ditto.
  4223. * WebView.subproj/WebDataSourcePrivate.h: Removed _setEncoding.
  4224. * WebView.subproj/WebDataSourcePrivate.m:
  4225. (-[WebDataSourcePrivate dealloc]): No need to release encoding any more.
  4226. * WebView.subproj/WebMainResourceClient.m:
  4227. (-[WebMainResourceClient initWithDataSource:]): No isFirstChunk to initialize.
  4228. (-[WebMainResourceClient handle:didReceiveResponse:]): Moved the response handling
  4229. in here, including the policy logic.
  4230. (-[WebMainResourceClient handle:didReceiveData:]): This has only what's left.
  4231. 2002-10-02 Chris Blumenberg <cblu@apple.com>
  4232. Replaced contentType on WebDataSource to response.
  4233. * Plugins.subproj/WebNetscapePluginDocumentView.m:
  4234. (-[WebNetscapePluginDocumentView setDataSource:]):
  4235. * Plugins.subproj/WebPluginStream.m:
  4236. (-[WebNetscapePluginStream receivedData:]):
  4237. (-[WebNetscapePluginStream setResponse:]):
  4238. (-[WebNetscapePluginStream setDataSource:]):
  4239. (-[WebNetscapePluginStream receivedData:withDataSource:]):
  4240. (-[WebNetscapePluginStream handle:didReceiveResponse:]):
  4241. (-[WebNetscapePluginStream handle:didReceiveData:]):
  4242. * WebView.subproj/WebDataSource.h:
  4243. * WebView.subproj/WebDataSource.m:
  4244. (-[WebDataSource response]):
  4245. (-[WebDataSource fileType]):
  4246. * WebView.subproj/WebDataSourcePrivate.h:
  4247. * WebView.subproj/WebDataSourcePrivate.m:
  4248. (-[WebDataSourcePrivate dealloc]):
  4249. (-[WebDataSource _representationClass]):
  4250. (-[WebDataSource _setResponse:]):
  4251. (-[WebDataSource _setContentPolicy:]):
  4252. * WebView.subproj/WebMainResourceClient.h:
  4253. * WebView.subproj/WebMainResourceClient.m:
  4254. (-[WebMainResourceClient dealloc]):
  4255. (-[WebMainResourceClient handleDidFinishLoading:]):
  4256. (-[WebMainResourceClient handle:didReceiveResponse:]):
  4257. (-[WebMainResourceClient handle:didReceiveData:]):
  4258. * WebView.subproj/WebTextView.m:
  4259. (-[WebTextView dataSourceUpdated:]):
  4260. * WebView.subproj/WebViewPrivate.m:
  4261. (-[WebView _makeDocumentViewForDataSource:]):
  4262. 2002-10-02 Darin Adler <darin@apple.com>
  4263. More work on "open window behind".
  4264. * WebView.subproj/WebControllerPolicyDelegate.h: Add new OpenNewWindowBehind
  4265. constants to the enums.
  4266. * WebView.subproj/WebWindowOperationsDelegate.h: Add a behind: parameter to
  4267. the openNewWindowWithURL method.
  4268. * WebView.subproj/WebHTMLViewPrivate.m:
  4269. (-[WebHTMLView _continueAfterClickPolicyForEvent:]): In the new
  4270. WebClickPolicyOpenNewWindowBehind case, pass YES for behind.
  4271. * Plugins.subproj/WebBaseNetscapePluginView.m:
  4272. (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
  4273. * WebCoreSupport.subproj/WebBridge.m:
  4274. (-[WebBridge openNewWindowWithURL:referrer:frameName:]):
  4275. * WebView.subproj/WebDefaultContextMenuDelegate.m:
  4276. (-[WebDefaultContextMenuDelegate openNewWindowWithURL:referrer:]):
  4277. * WebView.subproj/WebFrame.m:
  4278. (-[WebFrame frameNamed:]):
  4279. Pass NO for behind.
  4280. 2002-10-02 Darin Adler <darin@apple.com>
  4281. Cut down on unnecessary use of WebFoundation private stuff.
  4282. * Plugins.subproj/WebPluginStream.m:
  4283. (-[WebNetscapePluginStream startLoad]): Remove unnecessary use of
  4284. [WebResourceHandle _request].
  4285. * WebCoreSupport.subproj/WebSubresourceClient.m:
  4286. (-[WebSubresourceClient handleDidFinishLoading:]): Remove assert about
  4287. status code, since status codes are going away.
  4288. * WebView.subproj/WebMainResourceClient.m:
  4289. (-[WebMainResourceClient didCancelWithHandle:]): Use currentURL for logging.
  4290. (-[WebMainResourceClient handleDidFinishLoading:]): Ditto.
  4291. (-[WebMainResourceClient handle:didReceiveData:]): Ditto.
  4292. 2002-10-02 Darin Adler <darin@apple.com>
  4293. * WebView.subproj/WebControllerPolicyDelegate.h: Change modifierMask to
  4294. modifierFlags to match NSEvent.
  4295. * WebView.subproj/WebDefaultPolicyDelegate.m:
  4296. (-[WebDefaultPolicyDelegate clickPolicyForElement:button:modifierFlags:]): Ditto.
  4297. * WebView.subproj/WebHTMLViewPrivate.m:
  4298. (-[WebHTMLView _continueAfterClickPolicyForEvent:]): Ditto.
  4299. 2002-10-02 Darin Adler <darin@apple.com>
  4300. Get rid of uses of canonicalURL.
  4301. * WebCoreSupport.subproj/WebSubresourceClient.m:
  4302. (+[WebSubresourceClient startLoadingResource:withURL:referrer:forDataSource:]):
  4303. Start with normal URL. The change to the canonical URL will come in as a redirect.
  4304. (-[WebSubresourceClient handle:didReceiveData:]): Remove assert.
  4305. (-[WebSubresourceClient handleDidFinishLoading:]): Ditto.
  4306. * WebView.subproj/WebDataSource.m:
  4307. (-[WebDataSource initWithRequest:]):Start with normal URL. The change to the
  4308. canonical URL will come in as a redirect.
  4309. 2002-10-02 Ken Kocienda <kocienda@apple.com>
  4310. Added import of WebHTTPResourceRequest.h to get access to methods
  4311. which have moved to the HTTP-sepcific request category.
  4312. * WebView.subproj/WebDataSourcePrivate.m
  4313. 2002-10-01 John Sullivan <sullivan@apple.com>
  4314. * WebKit.exp: added .objc_class_name_WebTextRendererFactory
  4315. so I could use it from WebBrowser.
  4316. * WebCoreSupport.subproj/WebBridge.m:
  4317. (-[WebBridge startLoadingResource:withURL:referrer:]):
  4318. Just changed whitespace so the .exp change would be built.
  4319. 2002-10-01 Chris Blumenberg <cblu@apple.com>
  4320. Fixed build breakage.
  4321. * Plugins.subproj/WebBaseNetscapePluginView.m:
  4322. (-[WebBaseNetscapePluginView setWindow]):
  4323. 2002-10-01 Ken Kocienda <kocienda@apple.com>
  4324. Implemented WebResourceRequest "category" design for extending a
  4325. request with protocol-specific data.
  4326. * WebCoreSupport.subproj/WebBridge.m: Now imports WebHTTPResourceRequest.h.
  4327. * WebCoreSupport.subproj/WebSubresourceClient.m: Ditto.
  4328. * WebView.subproj/WebMainResourceClient.m: Ditto.
  4329. 2002-10-01 Chris Blumenberg <cblu@apple.com>
  4330. - Added debug drawing
  4331. - removed unnecessary ifdef'ing.
  4332. * Plugins.subproj/WebBaseNetscapePluginView.m:
  4333. (-[WebBaseNetscapePluginView sendActivateEvent:]):
  4334. (-[WebBaseNetscapePluginView becomeFirstResponder]):
  4335. (-[WebBaseNetscapePluginView resignFirstResponder]):
  4336. (-[WebBaseNetscapePluginView mouseDown:]):
  4337. (-[WebBaseNetscapePluginView mouseUp:]):
  4338. (-[WebBaseNetscapePluginView mouseEntered:]):
  4339. (-[WebBaseNetscapePluginView mouseExited:]):
  4340. (-[WebBaseNetscapePluginView menuForEvent:]):
  4341. (-[WebBaseNetscapePluginView setWindow]):
  4342. (-[WebBaseNetscapePluginView start]):
  4343. (-[WebBaseNetscapePluginView drawRect:]):
  4344. 2002-10-01 Ken Kocienda <kocienda@apple.com>
  4345. * WebCoreSupport.subproj/WebSubresourceClient.m:
  4346. (-[WebSubresourceClient handleDidFinishLoading:]): Fixed Development build breakage. Call to [response statusCode]
  4347. now calls the handle's private method to get the status code.
  4348. * WebView.subproj/WebMainResourceClient.m:
  4349. (-[WebMainResourceClient handleDidFinishLoading:]): Ditto.
  4350. (-[WebMainResourceClient handle:didReceiveData:]): Calls new textEncodingName method, replacing call to characterSet.
  4351. 2002-10-01 Ken Kocienda <kocienda@apple.com>
  4352. * WebView.subproj/WebLoadProgress.m:
  4353. (-[WebLoadProgress initWithResourceHandle:]): Status code moved from WebResourceResponse
  4354. to WebResourceHandle private API.
  4355. 2002-10-01 Ken Kocienda <kocienda@apple.com>
  4356. Changed WebResourceHandle so that the init method no longer starts the
  4357. loading of the request to begin. Added new loadWithDelegate: method which
  4358. is called separatetly from the init method, to start loads.
  4359. All of the changes here update code that depends on WebResourceHandle. The
  4360. changes move the code to the modified API.
  4361. * Misc.subproj/WebIconLoader.m:
  4362. (-[WebIconLoader startLoading])
  4363. * Plugins.subproj/WebPluginStream.m:
  4364. (-[WebNetscapePluginStream startLoad])
  4365. * WebCoreSupport.subproj/WebBridge.m:
  4366. (-[WebBridge objectLoadedFromCache:size:])
  4367. * WebCoreSupport.subproj/WebSubresourceClient.m:
  4368. (+[WebSubresourceClient startLoadingResource:withURL:referrer:forDataSource:])
  4369. * WebView.subproj/WebDataSourcePrivate.m:
  4370. (-[WebDataSource _startLoading])
  4371. 2002-10-01 Chris Blumenberg <cblu@apple.com>
  4372. Fixed copyright comments.
  4373. * Plugins.subproj/WebBaseNetscapePluginView.h:
  4374. * Plugins.subproj/WebBaseNetscapePluginViewPrivate.h:
  4375. * Plugins.subproj/WebNetscapePluginDocumentView.h:
  4376. * Plugins.subproj/WebNetscapePluginDocumentView.m:
  4377. * Plugins.subproj/WebNetscapePluginEmbeddedView.h:
  4378. * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
  4379. * Plugins.subproj/WebNullPluginView.h:
  4380. * Plugins.subproj/WebNullPluginView.m:
  4381. * Plugins.subproj/WebPlugin.h:
  4382. * Plugins.subproj/WebPlugin.m:
  4383. * Plugins.subproj/WebPluginDatabase.h:
  4384. * Plugins.subproj/WebPluginDatabase.m:
  4385. * Plugins.subproj/WebPluginNullEventSender.h:
  4386. * Plugins.subproj/WebPluginNullEventSender.m:
  4387. * Plugins.subproj/WebPluginStream.h:
  4388. * Plugins.subproj/WebPluginStream.m:
  4389. * Plugins.subproj/npapi.h:
  4390. * Plugins.subproj/npapi.m:
  4391. 2002-10-01 Ken Kocienda <kocienda@apple.com>
  4392. Many changes to coincide with API work in WebFoundation. Most of the modifications
  4393. here have to do with changes for the new callback scheme.
  4394. * Misc.subproj/WebIconLoader.m:
  4395. (-[WebIconLoader handleDidFinishLoading:])
  4396. (-[WebIconLoader handle:willSendRequest:]): New method. A no-op here.
  4397. (-[WebIconLoader handle:didReceiveResponse:]): Ditto.
  4398. * Plugins.subproj/WebBaseNetscapePluginView.m:
  4399. (-[WebBaseNetscapePluginView stop]): Fix for Deployment build breakage.
  4400. * Plugins.subproj/WebPluginStream.h: Add response ivar.
  4401. * Plugins.subproj/WebPluginStream.m:
  4402. (-[WebNetscapePluginStream startLoad]): Tweak method name for new API.
  4403. (-[WebNetscapePluginStream receivedData:withHandle:]):
  4404. (-[WebNetscapePluginStream handle:willSendRequest:]): New method. Replaces old redirect callback.
  4405. (-[WebNetscapePluginStream handle:didReceiveResponse:]): New method. Set the response ivar.
  4406. * WebCoreSupport.subproj/WebSubresourceClient.h: Add response ivar.
  4407. * WebCoreSupport.subproj/WebSubresourceClient.m:
  4408. (-[WebSubresourceClient dealloc]): Release response ivar.
  4409. (+[WebSubresourceClient startLoadingResource:withURL:referrer:forDataSource:]): Set the request user agent here.
  4410. (-[WebSubresourceClient handle:willSendRequest:]): New method. Handle like a redirect.
  4411. (-[WebSubresourceClient handle:didReceiveResponse:]): New method. Set the response ivar.
  4412. (-[WebSubresourceClient handle:didReceiveData:]): Tweaks for new WebFoundation API and method names.
  4413. (-[WebSubresourceClient handleDidFinishLoading:]): Ditto.
  4414. (-[WebSubresourceClient handle:didFailLoadingWithError:]): Ditto.
  4415. * WebView.subproj/WebControllerPrivate.m:
  4416. (-[WebController _receivedError:forResourceHandle:partialProgress:fromDataSource:]): Ditto.
  4417. * WebView.subproj/WebDataSourcePrivate.h: Add _setRequest method.
  4418. * WebView.subproj/WebDataSourcePrivate.m:
  4419. (-[WebDataSource _startLoading]): Call didStartLoadingWithURL with request URL instead of handle URL.
  4420. (-[WebDataSource _setRequest:]): Add implementation.
  4421. * WebView.subproj/WebLoadProgress.m:
  4422. (-[WebLoadProgress initWithResourceHandle:]): Tweaks for new WebFoundation API and method names.
  4423. * WebView.subproj/WebMainResourceClient.h: Add response ivar.
  4424. * WebView.subproj/WebMainResourceClient.m:
  4425. (-[WebMainResourceClient initWithDataSource:]): Set user agent on request here.
  4426. (-[WebMainResourceClient dealloc]): Release response ivar.
  4427. (-[WebMainResourceClient didCancelWithHandle:]): Tweaks for new WebFoundation API and method names.
  4428. (-[WebMainResourceClient handleDidFinishLoading:]): Tweaks for new WebFoundation API and method names.
  4429. (-[WebMainResourceClient handle:willSendRequest:]): New method. Handle like a redirect.
  4430. (-[WebMainResourceClient handle:didReceiveResponse:]): New method. Set the response ivar.
  4431. (-[WebMainResourceClient handle:didReceiveData:]): Tweaks for new WebFoundation API and method names.
  4432. (-[WebMainResourceClient handle:didFailLoadingWithError:]): Ditto.
  4433. 2002-09-30 Chris Blumenberg <cblu@apple.com>
  4434. A ton o' plugin view clean-up and arch changes. Turned WebPluginView into WebBaseNetscapePluginView. New classes WebNetscapePluginEmbeddedView and WebNetscapePluginDocumentView are subclasses of WebBaseNetscapePluginView. WebNetscapePluginDocumentView ha
  4435. ndles non-HTML plug-in content and WebNetscapePluginEmbeddedView is the WebHTMLView subview.
  4436. Found that we leak the world on complex pages with plug-ins such as macromedia.com and marvel.com when closing the window. Still need to figure this out.
  4437. * Plugins.subproj/WebBaseNetscapePluginView.h: Added.
  4438. * Plugins.subproj/WebBaseNetscapePluginView.m: Added.
  4439. (+[WebBaseNetscapePluginView getCarbonEvent:]):
  4440. (-[WebBaseNetscapePluginView getCarbonEvent:]):
  4441. (-[WebBaseNetscapePluginView modifiersForEvent:]):
  4442. (-[WebBaseNetscapePluginView getCarbonEvent:withEvent:]):
  4443. (-[WebBaseNetscapePluginView keyMessageForEvent:]):
  4444. (-[WebBaseNetscapePluginView sendEvent:]):
  4445. (-[WebBaseNetscapePluginView sendActivateEvent:]):
  4446. (-[WebBaseNetscapePluginView sendUpdateEvent]):
  4447. (-[WebBaseNetscapePluginView acceptsFirstResponder]):
  4448. (-[WebBaseNetscapePluginView becomeFirstResponder]):
  4449. (-[WebBaseNetscapePluginView resignFirstResponder]):
  4450. (-[WebBaseNetscapePluginView mouseDown:]):
  4451. (-[WebBaseNetscapePluginView mouseUp:]):
  4452. (-[WebBaseNetscapePluginView mouseEntered:]):
  4453. (-[WebBaseNetscapePluginView mouseExited:]):
  4454. (-[WebBaseNetscapePluginView keyUp:]):
  4455. (-[WebBaseNetscapePluginView keyDown:]):
  4456. (-[WebBaseNetscapePluginView isInResponderChain]):
  4457. (-[WebBaseNetscapePluginView performKeyEquivalent:]):
  4458. (-[WebBaseNetscapePluginView menuForEvent:]):
  4459. (-[WebBaseNetscapePluginView setUpWindowAndPort]):
  4460. (-[WebBaseNetscapePluginView setWindow]):
  4461. (-[WebBaseNetscapePluginView removeTrackingRect]):
  4462. (-[WebBaseNetscapePluginView resetTrackingRect]):
  4463. (-[WebBaseNetscapePluginView start]):
  4464. (-[WebBaseNetscapePluginView stop]):
  4465. (-[WebBaseNetscapePluginView dataSource]):
  4466. (-[WebBaseNetscapePluginView webFrame]):
  4467. (-[WebBaseNetscapePluginView controller]):
  4468. (-[WebBaseNetscapePluginView plugin]):
  4469. (-[WebBaseNetscapePluginView setMIMEType:]):
  4470. (-[WebBaseNetscapePluginView setBaseURL:]):
  4471. (-[WebBaseNetscapePluginView setArguments:]):
  4472. (-[WebBaseNetscapePluginView setMode:]):
  4473. (-[WebBaseNetscapePluginView initWithFrame:]):
  4474. (-[WebBaseNetscapePluginView dealloc]):
  4475. (-[WebBaseNetscapePluginView drawRect:]):
  4476. (-[WebBaseNetscapePluginView isFlipped]):
  4477. (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
  4478. (-[WebBaseNetscapePluginView viewDidMoveToWindow]):
  4479. (-[WebBaseNetscapePluginView viewHasMoved:]):
  4480. (-[WebBaseNetscapePluginView windowWillClose:]):
  4481. (-[WebBaseNetscapePluginView windowBecameKey:]):
  4482. (-[WebBaseNetscapePluginView windowResignedKey:]):
  4483. (-[WebBaseNetscapePluginView defaultsHaveChanged:]):
  4484. (-[WebBaseNetscapePluginView frameStateChanged:]):
  4485. (-[WebBaseNetscapePluginView pluginInstance]):
  4486. (-[WebBaseNetscapePluginView pluginURLFromCString:]):
  4487. (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
  4488. (-[WebBaseNetscapePluginView getURLNotify:target:notifyData:]):
  4489. (-[WebBaseNetscapePluginView getURL:target:]):
  4490. (-[WebBaseNetscapePluginView postURLNotify:target:len:buf:file:notifyData:]):
  4491. (-[WebBaseNetscapePluginView postURL:target:len:buf:file:]):
  4492. (-[WebBaseNetscapePluginView newStream:target:stream:]):
  4493. (-[WebBaseNetscapePluginView write:len:buffer:]):
  4494. (-[WebBaseNetscapePluginView destroyStream:reason:]):
  4495. (-[WebBaseNetscapePluginView status:]):
  4496. (-[WebBaseNetscapePluginView invalidateRect:]):
  4497. (-[WebBaseNetscapePluginView invalidateRegion:]):
  4498. (-[WebBaseNetscapePluginView forceRedraw]):
  4499. * Plugins.subproj/WebBaseNetscapePluginViewPrivate.h: Added.
  4500. * Plugins.subproj/WebNetscapePluginDocumentView.h: Added.
  4501. * Plugins.subproj/WebNetscapePluginDocumentView.m: Added.
  4502. (-[WebNetscapePluginDocumentView initWithFrame:]):
  4503. (-[WebNetscapePluginDocumentView dealloc]):
  4504. (-[WebNetscapePluginDocumentView drawRect:]):
  4505. (-[WebNetscapePluginDocumentView dataSource]):
  4506. (-[WebNetscapePluginDocumentView setDataSource:]):
  4507. (-[WebNetscapePluginDocumentView dataSourceUpdated:]):
  4508. (-[WebNetscapePluginDocumentView setNeedsLayout:]):
  4509. (-[WebNetscapePluginDocumentView layout]):
  4510. * Plugins.subproj/WebNetscapePluginEmbeddedView.h: Added.
  4511. * Plugins.subproj/WebNetscapePluginEmbeddedView.m: Added.
  4512. (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:mime:arguments:]):
  4513. (-[WebNetscapePluginEmbeddedView dealloc]):
  4514. (-[WebNetscapePluginEmbeddedView viewDidMoveToWindow]):
  4515. (-[WebNetscapePluginEmbeddedView start]):
  4516. (-[WebNetscapePluginEmbeddedView dataSource]):
  4517. * Plugins.subproj/WebNetscapePluginViewPrivate.h: Removed.
  4518. * Plugins.subproj/WebPluginDatabase.m:
  4519. (-[WebNetscapePluginDatabase init]):
  4520. * Plugins.subproj/WebPluginNullEventSender.h:
  4521. * Plugins.subproj/WebPluginNullEventSender.m:
  4522. (-[WebNetscapePluginNullEventSender initWithPluginView:]):
  4523. (-[WebNetscapePluginNullEventSender sendNullEvents]):
  4524. * Plugins.subproj/WebPluginStream.h:
  4525. * Plugins.subproj/WebPluginStream.m:
  4526. (-[WebNetscapePluginStream getFunctionPointersFromPluginView:]):
  4527. (-[WebNetscapePluginStream initWithURL:pluginPointer:notifyData:]):
  4528. (-[WebNetscapePluginStream dealloc]):
  4529. (-[WebNetscapePluginStream startLoad]):
  4530. (-[WebNetscapePluginStream receivedData:withDataSource:]):
  4531. (-[WebNetscapePluginStream handleWillUseUserAgent:forURL:]):
  4532. (-[WebNetscapePluginStream handle:didReceiveData:]):
  4533. (-[WebNetscapePluginStream handleDidFinishLoading:]):
  4534. (-[WebNetscapePluginStream cancel]):
  4535. (-[WebNetscapePluginStream handle:didFailLoadingWithError:]):
  4536. (-[WebNetscapePluginStream handleDidRedirect:toURL:]):
  4537. * Plugins.subproj/WebPluginView.h: Removed.
  4538. * Plugins.subproj/WebPluginView.m: Removed.
  4539. * Plugins.subproj/npapi.m:
  4540. (NPN_GetURLNotify):
  4541. (NPN_GetURL):
  4542. (NPN_PostURLNotify):
  4543. (NPN_PostURL):
  4544. (NPN_NewStream):
  4545. (NPN_Write):
  4546. (NPN_DestroyStream):
  4547. (NPN_Status):
  4548. (NPN_InvalidateRect):
  4549. (NPN_InvalidateRegion):
  4550. (NPN_ForceRedraw):
  4551. * WebCoreSupport.subproj/WebViewFactory.m:
  4552. (-[WebViewFactory viewForPluginWithURL:serviceType:arguments:baseURL:]):
  4553. (-[WebViewFactory viewForJavaAppletWithFrame:baseURL:parameters:]):
  4554. * WebKit.pbproj/project.pbxproj:
  4555. * WebView.subproj/WebHTMLViewPrivate.m:
  4556. (-[NSView _web_stopIfPluginView]):
  4557. 2002-09-30 Darin Adler <darin@apple.com>
  4558. * WebView.subproj/WebDataSource.m: (-[WebDataSource initWithRequest:]):
  4559. Remove the ill-advised "don't even create a WebDataSource if WebResourceHandle
  4560. can't handle this request" code.
  4561. * WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _startLoading]):
  4562. Rearrange checks so we won't get confused if we can't create a handle.
  4563. 2002-09-30 Darin Adler <darin@apple.com>
  4564. * English.lproj/StringsNotToBeLocalized.txt: Added.
  4565. 2002-09-30 Darin Adler <darin@apple.com>
  4566. - fixed crashing part of 3063517 -- crash loading .png in separate window
  4567. * Plugins.subproj/WebPluginView.m:
  4568. (-[WebNetscapePluginView start]): Don't try to start if the NPP_New is 0.
  4569. This indicates the the plugin hasn't been loaded.
  4570. 2002-09-30 Darin Adler <darin@apple.com>
  4571. * WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _setLoading:]):
  4572. Remove extra quotes in use of ASSERT_ARG.
  4573. 2002-09-29 Darin Adler <darin@apple.com>
  4574. * Misc.subproj/WebIconDatabase.m: (-[WebIconDatabase _iconForFileURL:withSize:]):
  4575. Don't be case sensitive about filename extensions.
  4576. * Misc.subproj/WebDownloadHandler.m:
  4577. * Misc.subproj/WebIconLoader.m:
  4578. * Plugins.subproj/WebPluginStream.m:
  4579. * WebView.subproj/WebDataSource.m:
  4580. * WebView.subproj/WebDefaultContextMenuDelegate.m:
  4581. * WebView.subproj/WebFrame.m:
  4582. * WebView.subproj/WebFramePrivate.m:
  4583. * WebView.subproj/WebView.m:
  4584. Don't use WebFoundation.h -- faster building to just import what we really use.
  4585. 2002-09-29 Chris Blumenberg <cblu@apple.com>
  4586. Fixed: 2978258 - quake3arena.com sends me to the flash=false site
  4587. The page has a flash plugin that once loaded, requests the flash=true page. If the plugin doesn't load, the meta refresh tag to the flash=false page fires after 3 seconds. This is how this site's flash detection works.
  4588. The reason this doesn't work for us is because the flash movie is at the bottom of the page. Plugins don't start until the initial drawRect. Since the movie is at the bottom of the page and out of site, the plugin never gets the drawRect and thus, never
  4589. starts. We now start plug-ins when they are added to the window.
  4590. Fixed: 3062224 - context menu includes "Download Item to Disk" for mailto links
  4591. - Fixed click then click and drag causes crash.
  4592. * Plugins.subproj/WebPluginView.m:
  4593. (-[WebNetscapePluginView drawRect:]): don't start plug-in here
  4594. (-[WebNetscapePluginView viewDidMoveToWindow]): start it here
  4595. * WebView.subproj/WebDefaultContextMenuDelegate.m:
  4596. (-[WebDefaultContextMenuDelegate contextMenuItemsForElement:defaultMenuItems:]): don't provide "Download Link To Disk" and "Open Link In New Window" items for URLs we cant handle.
  4597. * WebView.subproj/WebHTMLView.m:
  4598. (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]): clean-up
  4599. (-[WebHTMLView mouseDragged:]): Don't allow drag if the frame has a provisional data source because this view may be released and the drag callbacks might reference this released view.
  4600. 2002-09-28 Darin Adler <darin@apple.com>
  4601. * WebView.subproj/WebDataSource.m: (-[WebDataSource initWithRequest:]):
  4602. Catch a request that we can't use here instead of failing later.
  4603. * WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _startLoading]):
  4604. Added an assert so the failure was less confusing; good idea to leave it in.
  4605. 2002-09-28 Chris Blumenberg <cblu@apple.com>
  4606. Support for latest Flash plug-in. It requests a javascript URL for every plug-in instance.
  4607. Until javascript URLs work, we return an error to the plug-in.
  4608. Fixed: 3035582 - flash animations don't work after upgrading flash
  4609. Fixed: 3021936 - links in flash at foggypetronasracing.com doesn't work
  4610. * Plugins.subproj/WebPluginStream.h:
  4611. * Plugins.subproj/WebPluginStream.m:
  4612. (-[WebNetscapePluginStream initWithURL:pluginPointer:notifyData:]):
  4613. Make the request here and return nil if we can't create a handle with it.
  4614. (-[WebNetscapePluginStream dealloc]): release the request
  4615. (-[WebNetscapePluginStream startLoad]): use the request when creating the handle
  4616. 2002-09-28 Darin Adler <darin@apple.com>
  4617. * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge setNeedsLayout]): Added.
  4618. 2002-09-27 Chris Blumenberg <cblu@apple.com>
  4619. Fixed KJS crasher caused by nil plug-in returned from WebPlugin.
  4620. Got the RealPlayer plug-in loaded, nothing playing yet.
  4621. * Plugins.subproj/WebPlugin.m:
  4622. (-[WebNetscapePlugin getPluginInfo]): check for nil plug-in names/descriptions
  4623. (-[WebNetscapePlugin stringByResolvingSymlinksAndAliasesInPath:]): new, resolves old-style aliases
  4624. (-[WebNetscapePlugin initWithPath:]): call stringByResolvingSymlinksAndAliasesInPath
  4625. 2002-09-27 Richard Williamson <rjw@apple.com>
  4626. Fix 3058315: crash in WebHTMLRepresentation receivedData:withDataSource
  4627. http://www.u2.com/lite/ does some whacky things with its framset's onLoad
  4628. handler. The fix ensures that data isn't sent to the bridge once
  4629. the bridge has been dealloced.
  4630. * WebKit.pbproj/project.pbxproj: Nothing changed. PB dorkiness.
  4631. * WebView.subproj/WebHTMLRepresentation.m:
  4632. (-[WebHTMLRepresentation receivedData:withDataSource:]):
  4633. 2002-09-27 Chris Blumenberg <cblu@apple.com>
  4634. Fixed: 3056559 - QT plugin doesn't load
  4635. Fixed: 3042850 - Enable Java by default
  4636. Cleaned up WebPlugin and WebPluginDatabase.
  4637. * Plugins.subproj/WebPlugin.h:
  4638. * Plugins.subproj/WebPlugin.m:
  4639. (-[WebNetscapePlugin openResourceFile]):
  4640. (-[WebNetscapePlugin closeResourceFile:]):
  4641. (-[WebNetscapePlugin stringForStringListID:andIndex:]):
  4642. (-[WebNetscapePlugin getPluginInfo]):
  4643. (-[WebNetscapePlugin initWithPath:]):
  4644. (-[WebNetscapePlugin load]):
  4645. (-[WebNetscapePlugin unload]):
  4646. (-[WebNetscapePlugin MIMEToExtensionsDictionary]):
  4647. (-[WebNetscapePlugin extensionToMIMEDictionary]):
  4648. (-[WebNetscapePlugin MIMEToDescriptionDictionary]):
  4649. (-[WebNetscapePlugin description]):
  4650. * Plugins.subproj/WebPluginDatabase.h:
  4651. * Plugins.subproj/WebPluginDatabase.m:
  4652. (-[WebNetscapePluginDatabase pluginForMIMEType:]):
  4653. (-[WebNetscapePluginDatabase pluginForExtension:]):
  4654. (-[WebNetscapePluginDatabase pluginForFilename:]):
  4655. (-[WebNetscapePluginDatabase MIMETypes]):
  4656. (-[WebNetscapePluginDatabase init]):
  4657. * Plugins.subproj/WebPluginView.m:
  4658. (-[WebNetscapePluginView setDataSource:]):
  4659. * WebCoreSupport.subproj/WebViewFactory.m:
  4660. (-[WebViewFactory viewForPluginWithURL:serviceType:arguments:baseURL:]):
  4661. (-[WebViewFactory viewForJavaAppletWithFrame:baseURL:parameters:]):
  4662. * WebView.subproj/WebPreferences.m:
  4663. (+[WebPreferences load]): Enable Java by default
  4664. 2002-09-27 Richard Williamson <rjw@apple.com>
  4665. Fixed 3060158: REGRESSION: iframes added to session history
  4666. Also moved setting title in history to WebKit.
  4667. * History.subproj/WebHistory.h:
  4668. * History.subproj/WebHistory.m:
  4669. (+[WebHistory sharedHistory]):
  4670. (+[WebHistory webHistoryWithFile:]):
  4671. (-[WebHistory addEntryForURL:]):
  4672. (-[WebHistory addEntries:]):
  4673. * History.subproj/WebHistoryPrivate.h:
  4674. * History.subproj/WebHistoryPrivate.m:
  4675. * WebCoreSupport.subproj/WebBridge.m:
  4676. (-[WebBridge requestedURL]):
  4677. * WebView.subproj/WebDataSourcePrivate.m:
  4678. (-[WebDataSource _setTitle:]):
  4679. * WebView.subproj/WebFramePrivate.m:
  4680. (-[WebFrame _transitionToCommitted]):
  4681. * WebView.subproj/WebHTMLView.m:
  4682. (-[WebHTMLView mouseDragged:]):
  4683. 2002-09-26 Richard Williamson <rjw@apple.com>
  4684. More twiddling. Changed the color of the drag labels to
  4685. match the favorites bar.
  4686. * WebView.subproj/WebHTMLView.m:
  4687. (-[WebHTMLView mouseDragged:]):
  4688. 2002-09-27 Chris Blumenberg <cblu@apple.com>
  4689. Added support for dragging links the the dock.
  4690. Created new pasteboard types WebURLPboardType WebURLNamePboardType that the dock requires.
  4691. * Misc.subproj/WebNSPasteboardExtras.h:
  4692. * Misc.subproj/WebNSPasteboardExtras.m:
  4693. (+[NSPasteboard initialize]): set WebURLPboardType and WebURLNamePboardType
  4694. (-[NSPasteboard _web_writeURL:andTitle:withOwner:]): use WebURLPboardType and WebURLNamePboardType
  4695. * WebKit.exp: export WebURLPboardType and WebURLNamePboardType
  4696. 2002-09-27 Maciej Stachowiak <mjs@apple.com>
  4697. * Panels.subproj/WebAuthenticationPanel.m:
  4698. (-[WebAuthenticationPanel setUpForRequest:]):
  4699. (-[WebAuthenticationPanel runAsModalDialogWithRequest:]):
  4700. (-[WebAuthenticationPanel sheetDidEnd:returnCode:contextInfo:]):
  4701. * Panels.subproj/WebPanelAuthenticationHandler.h:
  4702. * Panels.subproj/WebPanelAuthenticationHandler.m:
  4703. (-[WebPanelAuthenticationHandler isReadyToStartAuthentication:]):
  4704. (-[WebPanelAuthenticationHandler startAuthentication:]):
  4705. (-[WebPanelAuthenticationHandler _authenticationDoneWithRequest:result:]):
  4706. 2002-09-26 Darin Adler <darin@apple.com>
  4707. * WebCoreSupport.subproj/WebBridge.m:
  4708. (-[WebBridge receivedData:withDataSource:]): Use NSString for encoding.
  4709. * WebView.subproj/WebController.h: Update names to use separate boolean
  4710. for user agent and strings for text encodings instead of CFStringEncoding.
  4711. * WebView.subproj/WebController.m:
  4712. (-[WebController setCustomUserAgent:]): Name change.
  4713. (-[WebController resetUserAgent]): Added.
  4714. (-[WebController hasCustomUserAgent]): Added.
  4715. (-[WebController customUserAgent]): Name change.
  4716. (-[WebController setCustomTextEncodingName:]): Take NSString.
  4717. (-[WebController resetTextEncoding]): Update for NSString.
  4718. (-[WebController _mainFrameOverrideEncoding]): Ditto.
  4719. (-[WebController hasCustomTextEncoding]): Ditto.
  4720. (-[WebController customTextEncodingName]): Return NSString.
  4721. * WebView.subproj/WebDataSourcePrivate.h: Use NSString instead of
  4722. CFStringEncoding.
  4723. * WebView.subproj/WebDataSourcePrivate.m:
  4724. (-[WebDataSourcePrivate init]): No need to init.
  4725. (-[WebDataSource _setContentType:]): Copy, don't retain.
  4726. (-[WebDataSource _setEncoding:]): Copy, don't retain.
  4727. (-[WebDataSource _setOverrideEncoding:]): Use NSString.
  4728. (-[WebDataSource _overrideEncoding]): Use NSString.
  4729. * WebView.subproj/WebFramePrivate.h: Use NSString.
  4730. * WebView.subproj/WebFramePrivate.m:
  4731. (-[WebFrame _reloadAllowingStaleDataWithOverrideEncoding:]): Use NSString.
  4732. * WebView.subproj/WebPreferences.h: Use NSString instead of
  4733. CFStringEncoding.
  4734. * WebView.subproj/WebPreferences.m:
  4735. (+[WebPreferences load]): Use NSString.
  4736. (-[WebPreferences defaultTextEncodingName]): Use NSString.
  4737. (-[WebPreferences setDefaultTextEncodingName:]): Use NSString.
  4738. 2002-09-26 Chris Blumenberg <cblu@apple.com>
  4739. Made WebTextView super-private.
  4740. * WebKit.pbproj/project.pbxproj:
  4741. 2002-09-26 Richard Williamson <rjw@apple.com>
  4742. Use a rectangle with rounded corners for dragged label.
  4743. Put a subtle shadow behind text in label.
  4744. * WebView.subproj/WebHTMLView.m:
  4745. (-[WebHTMLView mouseDragged:]):
  4746. 2002-09-26 Chris Blumenberg <cblu@apple.com>
  4747. - When dragging an image, use the image itself for the drag image
  4748. - Support promised file and image data drag types for dragged images.
  4749. * Misc.subproj/WebNSImageExtras.h: Added.
  4750. * Misc.subproj/WebNSImageExtras.m: Added.
  4751. (-[NSImage _web_scaleToMaxSize:]): new, scales an image is greater than max
  4752. (-[NSImage _web_dissolveToFraction:]): new, dissolves image in place
  4753. * WebKit.pbproj/project.pbxproj:
  4754. * WebView.subproj/WebController.h: Added WebElementImageLocationKey to the element dictionary
  4755. * WebView.subproj/WebController.m: ditto
  4756. * WebView.subproj/WebHTMLView.m:
  4757. (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]): subclassed for only for image drags
  4758. (-[WebHTMLView mouseDragged:]): use the promised file api again.
  4759. (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): use the retained element dictionary instead of the dragged URL which I deleted.
  4760. * WebView.subproj/WebHTMLViewPrivate.h:
  4761. === Alexander-25 ===
  4762. 2002-09-25 Richard Williamson <rjw@apple.com>
  4763. API tweaks.
  4764. * Misc.subproj/WebKit.h:
  4765. Added headers.
  4766. * Misc.subproj/WebKitErrors.h:
  4767. Removed #defines.
  4768. * WebView.subproj/WebDataSource.h:
  4769. * WebView.subproj/WebDataSource.m:
  4770. * WebView.subproj/WebDataSourcePrivate.m:
  4771. (-[WebDataSource _startLoading]):
  4772. (-[WebDataSource _loadIcon]):
  4773. * WebView.subproj/WebDefaultContextMenuDelegate.m:
  4774. (-[WebDefaultContextMenuDelegate contextMenuItemsForElement:defaultMenuItems:]):
  4775. Removed isMainDocument.
  4776. Moved errors string #defines here.
  4777. * WebView.subproj/WebView.m:
  4778. 2002-09-25 John Sullivan <sullivan@apple.com>
  4779. - fixed 3060773 -- Wrong title proposed when image link
  4780. dropped on favorites bar
  4781. * WebView.subproj/WebHTMLView.m:
  4782. (-[WebHTMLView mouseDragged:]): Claim the pasteboard (via
  4783. declareTypes:) before putting data on it.
  4784. 2002-09-25 Richard Williamson <rjw@apple.com>
  4785. API and documentation tweaks.
  4786. WebDocumentDragSettings: canDrag -> acceptsDrag
  4787. WebDataSource: removed originalURL
  4788. WebStandardPanels: use -> uses
  4789. * History.subproj/WebBackForwardList.h:
  4790. * Misc.subproj/WebDownloadHandler.m:
  4791. (-[WebDownloadHandler initWithDataSource:]):
  4792. * Panels.subproj/WebStandardPanels.h:
  4793. * Panels.subproj/WebStandardPanels.m:
  4794. (-[WebStandardPanels setUsesStandardAuthenticationPanel:]):
  4795. (-[WebStandardPanels usesStandardAuthenticationPanel]):
  4796. * Plugins.subproj/WebPluginView.m:
  4797. (-[WebNetscapePluginView frameStateChanged:]):
  4798. * WebCoreSupport.subproj/WebSubresourceClient.m:
  4799. (-[WebSubresourceClient cancel]):
  4800. * WebView.subproj/WebController.h:
  4801. * WebView.subproj/WebDataSource.h:
  4802. * WebView.subproj/WebDataSourcePrivate.m:
  4803. (-[WebDataSource _commitIfReady]):
  4804. * WebView.subproj/WebDocument.h:
  4805. * WebView.subproj/WebFrame.m:
  4806. (-[WebFrame setProvisionalDataSource:]):
  4807. (-[WebFrame startLoading]):
  4808. * WebView.subproj/WebFramePrivate.m:
  4809. (-[WebFrame _transitionToCommitted]):
  4810. (-[WebFrame _setState:]):
  4811. (-[WebFrame _goToItem:withFrameLoadType:]):
  4812. * WebView.subproj/WebHTMLView.m:
  4813. (-[WebHTMLView setAcceptsDrags:]):
  4814. (-[WebHTMLView acceptsDrags]):
  4815. (-[WebHTMLView setAcceptsDrops:]):
  4816. (-[WebHTMLView acceptsDrops]):
  4817. * WebView.subproj/WebImageView.m:
  4818. (-[WebImageView setAcceptsDrags:]):
  4819. (-[WebImageView acceptsDrags]):
  4820. (-[WebImageView setAcceptsDrops:]):
  4821. (-[WebImageView acceptsDrops]):
  4822. * WebView.subproj/WebLoadProgress.h:
  4823. * WebView.subproj/WebLocationChangeDelegate.h:
  4824. * WebView.subproj/WebMainResourceClient.m:
  4825. (-[WebMainResourceClient didCancelWithHandle:]):
  4826. * WebView.subproj/WebView.h:
  4827. 2002-09-25 Ken Kocienda <kocienda@apple.com>
  4828. Changes to move the WebResourceHandle API closer to the
  4829. specified design. This includes:
  4830. - Removed loadInBackground method from the public interface.
  4831. - Start asynchronous loading in WebResourceHandle init method. This required some
  4832. code reorganization in callers.
  4833. - Remove loadInForeground: from WebResourceHandle interface.
  4834. - Move WebResourceHandle callback deferral methods to SPI header file.
  4835. - Change name of WebResourceHandle cancelLoadInBackground method to cancel.
  4836. * Misc.subproj/WebIconLoader.m:
  4837. (-[WebIconLoader startLoading])
  4838. (-[WebIconLoader stopLoading])
  4839. * Plugins.subproj/WebPluginStream.m:
  4840. (-[WebNetscapePluginStream startLoad])
  4841. (-[WebNetscapePluginStream cancel])
  4842. * WebCoreSupport.subproj/WebSubresourceClient.m:
  4843. (+[WebSubresourceClient startLoadingResource:withURL:referrer:forDataSource:])
  4844. (-[WebSubresourceClient cancel])
  4845. * WebView.subproj/WebDataSourcePrivate.m:
  4846. (-[WebDataSource _startLoading])
  4847. (-[WebDataSource _addSubresourceClient:])
  4848. (-[WebDataSource _stopLoading])
  4849. (-[WebDataSource _defersCallbacksChanged])
  4850. * WebView.subproj/WebMainResourceClient.m:
  4851. (-[WebMainResourceClient handle:didReceiveData:])
  4852. 2002-09-25 Chris Blumenberg <cblu@apple.com>
  4853. Fixed: 3050665 - REGRESSION: mp3 audio loads and plays, but no progress or play control is visible
  4854. * Plugins.subproj/WebPluginView.h:
  4855. * Plugins.subproj/WebPluginView.m:
  4856. (-[WebNetscapePluginView setNeedsLayout:]):
  4857. (-[WebNetscapePluginView layout]):
  4858. (-[WebNetscapePluginView drawRect:]):
  4859. 2002-09-25 Darin Adler <darin@apple.com>
  4860. Make the "set aside subviews" logic stronger so it can handle a display
  4861. while inside drawRect. But note, this recursive display is most likely
  4862. the cause of the redrawing problems we have while resizing, like bug 2969367.
  4863. * WebView.subproj/WebHTMLView.m:
  4864. (-[WebHTMLView drawRect:]): Restore views and then set them aside again, but don't
  4865. leave the "views set aside" boolean set.
  4866. * WebView.subproj/WebHTMLViewPrivate.h: Add private _setAsideSubviews and _restoreSubviews methods.
  4867. * WebView.subproj/WebHTMLViewPrivate.m:
  4868. (-[WebHTMLView _setAsideSubviews]): Added.
  4869. (-[WebHTMLView _restoreSubviews]): Added.
  4870. (-[WebHTMLView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
  4871. Use the new _setAsideSubviews and _restoreSubviews methods.
  4872. (-[WebHTMLView _recursiveDisplayAllDirtyWithLockFocus:visRect:]): Ditto.
  4873. 2002-09-25 Ken Kocienda <kocienda@apple.com>
  4874. Removed this method from WebResourceHandle:
  4875. +(BOOL)canInitWithURL:(NSURL *)theURL;
  4876. replaced with:
  4877. +(BOOL)canInitWithRequest:(WebResourceRequest *)request;
  4878. Callers have been updated to reflect the change.
  4879. * WebView.subproj/WebDefaultPolicyDelegate.m:
  4880. (+[WebDefaultPolicyDelegate defaultURLPolicyForURL:])
  4881. * WebView.subproj/WebFramePrivate.m:
  4882. (-[WebFrame _shouldShowURL:])
  4883. 2002-09-25 Ken Kocienda <kocienda@apple.com>
  4884. More moves to the new WebResourceHandleDelegate API.
  4885. This change moves all WebResourceHandleDelegate implementors to:
  4886. -(void)handle:(WebResourceHandle *)handle didReceiveData:(NSData *)data;
  4887. * Misc.subproj/WebIconLoader.m:
  4888. (-[WebIconLoader handle:didReceiveData:])
  4889. * Plugins.subproj/WebPluginStream.m:
  4890. (-[WebNetscapePluginStream handle:didReceiveData:])
  4891. * WebCoreSupport.subproj/WebSubresourceClient.m:
  4892. (-[WebSubresourceClient handle:didReceiveData:])
  4893. * WebView.subproj/WebMainResourceClient.m:
  4894. (-[WebMainResourceClient handle:didReceiveData:])
  4895. 2002-09-25 Ken Kocienda <kocienda@apple.com>
  4896. Moving to the new WebResourceHandleDelegate API.
  4897. This change moves all WebResourceHandleDelegate implementors to:
  4898. - (void)handle:(WebResourceHandle *)handle didFailLoadingWithError:(WebError *)result;
  4899. * Misc.subproj/WebIconLoader.m:
  4900. (-[WebIconLoader handle:didFailLoadingWithError:])
  4901. * Plugins.subproj/WebPluginStream.m:
  4902. (-[WebNetscapePluginStream handle:didFailLoadingWithError:])
  4903. * WebCoreSupport.subproj/WebSubresourceClient.m:
  4904. (-[WebSubresourceClient handle:didFailLoadingWithError:])
  4905. * WebView.subproj/WebMainResourceClient.m:
  4906. (-[WebMainResourceClient handle:didFailLoadingWithError:])
  4907. 2002-09-25 Ken Kocienda <kocienda@apple.com>
  4908. Begin change from WebResourceClient to WebResourceHandleDelegate.
  4909. In this step, I have just changed the name of the protocol; the
  4910. protocol interface is the same.
  4911. I made other cosmetic changes to variable names and such.
  4912. * Misc.subproj/WebIconLoader.h:
  4913. * Misc.subproj/WebIconLoader.m:
  4914. (-[WebIconLoader startLoading])
  4915. * Plugins.subproj/WebPluginStream.m:
  4916. (-[WebNetscapePluginStream startLoad])
  4917. * WebCoreSupport.subproj/WebBridge.m:
  4918. (-[WebBridge objectLoadedFromCache:size:])
  4919. * WebCoreSupport.subproj/WebSubresourceClient.h:
  4920. * WebCoreSupport.subproj/WebSubresourceClient.m:
  4921. (+[WebSubresourceClient startLoadingResource:withURL:referrer:forDataSource:])
  4922. * WebView.subproj/WebDataSourcePrivate.m:
  4923. (-[WebDataSource _startLoading])
  4924. * WebView.subproj/WebMainResourceClient.h:
  4925. 2002-09-25 Maciej Stachowiak <mjs@apple.com>
  4926. - fixed 2854536 - New cookie policy: "accept cookies only from the
  4927. same domain as the main page"
  4928. * WebCoreSupport.subproj/WebCookieAdapter.h:
  4929. * WebCoreSupport.subproj/WebCookieAdapter.m:
  4930. (-[WebCookieAdapter setCookies:forURL:policyBaseURL:]):
  4931. * WebCoreSupport.subproj/WebSubresourceClient.m:
  4932. (+[WebSubresourceClient startLoadingResource:withURL:referrer:forDataSource:]):
  4933. (-[WebSubresourceClient handleDidRedirect:toURL:]):
  4934. * WebView.subproj/WebDataSourcePrivate.m:
  4935. (-[WebDataSource _startLoading]):
  4936. * WebView.subproj/WebMainResourceClient.m:
  4937. (-[WebMainResourceClient handleDidRedirect:toURL:]):
  4938. 2002-09-24 Richard Williamson <rjw@apple.com>
  4939. More documentation tweaks.
  4940. * History.subproj/WebHistory.h:
  4941. * History.subproj/WebHistoryItem.h:
  4942. * WebView.subproj/WebContextMenuDelegate.h:
  4943. * WebView.subproj/WebControllerPolicyDelegate.h:
  4944. * WebView.subproj/WebLocationChangeDelegate.h:
  4945. * WebView.subproj/WebResourceProgressDelegate.h:
  4946. 2002-09-24 Darin Adler <darin@apple.com>
  4947. - fixed 3059513 -- REGRESSION: Scrolling to fragment doesn't work
  4948. Turns out it was better to just put the extra smarts into the clip view
  4949. that we are already creating. Making WebHTMLView be a second clip view
  4950. was silly and broke things.
  4951. * WebView.subproj/WebView.m: (-[WebView initWithFrame:]): Create a WebClipView
  4952. and use it as the content view rather than the NSClipView created by default.
  4953. * WebKit.pbproj/project.pbxproj: Added WebClipView.
  4954. * WebView.subproj/WebClipView.h: Added.
  4955. * WebView.subproj/WebClipView.m: Added.
  4956. * WebView.subproj/WebHTMLView.h: Don't be a subclass of NSClipView any more.
  4957. * WebView.subproj/WebHTMLView.m:
  4958. (-[WebHTMLView drawRect:]): Call setAdditionalClip and resetAdditionalClip on
  4959. the clip view.
  4960. * WebView.subproj/WebHTMLViewPrivate.h: Remove inDrawRect and drawRect.
  4961. * WebView.subproj/WebHTMLViewPrivate.m: Remove visibleRect override. This is
  4962. now in WebClipView.
  4963. 2002-09-24 Chris Blumenberg <cblu@apple.com>
  4964. More documentation changes.
  4965. * WebView.subproj/WebControllerPolicyDelegate.h:
  4966. * WebView.subproj/WebDefaultContextMenuDelegate.h:
  4967. * WebView.subproj/WebDocument.h:
  4968. 2002-09-24 Richard Williamson <rjw@apple.com>
  4969. Added FIXME note about unresolved issue with CFStringEncoding/NSStringEncoding.
  4970. * WebView.subproj/WebController.h:
  4971. 2002-09-24 Richard Williamson <rjw@apple.com>
  4972. Documentation for WebDataSource and WebFrame.
  4973. * WebView.subproj/WebDataSource.h:
  4974. * WebView.subproj/WebDataSource.m:
  4975. (-[WebDataSource frameExists:]):
  4976. * WebView.subproj/WebDataSourcePrivate.h:
  4977. * WebView.subproj/WebDataSourcePrivate.m:
  4978. (-[WebDataSource addFrame:]):
  4979. * WebView.subproj/WebFrame.h:
  4980. 2002-09-24 Darin Adler <darin@apple.com>
  4981. - fixed 3059266 -- REGRESSION: clicking in web view when location field is
  4982. focused does not focus web view
  4983. * WebView.subproj/WebHTMLView.m: (-[WebHTMLView needsPanelToBecomeKey]):
  4984. Must override this to return YES, because NSClipView makes it return NO
  4985. even though we accept the first responder.
  4986. 2002-09-24 John Sullivan <sullivan@apple.com>
  4987. - fixed 3056158 -- REGRESSION: Page up/down should scroll one
  4988. whole contentView minus at least one readable line of text
  4989. This was broken a while back when the keyboard scrolling code
  4990. migrated into WebKit.
  4991. * WebView.subproj/WebViewPrivate.m:
  4992. (-[WebView _verticalKeyboardScrollAmount]),
  4993. (-[WebView _horizontalKeyboardScrollAmount]):
  4994. New private methods, return one arrow key's worth of scrolling.
  4995. (-[WebView _scrollLineVertically:]),
  4996. (-[WebView _scrollLineHorizontally:]):
  4997. Now use the broken-out methods.
  4998. (-[WebView _pageVertically:]),
  4999. (-[WebView _pageHorizontally:]):
  5000. overlap by one arrow key's worth of scrolling instead of the
  5001. teensy-weensy one click's worth.
  5002. 2002-09-24 Chris Blumenberg <cblu@apple.com>
  5003. Documentation for WebHTMLView
  5004. * WebView.subproj/WebHTMLView.h:
  5005. 2002-09-24 Richard Williamson <rjw@apple.com>
  5006. Documentation changes. Removal of imports from
  5007. some headers required modification of .m.
  5008. * Plugins.subproj/WebNullPluginView.m:
  5009. * WebCoreSupport.subproj/WebBridge.m:
  5010. * WebKit.pbproj/project.pbxproj:
  5011. * WebView.subproj/WebController.h:
  5012. * WebView.subproj/WebController.m:
  5013. * WebView.subproj/WebDataSource.h:
  5014. * WebView.subproj/WebDataSourcePrivate.h:
  5015. * WebView.subproj/WebDataSourcePrivate.m:
  5016. * WebView.subproj/WebDefaultPolicyDelegate.h:
  5017. * WebView.subproj/WebDefaultPolicyDelegate.m:
  5018. (+[WebDefaultPolicyDelegate defaultURLPolicyForURL:]):
  5019. (-[WebDefaultPolicyDelegate URLPolicyForURL:inFrame:]):
  5020. * WebView.subproj/WebFramePrivate.m:
  5021. * WebView.subproj/WebHTMLViewPrivate.m:
  5022. 2002-09-24 Chris Blumenberg <cblu@apple.com>
  5023. Renamed element info keys to WebElement* instead of WebContextMenuElement*
  5024. Added WebKit API documentation
  5025. * Plugins.subproj/WebPlugin.m:
  5026. (-[WebNetscapePlugin load]): clean-up
  5027. * WebKit.exp:
  5028. * WebKit.pbproj/project.pbxproj:
  5029. * WebView.subproj/WebContextMenuDelegate.h:
  5030. * WebView.subproj/WebController.h:
  5031. * WebView.subproj/WebController.m:
  5032. * WebView.subproj/WebControllerPolicyDelegate.h:
  5033. * WebView.subproj/WebDefaultContextMenuDelegate.h:
  5034. * WebView.subproj/WebDefaultContextMenuDelegate.m:
  5035. (-[WebDefaultContextMenuDelegate contextMenuItemsForElement:defaultMenuItems:]):
  5036. (-[WebDefaultContextMenuDelegate openNewWindowWithURL:referrer:]):
  5037. (-[WebDefaultContextMenuDelegate downloadURL:]):
  5038. (-[WebDefaultContextMenuDelegate openLinkInNewWindow:]):
  5039. (-[WebDefaultContextMenuDelegate downloadLinkToDisk:]):
  5040. (-[WebDefaultContextMenuDelegate copyLinkToClipboard:]):
  5041. (-[WebDefaultContextMenuDelegate openImageInNewWindow:]):
  5042. (-[WebDefaultContextMenuDelegate downloadImageToDisk:]):
  5043. (-[WebDefaultContextMenuDelegate copyImageToClipboard:]):
  5044. (-[WebDefaultContextMenuDelegate openFrameInNewWindow:]):
  5045. * WebView.subproj/WebHTMLView.m:
  5046. (-[WebHTMLView mouseDragged:]):
  5047. * WebView.subproj/WebHTMLViewPrivate.m:
  5048. (-[WebHTMLView _elementAtPoint:]):
  5049. 2002-09-24 Darin Adler <darin@apple.com>
  5050. Cleaned up some loose ends from adding setNeedsLayout to the WebDocumentView
  5051. protocol. Was causing exceptions.
  5052. * Plugins.subproj/WebPluginView.m: (-[WebNetscapePluginView setNeedsLayout:]):
  5053. * WebView.subproj/WebTextView.m: (-[WebTextView setNeedsLayout:]):
  5054. Added missing stubs.
  5055. * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge setNeedsReapplyStyles]):
  5056. Removed unneeded cast.
  5057. * WebView.subproj/WebFramePrivate.m: (-[WebFrame _isLoadComplete]): Remove an
  5058. unneeded cast and call to isDocumentHTML.
  5059. * WebView.subproj/WebHTMLView.h: No need to re-declare setNeedsLayout.
  5060. * WebView.subproj/WebView.m: (-[WebView setFrame:]): Get rid of unneeded check
  5061. of isDocumentHTML.
  5062. 2002-09-24 Darin Adler <darin@apple.com>
  5063. - fixed 3057383 -- focus rectangles are being drawn multiple times
  5064. - fixed 3051025 -- focus ring on password field gets darker and darker
  5065. To make focus rings clip too, we have to do more than just set the clip.
  5066. We also have to set the visible rectangle to make clipping happen, and we
  5067. need to be a subclass of NSClipView so that the focus ring drawing code will
  5068. consult us rather than one of our superviews.
  5069. * WebView.subproj/WebHTMLView.h: Be a subclass of NSClipView.
  5070. * WebView.subproj/WebHTMLView.m: (-[WebHTMLView drawRect:]): Set a inDrawRect
  5071. flag, and a drawRect rectangle. This tells us to clip to this rectangle.
  5072. what we need to clip to.
  5073. * WebView.subproj/WebHTMLViewPrivate.h: Added inDrawRect and drawRect.
  5074. * WebView.subproj/WebHTMLViewPrivate.m:
  5075. (-[WebHTMLView visibleRect]): Clip the visible rect based on the drawRect while
  5076. inDrawRect is set.
  5077. 2002-09-23 Chris Blumenberg <cblu@apple.com>
  5078. Factored URL pasteboard initialization to 1 place.
  5079. Fixed: 3048924 - regression: drag & drop broken for initial empty page
  5080. Fixed: 3045997 - Dragging a link from one Alex window to another one doesn't work
  5081. * Misc.subproj/WebNSPasteboardExtras.h:
  5082. * Misc.subproj/WebNSPasteboardExtras.m:
  5083. (-[NSPasteboard _web_writeURL:andTitle:withOwner:]): new
  5084. * WebView.subproj/WebDefaultContextMenuDelegate.m:
  5085. (-[WebDefaultContextMenuDelegate copyLinkToClipboard:]): call -[NSPasteboard _web_writeURL:andTitle:withOwner:]
  5086. * WebView.subproj/WebHTMLView.m:
  5087. (-[WebHTMLView mouseDragged:]): call -[NSPasteboard _web_writeURL:andTitle:withOwner:]
  5088. * WebView.subproj/WebView.m:
  5089. (-[WebView draggingEntered:]): handle nil cases
  5090. 2002-09-23 Maciej Stachowiak <mjs@apple.com>
  5091. Added documentation for these two delegate protocols.
  5092. * WebView.subproj/WebLocationChangeDelegate.h:
  5093. * WebView.subproj/WebResourceProgressDelegate.h:
  5094. 2002-09-23 Richard Williamson <rjw@apple.com>
  5095. Made WebIconLoader and WebIconDatabase SPI.
  5096. * WebKit.pbproj/project.pbxproj:
  5097. 2002-09-23 Richard Williamson <rjw@apple.com>
  5098. WebContextMenuHandler becomes WebContextMenuDelegate
  5099. WebControllerPolicyHandler becomes WebControllerPolicyDelegate
  5100. WebLocationChangeHandler becomes WebLocationChangeDelegate
  5101. WebResourceProgressHandler becomes WebResourceProgressDelegate
  5102. WebWindowContext becomes WebWindowOperationsDelegate
  5103. * Misc.subproj/WebDownloadHandler.m:
  5104. * Plugins.subproj/WebNullPluginView.m:
  5105. (-[WebNullPluginView drawRect:]):
  5106. * Plugins.subproj/WebPluginView.m:
  5107. (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:]):
  5108. (-[WebNetscapePluginView status:]):
  5109. * WebCoreSupport.subproj/WebBridge.m:
  5110. (-[WebBridge openNewWindowWithURL:referrer:frameName:]):
  5111. (-[WebBridge areToolbarsVisible]):
  5112. (-[WebBridge setToolbarsVisible:]):
  5113. (-[WebBridge isStatusBarVisible]):
  5114. (-[WebBridge setStatusBarVisible:]):
  5115. (-[WebBridge setWindowFrame:]):
  5116. (-[WebBridge window]):
  5117. (-[WebBridge setStatusText:]):
  5118. (-[WebBridge reportClientRedirectTo:delay:fireDate:]):
  5119. (-[WebBridge reportClientRedirectCancelled]):
  5120. * WebKit.exp:
  5121. * WebKit.pbproj/project.pbxproj:
  5122. * WebView.subproj/WebContextMenuDelegate.h:
  5123. * WebView.subproj/WebContextMenuHandler.h: Removed.
  5124. * WebView.subproj/WebController.h:
  5125. * WebView.subproj/WebController.m:
  5126. (-[WebController setWindowOperationsDelegate:]):
  5127. (-[WebController windowOperationsDelegate]):
  5128. (-[WebController setResourceProgressDelegate:]):
  5129. (-[WebController resourceProgressDelegate]):
  5130. (-[WebController setDownloadProgressDelegate:]):
  5131. (-[WebController downloadProgressDelegate]):
  5132. (-[WebController setContextMenuDelegate:]):
  5133. (-[WebController contextMenuDelegate]):
  5134. (-[WebController setPolicyDelegate:]):
  5135. (-[WebController policyDelegate]):
  5136. (-[WebController setLocationChangeDelegate:]):
  5137. (-[WebController locationChangeDelegate]):
  5138. * WebView.subproj/WebControllerPolicyDelegate.m: Added.
  5139. (-[WebPolicyPrivate dealloc]):
  5140. (-[WebPolicy _setPolicyAction:]):
  5141. (-[WebPolicy policyAction]):
  5142. (-[WebPolicy path]):
  5143. (-[WebPolicy URL]):
  5144. (-[WebPolicy _setPath:]):
  5145. (-[WebPolicy dealloc]):
  5146. (+[WebURLPolicy webPolicyWithURLAction:]):
  5147. (+[WebFileURLPolicy webPolicyWithFileAction:]):
  5148. (+[WebContentPolicy webPolicyWithContentAction:andPath:]):
  5149. * WebView.subproj/WebControllerPolicyDelegatePrivate.h:
  5150. * WebView.subproj/WebControllerPolicyHandler.h: Removed.
  5151. * WebView.subproj/WebControllerPolicyHandler.m: Removed.
  5152. * WebView.subproj/WebControllerPolicyHandlerPrivate.h: Removed.
  5153. * WebView.subproj/WebControllerPrivate.h:
  5154. * WebView.subproj/WebControllerPrivate.m:
  5155. (-[WebControllerPrivate init]):
  5156. (-[WebControllerPrivate dealloc]):
  5157. (-[WebController _defaultContextMenuDelegate]):
  5158. (-[WebController _receivedProgress:forResourceHandle:fromDataSource:complete:]):
  5159. (-[WebController _mainReceivedProgress:forResourceHandle:fromDataSource:complete:]):
  5160. (-[WebController _receivedError:forResourceHandle:partialProgress:fromDataSource:]):
  5161. (-[WebController _mainReceivedError:forResourceHandle:partialProgress:fromDataSource:]):
  5162. * WebView.subproj/WebDataSourcePrivate.m:
  5163. (-[WebDataSource _startLoading]):
  5164. (-[WebDataSource _setTitle:]):
  5165. (-[WebDataSource _setURL:]):
  5166. (-[WebDataSource _loadIcon]):
  5167. * WebView.subproj/WebDefaultContextMenuDelegate.h:
  5168. * WebView.subproj/WebDefaultContextMenuDelegate.m:
  5169. (-[WebDefaultContextMenuDelegate openNewWindowWithURL:referrer:]):
  5170. (-[WebDefaultContextMenuDelegate downloadURL:]):
  5171. * WebView.subproj/WebDefaultContextMenuHandler.h: Removed.
  5172. * WebView.subproj/WebDefaultContextMenuHandler.m: Removed.
  5173. * WebView.subproj/WebDefaultPolicyDelegate.h:
  5174. * WebView.subproj/WebDefaultPolicyDelegate.m:
  5175. * WebView.subproj/WebDefaultPolicyHandler.h: Removed.
  5176. * WebView.subproj/WebDefaultPolicyHandler.m: Removed.
  5177. * WebView.subproj/WebDocument.h:
  5178. * WebView.subproj/WebFrame.m:
  5179. (-[WebFrame setProvisionalDataSource:]):
  5180. (-[WebFrame frameNamed:]):
  5181. * WebView.subproj/WebFramePrivate.m:
  5182. (-[WebFrame _timedLayout:]):
  5183. (-[WebFrame _transitionToCommitted]):
  5184. (-[WebFrame _isLoadComplete]):
  5185. (-[WebFrame handleUnimplementablePolicy:errorCode:forURL:]):
  5186. (-[WebFrame _shouldShowURL:]):
  5187. * WebView.subproj/WebHTMLView.m:
  5188. (-[WebHTMLView menuForEvent:]):
  5189. * WebView.subproj/WebHTMLViewPrivate.m:
  5190. (-[WebHTMLView _continueAfterClickPolicyForEvent:]):
  5191. * WebView.subproj/WebImageView.m:
  5192. (-[WebImageView setNeedsLayout:]):
  5193. * WebView.subproj/WebLocationChangeDelegate.h:
  5194. * WebView.subproj/WebLocationChangeDelegate.m:
  5195. * WebView.subproj/WebLocationChangeHandler.h: Removed.
  5196. * WebView.subproj/WebLocationChangeHandler.m: Removed.
  5197. * WebView.subproj/WebMainResourceClient.h:
  5198. * WebView.subproj/WebMainResourceClient.m:
  5199. (-[WebMainResourceClient dealloc]):
  5200. (-[WebMainResourceClient receivedProgressWithHandle:complete:]):
  5201. (-[WebMainResourceClient receivedError:forHandle:]):
  5202. (-[WebMainResourceClient handleDidReceiveData:data:]):
  5203. * WebView.subproj/WebResourceProgressDelegate.h:
  5204. * WebView.subproj/WebResourceProgressHandler.h: Removed.
  5205. * WebView.subproj/WebView.m:
  5206. (-[WebView window]):
  5207. * WebView.subproj/WebWindowContext.h: Removed.
  5208. * WebView.subproj/WebWindowOperationsDelegate.h:
  5209. 2002-09-23 Darin Adler <darin@apple.com>
  5210. - fixed 3052543 -- iframes don't work with z-index
  5211. - fixed 3057382 -- code to prevent subviews from drawing not working
  5212. perfectly for subframes
  5213. * WebView.subproj/WebHTMLView.m:
  5214. (-[WebHTMLView isOpaque]): Change this back to always return YES. We handle
  5215. this issue at another level now.
  5216. (-[WebHTMLView drawRect:]): Clip to the passed-in rect. This was the big change
  5217. that fixed most of the trouble.
  5218. * WebView.subproj/WebHTMLViewPrivate.h: Remove _isMainFrame.
  5219. * WebView.subproj/WebHTMLViewPrivate.m:
  5220. (+[WebHTMLView initialize]): Add an imposter for NSView too, so we can make opaqueAncestor
  5221. do what we need it to do. This will only work if the application doesn't also poseAsClass
  5222. NSView, but it does work.
  5223. (-[WebNSView opaqueAncestor]): Always return the topmost WebHTMLView if the object is
  5224. inside one, even if there is an intervening opaque object.
  5225. * WebView.subproj/WebView.m:
  5226. (-[WebView setFrame:]): Do the display call at the window level so the topmost WebHTMLView
  5227. always gets involved.
  5228. * WebView.subproj/WebViewPrivate.h: Remove _controller, since we already have a public
  5229. controller method. Add _isMainFrame.
  5230. * WebView.subproj/WebViewPrivate.m: (-[WebView _isMainFrame]): Added.
  5231. 2002-09-23 Maciej Stachowiak <mjs@apple.com>
  5232. * Panels.subproj/WebStandardPanels.h: Added inline header docs.
  5233. 2002-09-23 Maciej Stachowiak <mjs@apple.com>
  5234. * WebView.subproj/WebWindowContext.h: Added inline header docs.
  5235. 2002-09-23 Ken Kocienda <kocienda@apple.com>
  5236. Fixes for some build problems I missed earlier due to the fact that PB can't handle header dependencies,
  5237. and I did not do a clean build of WebKit.
  5238. * Plugins.subproj/WebPluginStream.m:
  5239. (-[WebNetscapePluginStream receivedError:withDataSource:]): WebFoundation error constant name change.
  5240. (-[WebNetscapePluginStream cancel]): Ditto.
  5241. * WebCoreSupport.subproj/WebCookieAdapter.m:
  5242. (-[WebCookieAdapter cookiesEnabled]): Modified to use [[WebCookieManager sharedCookieManager] acceptPolicy]
  5243. rather than reaching down into CFPreferences directly.
  5244. * WebCoreSupport.subproj/WebSubresourceClient.m:
  5245. (+[WebSubresourceClient startLoadingResource:withURL:referrer:forDataSource:]): WebFoundation error constant name change.
  5246. (-[WebSubresourceClient cancel]): Ditto.
  5247. * WebView.subproj/WebMainResourceClient.m:
  5248. (-[WebMainResourceClient didCancelWithHandle:]): Ditto.
  5249. 2002-09-23 Darin Adler <darin@apple.com>
  5250. * WebView.subproj/WebHTMLViewPrivate.m:
  5251. (-[WebHTMLView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
  5252. Don't special case the top level frame's view so much.
  5253. (-[WebHTMLView _recursiveDisplayAllDirtyWithLockFocus:visRect:]): Ditto.
  5254. (-[NSView _web_propagateDirtyRectToAncestor]): Use public method here instead of private.
  5255. 2002-09-23 Ken Kocienda <kocienda@apple.com>
  5256. * WebCoreSupport.subproj/WebBridge.m:
  5257. (-[WebBridge reportBadURL:]): WebFoundation error code constant name change
  5258. * WebView.subproj/WebView.m:
  5259. (+[WebView initialize]): WebError addErrorsFromDictionary changed to addErrorsWithCodesAndDescriptions
  5260. 2002-09-22 Darin Adler <darin@apple.com>
  5261. - fixed 3057380 -- insertion point shows through elements in front of text fields
  5262. * WebView.subproj/WebHTMLViewPrivate.m:
  5263. (+[WebHTMLView initialize]): Make WebNSTextView pose as NSTextView.
  5264. (-[WebNSTextView _web_inHTMLView]): Helper method.
  5265. (-[WebNSTextView isOpaque]): Override to return NO for all text views that are inside
  5266. an WebHTMLView, so they don't try to do insertion point caching.
  5267. (-[WebNSTextView drawInsertionPointInRect:color:turnedOn:]): Use setNeedsDisplayInRect
  5268. to trigger insertion point drawing outside drawRect instead of drawing right away.
  5269. (-[WebNSTextView _drawRect:clip:]): Set flag so the above can know when it's inside
  5270. drawRect and when it's not.
  5271. 2002-09-21 Darin Adler <darin@apple.com>
  5272. WebKit part of the new approach to AppKit drawing control.
  5273. Works better than the previous try. Once we fix anomalies with focus rectangles
  5274. and a some remaining problems with subframes this should work perfectly.
  5275. * WebView.subproj/WebHTMLView.m:
  5276. (-[WebHTMLView isOpaque]): Return NO for frames other than the main frame.
  5277. (-[WebHTMLView drawRect:]): Restore the subviews that were set aside.
  5278. * WebView.subproj/WebHTMLViewPrivate.h: Add _isMainFrame. Add savedSubviews and subviewsSetAside.
  5279. * WebView.subproj/WebHTMLViewPrivate.m:
  5280. (-[WebHTMLView _isMainFrame]): Added.
  5281. (-[WebHTMLView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
  5282. Added. If this is the main frame, get all the dirty rects from the subviews and then set
  5283. them aside so the AppKit machinery won't draw them.
  5284. (-[WebHTMLView _recursiveDisplayAllDirtyWithLockFocus:visRect:]): Ditto.
  5285. (-[NSView _web_propagateDirtyRectToAncestor]): Added. Propagates dirty rects the same
  5286. way that AppKit does, but always does it, ignoring the value of isOpaque.
  5287. 2002-09-20 Darin Adler <darin@apple.com>
  5288. * History.subproj/WebHistory.m: (-[WebHistory addEntryForURLString:]):
  5289. Use _web_URLWithString so we can handle unusual characters.
  5290. * WebView.subproj/WebDefaultPolicyHandler.m: Remove stray semicolon.
  5291. 2002-09-20 Chris Blumenberg <cblu@apple.com>
  5292. Fixed wasteful memory usage in the WebIconDatabase:
  5293. - Rather than have multiple NSImages with multiple representations at multiple sizes, have 1 NSImage per size
  5294. - Added API to allow client to control memory caching
  5295. * Misc.subproj/WebIconDatabase.h:
  5296. * Misc.subproj/WebIconDatabase.m:
  5297. (-[WebIconDatabase iconForSiteURL:withSize:]): call iconForSiteURL:withSize:cache:YES
  5298. (-[WebIconDatabase iconForSiteURL:withSize:cache:]): new, was iconForSiteURL:withSize:
  5299. (-[WebIconDatabase defaultIconWithSize:]): call _iconFromDictionary:forSize:cache:
  5300. (-[WebIconDatabase _updateFileDatabase]): write the largest icon to disk
  5301. (-[WebIconDatabase _hasIconForSiteURL:]): cleaned-up
  5302. (-[WebIconDatabase _iconsForIconURL:]): call _iconFromDictionary:forSize:cache:
  5303. (-[WebIconDatabase _iconForFileURL:withSize:]): call _iconFromDictionary:forSize:cache:
  5304. (-[WebIconDatabase _builtInIconsForHost:]): call _iconFromDictionary:forSize:cache:
  5305. (-[WebIconDatabase _setIcon:forIconURL:]): _iconsBySplittingRepresentationsOfIcon:
  5306. (-[WebIconDatabase _releaseIconForIconURL:]): icons at different sizes are now stored in dictionaries
  5307. (-[WebIconDatabase _largestIconFromDictionary:]): new, scans the icon dictionary
  5308. (-[WebIconDatabase _iconsBySplittingRepresentationsOfIcon:]): creates the icon dictionary
  5309. (-[WebIconDatabase _iconFromDictionary:forSize:cache:]): returns icon from dict, resizes if necessary
  5310. (-[WebIconDatabase _iconByScalingIcon:toSize:]): tweak
  5311. * Misc.subproj/WebIconDatabasePrivate.h:
  5312. * Misc.subproj/WebIconLoader.m:
  5313. (-[WebIconLoader startLoading]): don't call _iconsForIconURL: because it doesn't exist.
  5314. 2002-09-19 Maciej Stachowiak <mjs@apple.com>
  5315. * Makefile.am: Make `doc' target depend on `all'.
  5316. * WebView.subproj/WebContextMenuHandler.h: Fix typo found by `make doc'.
  5317. * WebView.subproj/WebLocationChangeHandler.h: Likewise.
  5318. 2002-09-19 Maciej Stachowiak <mjs@apple.com>
  5319. * Makefile.am: Added `make doc' target.
  5320. 2002-09-19 John Sullivan <sullivan@apple.com>
  5321. - cleaned up some SPI for handling URLs on pasteboard
  5322. * Misc.subproj/WebNSPasteboardExtras.h: Added.
  5323. * Misc.subproj/WebNSPasteboardExtras.m: Added.
  5324. (+[NSPasteboard _web_dragTypesForURL]): Moved this here; was
  5325. -[NSView _web_acceptableDragTypes]
  5326. (-[NSPasteboard _web_bestURL]): Moved this here; was
  5327. +[NSView _web_bestURLFromPasteboard:]
  5328. * WebView.subproj/WebView.m:
  5329. (-[WebView initWithFrame:]),
  5330. (-[WebView draggingEntered:]),
  5331. (-[WebView concludeDragOperation:]):
  5332. Updated for SPI change; also removed methods now in NSPasteboard.
  5333. * Misc.subproj/WebNSViewExtras.h:
  5334. * Misc.subproj/WebNSViewExtras.m:
  5335. (-[NSView _web_dragOperationForDraggingInfo:]):
  5336. Updated for SPI change.
  5337. * WebKit.pbproj/project.pbxproj: Updated for new files.
  5338. === Alexander-24 ===
  5339. 2002-09-18 Darin Adler <darin@apple.com>
  5340. Fix two problems that led to an assertion now that a bogus
  5341. load progress doesn't pass the "bytesReceived == total" test.
  5342. * Plugins.subproj/WebPluginStream.m:
  5343. (-[WebNetscapePluginStream handleDidFinishLoading:]): Nil out the
  5344. resource at the start of the function so that a cancel doesn't
  5345. do anything if called in the middle when we stop.
  5346. (-[WebNetscapePluginStream cancel]): Send a cancel error instead
  5347. of a _receivedProgress. And make a partial progress rather than
  5348. sending an empty progress.
  5349. (-[WebNetscapePluginStream handleDidFailLoading:withError:]):
  5350. Same as handleDidFinishLoading.
  5351. 2002-09-18 Richard Williamson <rjw@apple.com>
  5352. More documentation stuff.
  5353. Added attributed text API as requested (yuck!).
  5354. Add reconstructedDocumentSource API as requested.
  5355. Removed cruft (stale API, bogus comments).
  5356. * WebView.subproj/WebDataSource.h:
  5357. * WebView.subproj/WebDataSource.m:
  5358. * WebView.subproj/WebHTMLRepresentation.h:
  5359. * WebView.subproj/WebHTMLRepresentation.m:
  5360. (-[WebHTMLRepresentation reconstructedDocumentSource]):
  5361. (-[WebHTMLRepresentation attributedText]):
  5362. * WebView.subproj/WebHTMLRepresentationPrivate.h:
  5363. * WebView.subproj/WebHTMLView.h:
  5364. * WebView.subproj/WebHTMLView.m:
  5365. (-[WebHTMLView selectedAttributedText]):
  5366. (-[WebHTMLView selectedText]):
  5367. * WebView.subproj/WebView.h:
  5368. 2002-09-18 Richard Williamson <rjw@apple.com>
  5369. Added document keywords to headers.
  5370. Made bookmark related APIs private (for now).
  5371. * Misc.subproj/WebIconDatabase.h:
  5372. * Misc.subproj/WebIconLoader.h:
  5373. * Misc.subproj/WebKitErrors.h:
  5374. * Panels.subproj/WebStandardPanels.h:
  5375. * WebKit.pbproj/project.pbxproj:
  5376. * WebView.subproj/WebDefaultContextMenuHandler.h:
  5377. * WebView.subproj/WebLoadProgress.h:
  5378. * WebView.subproj/WebLocationChangeHandler.h:
  5379. * WebView.subproj/WebPreferences.h:
  5380. Made public
  5381. * WebHTMLRepresentation.h
  5382. * WebHTMLRepresentation.m
  5383. 2002-09-18 John Sullivan <sullivan@apple.com>
  5384. WebKit part of fix for
  5385. - 3000823 -- special-case drag of webloc file to bookmarks
  5386. - 3004466 -- favorites bar doesn't accept drops of URL strings
  5387. or webloc files
  5388. * Misc.subproj/WebNSViewExtras.h:
  5389. - make _web_bestURLForDraggingInfo: a class method and have it
  5390. take an NSPasteboard * instead of an NSDraggingInfo *; change
  5391. name to _web_bestURLFromPasteboard:
  5392. * Misc.subproj/WebNSViewExtras.m:
  5393. (+[NSView _web_bestURLFromPasteboard:]):
  5394. - make this a class method and have it take an NSPasteboard *
  5395. instead of an NSDraggingInfo *
  5396. (-[NSView _web_dragOperationForDraggingInfo:]): Updated for
  5397. SPI change.
  5398. * WebView.subproj/WebView.m:
  5399. (-[WebView draggingEntered:]),
  5400. (-[WebView concludeDragOperation:]): Updated for SPI change.
  5401. 2002-09-18 Richard Williamson <rjw@apple.com>
  5402. Added documentation keywords to headers.
  5403. Create seperate files for the protocols
  5404. that were defined in WebController.h.
  5405. Made -[WebController createFrameNamed:for:inParent:allowsScrolling:]):
  5406. private.
  5407. * Plugins.subproj/WebPluginView.m:
  5408. * WebCoreSupport.subproj/WebBridge.m:
  5409. * WebKit.pbproj/project.pbxproj:
  5410. * WebView.subproj/WebContextMenuHandler.h: Added.
  5411. * WebView.subproj/WebController.h:
  5412. * WebView.subproj/WebController.m:
  5413. * WebView.subproj/WebControllerPrivate.h:
  5414. * WebView.subproj/WebControllerPrivate.m:
  5415. * WebView.subproj/WebDefaultContextMenuHandler.m:
  5416. * WebView.subproj/WebFrame.m:
  5417. * WebView.subproj/WebHTMLView.m:
  5418. * WebView.subproj/WebHTMLViewPrivate.m:
  5419. * WebView.subproj/WebMainResourceClient.m:
  5420. * WebView.subproj/WebResourceProgressHandler.h: Added.
  5421. * WebView.subproj/WebView.m:
  5422. * WebView.subproj/WebWindowContext.h: Added.
  5423. 2002-09-18 Richard Williamson <rjw@apple.com>
  5424. Added documentation keywords to header.
  5425. * WebView.subproj/WebControllerPolicyHandler.h:
  5426. Made WebDynamicScrollBarsView private
  5427. * WebKit.pbproj/project.pbxproj:
  5428. 2002-09-18 Darin Adler <darin@apple.com>
  5429. - fixed 3053155 -- REGRESSION: Activity Window thinks 0-byte
  5430. images are "complete"
  5431. I thought I had fixed it before, but this is needed too.
  5432. * WebView.subproj/WebLoadProgress.m:
  5433. (-[WebLoadProgress init]): Set "bytes so far" to 0, not -1.
  5434. (-[WebLoadProgress initWithResourceHandle:]): Make sure we set total
  5435. to -1, not 0, when the response is nil.
  5436. 2002-09-18 Richard Williamson <rjw@apple.com>
  5437. Added documentation keywords to header.
  5438. * WebView.subproj/WebDocument.h:
  5439. 2002-09-18 Richard Williamson <rjw@apple.com>
  5440. Added documentation keywords to headers.
  5441. Made reset a private method.
  5442. * WebKit.pbproj/project.pbxproj:
  5443. * WebView.subproj/WebFrame.h:
  5444. * WebView.subproj/WebFrame.m:
  5445. * WebView.subproj/WebFramePrivate.h:
  5446. * WebView.subproj/WebFramePrivate.m:
  5447. (-[WebFrame reset]):
  5448. 2002-09-18 Richard Williamson <rjw@apple.com>
  5449. Added documentation keywords to headers.
  5450. * WebView.subproj/WebView.h:
  5451. 2002-09-18 Richard Williamson <rjw@apple.com>
  5452. Added documentation keywords to headers.
  5453. * WebView.subproj/WebDataSource.h:
  5454. 2002-09-18 Darin Adler <darin@apple.com>
  5455. * WebView.subproj/WebController.h: Fix typo.
  5456. 2002-09-18 Darin Adler <darin@apple.com>
  5457. * WebView.subproj/WebController.h: Add getters.
  5458. * WebView.subproj/WebController.m:
  5459. (-[WebController applicationNameForUserAgent]): Added.
  5460. (-[WebController userAgent]): Added.
  5461. 2002-09-17 Darin Adler <darin@apple.com>
  5462. Fix bug where image documents were broken.
  5463. * WebCoreSupport.subproj/WebImageRenderer.m:
  5464. (-[WebImageRenderer drawClippedToValidInRect:fromRect:]): loadStatus of 0
  5465. means the whole image is ready, not 0 scan lines; so check > 0, not >= 0.
  5466. * WebKit.pbproj/project.pbxproj: Let Project Builder be the boss of me.
  5467. 2002-09-17 Richard Williamson <rjw@apple.com>
  5468. * History.subproj/WebHistory.h:
  5469. * History.subproj/WebHistory.m:
  5470. (-[WebHistory addEntryForURLString:]):
  5471. (-[WebHistory containsEntryForURLString:]):
  5472. Added URL string API. We should remove use of
  5473. NSURL from this API.
  5474. * History.subproj/WebHistoryPrivate.h:
  5475. * History.subproj/WebHistoryPrivate.m:
  5476. (-[WebHistoryPrivate _entryForURLString:]):
  5477. (-[WebHistoryPrivate containsEntryForURLString:]):
  5478. Implementation of above.
  5479. * WebCoreSupport.subproj/WebTextRenderer.m:
  5480. (-[WebTextRenderer drawGlyphs:numGlyphs:fromGlyphPosition:toGlyphPosition:atPoint:withPadding:withTextColor:backgroundColor:]):
  5481. (-[WebTextRenderer slowFloatWidthForCharacters:stringLength:fromCharacterPostion:numberOfCharacters:applyRounding:]):
  5482. Use ((int)(x + (1.0 - FLT_EPSILON))) instead of ceil().
  5483. 2002-09-16 Darin Adler <darin@apple.com>
  5484. * History.subproj/WebHistoryPrivate.m: Do that for real.
  5485. 2002-09-16 Richard Williamson <rjw@apple.com>
  5486. Remove fix (according to John, partial fix) for 3051288.
  5487. Canonicalizing the URL strings used in the history db
  5488. is very slow! ~8% slower.
  5489. * History.subproj/WebHistoryPrivate.m:
  5490. (-[WebHistoryPrivate addEntry:]):
  5491. (-[WebHistoryPrivate removeEntry:]):
  5492. (-[WebHistoryPrivate containsURL:]):
  5493. (-[WebHistoryPrivate entryForURL:]):
  5494. * WebView.subproj/WebHTMLView.h:
  5495. Removed cruft from header.
  5496. 2002-09-16 Darin Adler <darin@apple.com>
  5497. - fixed 3050810 -- while an image is loading progressively, it draws
  5498. white rather then page background
  5499. * WebCoreSupport.subproj/WebImageRenderer.m:
  5500. (-[WebImageRenderer drawClippedToValidInRect:fromRect:]): Added. Used instead
  5501. of a direct call to drawInRect:fromRect:operation:fraction:, this only draws
  5502. the part of the image that is valid according to loadStatus.
  5503. (-[WebImageRenderer nextFrame:]): Use drawClippedToValidInRect:fromRect:.
  5504. (-[WebImageRenderer beginAnimationInRect:fromRect:]): Ditto.
  5505. (-[WebImageRenderer tileInRect:fromPoint:]): Ditto.
  5506. 2002-09-13 Richard Williamson (Home) <rjw@apple.com>
  5507. Fixed 3051288. URLs were not being canonicalized, so matching failed.
  5508. * History.subproj/WebHistoryPrivate.m:
  5509. (-[WebHistoryPrivate addEntry:]):
  5510. (-[WebHistoryPrivate removeEntry:]):
  5511. (-[WebHistoryPrivate containsURL:]):
  5512. (-[WebHistoryPrivate entryForURL:]):
  5513. 2002-09-13 Richard Williamson (Home) <rjw@apple.com>
  5514. Fixed 3050636. 90% solution. The "Display Images Automatically"
  5515. preference will be used to disallow image draggging. So if this
  5516. is set after pages have loaded, their images will not be draggable,
  5517. and vice-versa. Not disastrous as dragging in either case has little
  5518. or no negative consequences.
  5519. * WebView.subproj/WebHTMLView.m:
  5520. (-[WebHTMLView mouseDragged:]):
  5521. 2002-09-13 Maciej Stachowiak <mjs@apple.com>
  5522. WebKit changes for:
  5523. - fixed 3032238 - Eliminate "Ask each time" choice for cookies
  5524. * Panels.subproj/WebStandardPanels.h:
  5525. * Panels.subproj/WebStandardPanels.m:
  5526. (-[WebStandardPanels useStandardAuthenticationPanel]):
  5527. * WebCoreSupport.subproj/WebCookieAdapter.m:
  5528. (-[WebCookieAdapter cookiesEnabled]):
  5529. * WebKit.pbproj/project.pbxproj:
  5530. 2002-09-13 Darin Adler <darin@apple.com>
  5531. Added assertions, and dealt with some breakage I created while
  5532. trying to fix, here, what I broke in WebCore.
  5533. * Plugins.subproj/WebPluginView.m: (-[WebNetscapePluginView start]):
  5534. Do get the dataSource from our parent when we are being used as an
  5535. object in a view rather than a document view.
  5536. * Plugins.subproj/WebPluginStream.m:
  5537. * WebView.subproj/WebDataSource.m:
  5538. * WebView.subproj/WebFrame.m:
  5539. Leave in the assertions I used to debug.
  5540. 2002-09-13 Darin Adler <darin@apple.com>
  5541. - fixed 3031685 -- The text encoding setting is not propagated to subframes
  5542. * WebView.subproj/WebDocument.h: Remove old WebDocumentTextEncoding methods,
  5543. add supportsTextEncoding.
  5544. * WebView.subproj/WebController.m:
  5545. (-[WebController supportsTextEncoding]): Check the document view to see if
  5546. it supports WebDocumentTextEncoding and returns YES.
  5547. (-[WebController setCustomTextEncoding:]): Call _reloadAllowingStaleDataWithOverrideEncoding.
  5548. (-[WebController resetTextEncoding]): Ditto.
  5549. (-[WebController _mainFrameOverrideEncoding]): Added. Gets encoding from the data source
  5550. of the main frame; provisional if there, main if not.
  5551. (-[WebController hasCustomTextEncoding]): Call _mainFrameOverrideEncoding.
  5552. (-[WebController customTextEncoding]): Ditto.
  5553. * WebView.subproj/WebDataSourcePrivate.m:
  5554. (-[WebDataSource _setParent:]): Set the override encoding to the parent's.
  5555. * WebView.subproj/WebFrame.m:
  5556. (-[WebFrame reload]): Release request to fix storage leak. Set the override encoding
  5557. on the new data source to match the old.
  5558. * WebView.subproj/WebFramePrivate.h: New name for stale data reload method.
  5559. * WebView.subproj/WebFramePrivate.m:
  5560. (-[WebFrame _reloadAllowingStaleDataWithOverrideEncoding:]): Do pretty much the
  5561. same thing reload does with a few differences. Get the encoding from the parameter
  5562. rather than the old data source, and set the policy to the one that uses data from
  5563. the cache, even stale data, if present
  5564. * WebView.subproj/WebHTMLView.m: (-[WebHTMLView supportsTextEncoding]): Return YES.
  5565. 2002-09-13 Richard Williamson (Home) <rjw@apple.com>
  5566. Adding padding and widths buffer to our canonical measurement
  5567. method. The padding argument is used to 'pad' measurements in
  5568. that same way that drawing is padded. The widths parameter
  5569. allows a caller to pass a buffer to get all the individual
  5570. character widths for the run of characters in the string.
  5571. * Misc.subproj/WebStringTruncator.m:
  5572. (+[WebStringTruncator rightTruncateString:toWidth:withFont:]):
  5573. (+[WebStringTruncator centerTruncateString:toWidth:withFont:]):
  5574. * WebCoreSupport.subproj/WebTextRenderer.h:
  5575. * WebCoreSupport.subproj/WebTextRenderer.m:
  5576. (-[WebTextRenderer widthForCharacters:length:]):
  5577. (-[WebTextRenderer drawGlyphs:numGlyphs:fromGlyphPosition:toGlyphPosition:atPoint:withPadding:withTextColor:backgroundColor:]):
  5578. (-[WebTextRenderer floatWidthForCharacters:stringLength:characterPosition:]):
  5579. (-[WebTextRenderer floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:]):
  5580. 2002-09-13 Darin Adler <darin@apple.com>
  5581. Fix dataSource-related plugin crash.
  5582. * Plugins.subproj/WebPluginView.m:
  5583. (-[WebNetscapePluginView start]): Don't grab dataSource here.
  5584. It's too early.
  5585. (-[WebNetscapePluginView setDataSource:]): Grab it here.
  5586. * Plugins.subproj/WebPluginStream.h:
  5587. * Plugins.subproj/WebPluginStream.m:
  5588. Simplified includes and added asserts while debugging.
  5589. 2002-09-13 Richard Williamson (Home) <rjw@apple.com>
  5590. Changed drag hysteresis to 5 and disallow selection initiation within
  5591. a link.
  5592. * WebView.subproj/WebHTMLView.m:
  5593. (-[WebHTMLView mouseDragged:]):
  5594. 2002-09-12 Darin Adler <darin@apple.com>
  5595. Prep work for fixes to the text encoding for subframes.
  5596. * WebCoreSupport.subproj/WebBridge.h: Remove [loadURL:withParent:].
  5597. * WebCoreSupport.subproj/WebBridge.m:
  5598. (-[WebBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
  5599. Added referrer parameter.
  5600. * WebView.subproj/WebController.h: Add new methods, not implemented yet.
  5601. * WebView.subproj/WebController.m:
  5602. (-[WebController supportsTextEncoding]): Here is one.
  5603. (-[WebController setCustomTextEncoding:]): Another.
  5604. (-[WebController resetTextEncoding]): Etc.
  5605. (-[WebController hasCustomTextEncoding]): Etc.
  5606. (-[WebController customTextEncoding]): Etc.
  5607. * WebView.subproj/WebDataSource.h:
  5608. * WebView.subproj/WebDataSource.m:
  5609. (-[WebDataSource startLoading]): Remove the forceRefresh flag.
  5610. This is now controlled by the WebResourceRequest.
  5611. * WebView.subproj/WebDataSourcePrivate.h:
  5612. * WebView.subproj/WebDataSourcePrivate.m:
  5613. (-[WebDataSource _startLoading]): Same for this private version.
  5614. * WebView.subproj/WebFrame.h:
  5615. * WebView.subproj/WebFrame.m:
  5616. (-[WebFrame startLoading]): Remove the forceRefresh flag.
  5617. (-[WebFrame reload]): Remove the forceRefresh flag.
  5618. A reload without a forceRefresh is only used internally, not requested
  5619. by the caller.
  5620. * WebView.subproj/WebFramePrivate.h:
  5621. * WebView.subproj/WebFramePrivate.m:
  5622. (-[WebFrame _transitionToCommitted]): Add handling for the case where we
  5623. reload, but allow stale data.
  5624. (-[WebFrame _isLoadComplete]): Ditto.
  5625. (-[WebFrame _reloadAllowingStaleData]): Placeholder, not implemented yet.
  5626. * WebView.subproj/WebHTMLView.m:
  5627. (-[WebHTMLView setTextEncoding:]): Update for new API, but this is going away.
  5628. (-[WebHTMLView setDefaultTextEncoding]): Ditto.
  5629. 2002-09-12 Richard Williamson <rjw@apple.com>
  5630. Don't initiate a drag if an autoscroll happened.
  5631. * WebView.subproj/WebHTMLView.m:
  5632. (-[WebHTMLView mouseDragged:]):
  5633. 2002-09-12 Richard Williamson <rjw@apple.com>
  5634. Added absolute position column to render node for
  5635. render tree view.
  5636. * WebView.subproj/WebRenderNode.h:
  5637. * WebView.subproj/WebRenderNode.m:
  5638. (-[WebRenderNode initWithName:position:rect:view:children:]):
  5639. (-[WebRenderNode absolutePositionString]):
  5640. (-[WebKitRenderTreeCopier nodeWithName:position:rect:view:children:]):
  5641. 2002-09-12 David Hyatt <hyatt@apple.com>
  5642. Add text/xml to our list of MIME types that should use the
  5643. Web view. With this fix we now render XML and XHTML
  5644. correctly!
  5645. * WebView.subproj/WebDataSourcePrivate.m:
  5646. (+[WebDataSource _repTypes]):
  5647. * WebView.subproj/WebViewPrivate.m:
  5648. (+[WebView _viewTypes]):
  5649. 2002-09-12 Ken Kocienda <kocienda@apple.com>
  5650. Removed load flags as a design concept. Replaced with new "caching policy" concept
  5651. which are set on a WebResourceRequest. These policies determine how a load will
  5652. be processed with regards to the cache.
  5653. * WebCoreSupport.subproj/WebBridge.h: Removed flags from loadURL method.
  5654. * WebCoreSupport.subproj/WebBridge.m: Removed calls to load flags and replaced with calls to new request policies.
  5655. (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]):
  5656. (-[WebBridge isReloading]): Ditto.
  5657. (-[WebBridge loadURL:referrer:]): Ditto.
  5658. (-[WebBridge loadURL:withParent:]): Removed flags from loadURL method.
  5659. (-[WebBridge postWithURL:referrer:data:]): Removed calls to load flags and replaced with calls to new request policies.
  5660. * WebCoreSupport.subproj/WebSubresourceClient.m:
  5661. (+[WebSubresourceClient startLoadingResource:withURL:referrer:forDataSource:]): Ditto.
  5662. * WebView.subproj/WebDataSource.h: Removed flags from init method.
  5663. * WebView.subproj/WebDataSource.m:
  5664. (-[WebDataSource initWithURL:]): Ditto.
  5665. (-[WebDataSource initWithRequest:]): Ditto.
  5666. * WebView.subproj/WebDataSourcePrivate.h: Removed flags ivar, and dangling attributes ivar.
  5667. * WebView.subproj/WebDataSourcePrivate.m:
  5668. (-[WebDataSourcePrivate dealloc]): Ditto.
  5669. * WebView.subproj/WebFrame.m:
  5670. (-[WebFrame reload:]): Removed calls to load flags and replaced with calls to new request policies.
  5671. * WebView.subproj/WebFramePrivate.m:
  5672. (-[WebFrame _goToItem:withFrameLoadType:]): Ditto.
  5673. 2002-09-12 Chris Blumenberg <cblu@apple.com>
  5674. Make WebTextView private and exported.
  5675. * WebKit.exp:
  5676. * WebKit.pbproj/project.pbxproj:
  5677. * WebView.subproj/WebTextView.h:
  5678. 2002-09-11 Maciej Stachowiak <mjs@apple.com>
  5679. Combined provisionalDataSourceChanged: and
  5680. provisionalDataSourceCommitted: methods into a single
  5681. setDataSource:, since they are always called one immediately after
  5682. the other.
  5683. * Plugins.subproj/WebPluginView.m:
  5684. (-[WebNetscapePluginView setDataSource:]):
  5685. (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:]):
  5686. * WebView.subproj/WebDocument.h:
  5687. * WebView.subproj/WebHTMLView.m:
  5688. (-[WebHTMLView setDataSource:]):
  5689. * WebView.subproj/WebImageView.m:
  5690. (-[WebImageView setDataSource:]):
  5691. * WebView.subproj/WebTextView.m:
  5692. (-[WebTextView setDataSource:]):
  5693. * WebView.subproj/WebViewPrivate.m:
  5694. (-[WebView _makeDocumentViewForDataSource:]):
  5695. 2002-09-11 Richard Williamson <rjw@apple.com>
  5696. Better fix for previous problem.
  5697. * WebCoreSupport.subproj/WebTextRenderer.m:
  5698. (-[WebTextRenderer floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:applyRounding:attemptFontSubstitution:]):
  5699. 2002-09-11 Richard Williamson (Local) <rjw@apple.com>
  5700. Remove ceiling of text width at end of fragment. This was screwing up
  5701. intra fragment text measurements.
  5702. Selection of justified text is still screwed up. This is a fundamental problem
  5703. in khtml and will require a rewrite of their justification code. Konq has the
  5704. same problems selecting justified text. The drawing of code applies the justification
  5705. factor, but checking the selection doesn't add the justification factor, so selection
  5706. will be incorrect by the justification amount.
  5707. * WebCoreSupport.subproj/WebTextRenderer.m:
  5708. (-[WebTextRenderer floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:applyRounding:attemptFontSubstitution:]):
  5709. 2002-09-11 Darin Adler <darin@apple.com>
  5710. * WebView.subproj/WebFrame.m: (-[WebFrame reload:]): Use the current
  5711. URL, not the original URL, when doing a reload. This prevents the URL from
  5712. changing back and forth when you reload on a page that involved a redirect.
  5713. 2002-09-11 Darin Adler <darin@apple.com>
  5714. Add machinery needed for fix to 3021137, changing font prefs
  5715. doesn't redraw frames other than the main frame.
  5716. * WebCoreSupport.subproj/WebBridge.m:
  5717. (-[WebBridge setNeedsReapplyStyles]): Added. Lets the web views know that they
  5718. need to reapply styles. If we did this over on the WebCore side, we'd have to do
  5719. it right away. Maybe that would be OK; we can move that that later.
  5720. * WebView.subproj/WebTextView.m: (-[WebTextView setFixedWidthFont]): Use the
  5721. fixed-width size, rather than using the other size with the fixed-width family.
  5722. 2002-09-11 Ken Kocienda <kocienda@apple.com>
  5723. Major change to the API and design of WebFoundation. WebKit has been modified
  5724. to use the new API.
  5725. WebFoundation attributes, as a design concept, are now completely gone. The old usages of
  5726. attributes have been replaced with new API on the WebResourceRequest
  5727. and WebResourceResponse classes.
  5728. * Plugins.subproj/WebPluginStream.h: Removed attribute usage in init API. No need for replacement.
  5729. * Plugins.subproj/WebPluginStream.m:
  5730. (-[WebNetscapePluginStream initWithURL:pluginPointer:]): Removed attribute usage in init API.
  5731. (-[WebNetscapePluginStream initWithURL:pluginPointer:notifyData:]): Ditto.
  5732. (-[WebNetscapePluginStream dealloc]): Remove attribute release.
  5733. (-[WebNetscapePluginStream startLoad]): Removed attribute usage. Replace with calls to new API.
  5734. (-[WebNetscapePluginStream receivedData:withHandle:]): Ditto.
  5735. * Plugins.subproj/WebPluginView.m:
  5736. (-[WebNetscapePluginView pluginURLFromCString:]): Added this helper method.
  5737. (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:]): Added.
  5738. (-[WebNetscapePluginView getURLNotify:target:notifyData:]): Modified to call new loadRequest:inTarget:withNotifyData: method.
  5739. (-[WebNetscapePluginView getURL:target:]): Ditto.
  5740. (-[WebNetscapePluginView postURLNotify:target:len:buf:file:notifyData:]): Ditto.
  5741. * WebCoreSupport.subproj/WebBridge.h: Removed attribute usage in loadURL API. No need for replacement.
  5742. * WebCoreSupport.subproj/WebBridge.m: Added loadRequest:withParent:
  5743. (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]):
  5744. (-[WebBridge startLoadingResource:withURL:referrer:]): Removed attribute usage. Replace with calls to new API.
  5745. (-[WebBridge isReloading]): Ditto.
  5746. (-[WebBridge loadRequest:withParent:]): Added.
  5747. (-[WebBridge loadURL:]): Modified to use new loadRequest:withParent: API
  5748. (-[WebBridge loadURL:referrer:]): Ditto.
  5749. (-[WebBridge loadURL:flags:withParent:]): Ditto.
  5750. (-[WebBridge postWithURL:data:]): Ditto.
  5751. * WebCoreSupport.subproj/WebSubresourceClient.h: Changed API to use an NSString referrer instead of an attributes dictionary.
  5752. * WebCoreSupport.subproj/WebSubresourceClient.m:
  5753. (+[WebSubresourceClient startLoadingResource:withURL:referrer:forDataSource:]): Removed attribute usage. Replace with calls to new API.
  5754. * WebView.subproj/WebDataSource.h: Added initWithRequest: method.
  5755. * WebView.subproj/WebDataSource.m:
  5756. (-[WebDataSource initWithURL:]): Removed attribute usage in init API.
  5757. (-[WebDataSource initWithURL:flags:]): Ditto.
  5758. (-[WebDataSource initWithRequest:]): Added.
  5759. (-[WebDataSource request]): Added.
  5760. * WebView.subproj/WebDataSourcePrivate.h: Added WebResourceRequest ivar.
  5761. * WebView.subproj/WebDataSourcePrivate.m:
  5762. (-[WebDataSourcePrivate dealloc]): Added WebResourceRequest ivar.
  5763. (-[WebDataSource _startLoading:]): Removed attribute usage. Replace with calls to new API.
  5764. * WebView.subproj/WebFrame.m:
  5765. (-[WebFrame reload:]): Removed attribute usage. Replace with calls to new API.
  5766. * WebView.subproj/WebFramePrivate.m:
  5767. (-[WebFrame _goToItem:withFrameLoadType:]): Use new WebDataSource init API.
  5768. 2002-09-10 Darin Adler <darin@apple.com>
  5769. WebKit part of support for the "Referer" header.
  5770. * WebCoreSupport.subproj/WebBridge.m:
  5771. (-[WebBridge openNewWindowWithURL:referrer:frameName:]): Add referrer parameter,
  5772. and pass it on to the window context method.
  5773. (-[WebBridge addAttributeForReferrer:toDictionary:]): Added.
  5774. (-[WebBridge attributesForReferrer:]): Added.
  5775. (-[WebBridge startLoadingResource:withURL:referrer:]): Put the referrer into an
  5776. attributes dictionary and pass it to the WebSubresourceClient method.
  5777. (-[WebBridge loadURL:referrer:]): Put the referrer into an attributes dictionary
  5778. and pass it along.
  5779. (-[WebBridge postWithURL:referrer:data:]): Put the referrer into an attributes
  5780. dictionary and pass it along.
  5781. * WebCoreSupport.subproj/WebSubresourceClient.h: Add an attributes parameter to
  5782. the method that starts loading.
  5783. * WebCoreSupport.subproj/WebSubresourceClient.m:
  5784. (+[WebSubresourceClient startLoadingResource:withURL:attributes:forDataSource:]):
  5785. Put the attributes into the WebResourceRequest.
  5786. * WebView.subproj/WebController.h: Add a referrer parameter to the WebWindowContext
  5787. openNewWindowWithURL method.
  5788. * WebView.subproj/WebDefaultContextMenuHandler.m:
  5789. (-[WebDefaultContextMenuHandler openNewWindowWithURL:referrer:]): Pass the referrer
  5790. on to the window context.
  5791. (-[WebDefaultContextMenuHandler openLinkInNewWindow:]): Pass nil for the referrer
  5792. for now. Not sure if this is best.
  5793. (-[WebDefaultContextMenuHandler openImageInNewWindow:]): Ditto.
  5794. (-[WebDefaultContextMenuHandler openFrameInNewWindow:]): Ditto.
  5795. * WebView.subproj/WebFrame.m: (-[WebFrame frameNamed:]): Pass nil for the referrer
  5796. here where we are creating a new empty window.
  5797. * WebView.subproj/WebHTMLViewPrivate.m:
  5798. (-[WebHTMLView _continueAfterClickPolicyForEvent:]): Pass nil for the referrer here
  5799. in the WebClickPolicyOpenNewWindow. The policy API doesn't provide a way for the
  5800. policy handler to specify the referrer; we might want to change that later.
  5801. * Plugins.subproj/WebPluginView.m:
  5802. (-[WebNetscapePluginView loadURL:inTarget:withNotifyData:andHandleAttributes:]):
  5803. Pass nil for the referrer here. But it seems wrong that this function discards
  5804. the handle attributes that are passed in for the case where it opens a new window.
  5805. 2002-09-11 Chris Blumenberg <cblu@apple.com>
  5806. Fixed: 3048158 - Crash at google in _destroyInitializingClassList
  5807. * WebView.subproj/WebMainResourceClient.m:
  5808. (-[WebMainResourceClient didCancelWithHandle:]):
  5809. 2002-09-10 Richard Williamson (Local) <rjw@apple.com>
  5810. Renamed method.
  5811. * WebView.subproj/WebPreferences.h:
  5812. * WebView.subproj/WebPreferences.m:
  5813. (-[WebPreferences _updateWebCoreSettings]):
  5814. (-[WebPreferences setWillLoadImagesAutomatically:]):
  5815. (-[WebPreferences willLoadImagesAutomatically]):
  5816. 2002-09-10 Chris Blumenberg <cblu@apple.com>
  5817. Report download handler errors
  5818. Renamed error constants
  5819. Added new errors
  5820. * Misc.subproj/WebDownloadHandler.h:
  5821. * Misc.subproj/WebDownloadHandler.m:
  5822. (-[WebDownloadHandler errorWithCode:]): added
  5823. (-[WebDownloadHandler receivedData:]): return an error
  5824. (-[WebDownloadHandler finishedLoading]): return an error
  5825. (-[WebDownloadHandler cancel]): return an error
  5826. * Misc.subproj/WebKitErrors.h: added new errors
  5827. * WebView.subproj/WebFramePrivate.m:
  5828. (-[WebFrame _shouldShowURL:]): use renamed error constants
  5829. * WebView.subproj/WebMainResourceClient.h:
  5830. * WebView.subproj/WebMainResourceClient.m:
  5831. (-[WebMainResourceClient receivedError:forHandle:]): don't send an error when errors are suppressed
  5832. (-[WebMainResourceClient didCancelWithHandle:]): report download handler errors
  5833. (-[WebMainResourceClient handleDidFinishLoading:]): report download handler errors
  5834. (-[WebMainResourceClient handleDidReceiveData:data:]): report download handler errors
  5835. (-[WebMainResourceClient handleDidFailLoading:withError:]): report download handler errors
  5836. * WebView.subproj/WebView.m:
  5837. (+[WebView initialize]): add new errors to WebError
  5838. 2002-09-10 John Sullivan <sullivan@apple.com>
  5839. * History.subproj/WebHistoryPrivate.m:
  5840. (-[WebHistoryPrivate _loadHistoryGuts:]):
  5841. removed the ERROR message in the case where the history file was
  5842. not found, as this is normal initial-state behavior.
  5843. 2002-09-10 Maciej Stachowiak <mjs@apple.com>
  5844. WebKit part of fix for:
  5845. 2952837 - Slide shows on homepage.mac.com don't show pictures, captions
  5846. 2942073 - Deferring [BrowserDocument goToInitialURL] can cause problems
  5847. 3021360 - second window pops up on 'Search' at chrysler.com
  5848. 3030485 - Unexpected new window created with no scroll bars at sony.com
  5849. This is done by adding a concept of named controller sets, so that
  5850. less browser-like uses of WebKit won't be affected.
  5851. * WebCoreSupport.subproj/WebBridge.m:
  5852. (-[WebBridge openNewWindowWithURL:frameName:]): Pass frameName
  5853. parameter to controller initializer.
  5854. * WebView.subproj/WebController.h:
  5855. * WebView.subproj/WebController.m:
  5856. (-[WebController init]): Pass nil for controllerSetName.
  5857. (-[WebController dealloc]):
  5858. (-[WebController frameNamed:]): Check other windows in the same set too.
  5859. * WebView.subproj/WebControllerPrivate.h:
  5860. * WebView.subproj/WebControllerPrivate.m:
  5861. (-[WebControllerPrivate dealloc]):
  5862. (-[WebController _setDefersCallbacks:]):
  5863. (-[WebController _setTopLevelFrameName:]):
  5864. (-[WebController _frameInThisWindowNamed:]):
  5865. * WebView.subproj/WebControllerSets.h: Added.
  5866. * WebView.subproj/WebControllerSets.m: Added.
  5867. (+[WebControllerSets addController:toSetNamed:]): Method to
  5868. maintain controller sets.
  5869. (+[WebControllerSets removeController:fromSetNamed:]): Likewise.
  5870. * WebKit.pbproj/project.pbxproj: Add new files.
  5871. 2002-09-10 Ken Kocienda <kocienda@apple.com>
  5872. Changed API for setting the WebResourceClient for a request/load.
  5873. This has been removed from WebResourceRequest, and has been moved to
  5874. WebResourceHandle. The result is that the init method for a WebResourceHandle
  5875. now takes a WebResourceRequest and a WebResourceClient.
  5876. All of the changes below are simple code modifications to use the new API.
  5877. * Misc.subproj/WebIconLoader.m:
  5878. (-[WebIconLoader startLoading])
  5879. * Plugins.subproj/WebPluginStream.m:
  5880. (-[WebNetscapePluginStream startLoad])
  5881. * WebCoreSupport.subproj/WebBridge.m:
  5882. (-[WebBridge objectLoadedFromCache:size:])
  5883. * WebCoreSupport.subproj/WebSubresourceClient.m:
  5884. (+[WebSubresourceClient startLoadingResource:withURL:dataSource:])
  5885. * WebView.subproj/WebDataSourcePrivate.m:
  5886. (-[WebDataSource _startLoading:])
  5887. 2002-09-10 Chris Blumenberg <cblu@apple.com>
  5888. * History.subproj/WebHistory.h:
  5889. * History.subproj/WebHistory.m:
  5890. (-[WebHistory entryForURL:]): added
  5891. * History.subproj/WebHistoryPrivate.h:
  5892. * History.subproj/WebHistoryPrivate.m:
  5893. (-[WebHistoryPrivate entryForURL:]): added
  5894. * Misc.subproj/WebIconDatabase.h: added WebIconLargeSize
  5895. * Misc.subproj/WebIconDatabase.m: added WebIconLargeSize
  5896. * WebKit.exp: export link label key and WebIconLargeSize
  5897. 2002-09-10 Darin Adler <darin@apple.com>
  5898. WebKit part of weaning WebCore from getting directly at WebKit defaults.
  5899. * WebView.subproj/WebPreferences.h:
  5900. * WebView.subproj/WebPreferences.m:
  5901. (-[WebPreferences _updateWebCoreSettings]): Added. Propagates all preferences
  5902. to WebCore. This way WebCore doesn't have to actively ask for the values
  5903. of preferences using defaults keys that are WebKit secrets.
  5904. (+[WebPreferences load]): Set up an observer that calls _updateWebCoreSettings
  5905. whenever NSUserDefaultsDidChangeNotification is posted.
  5906. (-[WebPreferences setStandardFontFamily:]): Call _updateWebCoreSettings right
  5907. away, don't wait for NSUserDefaultsDidChangeNotification.
  5908. (-[WebPreferences setFixedFontFamily:]): Ditto.
  5909. (-[WebPreferences setSerifFontFamily:]): Ditto.
  5910. (-[WebPreferences setSansSerifFontFamily:]): Ditto.
  5911. (-[WebPreferences setCursiveFontFamily:]): Ditto.
  5912. (-[WebPreferences setFantasyFontFamily:]): Ditto.
  5913. (-[WebPreferences setDefaultFontSize:]): Ditto.
  5914. (-[WebPreferences setDefaultFixedFontSize:]): Ditto.
  5915. (-[WebPreferences setMinimumFontSize:]): Ditto.
  5916. (-[WebPreferences setUserStyleSheetEnabled:]): Ditto.
  5917. (-[WebPreferences setUserStyleSheetLocation:]): Ditto.
  5918. (-[WebPreferences setJavaEnabled:]): Ditto.
  5919. (-[WebPreferences setJavaScriptEnabled:]): Ditto.
  5920. (-[WebPreferences setJavaScriptCanOpenWindowsAutomatically:]): Ditto.
  5921. (-[WebPreferences setPluginsEnabled:]): Ditto.
  5922. (-[WebPreferences setDisplayImages:]): Ditto.
  5923. * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge reportBadURL:]):
  5924. Add this method, which replaces reportError. Now WebCore doesn't use
  5925. WebFoundation directly at all! Pretty neat.
  5926. 2002-09-09 Richard Williamson (Home) <rjw@apple.com>
  5927. Implemented disable images automatically (2896319).
  5928. * WebView.subproj/WebPreferences.h:
  5929. * WebView.subproj/WebPreferences.m:
  5930. (+[WebPreferences load]):
  5931. (-[WebPreferences setDisplayImages:]):
  5932. (-[WebPreferences displayImages]):
  5933. 2002-09-09 Darin Adler <darin@apple.com>
  5934. - fixed 3003605 -- Leaking 1 WebView after second run of static PLT
  5935. Fixing this should also help with footprint.
  5936. * WebView.subproj/WebFrame.m:
  5937. (-[WebFrame dealloc]): Remove old workaround for problem where we
  5938. always deallocated the frames from timer cleanup. I found a better
  5939. fix for this.
  5940. (-[WebFrame stopLoading]): Explicitly fire the scheduled layout
  5941. timer if any when we stop loading, rather than leaving it hanging.
  5942. * WebView.subproj/WebFramePrivate.m: (-[WebFrame _setState:]):
  5943. Explicitly fire the scheduled layout timer if any.
  5944. * WebView.subproj/WebDataSource.m: (-[WebDataSource isLoading]):
  5945. Use an autorelease pool here so we don't end up putting all the
  5946. frames in the main event loop's autorelease pool.
  5947. * Bookmarks.subproj/WebBookmark.m:
  5948. (-[WebBookmark init]): Use copy instead of retain.
  5949. (-[WebBookmark identifier]): Use copy instead of retain.
  5950. 2002-09-09 ken <kocienda@apple.com>
  5951. Missed one call through asking WebResourceHandle for contentLength
  5952. instead of WebResourceResponse.
  5953. * Plugins.subproj/WebPluginStream.m:
  5954. (-[WebNetscapePluginStream receivedData:withHandle:]):
  5955. 2002-09-09 ken <kocienda@apple.com>
  5956. Content length information now accessible via WebResourceResponse object,
  5957. rather than from WebResourceHandle.
  5958. * WebView.subproj/WebLoadProgress.m:
  5959. (-[WebLoadProgress initWithResourceHandle:]):
  5960. * WebView.subproj/WebMainResourceClient.m:
  5961. (-[WebMainResourceClient handleDidReceiveData:data:]):
  5962. 2002-09-09 Richard Williamson <rjw@apple.com>
  5963. Make both calls to adjust CG font cache dynamic.
  5964. The new CGFontCacheSetMaxSize() adds a font cache
  5965. parameter. Ugh! This is needed so we can compile
  5966. w/o warnings on stock Jag.
  5967. * WebCoreSupport.subproj/WebTextRendererFactory.m:
  5968. 2002-09-09 Ken Kocienda <kocienda@apple.com>
  5969. Character set information now accessible via WebResourceResponse object,
  5970. rather than from WebResourceHandle.
  5971. * WebView.subproj/WebMainResourceClient.m:
  5972. (-[WebMainResourceClient handleDidReceiveData:data:]):
  5973. 2002-09-09 Chris Blumenberg <cblu@apple.com>
  5974. Re-enable wizzy scaling.
  5975. * Misc.subproj/WebIconDatabase.m:
  5976. (-[WebIconDatabase _iconByScalingIcon:toSize:]):
  5977. 2002-09-09 Ken Kocienda <kocienda@apple.com>
  5978. WebResourcehandle no longer has a contentType method.
  5979. Call through to WebResourceResponse object to get content type.
  5980. * Plugins.subproj/WebPluginStream.m:
  5981. (-[WebNetscapePluginStream receivedData:withHandle:]):
  5982. * WebView.subproj/WebMainResourceClient.m:
  5983. (-[WebMainResourceClient handleDidReceiveData:data:]):
  5984. 2002-09-09 Darin Adler <darin@apple.com>
  5985. Fixed lifetime problems happening due to new cancel mechanism.
  5986. * WebCoreSupport.subproj/WebSubresourceClient.m: Add comments explaining why
  5987. retain/release is needed.
  5988. * WebView.subproj/WebDataSourcePrivate.m:
  5989. (-[WebDataSource _recursiveStopLoading]): Add a retain/release so that we don't
  5990. run into problems if _stopLoading causes the data source to go away.
  5991. * WebView.subproj/WebMainResourceClient.m:
  5992. (-[WebMainResourceClient didCancelWithHandle:]): Add retain/release for similar reasons,
  5993. with comment explaining why.
  5994. (-[WebMainResourceClient handleDidFinishLoading:]): Ditto.
  5995. (-[WebMainResourceClient handleDidFailLoading:withError:]): Ditto.
  5996. Fixed the problem that was leading to the NSImage exception, but didn't turn on
  5997. the whizzy scaling -- leaving that to Chris.
  5998. * Misc.subproj/WebIconDatabase.m: (-[WebIconDatabase iconForSiteURL:withSize:]):
  5999. Eliminate the "size 0x0" feature. It was only implemented in one place, and tons
  6000. of other places would actually make a size 0x0 icon. But also, we don't need it any more.
  6001. * WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource iconLoader: receivedPageIcon:),
  6002. (-[WebDataSource _loadIcon]): Don't bother actually passing the icon to
  6003. [WebLocationChangeHandler receivedPageIcon:forDataSource:]. We should probably eventually
  6004. either just get rid of this method, or remove the icon parameter.
  6005. 2002-09-09 Chris Blumenberg <cblu@apple.com>
  6006. * Misc.subproj/WebIconDatabase.m:
  6007. (-[WebIconDatabase _iconByScalingIcon:toSize:]): Commented out wizzy scaling as it was causing an NSImage exception to be raised.
  6008. * Plugins.subproj/WebPlugin.m:
  6009. (-[WebNetscapePlugin _getPluginInfo]): Check Resource Manager errors
  6010. 2002-09-08 Darin Adler <darin@apple.com>
  6011. * Plugins.subproj/WebPluginStream.m:
  6012. * Plugins.subproj/WebPluginView.m:
  6013. Use #if ! rather than #ifndef with LOG_DISABLED, since it
  6014. is set to 0 rather than not defined when LOG is enabled.
  6015. 2002-09-08 Darin Adler <darin@apple.com>
  6016. * Bookmarks.subproj/WebBookmarkGroup.m:
  6017. * History.subproj/WebHistoryPrivate.m:
  6018. * History.subproj/WebURLsWithTitles.m:
  6019. * Misc.subproj/WebDownloadHandler.m:
  6020. * Misc.subproj/WebIconDatabase.m:
  6021. * Misc.subproj/WebIconLoader.m:
  6022. * WebView.subproj/WebController.m:
  6023. * WebView.subproj/WebDataSourcePrivate.m:
  6024. * WebView.subproj/WebFrame.m:
  6025. * WebView.subproj/WebFramePrivate.m:
  6026. * WebView.subproj/WebHTMLView.m:
  6027. * WebView.subproj/WebHTMLViewPrivate.m:
  6028. * WebView.subproj/WebMainResourceClient.m:
  6029. * WebView.subproj/WebPreferences.m:
  6030. * WebView.subproj/WebViewPrivate.m:
  6031. Remove unnecessary includes.
  6032. 2002-09-08 Darin Adler <darin@apple.com>
  6033. Update logging to use new implementation. Remove old.
  6034. * Misc.subproj/WebKitDebug.h: Removed.
  6035. * Misc.subproj/WebKitDebug.m: Removed.
  6036. * Misc.subproj/WebKitLogging.h: Added.
  6037. * Misc.subproj/WebKitLogging.m: Added.
  6038. * Misc.subproj/WebKitReallyPrivate.h: Removed.
  6039. * WebKit.pbproj/project.pbxproj: Update for above changes.
  6040. * WebKit-tests.exp: Now empty.
  6041. * History.subproj/WebHistoryItem.m: Remove unneeded include.
  6042. * Bookmarks.subproj/WebBookmarkGroup.m:
  6043. * History.subproj/WebHistoryPrivate.m:
  6044. * Misc.subproj/WebDownloadHandler.m:
  6045. * Misc.subproj/WebIconDatabase.m:
  6046. * Plugins.subproj/WebPlugin.m:
  6047. * Plugins.subproj/WebPluginDatabase.m:
  6048. * Plugins.subproj/WebPluginNullEventSender.m:
  6049. * Plugins.subproj/WebPluginStream.m:
  6050. * Plugins.subproj/WebPluginView.m:
  6051. * Plugins.subproj/npapi.m:
  6052. * WebCoreSupport.subproj/WebTextRenderer.m:
  6053. * WebView.subproj/WebDataSourcePrivate.m:
  6054. * WebView.subproj/WebFrame.m:
  6055. * WebView.subproj/WebFramePrivate.m:
  6056. * WebView.subproj/WebHTMLView.m:
  6057. * WebView.subproj/WebMainResourceClient.m:
  6058. Change to use new log channels.
  6059. 2002-09-08 Darin Adler <darin@apple.com>
  6060. Remove empty handleDidBeginLoading and handleDidCancelLoading
  6061. methods, now that they will never be called.
  6062. * Misc.subproj/WebIconLoader.m:
  6063. * Plugins.subproj/WebPluginStream.m:
  6064. * WebCoreSupport.subproj/WebSubresourceClient.m:
  6065. * WebView.subproj/WebMainResourceClient.m:
  6066. 2002-09-08 Darin Adler <darin@apple.com>
  6067. Forgot to save out files from the editor in my last change.
  6068. * WebView.subproj/WebDataSource.m:
  6069. * WebView.subproj/WebDataSourcePrivate.h:
  6070. * WebView.subproj/WebDataSourcePrivate.m:
  6071. Oops.
  6072. 2002-09-08 Darin Adler <darin@apple.com>
  6073. Finished weaning us from handleDidCancelLoading. Now I will remove both
  6074. handleDidBeginLoading and handleDidCancelLoading.
  6075. * WebCoreSupport.subproj/WebSubresourceClient.h: Add a handle method.
  6076. * WebCoreSupport.subproj/WebSubresourceClient.m:
  6077. (-[WebSubresourceClient handleDidCancelLoading:]): Remove guts, move to cancel.
  6078. (-[WebSubresourceClient handleDidFinishLoading:]): Remove the client from the
  6079. data source now, not the handle.
  6080. (-[WebSubresourceClient handleDidFailLoading:withError:]): Ditto.
  6081. (-[WebSubresourceClient cancel]): Move guts here, also make the above change.
  6082. (-[WebSubresourceClient handle]): Added.
  6083. * WebView.subproj/WebDataSource.m: Use clients list, not handles list.
  6084. * WebView.subproj/WebDataSourcePrivate.h: Keep a list of subresource clients rather
  6085. than a list of handles for the subresources.
  6086. * WebView.subproj/WebDataSourcePrivate.m:
  6087. (-[WebDataSourcePrivate dealloc]): Update to match new field names.
  6088. (-[WebDataSource _updateLoading]): Use clients, not handles.
  6089. (-[WebDataSource _startLoading:]): Move line about starting loading out of the if
  6090. statement. I suspect the if statement is always true, though.
  6091. (-[WebDataSource _addSubresourceClient:]): New name. Keep client pointer instead of
  6092. handle now.
  6093. (-[WebDataSource _removeSubresourceClient:]): Ditto.
  6094. (-[WebDataSource _stopLoading]): Move download handler line into WebMainResourceClient
  6095. since the "not sent when application is quitting" issue is gone now. Stop the subresource
  6096. clients using the cancel call, not by cancelling the handle directly.
  6097. (-[WebDataSource _defersCallbacksChanged]): Update for clients list, not handles list.
  6098. * WebView.subproj/WebMainResourceClient.m:
  6099. (-[WebMainResourceClient didCancelWithHandle:]): Cancel the download handler here.
  6100. (-[WebMainResourceClient handleDidReceiveData:data:]): Call didCancelWithHandle here.
  6101. A loose end from the previous change.
  6102. 2002-09-07 Chris Blumenberg <cblu@apple.com>
  6103. Made the wizzy scaling an experiment.
  6104. * Misc.subproj/WebIconDatabase.m:
  6105. (-[WebIconDatabase _iconByScalingIcon:toSize:]):
  6106. 2002-09-06 Darin Adler <darin@apple.com>
  6107. Almost weaned WebKit entirely from the handleDidBeginLoading and handleDidCancelLoading
  6108. loading callbacks. We are planning to remove both of them.
  6109. * Plugins.subproj/WebPluginStream.m:
  6110. (-[WebNetscapePluginStream startLoad]): Call _didStartLoading here so we don't need
  6111. to rely on handleDidBeginLoading any more.
  6112. (-[WebNetscapePluginStream stop]): Call cancel here so we don't need to rely on
  6113. handleDidCancelLoading any more.
  6114. (-[WebNetscapePluginStream handleDidBeginLoading:]): Empty out.
  6115. (-[WebNetscapePluginStream handleDidFinishLoading:]): Nil out resource here.
  6116. (-[WebNetscapePluginStream handleDidCancelLoading:]): Empty out.
  6117. (-[WebNetscapePluginStream cancel]): Put cancel code here.
  6118. (-[WebNetscapePluginStream handleDidFailLoading:withError:]): Nil out resource here.
  6119. * WebCoreSupport.subproj/WebBridge.m:
  6120. (-[WebBridge startLoadingResource:withURL:]): Change to use WebCoreResourceHandle.
  6121. * WebCoreSupport.subproj/WebSubresourceClient.h: Change to use WebCoreResourceHandle.
  6122. * WebCoreSupport.subproj/WebSubresourceClient.m:
  6123. (-[WebSubresourceClient dealloc]): Release handle too, now that we have it.
  6124. (-[WebSubresourceClient receivedProgressWithComplete:]): Moved up here and removed handle
  6125. parameter.
  6126. (+[WebSubresourceClient startLoadingResource:withURL:dataSource:]): Do work here so
  6127. we don't need to rely on handleDidBeginLoading any more.
  6128. (-[WebSubresourceClient receivedError:]): Removed handle parameter.
  6129. (-[WebSubresourceClient handleWillUseUserAgent:forURL:]):
  6130. (-[WebSubresourceClient handleDidBeginLoading:]): Emptied out.
  6131. (-[WebSubresourceClient handleDidCancelLoading:]): Updated, still needs to be emptied out.
  6132. (-[WebSubresourceClient handleDidFinishLoading:]): Nil out handle.
  6133. (-[WebSubresourceClient handleDidFailLoading:withError:]): Nil out handle.
  6134. (-[WebSubresourceClient cancel]): New method, used by WebCore.
  6135. * WebCoreSupport.subproj/WebTextRenderer.m:
  6136. (-[WebTextRenderer widthForCharacters:length:]): Moved up in the file to fix build failure.
  6137. * WebView.subproj/WebDataSourcePrivate.m:
  6138. (-[WebDataSource _startLoading:]): Call didStartLoadingWithURL so we don't have to
  6139. rely on handleDidBeginLoading.
  6140. (-[WebDataSource _stopLoading]): Call didCancelWithHandle so we don't have to rely
  6141. on handleDidCancelLoading.
  6142. * WebView.subproj/WebMainResourceClient.h: Add didStartLoadingWithURL and
  6143. didCancelWithHandle to the public methods.
  6144. * WebView.subproj/WebMainResourceClient.m:
  6145. (-[WebMainResourceClient initWithDataSource:]):
  6146. (-[WebMainResourceClient handleDidBeginLoading:]): Empty out.
  6147. (-[WebMainResourceClient didCancelWithHandle:]): Move the bulk of handleDidCancelLoading here.
  6148. (-[WebMainResourceClient handleDidCancelLoading:]): Empty out.
  6149. * WebView.subproj/WebHTMLView.m: (-[WebHTMLView mouseDragged:]): Move the mouse up a little
  6150. bit so it's "on" the dragged area, but not over the text.
  6151. 2002-09-06 Richard Williamson <rjw@apple.com>
  6152. Added support for khtml's justified text drawing. Additional padding is distributed
  6153. to space widths. (Sites like www.osnews.com now render correctly.)
  6154. Change word end rounding hack to use ceil of word width. I'm still noticing a spacing anomaly
  6155. that is fixed by a reload. Occasionally text runs are still crammed together, but a reload uses
  6156. correct spacing. This anomaly is often visible on www.arstechnica.com. Still investigating.
  6157. * WebCoreSupport.subproj/WebTextRenderer.m:
  6158. (-[WebTextRenderer drawGlyphs:numGlyphs:fromGlyphPosition:toGlyphPosition:atPoint:withPadding:withTextColor:backgroundColor:]):
  6159. (-[WebTextRenderer slowDrawCharacters:length:fromCharacterPosition:toCharacterPosition:atPoint:withPadding:withTextColor:backgroundColor:attemptFontSubstitution:]):
  6160. (-[WebTextRenderer _drawCharacters:length:fromCharacterPosition:toCharacterPosition:atPoint:withPadding:withTextColor:backgroundColor:]):
  6161. (-[WebTextRenderer drawCharacters:stringLength:fromCharacterPosition:toCharacterPosition:atPoint:withPadding:withTextColor:backgroundColor:]):
  6162. (-[WebTextRenderer slowFloatWidthForCharacters:stringLength:fromCharacterPostion:numberOfCharacters:applyRounding:]):
  6163. (-[WebTextRenderer floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:applyRounding:attemptFontSubstitution:]):
  6164. Tweaks to dragged image.
  6165. * WebView.subproj/WebHTMLView.m:
  6166. (-[WebHTMLView mouseDragged:]):
  6167. 2002-09-06 Richard Williamson (Home) <rjw@apple.com>
  6168. Fixed symbol lookup problem. NSLookupAndBindSymbol() dies horribly
  6169. if symbol is missing. Use NSIsSymbolNameDefined() first to check if
  6170. symbol is present.
  6171. * WebCoreSupport.subproj/WebTextRendererFactory.m:
  6172. 2002-09-06 Darin Adler <darin@apple.com>
  6173. Fix some minor anomalies and leaks.
  6174. * History.subproj/WebHistoryItem.m:
  6175. (-[WebHistoryItem initWithURL:target:parent:title:]): Use copy, not retain.
  6176. (-[WebHistoryItem dealloc]): Release the anchor, fix leak.
  6177. (-[WebHistoryItem setURL:]): Check for URLs that are equal, not just ==.
  6178. (-[WebHistoryItem setTitle:]): Copy, not retain.
  6179. (-[WebHistoryItem setTarget:]): Copy, not retain.
  6180. (-[WebHistoryItem setParent:]): Copy, not retain.
  6181. (-[WebHistoryItem setDisplayTitle:]): Copy, not retain.
  6182. (-[WebHistoryItem setAnchor:]): Copy, not retain.
  6183. * WebView.subproj/WebControllerPolicyHandler.m:
  6184. (-[WebPolicyPrivate dealloc]): Release the URL, call super, fix leaks.
  6185. (-[WebPolicy _setPath:]): Use copy, not retain.
  6186. * WebView.subproj/WebControllerPrivate.m:
  6187. (-[WebControllerPrivate dealloc]): Release downloadProgressHandler,
  6188. contextMenuHandler, locationChangeHandler, fix leaks.
  6189. Some fun with Richard's new code.
  6190. * WebView.subproj/WebHTMLView.m:
  6191. (-[WebHTMLView mouseDragged:]): Center image around mouse instead of
  6192. putting it up and to the right. Add more X space than Y space.
  6193. 2002-09-06 Richard Williamson (Home) <rjw@apple.com>
  6194. * WebView.subproj/WebHTMLView.m:
  6195. (-[WebHTMLView mouseDragged:]):
  6196. More fun and games with dragged links.
  6197. Draw both a label and url (in a smaller font)
  6198. into the dragged image.
  6199. * Misc.subproj/WebStringTruncator.h:
  6200. * Misc.subproj/WebStringTruncator.m:
  6201. (+[WebStringTruncator rightTruncateString:toWidth:withFont:]):
  6202. Added right string truncator. Not optimized, but not used
  6203. very often. Currently just for dragged link experiment.
  6204. === Alexander-22 ===
  6205. 2002-09-06 Ken Kocienda <kocienda@apple.com>
  6206. Declaration and initialization of variable on one line caused unused variable
  6207. warning when building under deployment since the only use of the variable was
  6208. in a debug statement.
  6209. * Plugins.subproj/WebPluginStream.m:
  6210. (-[WebNetscapePluginStream receivedError:])
  6211. 2002-09-05 Richard Williamson (Local) <rjw@apple.com>
  6212. Experiment w/ dragging link label as drag image.
  6213. Needs some visual tweaking, but good concept, I think.
  6214. * WebView.subproj/WebHTMLView.m:
  6215. (-[WebHTMLView mouseDragged:]):
  6216. 2002-09-05 Richard Williamson (Local) <rjw@apple.com>
  6217. Use the first text child node of the link element
  6218. as the title for a dragged link. We'll use this for
  6219. the dragged image later too.
  6220. * WebView.subproj/WebController.h:
  6221. * WebView.subproj/WebController.m:
  6222. * WebView.subproj/WebHTMLView.m:
  6223. (-[WebHTMLView mouseDragged:]):
  6224. * WebView.subproj/WebHTMLViewPrivate.m:
  6225. (-[WebHTMLView _elementAtPoint:]):
  6226. 2002-09-05 Richard Williamson (Local) <rjw@apple.com>
  6227. Correctly save of document state in current
  6228. document when going back.
  6229. * WebCoreSupport.subproj/WebBridge.m:
  6230. (-[WebBridge saveDocumentState:]):
  6231. (-[WebBridge documentState]):
  6232. 2002-09-05 Richard Williamson (Local) <rjw@apple.com>
  6233. Fixed 3043505. Disallows drag drops on originating view.
  6234. * WebView.subproj/WebView.m:
  6235. (-[WebView draggingEntered:]):
  6236. 2002-09-05 Darin Adler <darin@apple.com>
  6237. Update to use the new style of assertions.
  6238. A few places still use the WebKitDebug.h, for logging.
  6239. * Bookmarks.subproj/WebBookmark.m:
  6240. * Bookmarks.subproj/WebBookmarkGroup.m:
  6241. * Bookmarks.subproj/WebBookmarkLeaf.m:
  6242. * Bookmarks.subproj/WebBookmarkList.m:
  6243. * Bookmarks.subproj/WebBookmarkSeparator.m:
  6244. * History.subproj/WebHistory.m:
  6245. * History.subproj/WebHistoryList.m:
  6246. * History.subproj/WebHistoryPrivate.m:
  6247. * History.subproj/WebURLsWithTitles.m:
  6248. * Misc.subproj/WebDownloadHandler.m:
  6249. * Misc.subproj/WebIconDatabase.m:
  6250. * Misc.subproj/WebIconLoader.m:
  6251. * Misc.subproj/WebKitDebug.h:
  6252. * Misc.subproj/WebStringTruncator.m:
  6253. * Panels.subproj/WebAuthenticationPanel.m:
  6254. * Plugins.subproj/WebPlugin.m:
  6255. * Plugins.subproj/WebPluginDatabase.m:
  6256. * Plugins.subproj/WebPluginNullEventSender.m:
  6257. * Plugins.subproj/WebPluginStream.m:
  6258. * Plugins.subproj/WebPluginView.m:
  6259. * Plugins.subproj/npapi.m:
  6260. * WebCoreSupport.subproj/WebBridge.m:
  6261. * WebCoreSupport.subproj/WebCookieAdapter.m:
  6262. * WebCoreSupport.subproj/WebImageRenderer.m:
  6263. * WebCoreSupport.subproj/WebImageRendererFactory.m:
  6264. * WebCoreSupport.subproj/WebSubresourceClient.m:
  6265. * WebCoreSupport.subproj/WebTextRenderer.m:
  6266. * WebCoreSupport.subproj/WebTextRendererFactory.m:
  6267. * WebCoreSupport.subproj/WebViewFactory.m:
  6268. * WebView.subproj/WebController.m:
  6269. * WebView.subproj/WebControllerPrivate.m:
  6270. * WebView.subproj/WebDataSource.m:
  6271. * WebView.subproj/WebDataSourcePrivate.m:
  6272. * WebView.subproj/WebDefaultPolicyHandler.m:
  6273. * WebView.subproj/WebFrame.m:
  6274. * WebView.subproj/WebFramePrivate.m:
  6275. * WebView.subproj/WebHTMLView.m:
  6276. * WebView.subproj/WebHTMLViewPrivate.m:
  6277. * WebView.subproj/WebMainResourceClient.m:
  6278. * WebView.subproj/WebPreferences.m:
  6279. * WebView.subproj/WebViewPrivate.m:
  6280. Use new assertions.
  6281. 2002-09-05 Richard Williamson (Local) <rjw@apple.com>
  6282. Removed debugging.
  6283. * History.subproj/WebBackForwardList.m:
  6284. (-[WebBackForwardList addEntry:]):
  6285. 2002-09-05 Richard Williamson (Local) <rjw@apple.com>
  6286. Added support for saving/restoring document state
  6287. in back/forward list.
  6288. * History.subproj/WebBackForwardList.m:
  6289. (-[WebBackForwardList addEntry:]):
  6290. * History.subproj/WebHistoryItem.h:
  6291. * History.subproj/WebHistoryItem.m:
  6292. (-[WebHistoryItem dealloc]):
  6293. (-[WebHistoryItem setLastVisitedDate:]):
  6294. (-[WebHistoryItem documentState]):
  6295. * WebCoreSupport.subproj/WebBridge.m:
  6296. (-[WebBridge saveDocumentState:]):
  6297. (-[WebBridge documentState]):
  6298. * WebView.subproj/WebDataSourcePrivate.m:
  6299. (-[WebDataSource _startLoading:]):
  6300. Lookup post Jaguar CG SPI. Can now run and build
  6301. w/o patched CG.
  6302. * WebCoreSupport.subproj/WebTextRendererFactory.m:
  6303. Changed image links to drag file contents.
  6304. * WebView.subproj/WebHTMLView.m:
  6305. (-[WebHTMLView mouseDragged:]):
  6306. 2002-09-05 Ken Kocienda <kocienda@apple.com>
  6307. The WebError object has been removed from WebResourceHandle.
  6308. Objects of that class now rely on the WebError object in WebResourceResponse.
  6309. This code has been updated to ask WebResourceResponse for it WebError object,
  6310. rather than asking WebResourceHandle.
  6311. * WebCoreSupport.subproj/WebSubresourceClient.m:
  6312. (-[WebSubresourceClient handleDidFinishLoading:])
  6313. * WebView.subproj/WebMainResourceClient.m:
  6314. (-[WebMainResourceClient handleDidFinishLoading:])
  6315. 2002-09-05 Chris Blumenberg <cblu@apple.com>
  6316. Fixed 3021365 - Crash failing to load plugin from local file
  6317. * Plugins.subproj/WebPluginStream.h:
  6318. * Plugins.subproj/WebPluginStream.m:
  6319. (-[WebNetscapePluginStream receivedData:withHandle:]):
  6320. (-[WebNetscapePluginStream receivedError:]):
  6321. (-[WebNetscapePluginStream receivedData:withDataSource:]):
  6322. (-[WebNetscapePluginStream handleDidReceiveData:data:]):
  6323. 2002-09-05 Ken Kocienda <kocienda@apple.com>
  6324. The first use of the WebResourceResponse object. This is just a baby step, though.
  6325. I only use one variable in the new class, the statusCode, but all the code in
  6326. the framework has been updated to use the statusCode from the response object.
  6327. Each of these methods was modified to call through to a WebResourceResponse to get
  6328. the status code.
  6329. * WebCoreSupport.subproj/WebSubresourceClient.m:
  6330. (-[WebSubresourceClient handleDidFinishLoading:])
  6331. * WebView.subproj/WebLoadProgress.m:
  6332. (-[WebLoadProgress initWithResourceHandle:])
  6333. * WebView.subproj/WebMainResourceClient.m:
  6334. (-[WebMainResourceClient handleDidFinishLoading:])
  6335. 2002-09-05 Richard Williamson (Local) <rjw@apple.com>
  6336. Only disable timed expiration of CG glyph cache if SPI is available.
  6337. (per Bertrand's request)
  6338. * WebCoreSupport.subproj/WebTextRendererFactory.m:
  6339. 2002-09-05 John Sullivan <sullivan@apple.com>
  6340. * Resources/url_icon.tiff: New generic icon from Steve Lemay.
  6341. The @ sign lives, but does not spring.
  6342. 2002-09-04 Darin Adler <darin@apple.com>
  6343. One more pass of refinement on that last change.
  6344. * History.subproj/WebBackForwardList.m: (-[WebBackForwardList addEntry:]):
  6345. Replace the last entry instead of just ignoring if this one matches.
  6346. * History.subproj/WebHistoryList.h: Add replaceEntryAtIndex. Remove addURL: and removeURL:.
  6347. * History.subproj/WebHistoryList.m:
  6348. (-[WebHistoryList addEntry:]): Call removeEntry: rather than using an entire pasted copy here.
  6349. (-[WebHistoryList removeEntry:]): Use a hash of the URL and the URL rather than relying on the
  6350. fact that WebHistoryItem hashes and does isEqual based on the URL only.
  6351. (-[WebHistoryList replaceEntryAtIndex:withEntry:]): Added. Used by the code above.
  6352. 2002-09-04 Darin Adler <darin@apple.com>
  6353. Fix bug where doing a reload adds an entry to the back/forward list.
  6354. * History.subproj/WebBackForwardList.m: (-[WebBackForwardList addEntry:]):
  6355. If URL, target, and parent all match, then don't add an entry.
  6356. * WebKit.pbproj/project.pbxproj: Let Project Builder be the boss; I guess
  6357. this means Chris is still using the old version.
  6358. 2002-09-04 Chris Blumenberg <cblu@apple.com>
  6359. - don't set nil data on the web file db
  6360. - store absolute URLs in the db, not base URL/path combination URLs
  6361. - support for multiple hosts with the same built-in icon
  6362. * Misc.subproj/WebIconDatabase.m:
  6363. (-[WebIconDatabase init]): renamed some dictionaries
  6364. (-[WebIconDatabase iconForSiteURL:withSize:]): call _builtInIconsForHost
  6365. (-[WebIconDatabase _updateFileDatabase]): check for nil
  6366. (-[WebIconDatabase _hasIconForSiteURL:]): call _pathForBuiltInIconForHost
  6367. (-[WebIconDatabase _pathForBuiltInIconForHost:]): new
  6368. (-[WebIconDatabase _builtInIconsForHost:]): call _pathForBuiltInIconForHost
  6369. * Misc.subproj/WebIconDatabasePrivate.h:
  6370. * WebView.subproj/WebDataSourcePrivate.m:
  6371. (-[WebDataSource _loadIcon]): use absolute URL
  6372. 2002-09-04 Chris Blumenberg <cblu@apple.com>
  6373. Made the icon DB take a a path for built-in icons so that we only load them when necessary.
  6374. * Misc.subproj/WebIconDatabase.m:
  6375. (-[WebIconDatabase init]):
  6376. (-[WebIconDatabase iconForSiteURL:withSize:]):
  6377. (-[WebIconDatabase _hasIconForSiteURL:]):
  6378. (-[WebIconDatabase _builtInIconsForHost:]):
  6379. (-[WebIconDatabase _setBuiltInIconAtPath:forHost:]):
  6380. * Misc.subproj/WebIconDatabasePrivate.h:
  6381. * WebKit.pbproj/project.pbxproj:
  6382. 2002-09-04 Darin Adler <darin@apple.com>
  6383. Fix unused variable warnings for deployment builds.
  6384. * Plugins.subproj/WebPluginView.m: Add ifndef NDEBUG around variable
  6385. used only in log statements.
  6386. 2002-09-04 Darin Adler <darin@apple.com>
  6387. Removed the now-unnecessary iconURL from bookmarks and history.
  6388. * Bookmarks.subproj/WebBookmark.h:
  6389. * Bookmarks.subproj/WebBookmark.m:
  6390. * Bookmarks.subproj/WebBookmarkGroup.h:
  6391. * Bookmarks.subproj/WebBookmarkGroup.m:
  6392. * Bookmarks.subproj/WebBookmarkLeaf.h:
  6393. * Bookmarks.subproj/WebBookmarkLeaf.m:
  6394. * History.subproj/WebHistory.h:
  6395. * History.subproj/WebHistory.m:
  6396. * History.subproj/WebHistoryItem.h:
  6397. * History.subproj/WebHistoryItem.m:
  6398. * History.subproj/WebHistoryPrivate.h:
  6399. * History.subproj/WebHistoryPrivate.m:
  6400. Removed iconURL instance variables, methods, and parameters.
  6401. 2002-09-04 Darin Adler <darin@apple.com>
  6402. Did some minor plugin cleanup, mostly to make sure we don't
  6403. change pages while a plugin is tracking.
  6404. * Plugins.subproj/WebPluginView.h: Add sendEvent and sendUpdateEvent.
  6405. Remove the NPP_HandleEvent method.
  6406. * Plugins.subproj/WebPluginView.m:
  6407. (-[WebNetscapePluginView sendEvent:]): Sets up the "defersCallbacks"
  6408. state, then sends the event.
  6409. * Plugins.subproj/WebNetscapePluginViewPrivate.h: Added.
  6410. This stuff was shared in a different way before, and it
  6411. hadn't even been renamed.
  6412. * WebKit.pbproj/project.pbxproj: Added file.
  6413. * Plugins.subproj/npapi.m: Use the new private header.
  6414. * Plugins.subproj/WebPluginNullEventSender.h: Hold a reference
  6415. to the view.
  6416. * Plugins.subproj/WebPluginNullEventSender.m:
  6417. (-[WebNetscapePluginNullEventSender initWithPluginView:]):
  6418. Retain the view.
  6419. (-[WebNetscapePluginNullEventSender dealloc]): Release the view.
  6420. (-[WebNetscapePluginNullEventSender sendNullEvents]): Use sendEvent:.
  6421. (-[WebNetscapePluginNullEventSender stop]): No need for shouldStop.
  6422. * WebView.subproj/WebDataSourcePrivate.m:
  6423. (-[WebDataSourcePrivate init]): Don't set contentPolicy to an enum value,
  6424. when it's an object reference.
  6425. (-[WebDataSourcePrivate dealloc]): Release contentPolicy to fix a leak.
  6426. * WebView.subproj/WebHTMLView.m:
  6427. (-[WebHTMLView mouseDragged:]): Set draggedURL to nil in the else case,
  6428. it was uninitialized before. Also center the icon better when dragging,
  6429. but shouldn't we be dragging something more than the icon here?
  6430. * Misc.subproj/WebIconDatabase.m: (-[WebIconDatabase defaultIconWithSize:]):
  6431. Add a call to release. Doesn't really plug a leak, but cleaner this way.
  6432. * Plugins.subproj/WebPlugin.m: Tweaks.
  6433. * WebView.subproj/WebMainResourceClient.m: Tweaks only.
  6434. 2002-09-04 Ken Kocienda <kocienda@apple.com>
  6435. Made more adjustments for API and behavior change that occurred in WebFoundation,
  6436. now that WebResourceHandle objects no buffer resource data as it is loaded. Where
  6437. necessary, the WebKit objects now do their own buffering, however, in many cases,
  6438. buffering is not necessary to maintain correct behavior.
  6439. * Misc.subproj/WebIconLoader.m:
  6440. (-[WebIconLoaderPrivate dealloc]): Release new buffered resource data object.
  6441. (-[WebIconLoader initWithURL:]): Allocate new buffered resource data object.
  6442. (-[WebIconLoader handleDidFinishLoading:]): Modify API to remove data parameter.
  6443. (-[WebIconLoader handleDidReceiveData:data:]): Buffer data as it is received.
  6444. * Plugins.subproj/WebPluginStream.h: Added new buffered resource data object.
  6445. * Plugins.subproj/WebPluginStream.m:
  6446. (-[WebNetscapePluginStream initWithURL:pluginPointer:notifyData:attributes:]): Allocate new buffered resource data object.
  6447. (-[WebNetscapePluginStream dealloc]): Release new buffered resource data object.
  6448. (-[WebNetscapePluginStream receivedData:]): Buffer data as it is received (when necessary maintain correct behavior).
  6449. (-[WebNetscapePluginStream handleDidFinishLoading:]): Modify API to remove data parameter.
  6450. * WebCoreSupport.subproj/WebSubresourceClient.m:
  6451. (-[WebSubresourceClient handleDidFinishLoading:]): Modify API to remove data parameter.
  6452. * WebView.subproj/WebMainResourceClient.m:
  6453. (-[WebMainResourceClient handleDidFinishLoading:]): Modify API to remove data parameter.
  6454. (-[WebMainResourceClient handleDidReceiveData:data:]): Buffer data as it is received (when necessary maintain correct behavior).
  6455. 2002-09-04 Chris Blumenberg <cblu@apple.com>
  6456. Fixed: 3043024 - Built-in icons should match on *whatever.com or *whatever.whatever
  6457. implemented wizzy scaling, but ifdef'd it out
  6458. * Misc.subproj/WebIconDatabase.m:
  6459. (-[WebIconDatabase iconForSiteURL:withSize:]): call _builtItIconsForHost
  6460. (-[WebIconDatabase _hasIconForSiteURL:]): call _builtItIconsForHost
  6461. (-[WebIconDatabase _iconForFileURL:withSize:]): call _iconByScalingIcon:toSize:
  6462. (-[WebIconDatabase _builtItIconsForHost:]): use better host matching
  6463. (-[WebIconDatabase _cachedIconFromArray:withSize:]): call _iconByScalingIcon:toSize:
  6464. (-[WebIconDatabase _iconByScalingIcon:toSize:]): renamed, ifdef'd out wizzy scaling
  6465. 2002-09-04 Ken Kocienda <kocienda@apple.com>
  6466. Changed WebKit so that it no longer relies on WebResourceHandle to buffer
  6467. resource data as it is loaded. Instead, this buffering task has been moved
  6468. out to the WebResourceClient, WebMainResourceClient in this case. This
  6469. change is a "proof of concept" for the upcoming change where the API in
  6470. WebFoundation for buffering resource data in WebResourceHandle will be
  6471. removed altogether.
  6472. * WebView.subproj/WebDataSource.m:
  6473. (-[WebDataSource data]): Changed to call WebMainResourceClient when resource data is needed.
  6474. * WebView.subproj/WebMainResourceClient.h: Added mutable data ivar.
  6475. * WebView.subproj/WebMainResourceClient.m:
  6476. (-[WebMainResourceClient initWithDataSource:]): Added mutable data ivar.
  6477. (-[WebMainResourceClient dealloc]): Release new mutable data ivar.
  6478. (-[WebMainResourceClient resourceData]): Added accessor method.
  6479. (-[WebMainResourceClient handleDidReceiveData:data:]): Append received data to the new mutable data object.
  6480. 2002-09-03 John Sullivan <sullivan@apple.com>
  6481. * Resources/url_icon.tiff: New image (still a placeholder)
  6482. from HI. For the moment the default page icon is the legendary
  6483. @-sign-on-a-spring. I've been promised a replacement by
  6484. tomorrow sometime.
  6485. 2002-09-03 John Sullivan <sullivan@apple.com>
  6486. - removed small folder image used for bookmark lists; it is now
  6487. up to clients to display an icon for bookmark lists.
  6488. * Bookmarks.subproj/WebBookmarkList.h: Removed _icon ivar
  6489. * Bookmarks.subproj/WebBookmarkList.m:
  6490. (-[WebBookmarkList dealloc]): Don't release _icon
  6491. (-[WebBookmarkList icon]): just return nil
  6492. * Resources/bookmark_folder.tiff: Removed.
  6493. * WebKit.pbproj/project.pbxproj: Updated for removed file.
  6494. 2002-09-03 Chris Blumenberg <cblu@apple.com>
  6495. - Moved the default icon method to WebIconDatabase
  6496. - Removed "icon URL" from the location change handler API
  6497. * History.subproj/WebHistoryItem.m:
  6498. (-[WebHistoryItem icon]): don't worry about iconForSiteURL:withSize: returning nil
  6499. * Misc.subproj/WebIconDatabase.h:
  6500. * Misc.subproj/WebIconDatabase.m:
  6501. (-[WebIconDatabase iconForSiteURL:withSize:]): return defaultIconWithSize if none found
  6502. (-[WebIconDatabase defaultIconWithSize:]): added, loads, caches default icon
  6503. (-[WebIconDatabase _hasIconForSiteURL:]): added, called by webdatasource to determine if icon is necessary
  6504. * Misc.subproj/WebIconDatabasePrivate.h: added _hasIconForSiteURL
  6505. * Misc.subproj/WebIconLoader.h: removed default icon method
  6506. * Misc.subproj/WebIconLoader.m: removed default icon method
  6507. * Resources/url_icon.tiff: resized to 32 x 32
  6508. * WebKit.exp: export symbol for a dictionary key
  6509. * WebKit.pbproj/project.pbxproj:
  6510. * WebView.subproj/WebDataSourcePrivate.m:
  6511. (-[WebDataSource _loadIcon]): call _hasIconForSiteURL
  6512. * WebView.subproj/WebHTMLView.m:
  6513. (-[WebHTMLView mouseDragged:]): call defaultIconWithSize
  6514. * WebView.subproj/WebLocationChangeHandler.h:
  6515. * WebView.subproj/WebLocationChangeHandler.m:
  6516. (-[WebLocationChangeHandler receivedPageIcon:forDataSource:]): renamed
  6517. 2002-09-03 Ken Kocienda <kocienda@apple.com>
  6518. Modify calls into WebFoundation to use the new WebResourceRequest class,
  6519. and the modified API that kicks off load requests using WebResourceHandle.
  6520. More changes are planned for this code as the WebFoundation API modifications
  6521. progress.
  6522. * Misc.subproj/WebIconDatabase.m:
  6523. (-[WebIconDatabase _iconForFileURL:withSize:])
  6524. * Misc.subproj/WebIconLoader.m:
  6525. (-[WebIconLoader startLoading])
  6526. * Plugins.subproj/WebPluginStream.m:
  6527. (-[WebNetscapePluginStream startLoad])
  6528. * WebCoreSupport.subproj/WebBridge.m:
  6529. (-[WebBridge objectLoadedFromCache:size:])
  6530. * WebCoreSupport.subproj/WebSubresourceClient.m:
  6531. (+[WebSubresourceClient startLoadingResource:withURL:dataSource:])
  6532. * WebKit.pbproj/project.pbxproj:
  6533. * WebView.subproj/WebControllerPrivate.m:
  6534. (-[WebController _receivedError:forResourceHandle:partialProgress:fromDataSource:])
  6535. * WebView.subproj/WebDataSourcePrivate.m:
  6536. (-[WebDataSource _startLoading:])
  6537. 2002-09-03 Darin Adler <darin@apple.com>
  6538. Fix a reproducible crash pulling down the Go menu.
  6539. * Misc.subproj/WebIconDatabase.m: (-[WebIconDatabase _iconForFileURL:withSize:]):
  6540. Add a missing retain.
  6541. * WebKit.pbproj/project.pbxproj: Project Builder wants what it wants.
  6542. 2002-09-02 Chris Blumenberg <cblu@apple.com>
  6543. Icon DB.
  6544. * History.subproj/WebHistoryItem.m:
  6545. (-[WebHistoryItem _retainIconInDatabase:]): calls retainIconForSiteURL: or releaseIconForSiteURL:
  6546. (-[WebHistoryItem initWithURL:target:parent:title:]): call _retainIconInDatabase:
  6547. (-[WebHistoryItem dealloc]): call _retainIconInDatabase:
  6548. (-[WebHistoryItem icon]): call iconForSiteURL:withSize:
  6549. (-[WebHistoryItem setURL:]): call _retainIconInDatabase:
  6550. (-[WebHistoryItem initFromDictionaryRepresentation:]): call _retainIconInDatabase:
  6551. * Misc.subproj/WebIconDatabase.h: Added.
  6552. * Misc.subproj/WebIconDatabase.m: Added.
  6553. (+[WebIconDatabase sharedIconDatabase]):
  6554. (-[WebIconDatabase init]):
  6555. (-[WebIconDatabase iconForSiteURL:withSize:]):
  6556. (-[WebIconDatabase setIcon:forSiteURL:]):
  6557. (-[WebIconDatabase setIcon:forHost:]):
  6558. (-[WebIconDatabase retainIconForSiteURL:]):
  6559. (-[WebIconDatabase releaseIconForSiteURL:]):
  6560. (-[WebIconDatabase delayDatabaseCleanup]):
  6561. (-[WebIconDatabase allowDatabaseCleanup]):
  6562. (-[WebIconDatabase applicationWillTerminate:]):
  6563. (-[WebIconDatabase _createFileDatabase]):
  6564. (-[WebIconDatabase _loadIconDictionaries]):
  6565. (-[WebIconDatabase _updateFileDatabase]):
  6566. (-[WebIconDatabase _iconForIconURL:]):
  6567. (-[WebIconDatabase _iconsForIconURL:]):
  6568. (-[WebIconDatabase _iconForFileURL:withSize:]):
  6569. (-[WebIconDatabase _setIcon:forIconURL:]):
  6570. (-[WebIconDatabase _setIconURL:forSiteURL:]):
  6571. (-[WebIconDatabase _setBuiltInIcon:forHost:]):
  6572. (-[WebIconDatabase _retainIconForIconURL:]):
  6573. (-[WebIconDatabase _releaseIconForIconURL:]):
  6574. (-[WebIconDatabase _retainFutureIconForSiteURL:]):
  6575. (-[WebIconDatabase _releaseFutureIconForSiteURL:]):
  6576. (-[WebIconDatabase _retainOriginalIconsOnDisk]):
  6577. (-[WebIconDatabase _releaseOriginalIconsOnDisk]):
  6578. (-[WebIconDatabase _sendNotificationForSiteURL:]):
  6579. (-[WebIconDatabase _addObject:toSetForKey:inDictionary:]):
  6580. (-[WebIconDatabase _uniqueIconURL]):
  6581. (-[WebIconDatabase _cachedIconFromArray:withSize:]):
  6582. (-[WebIconDatabase _scaleIcon:toSize:]):
  6583. * Misc.subproj/WebIconDatabasePrivate.h: Added.
  6584. * Misc.subproj/WebIconLoader.h:
  6585. * Misc.subproj/WebIconLoader.m:
  6586. (+[WebIconLoader iconForFileAtPath:]):
  6587. (-[WebIconLoader startLoading]):
  6588. (-[WebIconLoader handleDidFinishLoading:data:]):
  6589. * WebKit.exp:
  6590. * WebKit.pbproj/project.pbxproj:
  6591. * WebView.subproj/WebDataSourcePrivate.m:
  6592. (-[WebDataSource _loadIcon]):
  6593. 2002-08-30 Ken Kocienda <kocienda@apple.com>
  6594. Removed one last reference to the now-removed WebDefaultMIMEType symbol.
  6595. I missed it earlier.
  6596. * WebView.subproj/WebMainResourceClient.m:
  6597. (-[WebMainResourceClient handleDidReceiveData:data:])
  6598. 2002-08-30 Ken Kocienda <kocienda@apple.com>
  6599. Failed to remove debugging spam before my last checkin. Sorry.
  6600. * WebKit.pbproj/project.pbxproj:
  6601. * WebView.subproj/WebControllerPrivate.m:
  6602. (+[WebController _MIMETypeForFile:])
  6603. 2002-08-30 Ken Kocienda <kocienda@apple.com>
  6604. * WebView.subproj/WebControllerPrivate.m:
  6605. (+[WebController _MIMETypeForFile:]): Small tweak to account for change
  6606. in behavior of a WebFoundation method upon which this method depends.
  6607. The WebFoundation now returns nil when it cannot find a suitable mime
  6608. type rather than returning a default. This function now checks for a nil
  6609. return value and sets @"application/octet-stream" in that case.
  6610. 2002-08-30 Richard Williamson (Home) <rjw@apple.com>
  6611. Change link dragging behavior. Drags URL, not URL contents.
  6612. Still need to generate better image for dragging, will copy OmniWeb
  6613. and drag link text.
  6614. * WebView.subproj/WebHTMLView.m:
  6615. (-[WebHTMLView mouseDragged:]):
  6616. 2002-08-30 Darin Adler <darin@apple.com>
  6617. * WebKit.pbproj/project.pbxproj: Allowed the new Project Builder to put in
  6618. encodings for each file.
  6619. === Alexander-21 ===
  6620. 2002-08-28 Darin Adler <darin@apple.com>
  6621. - fixed 3036440 -- Crash running PLT with "Check for 'world leaks'" enabled
  6622. * WebView.subproj/WebDataSourcePrivate.h: Add defersCallbacks boolean.
  6623. * WebView.subproj/WebDataSourcePrivate.m:
  6624. (-[WebDataSource _setController:]): Don't try to look at the controller before,
  6625. it might already be deallocated.
  6626. (-[WebDataSource _defersCallbacksChanged]): Use a boolean to record whether the
  6627. "defers callbacks" state changed since last time and do no work if it didn't.
  6628. This replaces the check in _setController:.
  6629. 2002-08-28 Richard Williamson (Local) <rjw@apple.com>
  6630. Tell CG to not use time expiration of glyph cache and increase it's
  6631. size.
  6632. THIS CHANGE REQUIRES THAT YOU INSTALL THE CG ROOT.
  6633. * WebCoreSupport.subproj/WebTextRendererFactory.m:
  6634. 2002-08-28 Richard Williamson (Home) <rjw@apple.com>
  6635. Fixed selection horkage I introduced with drag
  6636. fix yesterday.
  6637. * WebView.subproj/WebHTMLView.m:
  6638. (-[WebHTMLView mouseDragged:]):
  6639. 2002-08-27 Richard Williamson (Local) <rjw@apple.com>
  6640. * WebView.subproj/WebHTMLView.m:
  6641. (-[WebHTMLView mouseDown:]):
  6642. (-[WebHTMLView mouseDragged:]):
  6643. (-[WebHTMLView mouseMovedNotification:]):
  6644. * WebView.subproj/WebHTMLViewPrivate.h:
  6645. * WebView.subproj/WebHTMLViewPrivate.m:
  6646. Fixed active link style. Cleaned up and fixed drag initiation
  6647. for links and images. Dotted lines not drawing correcly, but
  6648. other styles are applied correctly.
  6649. * WebKit.exp:
  6650. * History.subproj/WebHistory.h:
  6651. * History.subproj/WebHistory.m:
  6652. Added some constants.
  6653. * WebCoreSupport.subproj/WebTextRendererFactory.m:
  6654. Code to change CG caching policy. Not enabled until
  6655. we receive a root from CG team.
  6656. 2002-08-27 Darin Adler <darin@apple.com>
  6657. - fixed 3031583 -- directory.apple.com now gives "unsupported" redirect
  6658. * WebView.subproj/WebDataSource.m: (-[WebDataSource initWithURL:attributes:flags:]):
  6659. Don't create the resource handle here. It's a bit too early.
  6660. * WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _startLoading:]):
  6661. Create the resource handle here, now that we have a controller to get a user agent from.
  6662. * WebView.subproj/WebMainResourceClient.m:
  6663. (-[WebMainResourceClient handleWillUseUserAgent:forURL:]): Add an assert that will catch
  6664. any future problems of this kind.
  6665. * WebCoreSupport.subproj/WebBridge.m:
  6666. (-[WebBridge defersLoading]): Added. New call for use in WebCore.
  6667. (-[WebBridge setDefersLoading:]): Added. New call for use in WebCore.
  6668. 2002-08-26 Darin Adler <darin@apple.com>
  6669. Add machinery for deferring callbacks. Not used yet.
  6670. * WebView.subproj/WebControllerPrivate.h: Add methods.
  6671. * WebView.subproj/WebControllerPrivate.m:
  6672. (-[WebController _defersCallbacks]): Returns old state.
  6673. (-[WebController _setDefersCallbacks:]): Changes state and calls _defersCallbacksChanged
  6674. on the main frame.
  6675. * WebView.subproj/WebFramePrivate.h: Add _defersCallbacksChanged.
  6676. * WebView.subproj/WebFramePrivate.m: (-[WebFrame _defersCallbacksChanged]):
  6677. Calls _defersCallbacksChanged on both data sources.
  6678. * WebView.subproj/WebDataSourcePrivate.h: Add _defersCallbacksChanged.
  6679. * WebView.subproj/WebDataSourcePrivate.m:
  6680. (-[WebDataSource _setController:]): Call _defersCallbacksChanged if changing the controller
  6681. changes the state.
  6682. (-[WebDataSource _addResourceHandle:]): Call setDefersCallbacks:YES on the new handle if
  6683. we are already attached to a controller that defers callbacks.
  6684. (-[WebDataSource _defersCallbacksChanged]): Call setDefersCallbacks on all the handles, and
  6685. call _defersCallbacksChanged on the child frames as well.
  6686. * WebView.subproj/WebDataSource.m: (-[WebDataSource controller]):
  6687. We need to know about all controller changes, so it's unacceptable to consult our
  6688. parent about the controller. But we already do know about it and this code was unnecessary.
  6689. Leave the old code around as an assert only.
  6690. 2002-08-26 Richard Williamson <rjw@apple.com>
  6691. * History.subproj/WebHistory.h:
  6692. * History.subproj/WebHistory.m:
  6693. (+[WebHistory webHistoryWithFile:]):
  6694. Stage 1, set the shared history instance. This'll move to
  6695. WebKit soon.
  6696. * WebView.subproj/WebView.m:
  6697. (-[WebView setFrame:]):
  6698. Only force display if in live resize.
  6699. 2002-08-26 John Sullivan <sullivan@apple.com>
  6700. - fixed bug where dragging a separator in the Bookmarks window
  6701. would hit an assertion.
  6702. * Bookmarks.subproj/WebBookmarkSeparator.m:
  6703. (-[WebBookmarkSeparator initWithGroup:]): Removed obsolete
  6704. assertion that group is not nil.
  6705. * Bookmarks.subproj/WebBookmarkLeaf.m:
  6706. (-[WebBookmarkLeaf initWithTitle:group:]):
  6707. Removed a similar obsolete assertion here.
  6708. * Bookmarks.subproj/WebBookmarkList.m:
  6709. (-[WebBookmarkList initWithTitle:group:]):
  6710. Removed a similar obsolete assertion here.
  6711. 2002-08-23 Darin Adler <darin@apple.com>
  6712. * WebView.subproj/WebFrame.m: (-[WebFrame reset]): Remove unneeded call to _reset.
  6713. * WebView.subproj/WebFramePrivate.m: (-[WebFrame _setDataSource:]): Add code that
  6714. removes the KHTML stuff from the frame when switching to another type of view.
  6715. It would be better to do this at some other level, but without this code, we end
  6716. up leaving the entire KHTMLView behind when we switch to a non-HTML page.
  6717. 2002-08-22 Richard Williamson <rjw@apple.com>
  6718. Changed public string from #define to extern NSString.
  6719. * WebKit.exp:
  6720. * WebView.subproj/WebController.h:
  6721. * WebView.subproj/WebController.m:
  6722. * WebView.subproj/WebDefaultContextMenuHandler.m:
  6723. (-[WebDefaultContextMenuHandler contextMenuItemsForElement:defaultMenuItems:]):
  6724. (-[WebDefaultContextMenuHandler openNewWindowWithURL:]):
  6725. (-[WebDefaultContextMenuHandler downloadURL:]):
  6726. (-[WebDefaultContextMenuHandler openLinkInNewWindow:]):
  6727. (-[WebDefaultContextMenuHandler downloadLinkToDisk:]):
  6728. (-[WebDefaultContextMenuHandler copyLinkToClipboard:]):
  6729. (-[WebDefaultContextMenuHandler openImageInNewWindow:]):
  6730. (-[WebDefaultContextMenuHandler downloadImageToDisk:]):
  6731. (-[WebDefaultContextMenuHandler copyImageToClipboard:]):
  6732. (-[WebDefaultContextMenuHandler openFrameInNewWindow:]):
  6733. * WebView.subproj/WebHTMLViewPrivate.m:
  6734. (-[WebHTMLView _elementAtPoint:]):
  6735. (-[WebHTMLView _continueAfterCheckingDragForEvent:]):
  6736. 2002-08-22 Ken Kocienda <kocienda@apple.com>
  6737. Passing the main load's attributes to the subresource loads causes
  6738. breakage (most visible when we POST).
  6739. Right now, we just rely on flags to handle "back/forward" loads, so
  6740. the attributes were not actually being used.
  6741. A better fix needs to be put in place when the soon-to-be-done
  6742. attributes/flags rework is done.
  6743. * WebCoreSupport.subproj/WebSubresourceClient.m:
  6744. (+[WebSubresourceClient startLoadingResource:withURL:dataSource:]):
  6745. === Alexander-20 ===
  6746. 2002-08-21 Richard Williamson <rjw@apple.com>
  6747. Simple name change. Plugin -> NetscapePlugin in anticipation
  6748. of other plugin related API.
  6749. Removed vestigal WebDocumentLoading.
  6750. * Plugins.subproj/WebPlugin.h:
  6751. * Plugins.subproj/WebPlugin.m:
  6752. (-[WebNetscapePlugin load]):
  6753. * Plugins.subproj/WebPluginDatabase.h:
  6754. * Plugins.subproj/WebPluginDatabase.m:
  6755. (+[WebNetscapePluginDatabase installedPlugins]):
  6756. (-[WebNetscapePluginDatabase pluginForMimeType:]):
  6757. (-[WebNetscapePluginDatabase pluginForExtension:]):
  6758. (-[WebNetscapePluginDatabase pluginWithFilename:]):
  6759. (-[WebNetscapePluginDatabase MIMETypes]):
  6760. (-[WebNetscapePluginDatabase init]):
  6761. * Plugins.subproj/WebPluginNullEventSender.h:
  6762. * Plugins.subproj/WebPluginNullEventSender.m:
  6763. (-[WebNetscapePluginNullEventSender initWithPluginView:]):
  6764. (-[WebNetscapePluginNullEventSender sendNullEvents]):
  6765. * Plugins.subproj/WebPluginStream.h:
  6766. * Plugins.subproj/WebPluginStream.m:
  6767. (-[WebNetscapePluginStream getFunctionPointersFromPluginView:]):
  6768. (-[WebNetscapePluginStream initWithURL:pluginPointer:notifyData:attributes:]):
  6769. * Plugins.subproj/WebPluginView.h:
  6770. * Plugins.subproj/WebPluginView.m:
  6771. (-[WebNetscapePluginView initWithFrame:plugin:URL:baseURL:mime:arguments:]):
  6772. (-[WebNetscapePluginView start]):
  6773. (-[WebNetscapePluginView provisionalDataSourceChanged:]):
  6774. (-[WebNetscapePluginView loadURL:inTarget:withNotifyData:andHandleAttributes:]):
  6775. (-[WebNetscapePluginView destroyStream:reason:]):
  6776. * WebCoreSupport.subproj/WebViewFactory.m:
  6777. (-[WebViewFactory viewForPluginWithURL:serviceType:arguments:baseURL:]):
  6778. (-[WebViewFactory pluginsInfo]):
  6779. (-[WebViewFactory viewForJavaAppletWithFrame:baseURL:parameters:]):
  6780. * WebView.subproj/WebController.h:
  6781. * WebView.subproj/WebController.m:
  6782. (+[WebController canShowMIMEType:]):
  6783. * WebView.subproj/WebDocument.h:
  6784. * WebView.subproj/WebFramePrivate.h:
  6785. * WebView.subproj/WebHTMLView.m:
  6786. (-[WebHTMLView provisionalDataSourceChanged:]):
  6787. (-[WebHTMLView provisionalDataSourceCommitted:]):
  6788. (-[WebHTMLView dataSourceUpdated:]):
  6789. * WebView.subproj/WebHTMLViewPrivate.m:
  6790. (-[NSView _web_stopIfPluginView]):
  6791. * WebView.subproj/WebImageView.h:
  6792. * WebView.subproj/WebTextView.h:
  6793. * WebView.subproj/WebView.h:
  6794. * WebView.subproj/WebViewPrivate.h:
  6795. * WebView.subproj/WebViewPrivate.m:
  6796. (-[WebView _makeDocumentViewForDataSource:]):
  6797. Still need to muck with cvs server to change file names.
  6798. 2002-08-20 David Hyatt <hyatt@apple.com>
  6799. Raising the layout delay from 0.75 to 1.00. This should be
  6800. a little more conservative and matches the value used by Gecko.
  6801. * WebView.subproj/WebPreferences.m:
  6802. (+[WebPreferences load]):
  6803. 2002-08-20 David Hyatt <hyatt@apple.com>
  6804. Lower the paint/layout delay from 1.85 to 0.75, since we've
  6805. gotten a lot faster.
  6806. * WebView.subproj/WebPreferences.m:
  6807. (+[WebPreferences load]):
  6808. 2002-08-20 John Sullivan <sullivan@apple.com>
  6809. * WebView.subproj/WebMainResourceClient.m:
  6810. (-[WebMainResourceClient handleDidReceiveData:data:]):
  6811. Fixed uninitialized variable that Maciej's deployment build found.
  6812. 2002-08-20 John Sullivan <sullivan@apple.com>
  6813. Fixed problem with previous checkin that was causing
  6814. drag-and-drop for files to fail (at least).
  6815. * WebView.subproj/WebFramePrivate.m:
  6816. (-[WebFrame _shouldShowURL:]): pass isDirectory, not YES,
  6817. to fileURLPolicyForMIMEType:inFrame:isDirectory:
  6818. 2002-08-20 John Sullivan <sullivan@apple.com>
  6819. WebKit part of fixes for:
  6820. - 3027491 -- failure loading frame's resource leads to misbehaving panel
  6821. - 3027494 -- failure loading frame's resource leads to error message in Alex, silence in IE
  6822. - 3027697 -- alert box for missing file covered by browser window; should be a sheet
  6823. - 3014123 -- error sheet when iframe has URL with bad path
  6824. Cleaned up the WebPolicy APIs to pass frames and URLs consistently. Also cleaned
  6825. up _shouldShowURL: (formerly _shouldShowDataSource:) method quite a bit.
  6826. * WebView.subproj/WebControllerPolicyHandler.h:
  6827. * WebView.subproj/WebDefaultContextMenuHandler.m:
  6828. (-[WebDefaultContextMenuHandler downloadURL:]):
  6829. * WebView.subproj/WebDefaultPolicyHandler.m:
  6830. (-[WebDefaultPolicyHandler URLPolicyForURL:inFrame:]):
  6831. (-[WebDefaultPolicyHandler fileURLPolicyForMIMEType:inFrame:isDirectory:]):
  6832. (-[WebDefaultPolicyHandler unableToImplementPolicy:error:forURL:inFrame:]):
  6833. * WebView.subproj/WebFrame.m:
  6834. (-[WebFrame setProvisionalDataSource:]):
  6835. * WebView.subproj/WebMainResourceClient.m:
  6836. (-[WebMainResourceClient handleDidReceiveData:data:]):
  6837. Made various Policy-related methods pass the frame and when necessary the
  6838. URL instead of the dataSource (or not even that in some broken cases).
  6839. Collapsed the three unableToImplementXXXPolicy: methods into one.
  6840. * WebView.subproj/WebFramePrivate.h: Change _shouldShowDataSource: to
  6841. _shouldShowURL:
  6842. * WebView.subproj/WebFramePrivate.m:
  6843. (-[WebFrame handleUnimplementablePolicy:errorCode:forURL:]): New helper method.
  6844. (-[WebFrame _shouldShowURL:]): use case statements instead of nested ifs;
  6845. use handleUnimplementablePolicy: to reduce duplicated code; update for API
  6846. changes; eliminate non-useful local variables.
  6847. 2002-08-20 Darin Adler <darin@apple.com>
  6848. - fixed 3023076 -- Strange font chosen, widths screwed up, when text includes 007F characters
  6849. * WebCoreSupport.subproj/WebTextRenderer.m:
  6850. (-[WebTextRenderer convertCharacters:length:toGlyphs:skipControlCharacters:]):
  6851. (-[WebTextRenderer _drawCharacters:length:fromCharacterPosition:toCharacterPosition:atPoint:withTextColor:backgroundColor:]):
  6852. (-[WebTextRenderer floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:applyRounding:attemptFontSubstitution:]):
  6853. Treat 007F as a control character, skipping it just as we do other control characters.
  6854. 2002-08-20 Darin Adler <darin@apple.com>
  6855. * WebView.subproj/WebController.m:
  6856. (-[WebController setApplicationNameForUserAgent:]):
  6857. Lock in here, in anticipation of actually using the name in the
  6858. user agent string.
  6859. 2002-08-20 Darin Adler <darin@apple.com>
  6860. WebKit part of support for tabbing into and out of the toolbar.
  6861. * WebCoreSupport.subproj/WebBridge.m:
  6862. (-[WebBridge nextKeyViewOutsideWebViews]): Ask the main WebView for its
  6863. nextKeyView on behalf of WebCore.
  6864. (-[WebBridge previousKeyViewOutsideWebViews]): Ask the main WebView for its
  6865. previousKeyView on behalf of WebCore.
  6866. * WebView.subproj/WebHTMLView.m: (-[WebHTMLView becomeFirstResponder]):
  6867. When we are being tabbed-into, make the first or last view in the bridge
  6868. first responder, instead of taking it ourselves.
  6869. * WebView.subproj/WebView.m: (-[WebView becomeFirstResponder]):
  6870. Always make the document view the first responder instead of taking it
  6871. ourselves.
  6872. 2002-08-19 Chris Blumenberg <cblu@apple.com>
  6873. Fixed 3025019: "only-if-cached" attribute fetches data from network if cached but expired
  6874. * Misc.subproj/WebIconLoader.m:
  6875. (-[WebIconLoader iconFromCache]):
  6876. 2002-08-19 Darin Adler <darin@apple.com>
  6877. - fixed 2863025 -- Need to implement TABing between widgets in forms
  6878. Implemented tabbing into a web view's fields. I now consider the task of
  6879. tabbing between widgets done. But there are many loose ends, each with its
  6880. own bug report.
  6881. * WebView.subproj/WebHTMLView.m:
  6882. (-[WebHTMLView dealloc]): Set _private to nil so we can properly handle calls
  6883. that come from NSView dealloc.
  6884. (-[WebHTMLView provisionalDataSourceChanged:]): No need to pass width and height
  6885. to createKHTMLViewWithNSView any more. Also, just pass self rather than making
  6886. the roung trip to the WebFrame and the WebView back here.
  6887. (-[WebHTMLView nextKeyView]): Added. Calls the bridge version when we are called
  6888. from nextValidKeyView, the normal version the rest of the time.
  6889. (-[WebHTMLView previousKeyView]): Added. Calls the bridge version when we are called
  6890. from nextValidKeyView, the normal version the rest of the time.
  6891. (-[WebHTMLView nextValidKeyView]): Set inNextValidKeyView and call super.
  6892. (-[WebHTMLView previousValidKeyView]): Set inNextValidKeyView and call super.
  6893. * WebView.subproj/WebHTMLViewPrivate.h: Add inNextValidKeyView flag.
  6894. 2002-08-18 Darin Adler <darin@apple.com>
  6895. Update WebResourceClient instances for new API, including adding
  6896. the handleWillUseUserAgent:forURL: method.
  6897. * Misc.subproj/WebIconLoader.m:
  6898. * Plugins.subproj/WebPluginStream.m:
  6899. * WebCoreSupport.subproj/WebSubresourceClient.m:
  6900. * WebView.subproj/WebMainResourceClient.m:
  6901. These were all the clients that needed updating.
  6902. * WebView.subproj/WebController.m:
  6903. (-[WebController setUserAgent:]): Lock so that we can set the user agent
  6904. even though another thread could be calling userAgentForURL:.
  6905. (-[WebController userAgentForURL:]): Ditto.
  6906. * WebView.subproj/WebControllerPrivate.h: Add lock.
  6907. * WebView.subproj/WebControllerPrivate.m:
  6908. (-[WebControllerPrivate init]): Create lock.
  6909. (-[WebControllerPrivate dealloc]): Release lock.
  6910. * WebView.subproj/WebDataSourcePrivate.m:
  6911. (-[WebDataSource _stopLoading]): Improve comment.
  6912. 2002-08-18 Darin Adler <darin@apple.com>
  6913. * Misc.subproj/WebIconLoader.m:
  6914. (-[WebIconLoader iconFromCache]):
  6915. (-[WebIconLoader WebResourceHandleDidFinishLoading:data:]):
  6916. Don't process each icon twice. We need to have the loader as a client even for the
  6917. synchronous case because of the user agent issue, but that causes double work.
  6918. 2002-08-16 Darin Adler <darin@apple.com>
  6919. Step 3 in adding user agent API to WebKit and WebFoundation.
  6920. Add the calls to WebKit to configure the user-agent string.
  6921. Change WebCore to get the user-agent from WebKit via the bridge.
  6922. * WebCoreSupport.subproj/WebBridge.m:
  6923. (-[WebBridge userAgentForURL:]): Added. Calls [WebController userAgentForURL:].
  6924. * WebView.subproj/WebController.h: Add three new methods.
  6925. * WebView.subproj/WebController.m:
  6926. (-[WebController setApplicationNameForUserAgent:]): Store an application name that
  6927. will be used to build up the user-agent string.
  6928. (-[WebController setUserAgent:]): Set an override user agent; mainly useful for
  6929. testing user-agent strings different from the one WebKit supplies.
  6930. (-[WebController userAgentForURL:]): Public API for getting the user agent string
  6931. that the WebController will use for a particular URL.
  6932. * WebView.subproj/WebControllerPrivate.h: Add fields for the user-agent parameters.
  6933. * WebView.subproj/WebControllerPrivate.m:
  6934. (-[WebControllerPrivate dealloc]): Release both strings when the controller goes away.
  6935. 2002-08-16 Darin Adler <darin@apple.com>
  6936. Missed one call to [WebResourceHandle initWithURL:].
  6937. * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge objectLoadedFromCache:size:]):
  6938. Change to call [WebResourceHandle initWithClient:URL:] with nil for the client.
  6939. 2002-08-16 Darin Adler <darin@apple.com>
  6940. Oops. Forgot to save in Project Builder before committing.
  6941. * Plugins.subproj/WebPluginStream.m:
  6942. * WebView.subproj/WebDataSource.m:
  6943. * WebView.subproj/WebDataSourcePrivate.h:
  6944. * WebView.subproj/WebDataSourcePrivate.m:
  6945. 2002-08-16 Darin Adler <darin@apple.com>
  6946. Update for change to the WebResourceHandle API where the client is
  6947. passed in at init time.
  6948. * Misc.subproj/WebIconLoader.m:
  6949. (-[WebIconLoader iconFromCache]): Pass self as client when creating handle for
  6950. foreground "only if cached" load. Also don't put the handle into the class's
  6951. data structure in this case.
  6952. (-[WebIconLoader startLoading]): Pass self as client when creating handle
  6953. instead of making a separate addClient call. Also fix potential leak if this
  6954. is called when we are already loading.
  6955. (-[WebIconLoader stopLoading]): Release the handle and nil it out right here.
  6956. * Plugins.subproj/WebPluginStream.m:
  6957. (-[WebPluginStream startLoad]): Pass client when creating handle rather than
  6958. doing an addClient afterward.
  6959. (-[WebPluginStream stop]): Don't do a removeClient.
  6960. * WebCoreSupport.subproj/WebSubresourceClient.m:
  6961. (+[WebSubresourceClient startLoadingResource:withURL:dataSource:]):
  6962. * WebView.subproj/WebDataSource.m:
  6963. (-[WebDataSource initWithURL:attributes:flags:]): Pass client when creating handle.
  6964. * WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _startLoading:]):
  6965. Since client is not created in init, don't bother creating it here.
  6966. 2002-08-16 John Sullivan <sullivan@apple.com>
  6967. Split searchability out from WebTextView so it could be used
  6968. elsewhere (specifically, in DOM window).
  6969. * Misc.subproj/WebSearchableTextView.h: Added.
  6970. * Misc.subproj/WebSearchableTextView.m: Added.
  6971. (-[WebSearchableTextView searchFor:direction:caseSensitive:]):
  6972. (-[NSString findString:selectedRange:options:wrap:]):
  6973. New class, split out from WebTextView, which now inherits from it.
  6974. * WebView.subproj/WebTextView.h:
  6975. * WebView.subproj/WebTextView.m:
  6976. Took out the searching stuff and put it in WebSearchableTextView;
  6977. made WebTextView inherit from WebSearchableTextView.
  6978. * WebKit.pbproj/project.pbxproj: Added new files, made
  6979. WebSearchableTextView.h be Private.
  6980. 2002-08-16 John Sullivan <sullivan@apple.com>
  6981. - fixed 3025394 -- Bookmarks & History items do not remember their icons
  6982. across launches
  6983. - fixed 3025421 -- Dragging from location field proxy icon to favorites bar
  6984. loses page icon
  6985. - part of fix for 3026279 -- Bookmarks should lose their favIcons when the
  6986. URL is edited
  6987. * Bookmarks.subproj/WebBookmarkLeaf.m:
  6988. (-[WebBookmarkLeaf initFromDictionaryRepresentation:withGroup:]):
  6989. (-[WebBookmarkLeaf dictionaryRepresentation]):
  6990. Removed the #ifdeffed-out code for storing iconURL in dictionary; this was
  6991. unnecessary because it is also done by the lower-level WebHistoryItem.
  6992. * History.subproj/WebHistoryItem.m:
  6993. (-[WebHistoryItem _setIcon:]): New method, extracted from -icon for clarity.
  6994. (-[WebHistoryItem icon]): Fixed problem where once an icon was set it would
  6995. never be changed, even if the iconURL is changed. Also, use _setIcon for
  6996. clarity and to fix retainCount bugs.
  6997. (-[WebHistoryItem dictionaryRepresentation]):
  6998. Removed the #ifdef around the line that stores the URL in the dictionary.
  6999. Gramps decided that this architecture is OK after all.
  7000. 2002-08-16 Darin Adler <darin@apple.com>
  7001. Fixed broken build.
  7002. * Misc.subproj/WebTestController.m: Added empty placeholder methods.
  7003. 2002-08-15 John Sullivan <sullivan@apple.com>
  7004. - fixed 3025770 -- "New Bookmark" button hits assertion and crashes
  7005. * Bookmarks.subproj/WebBookmarkLeaf.m:
  7006. (-[WebBookmarkLeaf setURLString:]): Instead of asserting that parameter
  7007. is not nil, handle the nil case by converting to empty string. This was
  7008. another regression from yesterday's favIcon changes.
  7009. === Alexander-19 ===
  7010. 2002-08-15 John Sullivan <sullivan@apple.com>
  7011. Disabled support for storing favIcon URLs in bookmarks; Gramps realized
  7012. this is an architecture problem that needs a better solution, and he
  7013. didn't want to ship Alex-18 with this problem.
  7014. * Bookmarks.subproj/WebBookmarkLeaf.m:
  7015. (-[WebBookmarkLeaf dictionaryRepresentation]):
  7016. * History.subproj/WebHistoryItem.m:
  7017. (-[WebHistoryItem dictionaryRepresentation]):
  7018. Commented out the code that added the iconURLString in the dictionary used
  7019. for writing out file. This dictionary is also used on the pasteboard, so this
  7020. change causes the favIcon not to be remembered when you drag from proxy icon
  7021. to favorites bar.
  7022. === Alexander-18 ===
  7023. 2002-08-14 Chris Blumenberg <cblu@apple.com>
  7024. Support for showing favicons in bookmarks and history.
  7025. Renamed "image" to "icon" in all places.
  7026. Made history and bookmarks take and save an icon URL
  7027. * Bookmarks.subproj/WebBookmark.h:
  7028. * Bookmarks.subproj/WebBookmark.m:
  7029. (-[WebBookmark icon]):
  7030. (-[WebBookmark iconURL]):
  7031. (-[WebBookmark setIconURL:]):
  7032. * Bookmarks.subproj/WebBookmarkGroup.h:
  7033. * Bookmarks.subproj/WebBookmarkGroup.m:
  7034. (-[WebBookmarkGroup _setTopBookmark:]):
  7035. (-[WebBookmarkGroup addNewBookmarkToBookmark:withTitle:iconURL:URLString:type:]):
  7036. (-[WebBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:iconURL:URLString:type:]):
  7037. * Bookmarks.subproj/WebBookmarkLeaf.h:
  7038. * Bookmarks.subproj/WebBookmarkLeaf.m:
  7039. (-[WebBookmarkLeaf initFromDictionaryRepresentation:withGroup:]):
  7040. (-[WebBookmarkLeaf dictionaryRepresentation]):
  7041. (-[WebBookmarkLeaf copyWithZone:]):
  7042. (-[WebBookmarkLeaf icon]):
  7043. (-[WebBookmarkLeaf iconURL]):
  7044. (-[WebBookmarkLeaf setIconURL:]):
  7045. (-[WebBookmarkLeaf setURLString:]):
  7046. * Bookmarks.subproj/WebBookmarkList.h:
  7047. * Bookmarks.subproj/WebBookmarkList.m:
  7048. (-[WebBookmarkList initWithTitle:group:]):
  7049. (-[WebBookmarkList dealloc]):
  7050. (-[WebBookmarkList copyWithZone:]):
  7051. (-[WebBookmarkList icon]):
  7052. * Bookmarks.subproj/WebBookmarkSeparator.m:
  7053. (-[WebBookmarkSeparator icon]):
  7054. * History.subproj/WebHistory.h:
  7055. * History.subproj/WebHistory.m:
  7056. (-[WebHistory updateURL:title:displayTitle:iconURL:forURL:]):
  7057. * History.subproj/WebHistoryItem.h:
  7058. * History.subproj/WebHistoryItem.m:
  7059. (-[WebHistoryItem init]):
  7060. (-[WebHistoryItem initWithURL:title:]):
  7061. (-[WebHistoryItem initWithURL:target:parent:title:]):
  7062. (-[WebHistoryItem dealloc]):
  7063. (-[WebHistoryItem iconURL]):
  7064. (-[WebHistoryItem icon]):
  7065. (-[WebHistoryItem setIconURL:]):
  7066. (-[WebHistoryItem dictionaryRepresentation]):
  7067. (-[WebHistoryItem initFromDictionaryRepresentation:]):
  7068. * History.subproj/WebHistoryPrivate.h:
  7069. * History.subproj/WebHistoryPrivate.m:
  7070. (-[WebHistoryPrivate updateURL:title:displayTitle:iconURL:forURL:]):
  7071. * Misc.subproj/WebIconLoader.h:
  7072. * Misc.subproj/WebIconLoader.m:
  7073. (+[WebIconLoader iconLoaderWithURL:]):
  7074. (-[WebIconLoader initWithURL:]):
  7075. (-[WebIconLoader URL]):
  7076. (-[WebIconLoader _icons]):
  7077. (-[WebIconLoader delegate]):
  7078. (-[WebIconLoader iconFromCache]):
  7079. (-[WebIconLoader startLoading]):
  7080. (-[WebIconLoader WebResourceHandleDidFinishLoading:data:]):
  7081. * WebCoreSupport.subproj/WebBridge.m:
  7082. * WebView.subproj/WebDataSourcePrivate.m:
  7083. (-[WebDataSource _loadIcon]):
  7084. * WebView.subproj/WebFramePrivate.m:
  7085. (-[WebFrame _transitionToCommitted]):
  7086. * WebView.subproj/WebLocationChangeHandler.h:
  7087. * WebView.subproj/WebLocationChangeHandler.m:
  7088. (-[WebLocationChangeHandler receivedPageIcon:fromURL:forDataSource:]):
  7089. 2002-08-14 Darin Adler <darin@apple.com>
  7090. Remove some unused things. Fix minor problems.
  7091. * Plugins.subproj/WebPluginNullEventSender.m:
  7092. * Plugins.subproj/WebPluginView.m:
  7093. * WebCoreSupport.subproj/WebTextRenderer.m:
  7094. Fixed places that were using the C++ bool instead of
  7095. the Objective C BOOL.
  7096. * WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _receivedData:]):
  7097. Remove old code related to the dummy data source.
  7098. * WebView.subproj/WebFrame.m:
  7099. (-[WebFrame initWithName:webView:provisionalDataSource:controller:]):
  7100. Remove _changeBridge, since we don't any more. Hoist the creation of the
  7101. bridge up here.
  7102. * WebView.subproj/WebFramePrivate.h: Remove _changeBridge.
  7103. * WebView.subproj/WebFramePrivate.m: Remove _changeBridge.
  7104. * WebView.subproj/WebHTMLRepresentation.h:
  7105. * WebView.subproj/WebHTMLView.h:
  7106. * WebView.subproj/WebImageRepresentation.h:
  7107. * WebView.subproj/WebTextRepresentation.h:
  7108. * WebView.subproj/WebTextView.h:
  7109. Don't re-declare methods that are part of protocols we implement.
  7110. * WebView.subproj/WebHTMLView.m:
  7111. (-[WebHTMLView initWithFrame:]): Don't add the mouse moved observer until
  7112. the view gets put into a window.
  7113. (-[WebHTMLView addMouseMovedObserver]): Added.
  7114. (-[WebHTMLView removeMouseMovedObserver]): Added.
  7115. (-[WebHTMLView viewWillMoveToWindow:]): Remove observer if we were in the
  7116. main window.
  7117. (-[WebHTMLView viewDidMoveToWindow]): Add observer if we are now in the main
  7118. window.
  7119. * WebView.subproj/WebHTMLViewPrivate.h: Add _frame method. Remove unused
  7120. controller and cursor instance variables.
  7121. * WebView.subproj/WebHTMLViewPrivate.m:
  7122. (-[WebHTMLView _frame]): Added.
  7123. (-[WebHTMLView _bridge]): Call _frame.
  7124. * WebView.subproj/WebTextRepresentation.m: Add now-needed import.
  7125. * WebView.subproj/WebHTMLRepresentation.m: Tweak.
  7126. 2002-08-13 Maciej Stachowiak <mjs@apple.com>
  7127. Add the ability to determine the classes of live JavaScript
  7128. objects, to help with leak fixing.
  7129. * Misc.subproj/WebCoreStatistics.h:
  7130. * Misc.subproj/WebCoreStatistics.m:
  7131. (+[WebCoreStatistics javaScriptLiveObjectClasses]):
  7132. 2002-08-12 Darin Adler <darin@apple.com>
  7133. * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge isReloading]):
  7134. Change dataSourceIsReloading to isReloading.
  7135. 2002-08-12 Maciej Stachowiak <mjs@apple.com>
  7136. * WebView.subproj/WebDataSourcePrivate.h:
  7137. * WebView.subproj/WebDataSourcePrivate.m: Remove private _flags
  7138. and _attributes accessors, now that Ken added public versions.
  7139. * WebView.subproj/WebFrame.m:
  7140. (-[WebFrame reload:]): Remove sole use thereof.
  7141. === Alexander-17 ===
  7142. 2002-08-10 Ken Kocienda <kocienda@apple.com>
  7143. Added support for "stale mode" (loads triggered by use of back/forward), and
  7144. added support for reload.
  7145. Also added a bridge function so the WebCore cache can tell if a load is a reload.
  7146. * WebCoreSupport.subproj/WebBridge.m:
  7147. (-[WebBridge dataSourceIsReloading]): New method.
  7148. * WebCoreSupport.subproj/WebSubresourceClient.m:
  7149. (+[WebSubresourceClient startLoadingResource:withURL:dataSource:]): Use same flags that were used for main resource load.
  7150. * WebView.subproj/WebDataSource.h:
  7151. * WebView.subproj/WebDataSource.m:
  7152. (-[WebDataSource attributes]): New accessor.
  7153. (-[WebDataSource flags]): New accessor.
  7154. * WebView.subproj/WebFrame.m:
  7155. (-[WebFrame reload:]): Reload adds WebResourceHandleFlagLoadFromOrigin flag to load.
  7156. * WebView.subproj/WebFramePrivate.m:
  7157. (-[WebFrame _goToItem:withFrameLoadType:]): Adds flags so that WebFoundation can tell when back/forward
  7158. has been used.
  7159. === milestone 0.5 ===
  7160. === Alexander-16 ===
  7161. 2002-08-09 Chris Blumenberg <cblu@apple.com>
  7162. - Cache icon image for HTML files
  7163. - resize the icon in WebIconLoader instead of in multiple places elsewhere
  7164. * Misc.subproj/WebIconLoader.h:
  7165. * Misc.subproj/WebIconLoader.m:
  7166. (+[WebIconLoader _resizeImage:]):
  7167. (+[WebIconLoader defaultIcon]): call _resizeImage
  7168. (+[WebIconLoader iconForFileAtPath:]): added, caches html icon
  7169. (-[WebIconLoader WebResourceHandleDidFinishLoading:data:]): call _resizeImage
  7170. * WebView.subproj/WebDataSourcePrivate.m:
  7171. (-[WebDataSource _loadIcon]): call iconForFileAtPath
  7172. 2002-08-08 Maciej Stachowiak <mjs@apple.com>
  7173. Fix to get onLoad to fire, so the iBench test works.
  7174. * WebCoreSupport.subproj/WebBridge.m:
  7175. (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]):
  7176. Return the bridge for the new child frame.
  7177. 2002-08-08 Darin Adler <darin@apple.com>
  7178. * WebKit.pbproj/project.pbxproj: Change the group name back to Debug.
  7179. 2002-08-08 Richard Williamson <rjw@apple.com>
  7180. Added flag to turn on/off buffered text drawing to help
  7181. determine if we get any speed boost. Run from console
  7182. with "-BufferTextDrawing YES" to enable buffered text
  7183. drawing.
  7184. Moved buffered text drawing out of web core.
  7185. * WebCoreSupport.subproj/WebTextRenderer.h:
  7186. * WebCoreSupport.subproj/WebTextRenderer.m:
  7187. (+[WebTextRenderer shouldBufferTextDrawing]):
  7188. (+[WebTextRenderer initialize]):
  7189. (-[WebTextRenderer drawGlyphs:numGlyphs:fromGlyphPosition:toGlyphPosition:atPoint:withTextColor:backgroundColor:]):
  7190. * WebCoreSupport.subproj/WebTextRendererFactory.h:
  7191. * WebView.subproj/WebHTMLView.m:
  7192. (-[WebHTMLView drawRect:]):
  7193. 2002-08-08 Darin Adler <darin@apple.com>
  7194. Placeholders for the "drawing observer" method that I'll be using
  7195. to implement the "dump page as diffable text" feature.
  7196. * Misc.subproj/WebTestController.h: Added.
  7197. * Misc.subproj/WebTestController.m: Added.
  7198. * WebKit.pbproj/project.pbxproj: Mention new files.
  7199. * WebKit.exp: Mention new class.
  7200. * WebView.subproj/WebPreferences.h:
  7201. * WebView.subproj/WebPreferences.m:
  7202. Changed "fixed font size" to "default fixed font size".
  7203. 2002-08-08 Chris Blumenberg <cblu@apple.com>
  7204. * Plugins.subproj/WebPluginStream.m:
  7205. (-[WebPluginStream finishedLoadingWithData:]): call [NSFileManager _web_carbonPathForPath:]
  7206. 2002-08-08 Maciej Stachowiak <mjs@apple.com>
  7207. - fixed 2957197 - Need API for getting/setting default text encoding
  7208. * WebView.subproj/WebDataSourcePrivate.m:
  7209. (-[WebDataSourcePrivate init]): Set default encoding if no other is set.
  7210. * WebView.subproj/WebPreferences.h:
  7211. * WebView.subproj/WebPreferences.m:
  7212. (+[WebPreferences load]): Added support for default text encoding pref.
  7213. (-[WebPreferences defaultTextEncoding]): Likewise.
  7214. (-[WebPreferences setDefaultTextEncoding:]): Likewise.
  7215. 2002-08-08 Richard Williamson <rjw@apple.com>
  7216. Changes to coalesce all drawing calls of the same text
  7217. style and color into one call to CG. Significantly
  7218. improves drawing time. My tests should about 7-8% on
  7219. ALL pages. Disabled the code for now until I can verify
  7220. on speed improvements on Ken's test rig.
  7221. * WebCoreSupport.subproj/WebGlyphBuffer.h: Added.
  7222. * WebCoreSupport.subproj/WebGlyphBuffer.m: Added.
  7223. (-[WebGlyphBuffer initWithFont:color:]):
  7224. (-[WebGlyphBuffer font]):
  7225. (-[WebGlyphBuffer color]):
  7226. (-[WebGlyphBuffer reset]):
  7227. (-[WebGlyphBuffer dealloc]):
  7228. (-[WebGlyphBuffer drawInView:]):
  7229. (-[WebGlyphBuffer addGlyphs:advances:count:at::]):
  7230. * WebCoreSupport.subproj/WebTextRenderer.m:
  7231. (-[WebTextRenderer drawGlyphs:numGlyphs:fromGlyphPosition:toGlyphPosition:atPoint:withTextColor:backgroundColor:]):
  7232. * WebCoreSupport.subproj/WebTextRendererFactory.h:
  7233. * WebCoreSupport.subproj/WebTextRendererFactory.m:
  7234. (-[WebTextRendererFactory coalesceTextDrawing]):
  7235. (-[WebTextRendererFactory startCoalesceTextDrawing]):
  7236. (-[WebTextRendererFactory endCoalesceTextDrawing]):
  7237. (-[WebTextRendererFactory glyphBufferForFont:andColor:]):
  7238. (-[WebTextRendererFactory dealloc]):
  7239. * WebKit.pbproj/project.pbxproj:
  7240. 2002-08-07 Maciej Stachowiak <mjs@apple.com>
  7241. WebKit work for:
  7242. - fixed 2956008 - Need API for getting/setting text encoding for current page
  7243. * WebCoreSupport.subproj/WebBridge.m:
  7244. (-[WebBridge receivedData:withDataSource:]): Handle override encoding,
  7245. if any.
  7246. * WebView.subproj/WebDataSource.m:
  7247. (-[WebDataSource initWithURL:attributes:flags:]): Remember the flags and
  7248. attributes.
  7249. * WebView.subproj/WebDataSourcePrivate.h:
  7250. * WebView.subproj/WebDataSourcePrivate.m:
  7251. (-[WebDataSourcePrivate init]): Initialize overrideEncoding
  7252. (-[WebDataSourcePrivate dealloc]): Release attributes
  7253. (-[WebDataSource _setOverrideEncoding:]): Added.
  7254. (-[WebDataSource _overrideEncoding]): Added.
  7255. (-[WebDataSource _flags]): Added.
  7256. (-[WebDataSource _attributes]): Added.
  7257. * WebView.subproj/WebFrame.m:
  7258. (-[WebFrame startLoading]): Pass proper forceRefresh value to data source
  7259. based on load type (but the data source will ignore it).
  7260. (-[WebFrame reload:]): Made this work a bit better. Now instead of
  7261. crashing, it will actually reload, but it won't force a refresh
  7262. (and may not handle the back/forward issues properly).
  7263. * WebView.subproj/WebDocument.h: Defined new WebDocumentTextEncoding protocol.
  7264. * WebView.subproj/WebHTMLView.h:
  7265. * WebView.subproj/WebHTMLView.m:
  7266. (-[WebHTMLView textEncoding]): Implemented WebDocumentTextEncoding
  7267. protocol.
  7268. (-[WebHTMLView setTextEncoding:]): Implemented WebDocumentTextEncoding
  7269. protocol.
  7270. (-[WebHTMLView setDefaultTextEncoding]): Implemented WebDocumentTextEncoding
  7271. protocol.
  7272. (-[WebHTMLView usingDefaultTextEncoding]): Implemented
  7273. WebDocumentTextEncoding protocol.
  7274. 2002-08-07 John Sullivan <sullivan@apple.com>
  7275. - fixed 3017245 -- Shift-Delete should go forward
  7276. * WebView.subproj/WebView.m:
  7277. (-[WebView keyDown:]): Check for shift-delete.
  7278. 2002-08-07 Richard Williamson <rjw@apple.com>
  7279. Fixed scrollview related drawing turd problems.
  7280. (3000844 and 2896459).
  7281. * WebView.subproj/WebHTMLView.m:
  7282. (-[WebHTMLView drawRect:]):
  7283. * WebView.subproj/WebView.m:
  7284. (-[WebView setFrame:]):
  7285. 2002-08-07 Darin Adler <darin@apple.com>
  7286. * WebView.subproj/WebFrame.m: (-[WebFrame setProvisionalDataSource:]):
  7287. * WebView.subproj/WebFramePrivate.m: (-[WebFrame _goToItem:withFrameLoadType:]):
  7288. Call _web_URLWithoutFragment by its new name _web_URLByRemovingFragment.
  7289. 2002-08-07 Chris Blumenberg <cblu@apple.com>
  7290. Fixed: 3018632 - the show javascript files inline bug
  7291. * WebView.subproj/WebDataSourcePrivate.m:
  7292. (+[WebDataSource _repTypes]): support application/x-javascript
  7293. * WebView.subproj/WebViewPrivate.m:
  7294. (+[WebView _viewTypes]): support application/x-javascript
  7295. 2002-08-07 John Sullivan <sullivan@apple.com>
  7296. * Misc.subproj/WebNSViewExtras.h:
  7297. * Misc.subproj/WebNSViewExtras.m:
  7298. (-[NSView _web_superviewOfClass:]): Changed name from
  7299. _web_superviewWithName: and made it take a Class object
  7300. instead of a string.
  7301. * Plugins.subproj/WebNullPluginView.m:
  7302. (-[WebNullPluginView drawRect:]):
  7303. * Plugins.subproj/WebPluginView.m:
  7304. (-[WebPluginView start]):
  7305. (-[WebPluginView layout]):
  7306. Updated callers of _web_superviewWithName:
  7307. * WebKit.pbproj/project.pbxproj: Changed WebNSViewExtras.h from
  7308. Public to Private
  7309. 2002-08-06 Darin Adler <darin@apple.com>
  7310. Fix assert I saw while fixing bug 2965321.
  7311. * WebView.subproj/WebControllerPrivate.m:
  7312. (-[WebController _receivedError:forResourceHandle:partialProgress:fromDataSource:]):
  7313. Create a suitable resource identifier from the failing URL in the WebError for cases
  7314. where we fail before we are able to construct a resource handle.
  7315. 2002-08-06 Darin Adler <darin@apple.com>
  7316. - fixed 2970516 -- Activate Events don't appear to be coming in to the
  7317. Java Applet.plugin correctly.
  7318. * Plugins.subproj/WebPluginView.m: (-[WebPluginView sendActivateEvent:]):
  7319. Use activeFlag to set modifiers, not activMask, which is an event mask.
  7320. 2002-08-06 John Sullivan <sullivan@apple.com>
  7321. Add mechanism to store userStyleSheet preferences in WebKit in
  7322. preparation for Dave wiring up the implementation.
  7323. * WebView.subproj/WebPreferences.h:
  7324. * WebView.subproj/WebPreferences.m:
  7325. (-[WebPreferences userStyleSheetEnabled]),
  7326. (-[WebPreferences setUserStyleSheetEnabled:]),
  7327. (-[WebPreferences userStyleSheetLocation]),
  7328. (-[WebPreferences setUserStyleSheetLocation:]):
  7329. New methods, read and write UserDefaults values.
  7330. (+[WebPreferences load]): Set initial values for
  7331. userStyleSheetEnabled and userStyleSheetLocation
  7332. 2002-08-06 Maciej Stachowiak <mjs@apple.com>
  7333. Removed some APPLE_CHANGES no longer needed after the part change.
  7334. * WebCoreSupport.subproj/WebBridge.m: Remove setOpenedByScript: and
  7335. openedByScript methods now that they are not needed.
  7336. * WebView.subproj/WebControllerPrivate.h:
  7337. * WebView.subproj/WebControllerPrivate.m: Remove setOpenedByScript: and
  7338. openedByScript methods now that they are not needed.
  7339. 2002-08-06 Darin Adler <darin@apple.com>
  7340. - fixed 3017761 -- dataSource != nil assertion navigating at yahoo.com
  7341. * WebView.subproj/WebLocationChangeHandler.h:
  7342. * WebView.subproj/WebLocationChangeHandler.m:
  7343. Change client redirect calls to pass the frame, not the data source.
  7344. At the time a client redirect is requested, it's not even clear yet
  7345. which data source will be involved. We may want to make some of the
  7346. other calls pass frames, also, aside from the "start", "committed", "done",
  7347. calls, which must specify the data source.
  7348. * WebCoreSupport.subproj/WebBridge.m:
  7349. (-[WebBridge reportClientRedirectTo:delay:fireDate:]): Pass frame, not data source.
  7350. (-[WebBridge reportClientRedirectCancelled]): Pass frame, not data source.
  7351. 2002-08-06 Darin Adler <darin@apple.com>
  7352. * lots of files: Changed url to URL in many places and renamed URL-related methods.
  7353. 2002-08-06 Darin Adler <darin@apple.com>
  7354. * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge dataSourceChanged]): Call setParent:.
  7355. * WebView.subproj/WebControllerPrivate.m:
  7356. (-[WebControllerPrivate init]): Initialize the text size multiplier to 1.
  7357. * WebView.subproj/WebDataSource.h: Removed [redirectedURL], deprecated [inputURL], added [URL].
  7358. * WebView.subproj/WebDataSource.m:
  7359. (-[WebDataSource URL]): Added. Returns current URL, without requiring separate logic for the
  7360. redirected and not-yet-redirected cases.
  7361. * WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _loadIcon]): Use [WebDataSource URL].
  7362. * WebView.subproj/WebDefaultContextMenuHandler.m:
  7363. (-[WebDefaultContextMenuHandler openFrameInNewWindow:]): Use [WebDataSource URL].
  7364. 2002-08-06 John Sullivan <sullivan@apple.com>
  7365. WebKit part of fix for 3017539 -- Replace Serif and Sans-serif
  7366. font preferences with Default preference; let fixed width font
  7367. size be independent.
  7368. * WebView.subproj/WebPreferences.h:
  7369. * WebView.subproj/WebPreferences.m:
  7370. (+[WebPreferences load]): Add default value for fixed width size
  7371. (-[WebPreferences fixedFontSize]),
  7372. (-[WebPreferences setFixedFontSize:]): New methods.
  7373. 2002-08-06 Darin Adler <darin@apple.com>
  7374. - fixed 3017536 -- Change default font to Lucida Grande 14 pt.
  7375. * WebView.subproj/WebPreferences.m: (+[WebPreferences load]):
  7376. Changed default font and sans serif font family names to Lucida Grande.
  7377. Changed default font size to 14 point.
  7378. 2002-08-05 Maciej Stachowiak <mjs@apple.com>
  7379. fixed 2974993 - window.open does not return the right window object
  7380. fixed 3017140 - WebKit creates a new KHTMLPart per page; should
  7381. reuse it like KHTML does
  7382. * WebView.subproj/WebHTMLRepresentation.m:
  7383. (-[WebHTMLRepresentation setDataSource:]): Don't swap the part at
  7384. this point. Now it gets reused.
  7385. 2002-08-05 Maciej Stachowiak <mjs@apple.com>
  7386. * WebKit.pbproj/project.pbxproj: Fix tyops that broke Development
  7387. build.
  7388. 2002-08-05 Darin Adler <darin@apple.com>
  7389. * .cvsignore: Ignore WebCore-combined.exp.
  7390. 2002-08-05 Maciej Stachowiak <mjs@apple.com>
  7391. - fixed 3007072 - need to be able to build fat
  7392. * WebKit.pbproj/project.pbxproj: Fixed DeploymentFat build.
  7393. * Makefile.am: Build WebCore-combined.exp for Development and
  7394. Mixed build.
  7395. * WebKit-tests.exp: Added.
  7396. * WebKit.exp: Remove test-only function.
  7397. 2002-08-05 Darin Adler <darin@apple.com>
  7398. Do the wiring for the "text size multiplier" feature. The rest of the work will probably be done
  7399. at the WebCore level.
  7400. * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge setFrame:]): Set the text size multiplier.
  7401. * WebView.subproj/WebController.h:
  7402. * WebView.subproj/WebController.m:
  7403. (-[WebController setTextSizeMultiplier:]): Added. Calls _textSizeMultiplierChanged on the main frame.
  7404. (-[WebController textSizeMultiplier]): Added.
  7405. * WebView.subproj/WebControllerPrivate.h: Added textSizeMultiplier instance variable.
  7406. * WebView.subproj/WebFramePrivate.h:
  7407. * WebView.subproj/WebFramePrivate.m:
  7408. (-[WebFrame _textSizeMultiplierChanged]): Added. Calls setTextSizeMultiplier: on the bridge,
  7409. and _textSizeMultiplierChanged on all the child frames.
  7410. 2002-08-05 Chris Blumenberg <cblu@apple.com>
  7411. Renamed icon loader delegate method to include the icon loader.
  7412. * Misc.subproj/WebIconLoader.h:
  7413. * Misc.subproj/WebIconLoader.m:
  7414. (-[WebIconLoader WebResourceHandleDidFinishLoading:data:]):
  7415. * WebView.subproj/WebDataSourcePrivate.m:
  7416. 2002-08-05 Richard Williamson <rjw@apple.com>
  7417. Added additional check to find appropriate fonts with available
  7418. weight, rather than always using a weight of 5.
  7419. Regarding "kCGErrorFailure : can't find name id 4 for font id 8395" errors:
  7420. CG appears to be lying to us about some fonts, Verdana in particular.
  7421. It claims to have an available Verdana font w/ the correct traits, but spits errors
  7422. when we request that font. Further, the Font Panel behaves oddly when you request
  7423. Verdana. The panel displays the font but if you select the font it doesn't
  7424. 'stick'. A mystery.
  7425. * WebCoreSupport.subproj/WebTextRendererFactory.m:
  7426. (-[WebTextRendererFactory fontWithFamily:traits:size:]):
  7427. 2002-08-05 Darin Adler <darin@apple.com>
  7428. - fixed 2986567 -- suppress return characters from title in title bar, status bar, menu items
  7429. * WebCoreSupport.subproj/WebBridge.m:
  7430. (-[WebBridge setTitle:]): Call _web_stringByCollapsingNonPrintingCharacters.
  7431. 2002-08-05 Richard Williamson <rjw@apple.com>
  7432. Added exported symbols file.
  7433. * WebKit.exp: Added.
  7434. * WebKit.pbproj/project.pbxproj:
  7435. 2002-08-05 Darin Adler <darin@apple.com>
  7436. - fixed 3014122 -- spinner never stops spinning when iframe has URL with bad path
  7437. * WebView.subproj/WebFrame.m:
  7438. (-[WebFrame initWithName:webView:provisionalDataSource:controller:]): Initialize the
  7439. state in WebFramePrivate init instead.
  7440. * WebView.subproj/WebFramePrivate.h: Remove WebFrameStateUninitialized.
  7441. * WebView.subproj/WebFramePrivate.m:
  7442. (-[WebFramePrivate init]): Set initial state to WebFrameStateComplete.
  7443. (-[WebFrame _transitionToLayoutAcceptable]): Remove WebFrameStateUninitialized case.
  7444. (-[WebFrame _transitionToCommitted]): Remove WebFrameStateUninitialized case.
  7445. (-[WebFrame _isLoadComplete]): Remove WebFrameStateUninitialized case.
  7446. * WebView.subproj/WebDataSource.h: Tweak.
  7447. * WebView.subproj/WebDataSource.m:
  7448. (-[WebDataSource stopLoading]): Move downloadHandler logic from here into _stopLoading.
  7449. (-[WebDataSource isLoading]): Rewrite for simplicity.
  7450. * WebView.subproj/WebDataSourcePrivate.m:
  7451. (-[WebDataSource _stopLoading]): Move downloadHandler logic here from stopLoading.
  7452. Also make this work even if handles are removed from the list during the stop process.
  7453. (-[WebDataSource _recursiveStopLoading]): Simplify a lot by using WebFrame's stopLoading.
  7454. (-[WebDataSource _setTitle:]): Use the committed boolean rather than the state to check
  7455. if the title change should be sent to the location change handler.
  7456. 2002-08-05 Maciej Stachowiak <mjs@apple.com>
  7457. * Misc.subproj/WebKitDebug.h: Put WEBKIT_ASSERT_NOT_REACHED()
  7458. inside the appropriate #ifdef, and remove the various _log macros,
  7459. which are onsolete in WebKit.
  7460. 2002-08-05 Maciej Stachowiak <mjs@apple.com>
  7461. Some changes related to re-merging the KHTMLPart end() method:
  7462. * Misc.subproj/WebKitDebug.h: Added WEBKIT_ASSERT_NOT_REACHED().
  7463. * WebView.subproj/WebFramePrivate.m:
  7464. (-[WebFrame _transitionToLayoutAcceptable]): Replace NSException with
  7465. ASSERT_NOT_REACHED (this is an internal consistency check, not an
  7466. argument check on a public API, so an assert is more appropriate than
  7467. an exception).
  7468. (-[WebFrame _transitionToCommitted]): Likewise.
  7469. (-[WebFrame _isLoadComplete]): Likewise; also, remove bridge call
  7470. to scrollToBaseAnchor:, since that will now happen automatically
  7471. when calling end.
  7472. 2002-08-02 Darin Adler <darin@apple.com>
  7473. WebKit support for feature where client redirects are treated as if the
  7474. page was continuing to load.
  7475. * WebCoreSupport.subproj/WebBridge.m:
  7476. (-[WebBridge reportClientRedirectTo:delay:fireDate:]): Added. Passes the client
  7477. redirect along to the location change handler.
  7478. (-[WebBridge reportClientRedirectCancelled]): Passes client redirect cancel along
  7479. to the location change handler.
  7480. (-[WebBridge dataSourceChanged]): Remove hack related to dummy data source.
  7481. (-[WebBridge dataSource]): Remove hack related to dummy data source.
  7482. * WebView.subproj/WebLocationChangeHandler.h: Added client redirect methods.
  7483. Added class for base implementation of protocol. Updated stale comment.
  7484. * WebView.subproj/WebLocationChangeHandler.m: Added. Provides base implementation
  7485. of the WebLocationChangeHandler protocol so that clients don't need to implement
  7486. all the methods if they are only interested in some of them.
  7487. * WebKit.pbproj/project.pbxproj: Added WebLocationChangeHandler.m.
  7488. * WebView.subproj/WebFramePrivate.m:
  7489. (-[WebFrame _goToItem:withFrameLoadType:]): Call scrollToAnchor under its new name.
  7490. * Misc.subproj/WebIconLoader.h:
  7491. * Misc.subproj/WebIconLoader.m:
  7492. * WebView.subproj/WebControllerPolicyHandler.m:
  7493. * WebView.subproj/WebControllerPolicyHandlerPrivate.h:
  7494. Replaced __MyCompanyName__ with the actual name of our company.
  7495. 2002-08-02 John Sullivan <sullivan@apple.com>
  7496. - fixed 3015705 -- Command-up-arrow and -down-arrow should go to
  7497. beginning and end of web page
  7498. * WebView.subproj/WebView.m:
  7499. (-[WebView keyDown:]):
  7500. Added checks for command key.
  7501. 2002-08-01 Richard Williamson <rjw@apple.com>
  7502. Effort towards 3014555 (going back to frame), but not fixed.
  7503. Need to think more about appropriate solution and compromises.
  7504. * History.subproj/WebBackForwardList.h:
  7505. * History.subproj/WebBackForwardList.m:
  7506. (-[WebBackForwardList backEntryAtIndex:]):
  7507. * History.subproj/WebHistoryItem.h:
  7508. * History.subproj/WebHistoryItem.m:
  7509. (-[WebHistoryItem initWithURL:title:]):
  7510. (-[WebHistoryItem initWithURL:title:image:]):
  7511. (-[WebHistoryItem initWithURL:target:parent:title:image:]):
  7512. (-[WebHistoryItem dealloc]):
  7513. (-[WebHistoryItem parent]):
  7514. (-[WebHistoryItem setTitle:]):
  7515. (-[WebHistoryItem setTarget:]):
  7516. (-[WebHistoryItem setParent:]):
  7517. (-[WebHistoryItem setDisplayTitle:]):
  7518. * WebCoreSupport.subproj/WebBridge.m:
  7519. * WebView.subproj/WebController.m:
  7520. (-[WebController _goToItem:withFrameLoadType:]):
  7521. * WebView.subproj/WebFramePrivate.h:
  7522. * WebView.subproj/WebFramePrivate.m:
  7523. (-[WebFrame _transitionToCommitted]):
  7524. (-[WebFrame _isLoadComplete]):
  7525. (-[WebFrame _scrollToTop]):
  7526. 2002-08-01 Chris Blumenberg <cblu@apple.com>
  7527. Only send command key events if the plug-in is in the responder chain.
  7528. * Plugins.subproj/WebPluginView.m:
  7529. (-[WebPluginView isInResponderChain]):
  7530. (-[WebPluginView performKeyEquivalent:]):
  7531. (-[WebPluginView setWindow]): added some more logging
  7532. 2002-08-01 Chris Blumenberg <cblu@apple.com>
  7533. Only send command keyDown once by ignoring the keyDown that comes after performKeyEquivalent.
  7534. * Plugins.subproj/WebPluginView.m:
  7535. (-[WebPluginView keyDown:]):
  7536. 2002-08-01 Chris Blumenberg <cblu@apple.com>
  7537. Fixed: 2970530 - Command keys are not getting passed in to plugins
  7538. * Plugins.subproj/WebPluginView.m:
  7539. (-[WebPluginView performKeyEquivalent:]):
  7540. 2002-08-01 Richard Williamson <rjw@apple.com>
  7541. More back/forward work. Support for restoring scroll position.
  7542. We still have a big remaining issue. We don't record the entire
  7543. frame tree in back/forward items. This means going back or forward
  7544. to a frame will looose the context of the containing frameset,
  7545. see 3014555.
  7546. * History.subproj/WebBackForwardList.m:
  7547. (-[WebBackForwardList currentEntry]):
  7548. * History.subproj/WebHistoryItem.h:
  7549. * History.subproj/WebHistoryItem.m:
  7550. (-[WebHistoryItem anchor]):
  7551. (-[WebHistoryItem setAnchor:]):
  7552. * WebCoreSupport.subproj/WebBridge.m:
  7553. (-[WebBridge reportError:]):
  7554. * WebView.subproj/WebController.m:
  7555. (-[WebController _goToItem:withFrameLoadType:]):
  7556. (-[WebController goBack]):
  7557. (-[WebController goForward]):
  7558. * WebView.subproj/WebFrame.m:
  7559. (-[WebFrame setProvisionalDataSource:]):
  7560. * WebView.subproj/WebFramePrivate.h:
  7561. * WebView.subproj/WebFramePrivate.m:
  7562. (-[WebFrame _transitionToCommitted]):
  7563. (-[WebFrame _isLoadComplete]):
  7564. (-[WebFrame _goToItem:withFrameLoadType:]):
  7565. (-[WebFrame _restoreScrollPosition]):
  7566. (-[WebFrame _scrollToTop]):
  7567. 2002-08-01 Chris Blumenberg <cblu@apple.com>
  7568. Fixed:
  7569. 2938010 - PLUGINS: right-click support
  7570. 2938011 - PLUGINS: extended key events support
  7571. 2970523 - Arrow key events not correctly passed to applets
  7572. * Plugins.subproj/WebPluginView.m:
  7573. (-[WebPluginView modifiersForEvent:]):
  7574. (-[WebPluginView getCarbonEvent:withEvent:]):
  7575. (-[WebPluginView mouseDown:]):
  7576. (-[WebPluginView keyUp:]):
  7577. (-[WebPluginView keyDown:]):
  7578. (-[WebPluginView menuForEvent:]):
  7579. === Alexander-15 ===
  7580. 2002-08-01 Don Melton <gramps@apple.com>
  7581. Fixed deployment build compile problem.
  7582. * WebView.subproj/WebFramePrivate.m:
  7583. (-[WebFrame _transitionToCommitted]):
  7584. 2002-08-01 Maciej Stachowiak <mjs@apple.com>
  7585. Remove stuff formerly useful for "View Reconstructed Source"
  7586. feature but now useless.
  7587. * WebView.subproj/WebDataSource.h:
  7588. * WebView.subproj/WebDataSource.m:
  7589. (-[WebDataSource documentTextFromDOM]): Removed.
  7590. 2002-07-31 Maciej Stachowiak <mjs@apple.com>
  7591. Changed things around so that WebFrame, not WebDataSource, owns
  7592. WebBridge. This allows us to remove the dummy data source.
  7593. * WebView.subproj/WebFrame.m:
  7594. (-[WebFrame
  7595. initWithName:webView:provisionalDataSource:controller:]): Remove
  7596. all dummy data source-related crud, but call _changeBridge to
  7597. create the initial bridge.
  7598. (-[WebFrame setProvisionalDataSource:]): Remove dummy data
  7599. source-related epicycles.
  7600. * WebView.subproj/WebFramePrivate.h: Add bridge member to private class.
  7601. * WebView.subproj/WebFramePrivate.m:
  7602. (-[WebFramePrivate setDataSource:]): Don't remove old data source from frame,
  7603. this is no longer needed and may even be harmful.
  7604. (-[WebFrame _transitionToCommitted]): Remove much now-unneeded code.
  7605. (-[WebFrame _isLoadComplete]): Get location change handler from controller.
  7606. Don't call end on the bridge if the document is not html.
  7607. (-[WebFrame _changeBridge]): Free the old bridge and make a new one.
  7608. (-[WebFrame _bridge]): Get it directly, not from the data source.
  7609. * WebView.subproj/WebDataSourcePrivate.h: Remove everything related to the
  7610. `dummy' concept.
  7611. * WebView.subproj/WebDataSourcePrivate.m:
  7612. (-[WebDataSource _setFinalURL:]): Reorder code a bit.
  7613. (-[WebDataSource _bridge]): Get bridge from frame.
  7614. (-[WebDataSource _commitIfReady]): No more need to set the bridge's frame.
  7615. (-[WebDataSource _makeRepresentation]): Set data source on the rep.
  7616. (-[WebDataSource _startLoading:]): Get location change handler from controller.
  7617. (-[WebDataSource _setTitle:]): Likewise.
  7618. (-[WebDataSource receivedPageIcon:]): Likewise.
  7619. (-[WebDataSource _loadIcon]): Likewise.
  7620. * WebView.subproj/WebMainResourceClient.m:
  7621. (-[WebMainResourceClient
  7622. WebResourceHandle:dataDidBecomeAvailable:]): Get location change
  7623. handler from the controller.
  7624. * WebView.subproj/WebViewPrivate.m:
  7625. (-[WebView _makeDocumentViewForDataSource:]): Change *and* commit
  7626. the data source. This could probably be collapsed down to one
  7627. method now.
  7628. * WebView.subproj/WebDocument.h: Added setDataSource: method to
  7629. the WebDocumentRepresenation protocol. For now it is only useful
  7630. for the HTML representation, but could potentially be useful for
  7631. other representation classes. It should also allow the data source
  7632. to be removed as a parameter from other methods, but I have not
  7633. done that yet. It may be even better still to pass the data source
  7634. as a paremeter to the init method.
  7635. * WebView.subproj/WebHTMLRepresentation.m:
  7636. (-[WebHTMLRepresentation init]): Remove allocation of bridge.
  7637. (-[WebHTMLRepresentation dealloc]): Remove release of bridge.
  7638. (-[WebHTMLRepresentation setDataSource:]): Store unretained reference
  7639. to the data source's frame's bridge.
  7640. * WebView.subproj/WebHTMLViewPrivate.m:
  7641. (-[WebHTMLView _bridge]): Fetch the bridge from the frame, not the
  7642. data source.
  7643. * WebView.subproj/WebImageRepresentation.m:
  7644. (-[WebImageRepresentation setDataSource:]): Added empty
  7645. implementation.
  7646. * WebView.subproj/WebTextRepresentation.m:
  7647. (-[WebTextRepresentation setDataSource:]): Added empty
  7648. implementation.
  7649. * Plugins.subproj/WebPluginStream.m:
  7650. (-[WebPluginStream setDataSource:]): Added empty implementation.
  7651. 2002-07-30 Maciej Stachowiak <mjs@apple.com>
  7652. Fixes of various bugs that prevented Alexander from running the
  7653. Mozilla page load test.
  7654. - fixed 3008682 - Alexander cannot run Mozilla-PLT
  7655. * WebCoreSupport.subproj/WebBridge.m:
  7656. (-[WebBridge dataSourceChanged]): Don't call setURL: to set a URL
  7657. that we got from a redirect; just pass it directly to
  7658. openURL:. The inputURL is irrelevant.
  7659. * WebView.subproj/WebDataSourcePrivate.m:
  7660. (-[WebDataSource _setFinalURL:]): Don't call setURL: on the
  7661. bridge; instead, assert that the data source is committed, because
  7662. it would be a mistake to get a redirect after having received
  7663. data.
  7664. 2002-07-30 Richard Williamson <rjw@apple.com>
  7665. Remove annoying log, it's really annoying. Added FIX ME
  7666. comment instead.
  7667. * WebView.subproj/WebFramePrivate.m:
  7668. (-[WebFrame _transitionToCommitted]):
  7669. 2002-07-30 John Sullivan <sullivan@apple.com>
  7670. - fixed 3012083 "Looked for URLs on the pasteboard, but found
  7671. none" spam dragging nil-target bookmark
  7672. * Misc.subproj/WebNSViewExtras.m:
  7673. (-[NSView _web_bestURLForDraggingInfo:]):
  7674. This method was getting data for types on the pasteboard without
  7675. first checking whether the types were on the pasteboard, a no-no.
  7676. Restructured this method and tweaked it here and there also.
  7677. (-[NSView _web_dragOperationForDraggingInfo:]): moved a fast
  7678. test in front of a slow test
  7679. 2002-07-29 Richard Williamson <rjw@apple.com>
  7680. Removed setDirectsAllLinksToSystemBrowser: method, not needed
  7681. and antiquated by the policy APIs.
  7682. * WebView.subproj/WebController.h:
  7683. * WebView.subproj/WebController.m:
  7684. 2002-07-29 Richard Williamson <rjw@apple.com>
  7685. Changes to support the migration of back/forward list to WebKit.
  7686. Back/forward in frames now works (2946164), still not done w/
  7687. restoring scroll positions (2927633).
  7688. * History.subproj/WebHistoryItem.h:
  7689. * History.subproj/WebHistoryItem.m:
  7690. (+[WebHistoryItem entryWithURL:]):
  7691. * WebCoreSupport.subproj/WebBridge.m:
  7692. (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]):
  7693. * WebView.subproj/WebController.h:
  7694. * WebView.subproj/WebController.m:
  7695. (-[WebController initWithView:provisionalDataSource:]):
  7696. (-[WebController setUseBackForwardList:]):
  7697. (-[WebController useBackForwardList]):
  7698. (-[WebController goBack]):
  7699. (-[WebController goForward]):
  7700. * WebView.subproj/WebControllerPrivate.h:
  7701. * WebView.subproj/WebFrame.m:
  7702. (-[WebFrame setProvisionalDataSource:]):
  7703. * WebView.subproj/WebFramePrivate.h:
  7704. * WebView.subproj/WebFramePrivate.m:
  7705. (-[WebFrame _transitionToCommitted]):
  7706. (-[WebFrame _setProvisionalDataSource:]):
  7707. (-[WebFrame _goToURL:withFrameLoadType:]):
  7708. * WebView.subproj/WebViewPrivate.m:
  7709. (-[WebView _goBack]):
  7710. (-[WebView _goForward]):
  7711. 2002-07-29 Richard Williamson <rjw@apple.com>
  7712. Fixed 3009074. Added [WebHTMLView jumpToSelection:] and related user interface
  7713. item validation.
  7714. * WebView.subproj/WebHTMLView.m:
  7715. (-[WebHTMLView jumpToSelection:]):
  7716. (-[WebHTMLView validateUserInterfaceItem:]):
  7717. 2002-07-29 Richard Williamson <rjw@apple.com>
  7718. Fixed 3009085. Implemented takeFindStringFromSelection: on WebHTMLView and WebTextView.
  7719. Also added user interface item validation for that method.
  7720. * WebView.subproj/WebHTMLView.m:
  7721. (-[WebHTMLView hasSelection]):
  7722. (-[WebHTMLView takeFindStringFromSelection:]):
  7723. (-[WebHTMLView validateUserInterfaceItem:]):
  7724. * WebView.subproj/WebTextView.m:
  7725. (-[WebTextView canTakeFindStringFromSelection]):
  7726. (-[WebTextView takeFindStringFromSelection:]):
  7727. 2002-07-29 Chris Blumenberg <cblu@apple.com>
  7728. Fixed:
  7729. 2971845 - text view uses default "user font" (Helvetica), not fonts chosen in Alexander preferences
  7730. * WebView.subproj/WebTextView.m:
  7731. (-[WebTextView initWithFrame:]): add observer
  7732. (-[WebTextView dealloc]): remove observer
  7733. (-[WebTextView setFixedWidthFont]): added, checks defaults
  7734. (-[WebTextView dataSourceUpdated:]): calls setFixedWidthFont
  7735. (-[WebTextView searchFor:direction:caseSensitive:]): no changes
  7736. (-[WebTextView defaultsChanged:]): calls setFixedWidthFont
  7737. 2002-07-27 Chris Blumenberg <cblu@apple.com>
  7738. Implemented click policy, support for option-click
  7739. Implemented dragging of links and images from WebHTMLView
  7740. * Misc.subproj/WebNSViewExtras.h:
  7741. * Misc.subproj/WebNSViewExtras.m:
  7742. (-[NSView _web_dragShouldBeginFromMouseDown:withExpiration:]): added, moved from WebBrowser
  7743. (-[NSView _web_dragOperationForDraggingInfo:]): don't accept drag if source == destination
  7744. * WebView.subproj/WebControllerPolicyHandler.h:
  7745. * WebView.subproj/WebControllerPolicyHandler.m:
  7746. (-[WebPolicy URL]): needed for click policy
  7747. (+[WebURLPolicy webPolicyWithURLAction:]):
  7748. (+[WebFileURLPolicy webPolicyWithFileAction:]):
  7749. (+[WebContentPolicy webPolicyWithContentAction:andPath:]):
  7750. * WebView.subproj/WebControllerPrivate.h:
  7751. * WebView.subproj/WebControllerPrivate.m:
  7752. (-[WebController _downloadURL:toPath:]): added, simply downloads a URL
  7753. * WebView.subproj/WebDefaultContextMenuHandler.m:
  7754. (-[WebDefaultContextMenuHandler downloadURL:]): calls [WebController _downloadURL:toPath:]
  7755. * WebView.subproj/WebDefaultPolicyHandler.m:
  7756. (-[WebDefaultPolicyHandler clickPolicyForElement:button:modifierMask:]):
  7757. * WebView.subproj/WebHTMLView.m:
  7758. (-[WebHTMLView mouseDown:]): calls _continueAfterCheckingDragForEvent
  7759. (-[WebHTMLView mouseUp:]): calls _continueAfterClickPolicyForEvent
  7760. (-[WebHTMLView draggingSourceOperationMaskForLocal:]): added
  7761. (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): added, starts download
  7762. * WebView.subproj/WebHTMLViewPrivate.h:
  7763. * WebView.subproj/WebHTMLViewPrivate.m:
  7764. (-[WebHTMLViewPrivate dealloc]):
  7765. (-[WebHTMLView _elementAtPoint:]):
  7766. (-[WebHTMLView _continueAfterClickPolicyForEvent:]): added, implements click policy
  7767. (-[WebHTMLView _continueAfterCheckingDragForEvent:]): added, checks if mouse event is a drag
  7768. 2002-07-26 Richard Williamson <rjw@apple.com>
  7769. WebframeLoadType enum first value wasn't explicitly set, so 0 was used.
  7770. I assumed 0 was unitialized, and depended on that to not execute some 'transitional'
  7771. back/forward. This problem broke back/forward.
  7772. * WebView.subproj/WebFramePrivate.h:
  7773. 2002-07-26 John Sullivan <sullivan@apple.com>
  7774. WebKit part of fix for 3009404 -- Back/Forward menu items should use [ and ],
  7775. but command-arrows should still work too.
  7776. * WebView.subproj/WebController.h:
  7777. - added goForward to windowContext protocol. This is temporary, just like goBack
  7778. here is temporary; they can be migrated into the new back-forward-in-WebKit design
  7779. together.
  7780. * WebView.subproj/WebView.m:
  7781. (-[WebView keyDown:]): call _goBack and _goForward for command-arrow keys
  7782. * WebView.subproj/WebViewPrivate.h,
  7783. * WebView.subproj/WebViewPrivate.m:
  7784. (-[WebView _goForward]): add _goForward, parallel to _existing goBack.
  7785. 2002-07-26 Chris Blumenberg <cblu@apple.com>
  7786. Fixed crash in unknown_text
  7787. Fixed full-window plug-ins. I think darin broken this :)
  7788. Cleaned up WebPluginStream a bit
  7789. * Plugins.subproj/WebPluginDatabase.m:
  7790. (-[WebPluginDatabase init]):
  7791. * Plugins.subproj/WebPluginStream.m:
  7792. (-[WebPluginStream getFunctionPointersFromPluginView:]):
  7793. (-[WebPluginStream initWithURL:pluginPointer:notifyData:attributes:]):
  7794. (-[WebPluginStream startLoad]):
  7795. (-[WebPluginStream stop]):
  7796. (-[WebPluginStream setUpGlobalsWithHandle:]):
  7797. (-[WebPluginStream receivedError:]):
  7798. (-[WebPluginStream receivedData:withDataSource:]):
  7799. (-[WebPluginStream receivedError:withDataSource:]):
  7800. (-[WebPluginStream WebResourceHandle:dataDidBecomeAvailable:]):
  7801. (-[WebPluginStream WebResourceHandleDidCancelLoading:]):
  7802. (-[WebPluginStream WebResourceHandle:didFailLoadingWithResult:]):
  7803. * WebView.subproj/WebDataSourcePrivate.h:
  7804. * WebView.subproj/WebDataSourcePrivate.m:
  7805. (-[WebDataSource _mainHandle]): added, WebPluginStream needs this
  7806. 2002-07-25 Richard Williamson <rjw@apple.com>
  7807. More incremental changes for back/forward migration.
  7808. * History.subproj/WebBackForwardList.h:
  7809. * History.subproj/WebBackForwardList.m:
  7810. (-[WebBackForwardList init]):
  7811. (-[WebBackForwardList dealloc]):
  7812. (-[WebBackForwardList addEntry:]):
  7813. (-[WebBackForwardList goBack]):
  7814. (-[WebBackForwardList goBackToIndex:]):
  7815. (-[WebBackForwardList backEntry]):
  7816. (-[WebBackForwardList currentEntry]):
  7817. (-[WebBackForwardList forwardEntry]):
  7818. (-[WebBackForwardList goForward]):
  7819. (-[WebBackForwardList goForwardToIndex:]):
  7820. (-[WebBackForwardList canGoBack]):
  7821. (-[WebBackForwardList canGoForward]):
  7822. (-[WebBackForwardList description]):
  7823. * History.subproj/WebHistoryItem.h:
  7824. * History.subproj/WebHistoryItem.m:
  7825. (-[WebHistoryItem initWithURL:title:]):
  7826. (-[WebHistoryItem initWithURL:title:image:]):
  7827. (-[WebHistoryItem initWithURL:target:title:image:]):
  7828. (-[WebHistoryItem dealloc]):
  7829. (-[WebHistoryItem target]):
  7830. (-[WebHistoryItem setTarget:]):
  7831. (-[WebHistoryItem setLastVisitedDate:]):
  7832. (-[WebHistoryItem scrollPoint]):
  7833. (-[WebHistoryItem setScrollPoint:]):
  7834. * History.subproj/WebHistoryList.m:
  7835. * WebView.subproj/WebFramePrivate.h:
  7836. * WebView.subproj/WebFramePrivate.m:
  7837. (-[WebFramePrivate setLoadType:]):
  7838. (-[WebFrame _setLoadType:]):
  7839. (-[WebFrame _loadType]):
  7840. (-[WebFrame _transitionToCommitted]):
  7841. 2002-07-25 Chris Blumenberg <cblu@apple.com>
  7842. Made some WebPolicy API's private
  7843. Added support for download link/image to disk
  7844. * Misc.subproj/WebDownloadHandler.m:
  7845. (-[WebDownloadHandler receivedData:]):
  7846. * WebKit.pbproj/project.pbxproj:
  7847. * WebView.subproj/WebControllerPolicyHandler.h:
  7848. * WebView.subproj/WebControllerPolicyHandler.m:
  7849. (-[WebPolicyPrivate dealloc]):
  7850. (-[WebPolicy _setPolicyAction:]):
  7851. (-[WebPolicy policyAction]):
  7852. (-[WebPolicy path]):
  7853. (-[WebPolicy _setPath:]):
  7854. (-[WebPolicy dealloc]):
  7855. (+[WebURLPolicy webPolicyWithURLAction:]):
  7856. (+[WebFileURLPolicy webPolicyWithFileAction:]):
  7857. (+[WebContentPolicy webPolicyWithContentAction:andPath:]):
  7858. (+[WebClickPolicy webPolicyWithClickAction:andPath:]):
  7859. * WebView.subproj/WebControllerPolicyHandlerPrivate.h: Added.
  7860. * WebView.subproj/WebDefaultContextMenuHandler.m:
  7861. (-[WebDefaultContextMenuHandler downloadURL:]):
  7862. (-[WebDefaultContextMenuHandler downloadLinkToDisk:]):
  7863. (-[WebDefaultContextMenuHandler openImageInNewWindow:]):
  7864. (-[WebDefaultContextMenuHandler downloadImageToDisk:]):
  7865. * WebView.subproj/WebMainResourceClient.m:
  7866. (-[WebMainResourceClient WebResourceHandle:dataDidBecomeAvailable:]):
  7867. 2002-07-25 Chris Blumenberg <cblu@apple.com>
  7868. Fixed crasher caused by not retaining the content policy.
  7869. * WebView.subproj/WebControllerPolicyHandler.h:
  7870. * WebView.subproj/WebMainResourceClient.h:
  7871. * WebView.subproj/WebMainResourceClient.m:
  7872. (-[WebMainResourceClient WebResourceHandle:dataDidBecomeAvailable:]):
  7873. 2002-07-25 Chris Blumenberg <cblu@apple.com>
  7874. Made policy APIs return a WebPolicy object.
  7875. Added click policy.
  7876. * Misc.subproj/WebDownloadHandler.m:
  7877. (-[WebDownloadHandler receivedData:]):
  7878. (-[WebDownloadHandler finishedLoading]):
  7879. (-[WebDownloadHandler cancel]):
  7880. * WebKit.pbproj/project.pbxproj:
  7881. * WebView.subproj/WebController.h:
  7882. * WebView.subproj/WebController.m:
  7883. (+[WebController defaultURLPolicyForURL:]):
  7884. * WebView.subproj/WebControllerPolicyHandler.h:
  7885. * WebView.subproj/WebControllerPolicyHandler.m: Added.
  7886. (-[WebPolicy initWithPolicyAction:]):
  7887. (-[WebPolicy policyAction]):
  7888. (+[WebURLPolicy webPolicyWithURLAction:]):
  7889. (+[WebFileURLPolicy webPolicyWithFileAction:]):
  7890. (+[WebContentPolicy webPolicyWithContentAction:andPath:]):
  7891. (-[WebContentPolicy initWithContentPolicyAction:andPath:]):
  7892. (-[WebContentPolicy dealloc]):
  7893. (-[WebContentPolicy path]):
  7894. (-[WebClickPolicy initWithClickPolicyAction:andPath:]):
  7895. (+[WebClickPolicy webPolicyWithClickAction:andPath:]):
  7896. (-[WebClickPolicy dealloc]):
  7897. (-[WebClickPolicy path]):
  7898. * WebView.subproj/WebControllerPrivate.m:
  7899. (-[WebController _receivedError:forResourceHandle:partialProgress:fromDataSource:]):
  7900. * WebView.subproj/WebDataSource.h:
  7901. * WebView.subproj/WebDataSource.m:
  7902. (-[WebDataSource contentPolicy]):
  7903. (-[WebDataSource fileType]):
  7904. * WebView.subproj/WebDataSourcePrivate.h:
  7905. * WebView.subproj/WebDataSourcePrivate.m:
  7906. (-[WebDataSourcePrivate dealloc]):
  7907. (-[WebDataSource _setContentPolicy:]):
  7908. (-[WebDataSource _commitIfReady]):
  7909. (-[WebDataSource _isReadyForData]):
  7910. * WebView.subproj/WebDefaultPolicyHandler.m:
  7911. (-[WebDefaultPolicyHandler URLPolicyForURL:]):
  7912. (-[WebDefaultPolicyHandler fileURLPolicyForMIMEType:dataSource:isDirectory:]):
  7913. (-[WebDefaultPolicyHandler unableToImplementFileURLPolicy:error:forDataSource:]):
  7914. (-[WebDefaultPolicyHandler unableToImplementURLPolicy:error:forURL:]):
  7915. (-[WebDefaultPolicyHandler pluginNotFoundForMIMEType:pluginPageURL:]):
  7916. (-[WebDefaultPolicyHandler clickPolicyForElement:button:modifierMask:]):
  7917. * WebView.subproj/WebFrame.m:
  7918. (-[WebFrame initWithName:webView:provisionalDataSource:controller:]):
  7919. * WebView.subproj/WebFramePrivate.m:
  7920. (-[WebFrame _shouldShowDataSource:]):
  7921. * WebView.subproj/WebMainResourceClient.m:
  7922. (-[WebMainResourceClient receivedProgressWithHandle:complete:]):
  7923. (-[WebMainResourceClient receivedError:forHandle:]):
  7924. (-[WebMainResourceClient WebResourceHandleDidFinishLoading:data:]):
  7925. (-[WebMainResourceClient WebResourceHandle:dataDidBecomeAvailable:]):
  7926. 2002-07-25 Darin Adler <darin@apple.com>
  7927. * WebKit.pbproj/project.pbxproj: Add DeploymentFat build style.
  7928. 2002-07-25 Darin Adler <darin@apple.com>
  7929. WebKit part of fix for 3006054 -- assert error failingURL != nil
  7930. * WebCoreSupport.subproj/WebBridge.m:
  7931. (-[WebBridge reportError:]): New. Passes the error to the controller associated with
  7932. the dataSource.
  7933. * WebCoreSupport.subproj/WebSubresourceClient.m:
  7934. (+[WebSubresourceClient startLoadingResource:withURL:dataSource:]): Call absoluteString.
  7935. (-[WebSubresourceClient WebResourceHandleDidCancelLoading:]): Call absoluteString.
  7936. * WebView.subproj/WebController.m:
  7937. (-[WebController haveContentPolicy:andPath:forDataSource:]): Call absoluteString.
  7938. * WebView.subproj/WebControllerPrivate.m:
  7939. (-[WebController _receivedError:forResourceHandle:partialProgress:fromDataSource:]):
  7940. Don't call absoluteString.
  7941. * WebView.subproj/WebFramePrivate.m:
  7942. (-[WebFrame _shouldShowDataSource:]): Call absoluteString.
  7943. * WebView.subproj/WebMainResourceClient.m:
  7944. (-[WebMainResourceClient WebResourceHandleDidCancelLoading:]): Call absoluteString.
  7945. 2002-07-25 Chris Blumenberg <cblu@apple.com>
  7946. Remove reloadImage until its implemented.
  7947. * WebView.subproj/WebDefaultContextMenuHandler.m:
  7948. (-[WebDefaultContextMenuHandler contextMenuItemsForElement:defaultMenuItems:]):
  7949. 2002-07-25 Chris Blumenberg <cblu@apple.com>
  7950. Renamed elementInfoAtPoint to elementAtPoint
  7951. * WebKit.pbproj/project.pbxproj:
  7952. * WebView.subproj/WebDefaultContextMenuHandler.h:
  7953. * WebView.subproj/WebDefaultContextMenuHandler.m:
  7954. (+[WebDefaultContextMenuHandler addMenuItemWithTitle:action:target:toArray:]): renamed
  7955. (-[WebDefaultContextMenuHandler contextMenuItemsForElement:defaultMenuItems:]):
  7956. * WebView.subproj/WebHTMLView.m:
  7957. (-[WebHTMLView menuForEvent:]):
  7958. * WebView.subproj/WebHTMLViewPrivate.h:
  7959. * WebView.subproj/WebHTMLViewPrivate.m:
  7960. (-[WebHTMLView _elementAtPoint:]):
  7961. 2002-07-24 Chris Blumenberg <cblu@apple.com>
  7962. tiny change
  7963. * WebView.subproj/WebDefaultContextMenuHandler.m:
  7964. 2002-07-24 Chris Blumenberg <cblu@apple.com>
  7965. Added implmentations for a few context menu items.
  7966. * WebView.subproj/WebController.h:
  7967. * WebView.subproj/WebDefaultContextMenuHandler.h:
  7968. * WebView.subproj/WebDefaultContextMenuHandler.m:
  7969. (-[WebDefaultContextMenuHandler dealloc]):
  7970. (-[WebDefaultContextMenuHandler contextMenuItemsForElement:defaultMenuItems:]):
  7971. (-[WebDefaultContextMenuHandler validateUserInterfaceItem:]):
  7972. (-[WebDefaultContextMenuHandler openNewWindowWithURL:]):
  7973. (-[WebDefaultContextMenuHandler openLinkInNewWindow:]):
  7974. (-[WebDefaultContextMenuHandler copyLinkToClipboard:]):
  7975. (-[WebDefaultContextMenuHandler openImageInNewWindow:]):
  7976. (-[WebDefaultContextMenuHandler copyImageToClipboard:]):
  7977. (-[WebDefaultContextMenuHandler reloadImage:]):
  7978. (-[WebDefaultContextMenuHandler openFrameInNewWindow:]):
  7979. * WebView.subproj/WebHTMLView.m:
  7980. (-[WebHTMLView menuForEvent:]):
  7981. 2002-07-24 Richard Williamson <rjw@apple.com>
  7982. Removed vestigal locationChangeHandler ivar.
  7983. * WebView.subproj/WebDataSourcePrivate.h:
  7984. * WebView.subproj/WebDataSourcePrivate.m:
  7985. (-[WebDataSource _loadIcon]):
  7986. 2002-07-24 Chris Blumenberg <cblu@apple.com>
  7987. Call [self _locationChangeHandler] instead of _private-locationChangeHandler
  7988. * WebView.subproj/WebDataSourcePrivate.m:
  7989. (-[WebDataSource receivedPageIcon:]):
  7990. 2002-07-24 Richard Williamson <rjw@apple.com>
  7991. Implemented find for text views.
  7992. * WebView.subproj/WebTextView.m:
  7993. (-[NSString findString:selectedRange:options:wrap:]):
  7994. (-[WebTextView searchFor:direction:caseSensitive:]):
  7995. 2002-07-24 Chris Blumenberg <cblu@apple.com>
  7996. Implemented initial contextual menus. None activated yet.
  7997. * WebView.subproj/WebDefaultContextMenuHandler.h:
  7998. * WebView.subproj/WebDefaultContextMenuHandler.m:
  7999. (-[WebDefaultContextMenuHandler dealloc]): added
  8000. (-[WebDefaultContextMenuHandler addMenuItemWithTitle:action:toArray:]): added
  8001. (-[WebDefaultContextMenuHandler contextMenuItemsForElementInfo:defaultMenuItems:]): create menu items
  8002. * WebView.subproj/WebHTMLView.m:
  8003. (-[WebHTMLView menuForEvent:]):
  8004. 2002-07-24 Chris Blumenberg <cblu@apple.com>
  8005. More renaming for WebDefaultPolicyHandler.
  8006. * WebView.subproj/WebController.m:
  8007. (-[WebController policyHandler]):
  8008. * WebView.subproj/WebDefaultPolicyHandler.h:
  8009. * WebView.subproj/WebDefaultPolicyHandler.m:
  8010. 2002-07-24 Chris Blumenberg <cblu@apple.com>
  8011. Renamed WebDefaultControllerPolicyHandler to WebDefaultPolicyHandler.
  8012. * WebKit.pbproj/project.pbxproj:
  8013. * WebView.subproj/WebDefaultControllerPolicyHandler.h: Removed.
  8014. * WebView.subproj/WebDefaultControllerPolicyHandler.m: Removed.
  8015. * WebView.subproj/WebDefaultPolicyHandler.h: Added.
  8016. * WebView.subproj/WebDefaultPolicyHandler.m: Added.
  8017. (-[WebDefaultControllerPolicyHandler initWithWebController:]):
  8018. (-[WebDefaultControllerPolicyHandler URLPolicyForURL:]):
  8019. (-[WebDefaultControllerPolicyHandler fileURLPolicyForMIMEType:dataSource:isDirectory:]):
  8020. (-[WebDefaultControllerPolicyHandler unableToImplementFileURLPolicy:forDataSource:]):
  8021. (-[WebDefaultControllerPolicyHandler requestContentPolicyForMIMEType:dataSource:]):
  8022. (-[WebDefaultControllerPolicyHandler unableToImplementURLPolicyForURL:error:]):
  8023. (-[WebDefaultControllerPolicyHandler unableToImplementContentPolicy:forDataSource:]):
  8024. (-[WebDefaultControllerPolicyHandler pluginNotFoundForMIMEType:pluginPageURL:]):
  8025. 2002-07-24 Chris Blumenberg <cblu@apple.com>
  8026. More plumbing for contextual menu support.
  8027. * WebKit.pbproj/project.pbxproj:
  8028. * WebView.subproj/WebController.h:
  8029. * WebView.subproj/WebController.m:
  8030. (-[WebController setContextMenuHandler:]): added
  8031. (-[WebController contextMenuHandler]): added
  8032. * WebView.subproj/WebControllerPrivate.h:
  8033. * WebView.subproj/WebControllerPrivate.m:
  8034. (-[WebControllerPrivate init]): alloc WebDefaultContextMenuHandler
  8035. (-[WebControllerPrivate dealloc]): dealloc WebDefaultContextMenuHandler
  8036. (-[WebController _defaultContextMenuHandler]):
  8037. * WebView.subproj/WebDefaultContextMenuHandler.h: Added.
  8038. * WebView.subproj/WebDefaultContextMenuHandler.m: Added.
  8039. (-[WebDefaultContextMenuHandler contextMenuItemsForElementInfo:defaultMenuItems:]): new
  8040. * WebView.subproj/WebHTMLView.m:
  8041. (-[WebHTMLView menuForEvent:]): call contextMenuHandlers
  8042. * WebView.subproj/WebHTMLViewPrivate.h:
  8043. * WebView.subproj/WebHTMLViewPrivate.m:
  8044. (-[WebHTMLView _setController:]): added comment
  8045. (-[WebHTMLView _controller]): added
  8046. 2002-07-24 Darin Adler <darin@apple.com>
  8047. * WebCoreSupport.subproj/WebTextRenderer.m:
  8048. (-[WebTextRenderer xHeight]): Added. Calls [NSFont xHeight].
  8049. * WebView.subproj/WebPreferences.h:
  8050. * WebView.subproj/WebPreferences.m:
  8051. (+[WebPreferences load]):
  8052. (-[WebPreferences defaultFontSize]):
  8053. (-[WebPreferences setDefaultFontSize:]):
  8054. Renamed minimumFont to defaultFont, and changed it from 11 to 16.
  8055. Also changed default monospaced font to Courier instead of Monaco.
  8056. 2002-07-24 Richard Williamson <rjw@apple.com>
  8057. Support for find in HTML, find in text view coming soon.
  8058. * WebView.subproj/WebDocument.h:
  8059. * WebView.subproj/WebHTMLView.h:
  8060. * WebView.subproj/WebHTMLView.m:
  8061. (-[WebHTMLView searchFor:direction:caseSensitive:]):
  8062. * WebView.subproj/WebTextView.h:
  8063. * WebView.subproj/WebTextView.m:
  8064. (-[WebTextView searchFor:direction:caseSensitive:]):
  8065. 2002-07-23 Chris Blumenberg <cblu@apple.com>
  8066. More plumbing for contextual menu support.
  8067. * WebCoreSupport.subproj/WebBridge.h:
  8068. * WebCoreSupport.subproj/WebBridge.m:
  8069. * WebView.subproj/WebHTMLView.m:
  8070. (-[WebHTMLView menuForEvent:]):
  8071. * WebView.subproj/WebHTMLViewPrivate.h:
  8072. * WebView.subproj/WebHTMLViewPrivate.m:
  8073. (-[WebHTMLView _elementInfoAtPoint:]): added
  8074. 2002-07-23 Darin Adler <darin@apple.com>
  8075. * WebKit.pbproj/project.pbxproj: Fix file reference types to be more consistent.
  8076. 2002-07-23 Chris Blumenberg <cblu@apple.com>
  8077. Initial plumbing for contextual menu support.
  8078. * WebCoreSupport.subproj/WebBridge.h:
  8079. * WebCoreSupport.subproj/WebBridge.m:
  8080. (-[WebBridge elementInfoForMouseEvent:]): added
  8081. * WebView.subproj/WebController.h:
  8082. * WebView.subproj/WebHTMLView.m:
  8083. (-[WebHTMLView menuForEvent:]): added
  8084. 2002-07-23 Darin Adler <darin@apple.com>
  8085. * WebKit.pbproj/project.pbxproj: Fix paths for newly added files.
  8086. 2002-07-23 Richard Williamson <rjw@apple.com>
  8087. Cleaned up LocationChangeHandler. We now have one per controller.
  8088. * WebKit.pbproj/project.pbxproj:
  8089. * WebView.subproj/WebController.h:
  8090. * WebView.subproj/WebController.m:
  8091. (-[WebController policyHandler]):
  8092. (-[WebController setLocationChangeHandler:]):
  8093. (-[WebController locationChangeHandler]):
  8094. * WebView.subproj/WebControllerPolicyHandler.h:
  8095. * WebView.subproj/WebControllerPrivate.h:
  8096. * WebView.subproj/WebDataSourcePrivate.h:
  8097. * WebView.subproj/WebDataSourcePrivate.m:
  8098. (-[WebDataSourcePrivate dealloc]):
  8099. (-[WebDataSource _setIsDummy:)
  8100. (-[WebDataSource _isDummy]):
  8101. Hack on hack. MJS will remove when the dummy data source hack is removed.
  8102. (-[WebDataSource _locationChangeHandler]):
  8103. (-[WebDataSource _removeFromFrame]):
  8104. (-[WebFrame initWithName:webView:provisionalDataSource:controller:]):
  8105. (-[WebFrame setProvisionalDataSource:]):
  8106. * WebView.subproj/WebFramePrivate.m:
  8107. (-[WebFramePrivate dealloc]):
  8108. Added default policy handler. This is used if no policy handler is
  8109. set on the controller.
  8110. * WebView.subproj/WebDefaultControllerPolicyHandler.h: Added.
  8111. * WebView.subproj/WebDefaultControllerPolicyHandler.m: Added.
  8112. (-[WebDefaultControllerPolicyHandler initWithWebController:]):
  8113. (-[WebDefaultControllerPolicyHandler URLPolicyForURL:]):
  8114. (-[WebDefaultControllerPolicyHandler fileURLPolicyForMIMEType:dataSource:isDirectory:]):
  8115. (-[WebDefaultControllerPolicyHandler unableToImplementFileURLPolicy:forDataSource:]):
  8116. (-[WebDefaultControllerPolicyHandler requestContentPolicyForMIMEType:dataSource:]):
  8117. (-[WebDefaultControllerPolicyHandler unableToImplementURLPolicyForURL:error:]):
  8118. (-[WebDefaultControllerPolicyHandler unableToImplementContentPolicy:forDataSource:]):
  8119. (-[WebDefaultControllerPolicyHandler pluginNotFoundForMIMEType:pluginPageURL:]):
  8120. * WebView.subproj/WebFrame.m:
  8121. 2002-07-23 Darin Adler <darin@apple.com>
  8122. * Makefile.am: Clean based on all, not all-am, so it happens before subdirs
  8123. if any.
  8124. 2002-07-23 Darin Adler <darin@apple.com>
  8125. * WebCoreSupport.subproj/WebTextRenderer.m:
  8126. (-[WebTextRenderer drawUnderlineForCharacters:stringLength:atPoint:withColor:]):
  8127. Change API to take character array instead of a string.
  8128. * WebKit.pbproj/project.pbxproj: Took "subproj" off the names of some groups.
  8129. === Alexander-14 ===
  8130. 2002-07-22 Richard Williamson <rjw@apple.com>
  8131. Moved back/forward list from Alex's document to WebController. First step
  8132. to address a series of back/forward related issues.
  8133. * WebView.subproj/WebController.h:
  8134. * WebView.subproj/WebController.m:
  8135. (-[WebController backForwardList]):
  8136. * WebView.subproj/WebControllerPrivate.h:
  8137. * WebView.subproj/WebControllerPrivate.m:
  8138. (-[WebControllerPrivate init]):
  8139. (-[WebControllerPrivate dealloc]):
  8140. 2002-07-22 Chris Blumenberg <cblu@apple.com>
  8141. Strip white space before and after URL string 2998696
  8142. * Misc.subproj/WebNSViewExtras.m:
  8143. (-[NSView _web_bestURLForDraggingInfo:]):
  8144. 2002-07-22 Ken Kocienda <kocienda@apple.com>
  8145. * WebView.subproj/WebHTMLView.m: import of removed WebFrame bridge header was
  8146. left in, causing a build break.
  8147. 2002-07-22 Maciej Stachowiak <mjs@apple.com>
  8148. Merged WebBridge and WebFrameBridge.
  8149. * WebCoreSupport.subproj/WebBridge.h:
  8150. * WebCoreSupport.subproj/WebBridge.m:
  8151. (-[WebBridge childFrames]): Return bridges, not frameBridges.
  8152. (-[WebBridge descendantFrameNamed:]): Return bridge, not frameBridge.
  8153. (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]): Return a bridge, not a frameBridge.
  8154. (-[WebBridge mainFrame]): Return a bridge, not a frameBridge.
  8155. (-[WebBridge frameNamed:]):Return a bridge, not a frameBridge.
  8156. (-[WebBridge loadURL:attributes:flags:withParent:]): Moved from WebFrameBridge.
  8157. (-[WebBridge loadURL:]): Moved from WebFrameBridge.
  8158. (-[WebBridge postWithURL:data:]): Moved from WebFrameBridge.
  8159. * WebCoreSupport.subproj/WebFrameBridge.h: Removed.
  8160. * WebCoreSupport.subproj/WebFrameBridge.m: Removed.
  8161. * WebView.subproj/WebFrame.m:
  8162. (-[WebFrame initWithName:webView:provisionalDataSource:controller:]): Don't create
  8163. a WebFrameBridge.
  8164. * WebView.subproj/WebFramePrivate.h:
  8165. * WebView.subproj/WebFramePrivate.m:
  8166. (-[WebFramePrivate dealloc]): No longer dealloc frameBridge, since we don't have one.
  8167. (-[WebFrame _transitionToCommitted]): Pass along the frame's render part, if any.
  8168. (-[WebFrame _frameBridge]): Removed.
  8169. * WebKit.pbproj/project.pbxproj: Removed deleted files.
  8170. 2002-07-22 Maciej Stachowiak <mjs@apple.com>
  8171. Change WebBridge to hold on to a WebFrame instead of a
  8172. WebDataSource. Since we will no longer ever have a bridge for a
  8173. provisional data source, we'll just bind the bridge to a
  8174. frame. Which means we can merge the bridge and the frame bridge
  8175. next.
  8176. * WebCoreSupport.subproj/WebBridge.h:
  8177. * WebCoreSupport.subproj/WebBridge.m: Changed below methods to work
  8178. with direct knowledge of the frame but not the bridge (mostly a
  8179. simplification).
  8180. (-[WebBridge frame]):
  8181. (-[WebBridge parent]):
  8182. (-[WebBridge childFrames]):
  8183. (-[WebBridge descendantFrameNamed:]):
  8184. (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]):
  8185. (-[WebBridge openNewWindowWithURL:]):
  8186. (-[WebBridge areToolbarsVisible]):
  8187. (-[WebBridge setToolbarsVisible:]):
  8188. (-[WebBridge areScrollbarsVisible]):
  8189. (-[WebBridge setScrollbarsVisible:]):
  8190. (-[WebBridge isStatusBarVisible]):
  8191. (-[WebBridge setStatusBarVisible:]):
  8192. (-[WebBridge setWindowFrame:]):
  8193. (-[WebBridge window]):
  8194. (-[WebBridge setStatusText:]):
  8195. (-[WebBridge mainFrame]):
  8196. (-[WebBridge frameNamed:]):
  8197. (-[WebBridge receivedData:withDataSource:]):
  8198. (-[WebBridge objectLoadedFromCache:size:]):
  8199. (-[WebBridge setFrame:]):
  8200. (-[WebBridge dataSourceChanged]):
  8201. (-[WebBridge dataSource]):
  8202. (-[WebBridge openedByScript]):
  8203. (-[WebBridge setOpenedByScript:]):
  8204. * WebView.subproj/WebDataSourcePrivate.m:
  8205. (-[WebDataSource _commitIfReady]): Set bridge's frame and notify
  8206. that the data source changed.
  8207. * WebView.subproj/WebFrame.m:
  8208. (-[WebFrame initWithName:webView:provisionalDataSource:controller:]): Set
  8209. bridge's frame.
  8210. * WebView.subproj/WebFramePrivate.h, WebView.subproj/WebFramePrivate.m:
  8211. (-[WebFrame _bridge]): Method to get the bridge.
  8212. 2002-07-21 Maciej Stachowiak <mjs@apple.com>
  8213. Removed provisional/committed distinction from WebCore and the
  8214. WebCore SPI. WebCore will never see a provisional data source or
  8215. provisional anything, any more.
  8216. * WebCoreSupport.subproj/WebBridge.m:
  8217. (-[WebBridge descendantFrameNamed:]): Don't bother with the provisional
  8218. bridge - no such thing.
  8219. (-[WebBridge setDataSource:]): Assert the data source is committed.
  8220. * WebCoreSupport.subproj/WebFrameBridge.m:
  8221. (-[WebFrameBridge bridge]): Return committed bridge always, and remove
  8222. committed bridge method.
  8223. 2002-07-21 Maciej Stachowiak <mjs@apple.com>
  8224. Fix a regression in my recent refactoring that broke JavaScript
  8225. window opening, by doing some trickery to make a frame's initial
  8226. dummy data source committed.
  8227. * WebView.subproj/WebFrame.m:
  8228. (-[WebFrame initWithName:webView:provisionalDataSource:controller:]):
  8229. Create dummy data source as committed, not provisional.
  8230. * WebView.subproj/WebFramePrivate.m:
  8231. (-[WebFrame _transitionToCommitted]): Allow the documentView to be nil
  8232. if there is no webView either; this is temporarily needed to handle
  8233. the special initial dummy data source, which will be going away soon.
  8234. * WebView.subproj/WebDataSourcePrivate.m:
  8235. (-[WebDataSource _receivedData:]): Add temporary special case to
  8236. avoid sending empty NSData to the representation, to avoid
  8237. triggering WebCore assertions.
  8238. * WebCoreSupport.subproj/WebBridge.m:
  8239. (-[WebBridge openNewWindowWithURL:]): Get the committed data
  8240. source, not the provisional one.
  8241. 2002-07-21 Chris Blumenberg <cblu@apple.com>
  8242. Used darin-inspired code factoring to fix 3000801 (alex doesn't accept drag of webloc file) in 3 places where we accept drags.
  8243. * Misc.subproj/WebNSViewExtras.h:
  8244. * Misc.subproj/WebNSViewExtras.m:
  8245. (-[NSView _web_parentWebView]): no changes
  8246. (-[NSView _web_acceptableDragTypes]): added
  8247. (-[NSView _web_bestURLForDraggingInfo:]): added
  8248. (-[NSView _web_dragOperationForDraggingInfo:]): added
  8249. * WebKit.pbproj/project.pbxproj: made WebNSViewExtras.h public
  8250. * WebView.subproj/WebView.m:
  8251. (-[WebView initWithFrame:]): calls _web_acceptableDragTypes
  8252. (-[WebView draggingEntered:]): calls _web_dragOperationForDraggingInfo
  8253. (-[WebView concludeDragOperation:]): calls _web_bestURLForDraggingInfo
  8254. 2002-07-21 Chris Blumenberg <cblu@apple.com>
  8255. - We were loading icons when page loads ended in error. Fixed.
  8256. - Special-case file URLs once instead of twice by moving NSWorkspace
  8257. call out of WebIconLoader
  8258. * Misc.subproj/WebIconLoader.m:
  8259. (-[WebIconLoader startLoading]): removed file URL special-case
  8260. * WebView.subproj/WebDataSourcePrivate.m:
  8261. (-[WebDataSource _loadIcon]): check for document error, send file
  8262. icon to client if none has been set with the LINK tag
  8263. 2002-07-21 Maciej Stachowiak <mjs@apple.com>
  8264. * Makefile.am: Remove products from symroots on `make clean'.
  8265. 2002-07-21 Maciej Stachowiak <mjs@apple.com>
  8266. * WebKit.pbproj/project.pbxproj: Set directories for the group
  8267. folders, so that creating new files in them will put them in the
  8268. right directory by default.
  8269. 2002-07-21 Maciej Stachowiak <mjs@apple.com>
  8270. More refactoring. Change bridge to get the data source via a
  8271. method instead of straight from the ivar, and in the method,
  8272. assert that the data source is not nil and is not
  8273. provisional. Turns out no one was using it while provisional,
  8274. which is great. This means we can eliminate the provisional
  8275. concept from the bridge interface as the next step.
  8276. * WebCoreSupport.subproj/WebBridge.h:
  8277. * WebCoreSupport.subproj/WebBridge.m:
  8278. (-[WebBridge dataSource]): New method to get data source - assert
  8279. it is not nil, and committed.
  8280. (-[WebBridge frame]): Get data source from method.
  8281. (-[WebBridge childFrames]): Likewise.
  8282. (-[WebBridge descendantFrameNamed:]): Likewise.
  8283. (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]): Likewise.
  8284. (-[WebBridge openNewWindowWithURL:]): Likewise.
  8285. (-[WebBridge areToolbarsVisible]): Likewise.
  8286. (-[WebBridge setToolbarsVisible:]): Likewise.
  8287. (-[WebBridge areScrollbarsVisible]): Likewise.
  8288. (-[WebBridge setScrollbarsVisible:]): Likewise.
  8289. (-[WebBridge isStatusBarVisible]): Likewise.
  8290. (-[WebBridge setStatusBarVisible:]): Likewise.
  8291. (-[WebBridge setWindowFrame:]): Likewise.
  8292. (-[WebBridge window]): Likewise.
  8293. (-[WebBridge setTitle:]): Likewise.
  8294. (-[WebBridge setStatusText:]): Likewise.
  8295. (-[WebBridge mainFrame]): Likewise.
  8296. (-[WebBridge frameNamed:]): Likewise.
  8297. (-[WebBridge receivedData:withDataSource:]): Likewise.
  8298. (-[WebBridge startLoadingResource:withURL:]): Likewise.
  8299. (-[WebBridge objectLoadedFromCache:size:]): Likewise.
  8300. (-[WebBridge setDataSource:]): Likewise.
  8301. (-[WebBridge openedByScript]): Likewise.
  8302. (-[WebBridge setOpenedByScript:]): Likewise.
  8303. (-[WebBridge setIconURL:]): Likewise.
  8304. (-[WebBridge setIconURL:withType:]): Likewise.
  8305. * WebView.subproj/WebDataSourcePrivate.h,
  8306. WebView.subproj/WebDataSourcePrivate.m:
  8307. (-[WebDataSource _isCommitted]): New private method to check if a
  8308. data source is committed, for the benefit of WebBridge assertions.
  8309. 2002-07-20 Darin Adler <darin@apple.com>
  8310. * WebKit.pbproj/project.pbxproj: Turn stricter warnings back on now that we
  8311. don't use C++ any more.
  8312. * Plugins.subproj/WebPluginView.m:
  8313. (-[WebPluginView sendActivateEvent:]): Fix cast that stricter warning didn't like.
  8314. (-[WebPluginView sendUpdateEvent]): Fix cast that stricter warning didn't like.
  8315. (-[WebPluginView frameStateChanged:]): Remove unneeded cast that stricter warning didn't like.
  8316. 2002-07-20 Darin Adler <darin@apple.com>
  8317. - fixed 2999643 -- Leak of NSSet in -[IFStandardPanels _didStartLoadingURL:inController:]
  8318. This is another case of the leak I fixed a month ago. I don't know how I managed to
  8319. overlook this other code path with the identical bug.
  8320. * Panels.subproj/WebStandardPanels.m:
  8321. (-[WebStandardPanels _didStopLoadingURL:inController:]): Fix a leak caused
  8322. by calling the wrong method. This was calling objectForKey: instead of
  8323. removeObjectForKey:.
  8324. 2002-07-20 Darin Adler <darin@apple.com>
  8325. * WebCoreSupport.subproj/WebBridge.m:
  8326. (-[WebBridge areToolbarsVisible]):
  8327. (-[WebBridge isStatusBarVisible]):
  8328. Fix misspelling of visible.
  8329. 2002-07-20 Maciej Stachowiak <mjs@apple.com>
  8330. Changed the code to handle "icon" and "SHORTCUT ICON" links
  8331. separately, and give higher priority to the former.
  8332. Also, we don't start loading the icon the moment khtml finds one
  8333. in the document any more, instead we wait until the document is
  8334. done loading, in case there are both "icon" and "SHORTCUT ICON"
  8335. link tags.
  8336. - fixed 3003672 - Assertion failure related to iconloader on metafilter
  8337. * WebCoreSupport.subproj/WebBridge.m:
  8338. (-[WebBridge setIconURL:]): Forward to the data source.
  8339. (-[WebBridge setIconURL:withType:]): Likewise.
  8340. * WebView.subproj/WebDataSourcePrivate.h:
  8341. * WebView.subproj/WebDataSourcePrivate.m:
  8342. (-[WebDataSourcePrivate dealloc]): Release iconURL.
  8343. (-[WebDataSource _setDefaultIconURLIfUnset]): Renamed from
  8344. _loadPageIconIfNecessary, and changed to only set iconURL rather
  8345. than actually loading.
  8346. (-[WebDataSource _setPrimaryLoadComplete:]): Call _loadIcon
  8347. instead of _loadPageIconIfNecessary, since we defer all loads to
  8348. this point.
  8349. (-[WebDataSource _loadIcon]): Load current iconURL if set.
  8350. (-[WebDataSource _setIconURL:]): Set iconURL if not set already
  8351. (since typed icons are higher priority).
  8352. (-[WebDataSource _setIconURL:withType:]): Set the iconURL.
  8353. 2002-07-20 Darin Adler <darin@apple.com>
  8354. - fixed 2999616 -- Possible leak in +[IFPluginDatabase installedPlugins]
  8355. * Plugins.subproj/WebPluginDatabase.m:
  8356. (+[WebPluginDatabase installedPlugins]): Move the code into an init function.
  8357. (pluginLocations): Simplified.
  8358. (-[WebPluginDatabase init]): Added. Cleaned up a bit, and made it release the
  8359. WebPlugin objects -- this was the leak.
  8360. (-[WebPluginDatabase dealloc]): Added.
  8361. * Plugins.subproj/WebPluginDatabase.h: Tweaked formatting.
  8362. * Plugins.subproj/WebPluginStream.h:
  8363. * Plugins.subproj/WebPluginStream.m:
  8364. (-[WebPluginStream startLoad]):
  8365. (-[WebPluginStream stop]):
  8366. * WebCoreSupport.subproj/WebSubresourceClient.m:
  8367. (+[WebSubresourceClient startLoadingResource:withURL:dataSource:]):
  8368. (-[WebSubresourceClient WebResourceHandleDidCancelLoading:]):
  8369. (-[WebSubresourceClient WebResourceHandleDidFinishLoading:data:]):
  8370. (-[WebSubresourceClient WebResourceHandle:didFailLoadingWithResult:]):
  8371. * WebView.subproj/WebDataSource.m:
  8372. (-[WebDataSource stopLoading]):
  8373. * WebView.subproj/WebDataSourcePrivate.h:
  8374. * WebView.subproj/WebDataSourcePrivate.m:
  8375. (-[WebDataSourcePrivate dealloc]):
  8376. (-[WebDataSource _setPrimaryLoadComplete:]):
  8377. (-[WebDataSource _startLoading:]):
  8378. (-[WebDataSource _addResourceHandle:]):
  8379. (-[WebDataSource _removeResourceHandle:]):
  8380. Changed code that called it a URLHandle to say resourceHandle.
  8381. * WebView.subproj/WebFrame.m: (-[WebFrame dealloc]): Add an autorelease pool here since
  8382. this is called from a timer and AppKit does not use an explicit autorelease pool
  8383. in that case. This makes the "world leak check" work better, and is mildly helpful
  8384. in other cases too. Radar 3003650 is a request for the AppKit team to fix this, but
  8385. this workaround will do for now.
  8386. 2002-07-19 Darin Adler <darin@apple.com>
  8387. - fixed 3001951 -- Massive memory leak after running base or static PLT
  8388. * WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _makeRepresentation]):
  8389. Add a missing release.
  8390. Reduced our use of autorelease. This allows the page load test to detect leaks of the
  8391. world much more easily. We may later find we need to use the "retain autorelease" idiom
  8392. in a few more places, but I did a lot of testing and that did not show up.
  8393. * Bookmarks.subproj/WebBookmarkGroup.m:
  8394. (-[WebBookmarkGroup _setTopBookmark:]): Use a plain release.
  8395. (-[WebBookmarkGroup _loadBookmarkGroupGuts]): Use a plain release.
  8396. * Bookmarks.subproj/WebBookmarkList.m:
  8397. (-[WebBookmarkList copyWithZone:]): Use a plain release.
  8398. * Misc.subproj/WebIconLoader.m:
  8399. (-[WebIconLoader WebResourceHandleDidFinishLoading:data:]): Use a plain release.
  8400. * Plugins.subproj/WebPluginView.m:
  8401. (-[WebPluginView loadURL:inTarget:withNotifyData:andHandleAttributes:]): Use a plain release.
  8402. * WebView.subproj/WebController.m:
  8403. (-[WebController createFrameNamed:for:inParent:allowsScrolling:]): Use a plain release.
  8404. (-[WebController setWindowContext:]): Use a plain release.
  8405. (-[WebController setResourceProgressHandler:]): Use a plain release.
  8406. (-[WebController setDownloadProgressHandler:]): Use a plain release.
  8407. (-[WebController setPolicyHandler:]): Use a plain release.
  8408. * WebView.subproj/WebControllerPrivate.m:
  8409. (-[WebControllerPrivate dealloc]): Use plain release.
  8410. * WebView.subproj/WebDataSourcePrivate.m:
  8411. (-[WebDataSourcePrivate dealloc]): Use plain release.
  8412. (-[WebDataSource _setPrimaryLoadComplete:]): Use plain release.
  8413. (-[WebDataSource _setTitle:]): Use plain release.
  8414. * WebView.subproj/WebFrame.m:
  8415. (-[WebFrame initWithName:webView:provisionalDataSource:controller:]): Use plain release.
  8416. (-[WebFrame reset]): Invalidate and release the timer.
  8417. * WebView.subproj/WebFramePrivate.h: Keep a reference to the timer.
  8418. * WebView.subproj/WebFramePrivate.m:
  8419. (-[WebFramePrivate dealloc]): Invalidate and release the timer. Use plain release.
  8420. (-[WebFramePrivate setName:]): Use plain release.
  8421. (-[WebFramePrivate setWebView:]): Use plain release.
  8422. (-[WebFramePrivate setDataSource:]): Use plain release.
  8423. (-[WebFramePrivate setProvisionalDataSource:]): Use plain release.
  8424. (-[WebFrame _scheduleLayout:]): Keep a reference to the timer.
  8425. (-[WebFrame _timedLayout:]): Release and nil the timer.
  8426. * WebView.subproj/WebRenderNode.m:
  8427. (-[WebRenderNode initWithName:rect:view:children:]): Use plain release.
  8428. * WebView.subproj/WebView.m:
  8429. (-[WebView concludeDragOperation:]): Use plain release.
  8430. * WebView.subproj/WebViewPrivate.m:
  8431. (-[WebView _makeDocumentViewForDataSource:]): Use plain release.
  8432. Other changes to make the new page load test feature work.
  8433. * Misc.subproj/WebKitStatistics.h:
  8434. * Misc.subproj/WebKitStatistics.m:
  8435. (+[WebKitStatistics HTMLRepresentationCount]):
  8436. Added a stat for WebHTMLRepresentation objects.
  8437. * WebView.subproj/WebHTMLRepresentation.m:
  8438. (-[WebHTMLRepresentation init]): Bump the count.
  8439. (-[WebHTMLRepresentation dealloc]): Decrement the count.
  8440. Renaming.
  8441. * Misc.subproj/WebCoreStatistics.h:
  8442. * Misc.subproj/WebKitStatisticsPrivate.h:
  8443. * Misc.subproj/WebCoreStatistics.m:
  8444. (+[WebCoreStatistics emptyCache]):
  8445. (+[WebCoreStatistics setCacheDisabled:]):
  8446. Renamed to include the word cache now that the class does not.
  8447. * Plugins.subproj/WebPluginStream.m:
  8448. * WebCoreSupport.subproj/WebSubresourceClient.m:
  8449. * WebView.subproj/WebMainResourceClient.m:
  8450. Updated for the WebFoundation renaming.
  8451. 2002-07-19 Chris Blumenberg <cblu@apple.com>
  8452. * WebView.subproj/WebDataSourcePrivate.m:
  8453. (-[WebDataSource _loadPageIconIfNecessary]): use the correct relative string to request favicon.ico
  8454. 2002-07-19 Chris Blumenberg <cblu@apple.com>
  8455. * History.subproj/WebHistoryItem.m:
  8456. (-[WebHistoryItem image]): call [WebIconLoader defaultIcon]
  8457. * Misc.subproj/WebIconLoader.m:
  8458. (+[WebIconLoader defaultIcon]): move bundle image loading code from [WebHistoryItem image] to here.
  8459. 2002-07-19 Chris Blumenberg <cblu@apple.com>
  8460. Added support favicons.
  8461. * Misc.subproj/WebIconLoader.h: Added.
  8462. * Misc.subproj/WebIconLoader.m: Added.
  8463. (-[WebIconLoaderPrivate dealloc]):
  8464. (+[WebIconLoader defaultIcon]):
  8465. (-[WebIconLoader initWithURL:]):
  8466. (-[WebIconLoader dealloc]):
  8467. (-[WebIconLoader setDelegate:]):
  8468. (-[WebIconLoader startLoading]):
  8469. (-[WebIconLoader startLoadingOnlyFromCache]):
  8470. (-[WebIconLoader stopLoading]):
  8471. (-[WebIconLoader WebResourceHandleDidBeginLoading:]):
  8472. (-[WebIconLoader WebResourceHandleDidCancelLoading:]):
  8473. (-[WebIconLoader WebResourceHandleDidFinishLoading:data:]):
  8474. (-[WebIconLoader WebResourceHandle:resourceDataDidBecomeAvailable:]):
  8475. (-[WebIconLoader WebResourceHandle:resourceDidFailLoadingWithResult:]):
  8476. (-[WebIconLoader WebResourceHandle:didRedirectToURL:]):
  8477. * WebCoreSupport.subproj/WebBridge.m:
  8478. (-[WebBridge loadIcon:]): added
  8479. * WebKit.pbproj/project.pbxproj:
  8480. * WebView.subproj/WebControllerPrivate.m:
  8481. (-[WebController _mainReceivedError:forResourceHandle:partialProgress:fromDataSource:]):
  8482. * WebView.subproj/WebDataSourcePrivate.h:
  8483. * WebView.subproj/WebDataSourcePrivate.m:
  8484. (-[WebDataSourcePrivate dealloc]):
  8485. (-[WebDataSource _loadPageIconIfNecessary]): added
  8486. (-[WebDataSource _setPrimaryLoadComplete:]): start loading icon
  8487. (-[WebDataSource _stopLoading]): stop icon loader
  8488. (-[WebDataSource receivedPageIcon:]): added
  8489. (-[WebDataSource _loadIcon:]): added
  8490. * WebView.subproj/WebLocationChangeHandler.h:
  8491. 2002-07-19 Darin Adler <darin@apple.com>
  8492. * WebKit.pbproj/project.pbxproj: Forgot to export WebKitStatistics.h so it can
  8493. be used by WebBrowser.
  8494. 2002-07-19 Darin Adler <darin@apple.com>
  8495. Added some stats that we can use to sniff out "leak the world" problems.
  8496. * Misc.subproj/WebKitStatistics.h: Added.
  8497. * Misc.subproj/WebKitStatistics.m: Added.
  8498. * Misc.subproj/WebKitStatisticsPrivate.h: Added.
  8499. * WebKit.pbproj/project.pbxproj: Added new files.
  8500. * WebCoreSupport.subproj/WebBridge.m:
  8501. (-[WebBridge init]): Bump count.
  8502. (-[WebBridge dealloc]): Decrement count.
  8503. * WebView.subproj/WebController.m:
  8504. (-[WebController initWithView:provisionalDataSource:]): Bump count.
  8505. (-[WebController dealloc]): Decrement count.
  8506. * WebView.subproj/WebDataSource.m:
  8507. (-[WebDataSource initWithURL:attributes:flags:): Bump count.
  8508. (-[WebDataSource dealloc]): Decrement count.
  8509. * WebView.subproj/WebFrame.m:
  8510. (-[WebFrame initWithName:webView:provisionalDataSource:controller:]): Bump count.
  8511. (-[WebFrame dealloc]): Decrement count.
  8512. * WebView.subproj/WebView.m:
  8513. (-[WebView initWithFrame:]): Bump count.
  8514. (-[WebView dealloc]): Decrement count.
  8515. 2002-07-19 Maciej Stachowiak <mjs@apple.com>
  8516. More refactoring: Use assertions to make sure a provisional data
  8517. source's bridge is never used - and then fix the places where it
  8518. would have been used. :-)
  8519. * WebView.subproj/WebDataSource.m:
  8520. (-[WebDataSource documentTextFromDOM]): Return nil if the document
  8521. is not committed.
  8522. * WebView.subproj/WebDataSourcePrivate.m:
  8523. (-[WebDataSource _stopLoading]): Don't tell the bridge to stop
  8524. if we're provisional, because we won't have one.
  8525. (-[WebDataSource _setFinalURL:]): Don't try to set the bridge URL
  8526. if we are not committed - it will get set at commit time.
  8527. (-[WebDataSource _removeFromFrame]): Assert that the data soource is
  8528. committed - a provisional data source should never be removed from a frame
  8529. because it should never be in a frame in the first place.
  8530. (-[WebDataSource _bridge]): Assert that the view is committed.
  8531. (-[WebDataSource _commitIfReady]): Do nothing if already committed.
  8532. (-[WebDataSource _receivedData:]): Notice that first byte was read,
  8533. if appropriate, and commit when ready.
  8534. * WebView.subproj/WebMainResourceClient.m:
  8535. (-[WebMainResourceClient WebResourceHandle:didRedirectToURL:]):
  8536. Simplify code by using [WebDataSource _receivedData:]
  8537. 2002-07-19 Maciej Stachowiak <mjs@apple.com>
  8538. Fix a regression caused by a previous commit that broke frames.
  8539. * WebCoreSupport.subproj/WebBridge.m:
  8540. (-[WebBridge receivedData:withDataSource:]): Instead setting the data source
  8541. implicitly here, and doing other special first-time init, simply assert that
  8542. we have a data source.
  8543. (-[WebBridge setDataSource:]): Do the extra work when setting the data
  8544. source here instead.
  8545. * WebView.subproj/WebDataSourcePrivate.m:
  8546. (-[WebDataSource _commitIfReady]): After making the
  8547. representation, set the data source, because we no longer pass the
  8548. first data chunk _before_ transitioning to committed, instead we
  8549. do it right after, so the logic in WebBridge to do it implicitly
  8550. was not going to cut it.
  8551. 2002-07-18 Maciej Stachowiak <mjs@apple.com>
  8552. More refactoring: Simplify a bit more by moving more logic into
  8553. the data source.
  8554. * WebView.subproj/WebDataSourcePrivate.h, WebView.subproj/WebDataSourcePrivate.m:
  8555. (-[WebDataSource _gotFirstByte]): Removed.
  8556. (-[WebDataSource _setGotFirstByte]): Removed.
  8557. (-[WebDataSource _isReadyForData]): Removed.
  8558. (-[WebDataSource _receivedData:]): Commit if appropriate, and pass data to
  8559. representation and documentView.
  8560. * WebView.subproj/WebMainResourceClient.m:
  8561. (-[WebMainResourceClient
  8562. WebResourceHandle:resourceDataDidBecomeAvailable:]): Change the
  8563. check back to policy != None, because the first chunk will trigger
  8564. a commit in the policy == Show case, so there is no need to worry
  8565. about it.
  8566. 2002-07-18 Maciej Stachowiak <mjs@apple.com>
  8567. Rename some methods for clarity. These two methods are defined by
  8568. the end state, not the start state (in fact,
  8569. transitionToLayoutAcceptable does most of it's work when it starts
  8570. in the cimmitted state, not provisional).
  8571. * WebView.subproj/WebFramePrivate.h, WebView.subproj/WebFramePrivate.m:
  8572. (-[WebFrame _transitionToLayoutAcceptable]): Renamed from
  8573. _transitionProvisionalToLayoutAcceptable.
  8574. (-[WebFrame _transitionToCommitted]): Renamed from
  8575. _transitionProvisionalToLayoutAcceptable.
  8576. And adjust all the calls to them:
  8577. * WebView.subproj/WebControllerPrivate.m:
  8578. (-[WebController _receivedProgress:forResourceHandle:fromDataSource:complete:]):
  8579. (-[WebController _mainReceivedProgress:forResourceHandle:fromDataSource:complete:]):
  8580. * WebView.subproj/WebDataSourcePrivate.m:
  8581. (-[WebDataSource _commitIfReady]):
  8582. 2002-07-18 Maciej Stachowiak <mjs@apple.com>
  8583. Even more exciting refactoring. Change the rules for committing
  8584. the data source and creating the representation so that both
  8585. happen when the first byte has been received _and_ the content
  8586. policy has been set to show. Previously these actions happened at
  8587. different times. Now we maintain the invariant that the data
  8588. source has a representation if and only if it is committed.
  8589. * WebView.subproj/WebController.m:
  8590. (-[WebController haveContentPolicy:andPath:forDataSource:]): Simplify
  8591. further by putting more of the work in WebDataSource.
  8592. * WebView.subproj/WebControllerPrivate.m:
  8593. (-[WebController _mainReceivedProgress:forResourceHandle:fromDataSource:complete:]):
  8594. * WebView.subproj/WebDataSource.h, WebView.subproj/WebDataSource.m: Move
  8595. makeRepresentation method to private file.
  8596. * WebView.subproj/WebDataSourcePrivate.h:
  8597. * WebView.subproj/WebDataSourcePrivate.m:
  8598. (-[WebDataSource _setContentPolicy:]): If the policy is set to show,
  8599. commit if we have already gotten the first byte.
  8600. (-[WebDataSource _commitIfReady]): Create representation and
  8601. commit if we have the first byte and have a policy of show.
  8602. (-[WebDataSource _gotFirstByte]): Method to check if this data source
  8603. has gotten the first byte yet. Commit here if ready.
  8604. (-[WebDataSource _setGotFirstByte]): Method to report that some
  8605. data has been received.
  8606. (-[WebDataSource _makeRepresentation]): Make and set up teh document view too.
  8607. (-[WebDataSource _isReadyForData]): Return TRUE if policy is set (and if the policy
  8608. is Show, if we have also received the first byte.
  8609. * WebView.subproj/WebFramePrivate.m:
  8610. (-[WebFrame _transitionProvisionalToCommitted]): Don't call the datasource (it now
  8611. calls us)
  8612. * WebView.subproj/WebMainResourceClient.m:
  8613. (-[WebMainResourceClient WebResourceHandle:resourceDataDidBecomeAvailable:]):
  8614. * WebView.subproj/WebView.h, WebView.subproj/WebView.m: move
  8615. makeDocumentViewForDataSource...
  8616. * WebView.subproj/WebViewPrivate.h, WebView.subproj/WebViewPrivate.m:
  8617. (-[WebView _makeDocumentViewForDataSource:]): To here.
  8618. 2002-07-18 Maciej Stachowiak <mjs@apple.com>
  8619. Avoid throwing an exception while stopping animations. Image
  8620. renders were getting into the array multiple times, which means
  8621. the code that iterated over the array backwards could throw an
  8622. exception, because callling removeObject: on the array would remove
  8623. all instances of the object.
  8624. This probably fixes the following crashers, and a bunch of huge leaks:
  8625. Radar 2999853 - Uninitialized memory access in plugins on theonion.com
  8626. Radar 2999892 - Crash disconnecting view from next view chain on theonion.com
  8627. Radar 2999911 - Infinite loop in [WebHTMLView dealloc], resulting in crash
  8628. * WebCoreSupport.subproj/WebImageRenderer.m:
  8629. (-[WebImageRenderer scheduleFrame]): Move adding to array of image
  8630. renderers from here...
  8631. (-[WebImageRenderer beginAnimationInRect:fromRect:]): To here.
  8632. === Alexander-13 ===
  8633. 2002-07-18 Maciej Stachowiak <mjs@apple.com>
  8634. Yet still more refactoring in preparation for the KHTMLPart
  8635. change. This is preparing things to change the commit rule to
  8636. require receiving at least one byte of data, and having the
  8637. content policy set to Show.
  8638. * WebView.subproj/WebController.m:
  8639. (-[WebController haveContentPolicy:andPath:forDataSource:]): Remove
  8640. more code since makeRepresentation now does most of the work.
  8641. * WebView.subproj/WebDataSource.m:
  8642. (-[WebDataSource makeRepresentation]): Tell the WebView (if any) to create
  8643. the documentView now too.
  8644. * WebView.subproj/WebView.h:
  8645. * WebView.subproj/WebView.m:
  8646. (-[WebView makeDocumentViewForDataSource:]): Hook document view up to data
  8647. source.
  8648. 2002-07-18 Maciej Stachowiak <mjs@apple.com>
  8649. Some refactoring in preparation for the KHTMLPart change.
  8650. * WebView.subproj/WebDataSourcePrivate.h,
  8651. WebView.subproj/WebDataSourcePrivate.m:
  8652. (-[WebDataSource _stopLoading]): Bail early if not loading.
  8653. (-[WebDataSource _commit]): Method to mark when the data source is
  8654. committed (it now knows whether it's committed or
  8655. provisional). This will be useful for adding assertions later on
  8656. about what operations may happen only when committed, and which
  8657. can only happen when provisional.
  8658. * WebView.subproj/WebFramePrivate.m:
  8659. (-[WebFrame _transitionProvisionalToCommitted]): Call data
  8660. source's _commit method.
  8661. 2002-07-17 Richard Williamson <rjw@apple.com>
  8662. * WebView.subproj/WebHTMLView.m:
  8663. Removed unnecessary (and incorrect) lockFocus.
  8664. 2002-07-17 Maciej Stachowiak <mjs@apple.com>
  8665. Some refactoring in preparation for the KHTMLPart change.
  8666. * WebView.subproj/WebController.m:
  8667. (-[WebController haveContentPolicy:andPath:forDataSource:]): Move
  8668. more of the work of creating and setting the representation and
  8669. document view into WebDataSource and WebView.
  8670. * WebView.subproj/WebDataSource.h,
  8671. WebView.subproj/WebDataSource.m:
  8672. (+[(id <WebDocumentRepresentation>) createRepresentationForMIMEType:]): Removed.
  8673. (-[WebDataSource makeRepresentation]): A method to build the right
  8674. kind of representation for the content type.
  8675. * WebView.subproj/WebDataSourcePrivate.h:
  8676. * WebView.subproj/WebDataSourcePrivate.m:
  8677. (-[WebDataSource _representationClass]): Method to get the right
  8678. representation class for the current content type.
  8679. (-[WebDataSource _bridge]): Move here from WebBridge.[mh], so we
  8680. can later add an assertion that the data source is not provisional.
  8681. * WebView.subproj/WebHTMLViewPrivate.m: #import WebDataSourcePrivate.h
  8682. * WebView.subproj/WebView.h, WebView.subproj/WebView.m:
  8683. (+[(id <WebDocumentRepresentation>) createDocumentViewForMIMEType:]): Removed.
  8684. (-[WebView makeDocumentViewForMIMEType:]): Method to build the
  8685. right kind of document view for the specified MIME type.
  8686. 2002-07-16 Darin Adler <darin@apple.com>
  8687. * History.subproj/WebBackForwardList.m: Replace MyCompanyName with Apple Computer.
  8688. (-[WebBackForwardList init]): Fix strange [super init] logic to be standard.
  8689. * History.subproj/WebHistoryItem.h: Replace MyCompanyName with Apple Computer.
  8690. * Misc.subproj/WebDownloadHandler.h: Replace MyCompanyName with Apple Computer.
  8691. 2002-07-16 Darin Adler <darin@apple.com>
  8692. - fixed 2997891 -- Alexander confused about base page URL for relative links
  8693. * WebCoreSupport.subproj/WebSubresourceClient.m:
  8694. (-[WebSubresourceClient WebResourceHandle:didRedirectToURL:]):
  8695. Don't tell the bridge the URL changed. The bridge doesn't care about redirects
  8696. for subresources (and if it did, we'd need some way to tell it that this was
  8697. a subresource redirect).
  8698. * WebCoreSupport.subproj/WebBridge.m: Formatting tweaks.
  8699. * WebCoreSupport.subproj/WebImageRenderer.m: Formatting tweaks.
  8700. * WebView.subproj/WebView.m: Formatting tweaks.
  8701. 2002-07-16 Richard Williamson <rjw@apple.com>
  8702. Really, stop animation if last frame has zero duration, like IE.
  8703. Was checking adjustedFrameDuration, which is never zero.
  8704. * WebCoreSupport.subproj/WebImageRenderer.m:
  8705. (-[WebImageRenderer unadjustedFrameDuration]):
  8706. (-[WebImageRenderer frameDuration]):
  8707. (-[WebImageRenderer nextFrame:]):
  8708. 2002-07-16 Maciej Stachowiak <mjs@apple.com>
  8709. WebKit part of fix for:
  8710. Radar 2982043 - Link mouse-over status should change in response to modifier keys
  8711. * WebCoreSupport.subproj/WebBridge.m:
  8712. (-[WebBridge modifierTrackingEnabled]): Implemented by checking
  8713. bit on WebHTMLView class.
  8714. * WebKit.pbproj/project.pbxproj: Install WebHTMLViewPrivate as a
  8715. Private header.
  8716. * WebView.subproj/WebHTMLViewPrivate.h: Prototype new modifier tracking SPI.
  8717. * WebView.subproj/WebHTMLViewPrivate.m:
  8718. (+[WebHTMLView _setModifierTrackingEnabled:]): Method to inform
  8719. WebHTMLView that modifier tracking is working.
  8720. (+[WebHTMLView _modifierTrackingEnabled]): Obligatory getter.
  8721. (+[WebHTMLView _postFlagsChangedEvent:]): Method to report
  8722. flagsChanged events. Creates corresponding fake mouseMoved event
  8723. and sends it as a notification.
  8724. 2002-07-16 Darin Adler <darin@apple.com>
  8725. * WebCoreSupport.subproj/WebBridge.m:
  8726. Remove childFrameNamed since it's not needed, and every one of these bridge
  8727. methods adds potential confusion.
  8728. (-[WebBridge descendantFrameNamed:]): Make this look for descendants in the
  8729. provisional data sources first. This is the same change Richard made to
  8730. childFrameNamed, but it turns out that this is the method that's really used.
  8731. 2002-07-16 Darin Adler <darin@apple.com>
  8732. * almost every file: Renamed IF* -> Web*.
  8733. 2002-07-15 Richard Williamson <rjw@apple.com>
  8734. Removed dependence on window resize notification. We now
  8735. use the IFWebView setFrame: method to trigger layouts. Much
  8736. cleaner.
  8737. Cleaned up image animation timer scheduler.
  8738. Stop animation if last frame has zero duration, like IE.
  8739. Change minimum duration to 1/30th (used if zero frame duration is
  8740. specified). This is closer to what I see in IE empirically.
  8741. * WebCoreSupport.subproj/IFImageRenderer.h:
  8742. * WebCoreSupport.subproj/IFImageRenderer.m:
  8743. (-[IFImageRenderer frameDuration]):
  8744. (-[IFImageRenderer _scheduleFrame]):
  8745. (-[IFImageRenderer nextFrame:]):
  8746. (-[IFImageRenderer beginAnimationInRect:fromRect:]):
  8747. * WebView.subproj/IFHTMLView.mm:
  8748. (-[IFHTMLView initWithFrame:]):
  8749. (-[IFHTMLView removeNotifications]):
  8750. * WebView.subproj/IFWebView.mm:
  8751. (-[IFWebView setFrame:]):
  8752. (-[IFWebView viewWillStartLiveResize]):
  8753. (-[IFWebView viewDidEndLiveResize]):
  8754. 2002-07-15 Maciej Stachowiak <mjs@apple.com>
  8755. Fixed Radar 2957209 - Change "JavaScript can open new windows
  8756. automatically" preference to off by default
  8757. * WebView.subproj/IFPreferences.mm:
  8758. (+[IFPreferences load]): Switch default for "Allow JavaScript to
  8759. open new windows automatically" to FALSE.
  8760. 2002-07-15 Darin Adler <darin@apple.com>
  8761. More weaning from C++.
  8762. * Plugins.subproj/IFPluginView.mm:
  8763. (-[IFPluginView initWithFrame:plugin:url:baseURL:mime:arguments:]): Use malloc instead of new.
  8764. (-[IFPluginView dealloc]): Use free instead of delete.
  8765. 2002-07-15 Darin Adler <darin@apple.com>
  8766. Fixes so we are ready to compile as Objective C, not C++.
  8767. The C++ front end misses a lot of things the C front end catches.
  8768. * Plugins.subproj/IFNullPluginView.mm:
  8769. (-[IFNullPluginView drawRect:]): Add missing cast.
  8770. * Plugins.subproj/IFPluginStream.mm:
  8771. (-[IFPluginStream IFURLHandle:resourceDidFailLoadingWithResult:]): Use
  8772. [IFLoadProgress initWithURLHandle:] instead of getting at private fields.
  8773. * Plugins.subproj/IFPluginView.mm:
  8774. (-[IFPluginView setUpWindowAndPort]): Remove unused windowFrame.
  8775. (-[IFPluginView start]): Don't use a variable within a for statement.
  8776. Add missing cast.
  8777. * WebView.subproj/IFMainURLHandleClient.mm:
  8778. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  8779. Use [IFWebFrame _setProvisionalDataSource:] so we don't have to get at the
  8780. protected field _private.
  8781. * WebView.subproj/IFWebControllerPrivate.mm:
  8782. (-[IFWebController _mainReceivedProgress:forResourceHandle:fromDataSource:complete:]):
  8783. Use [IFProgress bytesSoFar] so we don't have to get at the protected field bytesSoFar.
  8784. * WebView.subproj/IFWebFramePrivate.mm:
  8785. (-[IFWebFrame _isLoadComplete]): Add missing cast.
  8786. (-[IFWebFrame _setProvisionalDataSource:]): Added.
  8787. * WebView.subproj/IFHTMLRepresentation.mm:
  8788. * WebView.subproj/IFHTMLViewPrivate.h:
  8789. * WebView.subproj/IFWebControllerPrivate.h:
  8790. * WebView.subproj/IFWebDataSourcePrivate.h:
  8791. * WebView.subproj/IFWebFramePrivate.h:
  8792. * WebView.subproj/IFWebViewPrivate.h:
  8793. Make data in private class @public, since the main class needs to get at it
  8794. directly.
  8795. 2002-07-15 Richard Williamson <rjw@apple.com>
  8796. Only adjustFrames in parent if parent is a frame set.
  8797. (Anywhere from 2% to 6% gain, depending on what you believe.)
  8798. * WebView.subproj/IFWebFramePrivate.mm:
  8799. (-[IFWebFrame _isLoadComplete]):
  8800. * WebView.subproj/IFPreferences.mm:
  8801. (+[IFPreferences load]):
  8802. Increment initial layout from 1.5 seconds to 1.85 seconds.
  8803. 2002-07-15 Darin Adler <darin@apple.com>
  8804. * WebView.subproj/IFMainURLHandleClient.mm:
  8805. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  8806. Tweak a comment that included the word WebController, to smooth things over a
  8807. tiny bit for the coming renaming.
  8808. 2002-07-15 Darin Adler <darin@apple.com>
  8809. * WebCoreSupport.subproj/IFTextRenderer.m:
  8810. (-[IFTextRenderer widthForCharacters:length:]): Remove implementation of some unused
  8811. methods, including at least one that was never used.
  8812. 2002-07-15 Maciej Stachowiak <mjs@apple.com>
  8813. WebKit part of fix for Radar 2896356 - cookie "ask for each site" not implemented yet
  8814. * Panels.subproj/IFPanelCookieAcceptHandler.h: Added.
  8815. * Panels.subproj/IFPanelCookieAcceptHandler.m: Added.
  8816. (-[IFPanelCookieAcceptHandler init]):
  8817. (-[IFPanelCookieAcceptHandler dealloc]):
  8818. (-[IFPanelCookieAcceptHandler readyToStartCookieAcceptCheck:]):
  8819. (-[IFPanelCookieAcceptHandler startCookieAcceptCheck:]):
  8820. (-[IFPanelCookieAcceptHandler cancelCookieAcceptCheck:]):
  8821. (-[IFPanelCookieAcceptHandler doneWithCheck:returnCode:contextInfo:]):
  8822. * Panels.subproj/IFStandardPanels.m:
  8823. (-[IFStandardPanels setUseStandardCookieAcceptPanel:]):
  8824. (-[IFStandardPanels useStandardCookieAcceptPanel]):
  8825. * WebKit.pbproj/project.pbxproj:
  8826. 2002-07-14 Maciej Stachowiak <mjs@apple.com>
  8827. More workarounds for the Objective C++ typecasting bug.
  8828. * WebView.subproj/IFDOMNode.mm:
  8829. (-[IFDOMNode initWithWebView:]):
  8830. * WebView.subproj/IFHTMLViewPrivate.mm:
  8831. (-[NSView _IF_stopIfPluginView]):
  8832. * WebView.subproj/IFRenderNode.mm:
  8833. (-[IFRenderNode initWithWebView:]):
  8834. * WebView.subproj/IFWebFrame.mm:
  8835. (-[IFWebFrame reset]):
  8836. 2002-07-14 Darin Adler <darin@apple.com>
  8837. Wean WebKit completely from getting at the C++ parts of WebCore.
  8838. We probably don't need to use C++ at all for WebKit any more.
  8839. * WebKit.pbproj/project.pbxproj: Remove all the header search paths; we don't need any
  8840. special ones now.
  8841. * WebKitPrefix.h: Remove <config.h>; we don't need it any more.
  8842. * Misc.subproj/IFCache.h: Rename getStatistics to statistics.
  8843. * Misc.subproj/IFCache.mm:
  8844. (+[IFCache statistics]):
  8845. (+[IFCache empty]):
  8846. (+[IFCache setDisabled:]):
  8847. Call through WebCoreCache instead of going directly to khtml::Cache.
  8848. (+[IFCache javaScriptObjectsCount]):
  8849. (+[IFCache javaScriptInterpretersCount]):
  8850. (+[IFCache javaScriptNoGCAllowedObjectsCount]):
  8851. (+[IFCache javaScriptReferencedObjectsCount]):
  8852. (+[IFCache garbageCollectJavaScriptObjects]):
  8853. Call through WebCoreJavaScript instead of going directly to kjs::Collector.
  8854. * WebCoreSupport.subproj/IFWebCoreFrame.m:
  8855. (-[IFWebCoreFrame bridge]): Change to return bridge from the provisional data
  8856. source if it exists.
  8857. (-[IFWebCoreFrame committedBridge]): Do what [bridge] used to do, always returning
  8858. the bridge from the committed data source and never the provisional one.
  8859. * WebView.subproj/IFHTMLView.mm:
  8860. (-[IFHTMLView provisionalDataSourceChanged:]): Don't store the provisional widget.
  8861. It's stored in the bridge for the provisional data source.
  8862. (-[IFHTMLView provisionalDataSourceCommitted:]): Use the bridge method installInFrame:
  8863. to do most of the work that used to be here. The rest is don in removeFromFrame which
  8864. is called elsewhere.
  8865. (-[IFHTMLView mouseUp:]): Use the bridge's mouseUp method.
  8866. (-[IFHTMLView mouseDown:]): Use the bridge's mouseDown method.
  8867. (-[IFHTMLView mouseMovedNotification:]): Use the bridge's mouseMoved method.
  8868. (-[IFHTMLView mouseDragged:]): Use the bridge's mouseDragged method.
  8869. * WebView.subproj/IFHTMLViewPrivate.h: Remove the widget, widgetOwned, and
  8870. provisionalWidget instance variables, and the _widget and _provisionalWidget methods.
  8871. * WebView.subproj/IFHTMLViewPrivate.mm:
  8872. (-[IFHTMLView _reset]): Remove the code that deleted the widget and the provisional widget.
  8873. This is now handled elsewhere.
  8874. * WebView.subproj/IFDOMNode.mm: Redo to use the copyDOMTree feature of the bridge.
  8875. * WebView.subproj/IFRenderNode.mm: Redo to use the copyRenderTree feature of the bridge.
  8876. * WebView.subproj/IFRenderNode.h: Use an NSRect instead of four integers
  8877. (the switch to floating point is OK).
  8878. * WebView.subproj/IFWebDataSourcePrivate.h: Add private _removeFromFrame method.
  8879. * WebView.subproj/IFWebDataSourcePrivate.mm:
  8880. (-[IFWebDataSource _removeFromFrame]): Set the controller and location change handler
  8881. references to nil, and also call [WebCoreBridge removeFromFrame].
  8882. * WebView.subproj/IFWebFramePrivate.mm:
  8883. (-[IFWebFramePrivate setDataSource:]): Use _removeFromFrame where we formerly would
  8884. set the controller and location change handler references to nil.
  8885. * WebCoreSupport.subproj/IFWebCoreBridge.h: Tweak.
  8886. 2002-07-13 Darin Adler <darin@apple.com>
  8887. * Plugins.subproj/IFNullPluginView.mm: (-[IFNullPluginView dealloc]):
  8888. * WebView.subproj/IFImageRepresentation.m: (-[IFImageRepresentation dealloc]):
  8889. Fix leaks by adding calls to [super dealloc].
  8890. 2002-07-13 Darin Adler <darin@apple.com>
  8891. * Misc.subproj/IFNSEventExtras.h: Removed.
  8892. * Misc.subproj/IFNSEventExtras.m: Removed.
  8893. * WebKit.pbproj/project.pbxproj: Removed IFNSEventExtras.*.
  8894. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  8895. * WebView.subproj/IFWebFrame.mm:
  8896. * WebView.subproj/IFWebFramePrivate.h:
  8897. * WebView.subproj/IFWebFramePrivate.mm:
  8898. Renamed all bridgeFrame to frameBridge for greater clarity.
  8899. * WebView.subproj/IFHTMLView.mm: Updated comments and commented-out code.
  8900. * WebView.subproj/IFWebDataSource.h: Fix comment that mentioned IFDefaultWebController.
  8901. * WebView.subproj/IFWebFramePrivate.mm:
  8902. (-[IFWebFrame _transitionProvisionalToCommitted]): Fix exception string that cited
  8903. the wrong state name.
  8904. 2002-07-13 Darin Adler <darin@apple.com>
  8905. * History.subproj/IFURIEntry.m: (-[IFURIEntry image]):
  8906. Use [IFURIEntry class] instead of [self class] so we get the
  8907. icon from the WebKit bundle even if someone subclasses IFURIEntry.
  8908. * Plugins.subproj/IFNullPluginView.mm:
  8909. (-[IFNullPluginView initWithFrame:mimeType:arguments:]): Use
  8910. bundleForClass instead of bundleWithIdentifier so things work even
  8911. if we have two copies of WebKit installed on the same machine.
  8912. * Makefile.am: Remove include of embed.am.
  8913. * WebKit.pbproj/project.pbxproj: Use embed-into-alex instead of make embed.
  8914. Also change bundle identifier to com.apple.WebKit instead of com.apple.webkit
  8915. to match standard used by our other frameworks. (Checked that we no longer have
  8916. any hard-coding of the bundle identifier anywhere in our code.)
  8917. 2002-07-13 Richard Williamson <rjw@apple.com>
  8918. Fixed 2981849 - frames don't always draw correctly.
  8919. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  8920. (-[IFWebCoreBridge childFrameNamed:]):
  8921. Check provisional data source first.
  8922. * WebView.subproj/IFHTMLViewPrivate.h:
  8923. * WebView.subproj/IFHTMLViewPrivate.mm:
  8924. (-[IFHTMLView _adjustFrames]):
  8925. Added method to adjust frame geometry.
  8926. * WebView.subproj/IFWebDataSourcePrivate.h:
  8927. * WebView.subproj/IFWebDataSourcePrivate.mm:
  8928. (-[IFWebDataSource _layoutChildren]):
  8929. Added method to adjust child frame geometries.
  8930. * WebView.subproj/IFWebFramePrivate.mm:
  8931. (-[IFWebFrame _isLoadComplete]):
  8932. Removed unnecessary drawing now that frame geometry is
  8933. calculated directly.
  8934. 2002-07-12 Darin Adler <darin@apple.com>
  8935. About 1/3 of the remaining work to wean WebKit from its special relationship with WebCore
  8936. onto explicit interfaces.
  8937. * Misc.subproj/IFCache.mm:
  8938. * WebView.subproj/IFDOMNode.mm:
  8939. * WebView.subproj/IFRenderNode.mm:
  8940. Mark imports from inside WebCore with #ifndef WEBKIT_INDEPENDENT_OF_WEBCORE.
  8941. Once these are all gone, the task is done.
  8942. * Plugins.subproj/IFPlugin.h:
  8943. * WebCoreSupport.subproj/IFCookieAdapter.h:
  8944. * WebCoreSupport.subproj/IFImageRenderer.h:
  8945. * WebCoreSupport.subproj/IFImageRendererFactory.h:
  8946. * WebCoreSupport.subproj/IFResourceURLHandleClient.m:
  8947. * WebCoreSupport.subproj/IFTextRenderer.h:
  8948. * WebCoreSupport.subproj/IFTextRendererFactory.h:
  8949. * WebCoreSupport.subproj/IFWebCoreBridge.h:
  8950. * WebCoreSupport.subproj/IFWebCoreViewFactory.h:
  8951. Use #import <WebCore/> for getting at WebCore headers so we don't need to use -I.
  8952. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  8953. (-[IFWebCoreBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]):
  8954. Call setRenderPart on the WebCoreFrame rather than on the IFWebFrame.
  8955. * WebCoreSupport.subproj/IFWebCoreFrame.h: Subclass from the WebCoreFrame class.
  8956. * WebCoreSupport.subproj/IFWebCoreFrame.m:
  8957. (-[IFWebCoreFrame HTMLView]): Add a cast.
  8958. (-[IFWebCoreFrame widget]): Remove overzealous assert.
  8959. * WebKit.pbproj/project.pbxproj: Rearranged things a bit. Removed unneeded build phase.
  8960. * WebView.subproj/IFDocument.h:
  8961. * WebView.subproj/IFDynamicScrollBarsView.h:
  8962. * WebView.subproj/IFWebController.h:
  8963. * WebView.subproj/IFWebControllerPolicyHandler.h:
  8964. Changed a few stray #include statements to #import statements.
  8965. * WebView.subproj/IFHTMLView.mm:
  8966. (-[IFHTMLView provisionalDataSourceCommitted:]): Move the logic for setting up the
  8967. renderPart in here from IFWebView.
  8968. (-[IFHTMLView reapplyStyles]): Use the bridge.
  8969. (-[IFHTMLView layout]): Use the bridge.
  8970. (-[IFHTMLView drawRect:]): Use the bridge.
  8971. * WebView.subproj/IFHTMLViewPrivate.h: Remove _takeOwnershipOfWidget which is no longer needed.
  8972. * WebView.subproj/IFHTMLViewPrivate.mm:
  8973. (-[NSView _IF_stopIfPluginView]): Added. Use to clean up _reset a bit.
  8974. (-[IFHTMLView _reset]): Use makeObjectsPerformSelector: for simplicity.
  8975. * WebView.subproj/IFImageView.h: Remove unneeded IFWebDataSource declaration.
  8976. * WebView.subproj/IFImageView.m: Just formatting tweaks.
  8977. * WebView.subproj/IFWebControllerPrivate.mm: Removed unneeded import.
  8978. * WebView.subproj/IFWebDataSource.mm: Removed unneeded import.
  8979. * WebView.subproj/IFWebDataSourcePrivate.mm: Removed unneeded import.
  8980. * WebView.subproj/IFWebFrame.mm: Removed unneeded import.
  8981. * WebView.subproj/IFWebFramePrivate.h: Remove renderPart field and related declarations.
  8982. * WebView.subproj/IFWebFramePrivate.mm:
  8983. (-[IFWebFramePrivate dealloc]): No need to let go of renderPart any more.
  8984. (-[IFWebFrame _transitionProvisionalToCommitted]): Move logic into IFHTMLView.
  8985. * WebView.subproj/IFWebView.h: Be a bit more specific about the type of documentView.
  8986. 2002-07-12 Chris Blumenberg <cblu@apple.com>
  8987. Only accept drags of 1 file.
  8988. * WebView.subproj/IFWebView.mm:
  8989. (-[IFWebView draggingEntered:]):
  8990. 2002-07-12 Darin Adler <darin@apple.com>
  8991. Fix cancelling. My recent check-in broke it for downloads.
  8992. * WebCoreSupport.subproj/IFResourceURLHandleClient.m:
  8993. (-[IFResourceURLHandleClient receivedError:forHandle:]): Helper function to save code.
  8994. (-[IFResourceURLHandleClient IFURLHandleResourceDidCancelLoading:]): Use an error for
  8995. cancel rather than -1,-1 progress.
  8996. * WebView.subproj/IFMainURLHandleClient.mm:
  8997. (-[IFMainURLHandleClient receivedProgressWithHandle:complete:]): Remove -1,-1 handling
  8998. here; instead we treat it as an error.
  8999. (-[IFMainURLHandleClient receivedError:forHandle:]): Remove most of the parameters
  9000. since they are things we can compute ourselves.
  9001. (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]): Use an error for
  9002. cancel rather than -1,-1 progress.
  9003. * WebView.subproj/IFWebControllerPrivate.mm:
  9004. (-[IFWebController _receivedProgress:forResourceHandle:fromDataSource:complete:]):
  9005. Remove the -1,-1 cancel handling; we use an error instead.
  9006. (-[IFWebController _mainReceivedProgress:forResourceHandle:fromDataSource:complete:]):
  9007. Remove the -1,-1 cancel handling; we use an error instead.
  9008. (-[IFWebController _receivedError:forResourceHandle:partialProgress:fromDataSource:]):
  9009. Remove the _isStopping check. We want to do the additional work even if already stopping.
  9010. (-[IFWebController _mainReceivedError:forResourceHandle:partialProgress:fromDataSource:]):
  9011. Remove the _isStopping check. We want to do the additional work even if already stopping.
  9012. * WebView.subproj/IFWebView.mm: (-[IFWebView keyDown:]): Use NSDeleteCharacter.
  9013. 2002-07-12 Darin Adler <darin@apple.com>
  9014. * WebView.subproj/IFWebDataSource.mm:
  9015. (+[IFWebDataSource registerRepresentationClass:forMIMEType:]):
  9016. Use self instead of [self class].
  9017. (+[IFWebDataSource createRepresentationForMIMEType:]):
  9018. Use the new _IF_objectForMIMEType to simplify and use hash table
  9019. instead of linear search.
  9020. * WebView.subproj/IFWebDataSourcePrivate.mm:
  9021. (+[IFWebDataSource _repTypes]): Use initWithObjectsAndKeys for
  9022. brevity and a tiny tiny bit of efficiency.
  9023. (+[IFWebDataSource _canShowMIMEType:]):
  9024. Use the new _IF_objectForMIMEType to simplify and use hash table
  9025. instead of linear search.
  9026. * WebView.subproj/IFWebView.mm:
  9027. (+[IFWebView registerViewClass:forMIMEType:]):
  9028. Use self instead of [self class].
  9029. (+[IFWebView createViewForMIMEType:]):
  9030. Use the new _IF_objectForMIMEType to simplify and use hash table
  9031. instead of linear search.
  9032. * WebView.subproj/IFWebViewPrivate.mm:
  9033. (+[IFWebView _canShowMIMEType:]):
  9034. Use the new _IF_objectForMIMEType to simplify and use hash table
  9035. instead of linear search.
  9036. 2002-07-12 Darin Adler <darin@apple.com>
  9037. * WebKit.pbproj/project.pbxproj: Re-added JavaScriptCore, which
  9038. I removed by accident.
  9039. 2002-07-12 Darin Adler <darin@apple.com>
  9040. * WebKit.pbproj/project.pbxproj: Don't include the html4.css file
  9041. from WebCore any more. WebCore handles this on its own now. Also,
  9042. don't include the document templates; we don't use them any more.
  9043. * Resources/image_document_template.html: Removed.
  9044. * Resources/plugin_document_template.html: Removed.
  9045. * Resources/text_document_template.html: Removed.
  9046. * Makefile.am: Small tweak to the force-clean-timestamp logic.
  9047. 2002-07-11 Chris Blumenberg <cblu@apple.com>
  9048. Fix for:
  9049. 2986548 - Crash if you drop URL of frameset page onto frame
  9050. 2953421 - document dragged into frame should replace frameset
  9051. * WebView.subproj/IFWebView.mm:
  9052. (-[IFWebView draggingEntered:]): removed obsolute comment
  9053. (-[IFWebView performDragOperation:]): moved implementation from here
  9054. (-[IFWebView concludeDragOperation:]): to here, added support for NSURL drags
  9055. 2002-07-11 Darin Adler <darin@apple.com>
  9056. * WebView.subproj/IFWebViewPrivate.mm:
  9057. (+[IFWebView _viewTypes]): Changed back to a mutable dictionary. Oops.
  9058. 2002-07-11 John Sullivan <sullivan@apple.com>
  9059. - fixed 2980779 -- no scroll bar in history window
  9060. * WebKit.pbproj/project.pbxproj: Removed nonexistent .h file from project list (IFGrabBag.h)
  9061. * WebView.subproj/IFDynamicScrollBarsView.h: Renamed field allowsScrolling to disallowsScrolling
  9062. * WebView.subproj/IFDynamicScrollBarsView.m:
  9063. (-[IFDynamicScrollBarsView updateScrollers]):
  9064. (-[IFDynamicScrollBarsView setAllowsScrolling:]):
  9065. (-[IFDynamicScrollBarsView allowsScrolling]):
  9066. Removed initWithFrame override, whose only purpose was to set allowsScrolling to the "default"
  9067. value (but not good enough for load-from-nib case). Changed all users of allowsScrolling to
  9068. !disallowsScrolling instead.
  9069. 2002-07-11 Chris Blumenberg <cblu@apple.com>
  9070. * Plugins.subproj/IFPluginNullEventSender.h:
  9071. * Plugins.subproj/IFPluginNullEventSender.m:
  9072. (-[IFPluginNullEventSender initWithPluginView:]): renamed, simplified
  9073. (-[IFPluginNullEventSender stop]): call plugin debug function
  9074. * Plugins.subproj/IFPluginView.h:
  9075. * Plugins.subproj/IFPluginView.mm:
  9076. (-[IFPluginView start]): call new initWithPluginView
  9077. (-[IFPluginView windowWillClose:]): added back to fix plugin view leak
  9078. (-[IFPluginView NPP_HandleEvent]): added
  9079. 2002-07-11 Darin Adler <darin@apple.com>
  9080. - fixed 2930872 -- option-arrow keys should page up and down
  9081. - fixed 2924727 -- Delete does not go to previous page
  9082. * WebView.subproj/IFHTMLView.mm: Disable the keyDown and keyUp
  9083. methods here. We don't really need to pass these events to KHTMLView
  9084. at the moment. See the comment in this file for further explanation.
  9085. This paves the way to handle keys other than arrow keys in IFWebView.
  9086. * WebView.subproj/IFWebController.h: Add temporary goBack method to
  9087. IFWindowContext. See comment for more.
  9088. * WebView.subproj/IFWebView.mm: (-[IFWebView keyDown:]): Add handling
  9089. for option arrow keys, space (page down), shift-space (page up), and
  9090. delete (go back). Also make this call super if the key is not handled
  9091. so keys make their way back to the superview in the application.
  9092. * WebView.subproj/IFWebViewPrivate.h: Add _pageLeft, _pageRight, _goBack.
  9093. * WebView.subproj/IFWebViewPrivate.mm:
  9094. (-[IFWebView _pageHorizontally:]): Added.
  9095. (-[IFWebView _pageLeft]): Added.
  9096. (-[IFWebView _pageRight]): Added.
  9097. (+[IFWebView _viewTypes]): Simplify.
  9098. (-[IFWebView _goBack]): Added. Calls [IFWindowContext goBack].
  9099. 2002-07-10 Darin Adler <darin@apple.com>
  9100. - fixed 2973738 -- box characters
  9101. To be consistent with other browsers, we need to draw nothing for 0000-001F.
  9102. We were drawing boxes.
  9103. * WebCoreSupport.subproj/IFTextRenderer.m:
  9104. (-[IFTextRenderer convertCharacters:length:toGlyphs:skipControlCharacters:]):
  9105. Add the skipControlCharacters parameter. If YES, don't include glyphs for characters
  9106. in the 0000-001F range.
  9107. (-[IFTextRenderer slowPackGlyphsForCharacters:numCharacters:glyphBuffer:numGlyphs:]):
  9108. Pass skipControlCharacters:YES.
  9109. (-[IFTextRenderer _drawCharacters:length:fromCharacterPosition:toCharacterPosition:atPoint:withTextColor:backgroundColor:]):
  9110. Skip control characters when creating the glyph array.
  9111. (-[IFTextRenderer slowFloatWidthForCharacters:stringLength:fromCharacterPostion:numberOfCharacters:applyRounding:]):
  9112. Pass skipControlCharacters:YES.
  9113. (-[IFTextRenderer floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:applyRounding:attemptFontSubstitution:]):
  9114. Skip control characters when computing the width.
  9115. (-[IFTextRenderer extendCharacterToGlyphMapToInclude:]): Pass skipControlCharacters:NO.
  9116. 2002-07-10 Darin Adler <darin@apple.com>
  9117. - fixed 2986273 -- assert currentURL isEqual:[handle redirectedURL] ? [handle redirectedURL] : [handle url]
  9118. Since cancel prevents further notification from getting through, currentURL can get
  9119. out of sync before cancelling, so we can't assert in the cancel function.
  9120. * WebCoreSupport.subproj/IFResourceURLHandleClient.m:
  9121. (-[IFResourceURLHandleClient IFURLHandleResourceDidCancelLoading:]): Remove assert.
  9122. * WebView.subproj/IFMainURLHandleClient.h: Remove unnecessary includes. Change type
  9123. of dataSource to IFWebDataSource from id. Change url to currentURL to match
  9124. IFResourceURLHandleClient.
  9125. * WebView.subproj/IFMainURLHandleClient.mm:
  9126. (-[IFMainURLHandleClient initWithDataSource:]): Simplify.
  9127. (-[IFMainURLHandleClient didStartLoadingWithURL:]): Copied here from IFResourceURLHandleClient
  9128. as a first step toward using a common superclass some day.
  9129. (-[IFMainURLHandleClient didStopLoading]): Copied here from IFResourceURLHandleClient
  9130. as a first step toward using a common superclass some day.
  9131. (-[IFMainURLHandleClient dealloc]): Add an assert.
  9132. (-[IFMainURLHandleClient receivedProgressWithHandle:complete:]): Removed most of the parameters
  9133. to make this match the one in IFResourceURLHandleClient.
  9134. (-[IFMainURLHandleClient IFURLHandleResourceDidBeginLoading:]): Use didStartLoadingWithURL.
  9135. (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]): Use receivedProgressWithHandle and
  9136. didStopLoading.
  9137. (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]): Use receivedProgressWithHandle and
  9138. didStopLoading.
  9139. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]): Use receivedProgressWithHandle.
  9140. (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]): Use receivedProgressWithHandle and
  9141. didStopLoading.
  9142. (-[IFMainURLHandleClient IFURLHandle:didRedirectToURL:]): Use didStopLoading and didStartLoadingWithURL.
  9143. 2002-07-10 Maciej Stachowiak <mjs@apple.com>
  9144. WebKit part of fix for:
  9145. Radar 2953250 - JavaScript window.focus() and window.blur()
  9146. methods don't work
  9147. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  9148. (-[IFWebCoreBridge unfocusWindow]): Use private AppKit interface
  9149. to cycle windows if the window is the key window.
  9150. 2002-07-10 Darin Adler <darin@apple.com>
  9151. - fixed 2983025 -- crash in sendEvent on pages with flash playing
  9152. * Plugins.subproj/IFPluginView.mm:
  9153. (-[IFPluginView removeTrackingRect]): New, removes tracking rect and releases window.
  9154. (-[IFPluginView resetTrackingRect]): New, adds tracking rect and retains window.
  9155. (-[IFPluginView start]): Use resetTrackingRect.
  9156. (-[IFPluginView stop]): Use removeTrackingRect.
  9157. (-[IFPluginView viewWillMoveToWindow:]): Call removeTrackingRect because the window
  9158. will change by the time we get to viewDidMoveToWindow.
  9159. (-[IFPluginView viewDidMoveToWindow]): Call resetTrackingRect.
  9160. (-[IFPluginView viewHasMoved:]): Call resetTrackingRect.
  9161. 2002-07-10 Darin Adler <darin@apple.com>
  9162. * WebView.subproj/IFWebViewPrivate.mm:
  9163. (-[IFWebView _scrollToBottomLeft]): Fix this to use the document view to define what
  9164. the bottom left is, not the content view (which is often much smaller than the document).
  9165. 2002-07-10 Chris Blumenberg <cblu@apple.com>
  9166. Fixes for:
  9167. 2981866 - Download doesn't appear in Downloads window if link was command-clicked
  9168. 2965312 - Download progress not shown when clicking on download link with Alex not running
  9169. * WebView.subproj/IFMainURLHandleClient.mm:
  9170. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]): retain
  9171. the downloadProgressHandler before calling requestContentPolicy as the web controller may be released
  9172. in requestContentPolicy
  9173. 2002-07-10 Chris Blumenberg <cblu@apple.com>
  9174. Fix for:
  9175. 2976311 - Download fails if you close the window that started the download
  9176. 2976308 - Can't navigate in window while download started in that window is in progress
  9177. * WebView.subproj/IFMainURLHandleClient.h:
  9178. * WebView.subproj/IFMainURLHandleClient.mm:
  9179. (-[IFMainURLHandleClient dealloc]):
  9180. (-[IFMainURLHandleClient _receivedProgress:forResourceHandle:fromDataSource:complete:]): added, sends progress to correct handler
  9181. (-[IFMainURLHandleClient _receivedError:forResourceHandle:partialProgress:fromDataSource:]): added, sends progress to correct handler
  9182. (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]): calls _receivedProgress
  9183. (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]): calls _receivedProgress
  9184. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]): calls _receivedProgress
  9185. (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]): calls _receivedError
  9186. * WebView.subproj/IFWebController.h:
  9187. * WebView.subproj/IFWebController.mm:
  9188. (-[IFWebController setDownloadProgressHandler:]): added
  9189. (-[IFWebController downloadProgressHandler]): added
  9190. * WebView.subproj/IFWebControllerPrivate.h:
  9191. * WebView.subproj/IFWebControllerPrivate.mm:
  9192. (-[IFWebController _mainReceivedProgress:forResourceHandle:fromDataSource:complete:]): removed download special-casing
  9193. 2002-07-10 Maciej Stachowiak <mjs@apple.com>
  9194. * WebView.subproj/IFGrabBag.h: Removed.
  9195. * WebView.subproj/IFWebController.h: Move IFContextMenuHandler
  9196. here.
  9197. 2002-07-10 Darin Adler <darin@apple.com>
  9198. Did some tweaks that weren't really necessary. But at least one is a significant
  9199. improvement so I decided to commit rather then just discarding the changes.
  9200. * Bookmarks.subproj/IFBookmark.m:
  9201. (-[IFBookmark title]): Take out special case for separator.
  9202. (-[IFBookmark setTitle:]): Take out special case for separator.
  9203. (-[IFBookmark image]): Take out special case for separator.
  9204. (-[IFBookmark setImage:]): Take out special case for separator.
  9205. (-[IFBookmark setURLString:]): Take out special case for non-leaf.
  9206. (-[IFBookmark children]): Take out request for concrete implementation;
  9207. this is not useful since it's specific to one subclass.
  9208. (-[IFBookmark numberOfChildren]): Take out request for concrete implementation;
  9209. this is not useful since it's specific to one subclass.
  9210. (-[IFBookmark _numberOfDescendants]): Take out request for concrete implementation;
  9211. this is not useful since it's specific to one subclass.
  9212. (-[IFBookmark insertChild:atIndex:]): Take out special case for non-list.
  9213. (-[IFBookmark removeChild:]): Take out special case for non-list.
  9214. (+[IFBookmark bookmarkFromDictionaryRepresentation:withGroup:]): Refactored to
  9215. eliminate repeated code.
  9216. * Bookmarks.subproj/IFBookmarkLeaf.m:
  9217. (-[IFBookmarkLeaf copyWithZone:]): Use allocWithZone to be more pedantically correct.
  9218. * Bookmarks.subproj/IFBookmarkSeparator.m:
  9219. (-[IFBookmarkSeparator title]): Override to return nil.
  9220. (-[IFBookmarkSeparator image]): Override to return nil.
  9221. 2002-07-10 Darin Adler <darin@apple.com>
  9222. * Misc.subproj/WebKitDebug.m: Remove workaround for long-ago fixed
  9223. C compiler bug.
  9224. * Plugins.subproj/IFPluginView.mm:
  9225. (-[IFPluginView keyUp:]), (-[IFPluginView keyDown:]): Simplify keyboard
  9226. scrolling code by passing along all events that the plug-in doesn't handle
  9227. rather than special-casing certain events. Also use super rather than
  9228. nextResponder to pass along the scroll events (super will do nextResponder).
  9229. * WebView.subproj/IFHTMLView.mm:
  9230. (-[IFHTMLView keyDown:]), (-[IFHTMLView keyUp:]): Use super rather than
  9231. nextResponder to pass along scroll events (super will do nextResponder).
  9232. 2002-07-08 Chris Blumenberg <cblu@apple.com>
  9233. Fixes for:
  9234. 2955757 - Keyboard scrolling code needs to move to WebKit
  9235. 2937231 - Left and right arrows should scroll the content area
  9236. * Misc.subproj/IFNSEventExtras.h: Added.
  9237. * Misc.subproj/IFNSEventExtras.m: Added.
  9238. (-[NSEvent _IF_isScrollEvent]): new
  9239. * Plugins.subproj/IFPluginView.mm:
  9240. (-[IFPluginView keyUp:]): if plug-in doesn't accept it, send to nextResponder
  9241. (-[IFPluginView keyDown:]): if plug-in doesn't accept it, send to nextResponder
  9242. * WebKit.pbproj/project.pbxproj:
  9243. * WebView.subproj/IFHTMLView.mm:
  9244. (-[IFHTMLView keyDown:]): calls _IF_isScrollEvent, if so send to nextResponder
  9245. (-[IFHTMLView keyUp:]): calls _IF_isScrollEvent, if so send to nextResponder
  9246. * WebView.subproj/IFWebView.mm:
  9247. (-[IFWebView acceptsFirstResponder]): added
  9248. (-[IFWebView window]): no changes
  9249. (-[IFWebView keyDown:]): added, does the scroll
  9250. * WebView.subproj/IFWebViewPrivate.h:
  9251. * WebView.subproj/IFWebViewPrivate.mm:
  9252. (-[IFWebView _contentView]): added
  9253. (-[IFWebView _scrollVerticallyBy:]): added, moved from BrowserWindow.m
  9254. (-[IFWebView _scrollHorizontallyBy:]): added, moved from BrowserWindow.m
  9255. (-[IFWebView _pageVertically:]): added, moved from BrowserWindow.m
  9256. (-[IFWebView _scrollLineVertically:]): added, moved from BrowserWindow.m
  9257. (-[IFWebView _scrollLineHorizontally:]): added, moved from BrowserWindow.m
  9258. (-[IFWebView _pageDown]): added, moved from BrowserWindow.m
  9259. (-[IFWebView _pageUp]): added, moved from BrowserWindow.m
  9260. (-[IFWebView _scrollToTopLeft]): added, moved from BrowserWindow.m
  9261. (-[IFWebView _scrollToBottomLeft]): added, moved from BrowserWindow.m
  9262. (-[IFWebView _lineDown]): added, moved from BrowserWindow.m
  9263. (-[IFWebView _lineUp]): added, moved from BrowserWindow.m
  9264. (-[IFWebView _lineLeft]): added, moved from BrowserWindow.m
  9265. (-[IFWebView _lineRight]): added, moved from BrowserWindow.m
  9266. 2002-07-08 Darin Adler <darin@apple.com>
  9267. * WebCoreSupport.subproj/IFWebCoreBridge.mm: Fix compiles under newer compiler
  9268. (Jaguar 6C89 and newer) by adding missing include.
  9269. 2002-07-07 Maciej Stachowiak <mjs@apple.com>
  9270. WebCore part of fix for Radar 2953431 - JavaScript window.close()
  9271. method is not working
  9272. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  9273. (-[IFWebCoreBridge openedByScript]): Implement by calling controller.
  9274. (-[IFWebCoreBridge setOpenedByScript:]): Likewise.
  9275. * WebView.subproj/IFWebControllerPrivate.h:
  9276. * WebView.subproj/IFWebControllerPrivate.mm:
  9277. (-[IFWebController _openedByScript]): Implement.
  9278. (-[IFWebController _setOpenedByScript:]): Implement.
  9279. 2002-07-05 Darin Adler <darin@apple.com>
  9280. Fix crashes I saw with zombies enabled caused by messing with windows that are
  9281. in the process of being destroyed.
  9282. * Plugins.subproj/IFPluginView.mm:
  9283. (-[IFPluginView start]): Remove windowWillClose notification because
  9284. we use viewDidMoveToWindow instead.
  9285. (-[IFPluginView viewDidMoveToWindow]): Use this instead of viewWillMoveToWindow.
  9286. * WebView.subproj/IFHTMLView.mm:
  9287. (-[IFHTMLView viewDidMoveToWindow]): Use this instead of viewWillMoveToWindow.
  9288. * WebView.subproj/IFHTMLViewPrivate.h: Need a boolean flag to tell window changes
  9289. before the first time we are installed from window changes afterward.
  9290. * WebView.subproj/IFImageView.m:
  9291. (-[IFImageView viewDidMoveToWindow]): Use this instead of viewWillMoveToWindow.
  9292. 2002-07-04 Maciej Stachowiak <mjs@apple.com>
  9293. * WebView.subproj/IFHTMLView.mm:
  9294. (-[IFHTMLView mouseMovedNotification:]): Pass the modifier flags
  9295. along for mouse move events.
  9296. 2002-07-04 John Sullivan <sullivan@apple.com>
  9297. * WebView.subproj/IFDynamicScrollBarsView.h:
  9298. Updated FIXME to mention bug number.
  9299. 2002-07-03 Chris Blumenberg <cblu@apple.com>
  9300. - Fix for 2975750
  9301. - Removed Java workaround since that will be fixed soon.
  9302. * Plugins.subproj/IFPlugin.h:
  9303. * Plugins.subproj/IFPlugin.m:
  9304. (-[IFPlugin _openResourceFile]): added
  9305. (-[IFPlugin _closeResourceFile:]): added
  9306. (-[IFPlugin _getPluginInfo]): rename
  9307. (-[IFPlugin initWithPath:]): simplified
  9308. (-[IFPlugin load]): calls _openResourceFile
  9309. (-[IFPlugin unload]): calls _closeResourceFile
  9310. * Plugins.subproj/IFPluginView.mm:
  9311. (-[IFPluginView setUpWindowAndPort]): removed Java workaround
  9312. 2002-07-03 Darin Adler <darin@apple.com>
  9313. * Misc.subproj/IFException.h: Use Objective C header style rather than plain C.
  9314. === Alexander-11 ===
  9315. 2002-07-03 Darin Adler <darin@apple.com>
  9316. * Misc.subproj/IFDownloadHandler.mm:
  9317. (-[IFDownloadHandler finishedLoading]):
  9318. * WebView.subproj/IFWebController.h:
  9319. A couple places where it still said IFContentPolicyOpenExternally.
  9320. 2002-07-03 Maciej Stachowiak <mjs@apple.com>
  9321. WebKit part of fixes for:
  9322. Radar 2950616 - JavaScript window.screenX and window.screenY always return -1
  9323. Radar 2950614 - JavaScript window.screenLeft and window.screenTop
  9324. properties are unimplemented
  9325. Radar 2950609 - JavaScript window.outerHeight and
  9326. window.outerWidth properties always return 0
  9327. * WebView.subproj/IFHTMLView.mm:
  9328. (-[IFHTMLView provisionalDataSourceChanged:]): Pass the real
  9329. document view to the newly created bridge, since it will be ready
  9330. by now and is needed by JavaScript.
  9331. 2002-07-03 Maciej Stachowiak <mjs@apple.com>
  9332. * Plugins.subproj/IFPluginView.mm:
  9333. (-[IFPluginView status:]): Fix build problem. Why doesn't
  9334. compiling catch these more reliably?
  9335. 2002-07-03 Richard Williamson <rjw@apple.com>
  9336. * Misc.subproj/IFNSViewExtras.m:
  9337. (-[NSView _IF_printViewHierarchy:]):
  9338. Debugging help.
  9339. * WebView.subproj/IFHTMLView.mm:
  9340. (-[IFHTMLView layout]):
  9341. Added setLayouted(false).
  9342. * WebView.subproj/IFWebFramePrivate.mm:
  9343. (-[IFWebFrame _isLoadComplete]):
  9344. Tweaks attempting to fix frame drawing problems.
  9345. 2002-07-03 Maciej Stachowiak <mjs@apple.com>
  9346. WebCore part of fix for:
  9347. Radar 2943465 - JavaScript window.defaultStatus property not implemented
  9348. Radar 2943464 - JavaScript window.status property is not implemented
  9349. Radar 2926213 - show url of moused-over link in status bar
  9350. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  9351. (-[IFWebCoreBridge setStatusText:]): Connect bridge status text
  9352. setting to window context.
  9353. * WebView.subproj/IFWebController.h:
  9354. 2002-07-02 Chris Blumenberg <cblu@apple.com>
  9355. Added IFFileURLPolicyReveal. This makes things a little clearer for the client.
  9356. * WebView.subproj/IFWebControllerPolicyHandler.h:
  9357. * WebView.subproj/IFWebFramePrivate.mm:
  9358. (-[IFWebFrame _shouldShowDataSource:]): support for IFFileURLPolicyReveal.
  9359. 2002-07-02 Darin Adler <darin@apple.com>
  9360. * WebCoreSupport.subproj/IFImageRenderer.m:
  9361. (-[IFImageRenderer incrementalLoadWithBytes:length:complete:]):
  9362. Fixed a syntax error caused by a "just before committing" edit.
  9363. 2002-07-02 Darin Adler <darin@apple.com>
  9364. - fixed 2952837 -- image not rendered if height or width attributes specified incorrectly
  9365. * WebCoreSupport.subproj/IFImageRenderer.m:
  9366. (-[IFImageRenderer incrementalLoadWithBytes:length:complete:]):
  9367. Set the size of both the image and the image representation.
  9368. 2002-07-02 Chris Blumenberg <cblu@apple.com>
  9369. Can't call startLoading on a frame if setProvisionalDataSource returned NO.
  9370. * Plugins.subproj/IFPluginView.mm:
  9371. (-[IFPluginView loadURL:inTarget:withNotifyData:andHandleAttributes:]):
  9372. * WebCoreSupport.subproj/IFWebCoreFrame.m:
  9373. (-[IFWebCoreFrame loadURL:attributes:flags:withParent:]):
  9374. * WebView.subproj/IFWebView.mm:
  9375. (-[IFWebView performDragOperation:]):
  9376. 2002-07-02 Chris Blumenberg <cblu@apple.com>
  9377. Fixed asseration failure caused by an iframe not having a correct mime type.
  9378. We now assume that local files without extensions are html files.
  9379. * WebView.subproj/IFWebControllerPrivate.mm:
  9380. (+[IFWebController _MIMETypeForFile:]):
  9381. 2002-07-02 Chris Blumenberg <cblu@apple.com>
  9382. - Moved all policy methods to IFWebControllerPolicyHandler.h
  9383. - Moved all file URL error checking to WebKit
  9384. - Implemented file URL policy methods
  9385. - Renamed IFContentPolicyOpenExternally to IFContentPolicySaveAndOpenExternally
  9386. * Misc.subproj/IFWebKitErrors.h: Added.
  9387. * WebKit.pbproj/project.pbxproj:
  9388. * WebView.subproj/IFLocationChangeHandler.h: removed content policy stuff
  9389. * WebView.subproj/IFMainURLHandleClient.mm:
  9390. (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]): IFContentPolicySaveAndOpenExternally rename
  9391. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]): call the policy handler for content policy stuff
  9392. * WebView.subproj/IFWebController.h:
  9393. * WebView.subproj/IFWebController.mm:
  9394. (-[IFWebController haveContentPolicy:andPath:forDataSource:]): sends a unableToImplementContentPolicy:
  9395. (+[IFWebController canShowFile:]): now calls _MIMETypeForFile
  9396. * WebView.subproj/IFWebControllerPolicyHandler.h: Added.
  9397. * WebView.subproj/IFWebControllerPrivate.h:
  9398. * WebView.subproj/IFWebControllerPrivate.mm:
  9399. (-[IFWebController _mainReceivedProgress:forResourceHandle:fromDataSource:complete:]): IFContentPolicySaveAndOpenExternally
  9400. rename
  9401. (-[IFWebController _didStopLoading:]): no changes
  9402. (+[IFWebController _MIMETypeForFile:]): added
  9403. * WebView.subproj/IFWebDataSource.h:
  9404. * WebView.subproj/IFWebFrame.mm:
  9405. (-[IFWebFrame setProvisionalDataSource:]): calls _shouldShowDataSource
  9406. * WebView.subproj/IFWebFramePrivate.h:
  9407. * WebView.subproj/IFWebFramePrivate.mm:
  9408. (-[IFWebFrame _bridgeFrame]): no changes
  9409. (-[IFWebFrame _shouldShowDataSource:]): does the error handling
  9410. * WebView.subproj/IFWebView.mm:
  9411. (+[IFWebView initialize]): registers WebKit errors
  9412. 2002-07-02 Richard Williamson <rjw@apple.com>
  9413. * WebView.subproj/IFRenderNode.mm:
  9414. (-[IFRenderNode initWithRenderObject:khtml::]):
  9415. Fixed regression that prevented showing of nodes in subframes.
  9416. 2002-07-02 Darin Adler <darin@apple.com>
  9417. * Plugins.subproj/IFPluginView.mm:
  9418. (-[IFPluginView setWindow]), (-[IFPluginView start]), (-[IFPluginView stop]):
  9419. Fix unused variable issue that affects deployment builds.
  9420. 2002-07-02 John Sullivan <sullivan@apple.com>
  9421. Remove unnecessary code to fill with white from here; this code
  9422. path has changed. Now it just bails out early in the case where
  9423. there's no widget.
  9424. * WebView.subproj/IFHTMLView.mm:
  9425. (-[IFHTMLView drawRect:]):
  9426. 2002-07-02 John Sullivan <sullivan@apple.com>
  9427. Made IFWebView fill with white when there's no document view. This fixes:
  9428. - 2978210 -- problems with "hide status bar"
  9429. - 2978742 -- Resizing initially-empty Alexander window results in garbage in window
  9430. * WebView.subproj/IFWebView.mm:
  9431. (-[IFWebView drawRect:]):
  9432. 2002-07-02 Darin Adler <darin@apple.com>
  9433. * WebView.subproj/IFMainURLHandleClient.mm: Fix comment.
  9434. 2002-07-02 Darin Adler <darin@apple.com>
  9435. - fixed 2975790 - Ads on salon.com scribble all over page
  9436. * Plugins.subproj/IFPluginView.mm:
  9437. (-[IFPluginView setUpWindowAndPort]): New, sets up the window, but does not
  9438. call NPP_SetWindow again.
  9439. (-[IFPluginView setWindow]): Call [setUpWindowAndPort] then call NPP_SetWindow.
  9440. (-[IFPluginView start]): Register for changes to the bounds or frame of any of
  9441. our superviews, not just one particular one. Also, don't bother to register for
  9442. notification when the window resizes. Finally, use the constants for the names
  9443. of the notifications, not literal strings.
  9444. (-[IFPluginView layout]): Just use [setUpWindowAndPort]; no need for a new call
  9445. to NPP_SetWindow.
  9446. (-[IFPluginView viewHasMoved:]): Just use [setUpWindowAndPort]; no need for a new
  9447. call to NPP_SetWindow.
  9448. 2002-07-01 Maciej Stachowiak <mjs@apple.com>
  9449. * WebView.subproj/IFWebView.mm:
  9450. (-[IFWebView window]): If the view hasn't been added to a window
  9451. yet, get the window from the WindowContext.
  9452. 2002-07-01 Richard Williamson <rjw@apple.com>
  9453. * WebView.subproj/IFMainURLHandleClient.mm:
  9454. (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
  9455. Ensure that _didStopLoading is called for both error case and
  9456. non-error case.
  9457. 2002-07-01 Richard Williamson <rjw@apple.com>
  9458. * WebView.subproj/IFMainURLHandleClient.mm:
  9459. (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
  9460. A completion message was being sent, as well as an error message.
  9461. This, no doubt confused Alexander. No only send either the final
  9462. error message or the completion message.
  9463. 2002-07-01 Darin Adler <darin@apple.com>
  9464. Ken fixed the load message sequencing problem in WebFoundation, so now we can
  9465. go back to the original versions of the asserts.
  9466. * WebCoreSupport.subproj/IFResourceURLHandleClient.m:
  9467. (-[IFResourceURLHandleClient dealloc]):
  9468. (-[IFResourceURLHandleClient IFURLHandleResourceDidCancelLoading:]):
  9469. (-[IFResourceURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  9470. * WebView.subproj/IFMainURLHandleClient.mm:
  9471. (-[IFMainURLHandleClient dealloc]):
  9472. (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]):
  9473. Roll out the stuff that's ifdef'd and marked with bug 2954901.
  9474. 2002-07-01 Darin Adler <darin@apple.com>
  9475. * WebView.subproj/IFDynamicScrollBarsView.m:
  9476. (-[IFDynamicScrollBarsView updateScrollers]): After a closer reading of
  9477. the NSScrollView source code, I see that we don't need to explicitly do
  9478. tile or setNeedsDisplay: because the setters take care of that, so I made
  9479. this simpler.
  9480. (-[IFDynamicScrollBarsView reflectScrolledClipView:]): Replace the anti-
  9481. recursion hack that I erroneously removed earlier.
  9482. * WebView.subproj/IFTextView.h: Removed the isRTF flag.
  9483. * WebView.subproj/IFTextView.m:
  9484. (-[IFTextView provisionalDataSourceChanged:]): Do nothing here.
  9485. (-[IFTextView dataSourceUpdated:]): Check the MIME type here.
  9486. 2002-07-01 Richard Williamson <rjw@apple.com>
  9487. Fixed 2976913.
  9488. * WebView.subproj/IFHTMLView.mm:
  9489. (-[IFHTMLView layout]):
  9490. Augmented debugging info.
  9491. (-[IFHTMLView setNeedsDisplay:]):
  9492. Augmented debugging info.
  9493. (-[IFHTMLView setNeedsLayout:]):
  9494. Removed overload of this method to also set display flag.
  9495. Why was this added?
  9496. (-[IFHTMLView setNeedsToApplyStyles:]):
  9497. Augmented debugging info.
  9498. (-[IFHTMLView drawRect:]):
  9499. Augmented debugging info.
  9500. * WebView.subproj/IFWebFramePrivate.mm:
  9501. (-[IFWebFrame _timedLayout:]):
  9502. If the view size is zero (width or height) force
  9503. a layout now, rather than depending on the lazy
  9504. layout that will happen in display. If the view
  9505. size is 0,0 the AppKit will optimize out the display.
  9506. 2002-07-01 Chris Blumenberg <cblu@apple.com>
  9507. Minor cleanup
  9508. * Plugins.subproj/IFNullPluginView.mm:
  9509. (-[IFNullPluginView initWithFrame:mimeType:arguments:]):
  9510. (-[IFNullPluginView dealloc]):
  9511. 2002-07-01 Darin Adler <darin@apple.com>
  9512. * Plugins.subproj/IFPlugin.m:
  9513. (-[IFPlugin _getPluginInfoForResourceFile:]): Fix off-by one error
  9514. that would cause a memory trasher if we had a 255-character string.
  9515. * WebView.subproj/IFHTMLView.mm:
  9516. * WebView.subproj/IFRenderNode.mm:
  9517. Touch these files so we don't have to do a full build of WebKit
  9518. for my WebCore changes.
  9519. 2002-07-01 Maciej Stachowiak <mjs@apple.com>
  9520. Build fixes (don't know why a plain build didn't catch these):
  9521. * Plugins.subproj/IFPluginView.mm: openNewWindowWithURL: is not a
  9522. method of the controller any more, nor are the status-related calls.
  9523. * WebView.subproj/IFWebController.h: Un-ifdef the status calls.
  9524. 2002-07-01 Maciej Stachowiak <mjs@apple.com>
  9525. Part of fix for Radar 2976618 - links targeting _blank hit
  9526. assertion trying to set provisional data source
  9527. * WebView.subproj/IFWebFrame.mm:
  9528. (-[IFWebFrame frameNamed:]): Show the window.
  9529. 2002-07-01 Maciej Stachowiak <mjs@apple.com>
  9530. Fix Radar 2953256 - Auth sheet appears detached when clicking
  9531. directly on auth link with Alex not running
  9532. * Panels.subproj/IFStandardPanels.m:
  9533. (-[IFStandardPanels frontmostWindowLoadingURL:]): Don't consider
  9534. windows that are not visible.
  9535. 2002-06-29 Darin Adler <darin@apple.com>
  9536. * WebCoreSupport.subproj/IFImageRenderer.m:
  9537. (-[IFImageRenderer tileInRect:fromPoint:]): Fix calculation of oneTileRect.
  9538. I think this is finally correct now.
  9539. 2002-06-29 Maciej Stachowiak <mjs@apple.com>
  9540. WebKit part of fix for:
  9541. Radar 2942074 - JavaScript size, positioning and feature
  9542. parameters to window.open are ignored
  9543. Also, renamed IFScriptContextHandler protocol to IFWindowContext,
  9544. and made it a settable handler like the others rather than
  9545. something implemented by the controller, so it can be used w/o
  9546. subclassing.
  9547. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  9548. (-[IFWebCoreBridge openNewWindowWithURL:]): Forward to the WindowContext.
  9549. (-[IFWebCoreBridge areToolbarsVisisble]): Likewise.
  9550. (-[IFWebCoreBridge setToolbarsVisible:]): Likewise.
  9551. (-[IFWebCoreBridge areScrollbarsVisible]): Likewise.
  9552. (-[IFWebCoreBridge setScrollbarsVisible:]): Likewise.
  9553. (-[IFWebCoreBridge isStatusBarVisisble]): Likewise.
  9554. (-[IFWebCoreBridge setStatusBarVisible:]): Likewise.
  9555. (-[IFWebCoreBridge setWindowFrame:]): Likewise.
  9556. (-[IFWebCoreBridge window]): Likewise.
  9557. * WebView.subproj/IFWebController.h:
  9558. * WebView.subproj/IFWebController.mm:
  9559. (-[IFWebController setWindowContext:]): Setter for new WindowContext handler
  9560. (-[IFWebController windowContext]): Likewise.
  9561. * WebView.subproj/IFWebControllerPrivate.h:
  9562. * WebView.subproj/IFWebControllerPrivate.mm:
  9563. (-[IFWebControllerPrivate dealloc]): Release window context.
  9564. * WebView.subproj/IFWebFrame.mm:
  9565. (-[IFWebFrame frameNamed:]): Open new windows via WindowContext.
  9566. 2002-06-28 Darin Adler <darin@apple.com>
  9567. * WebCoreSupport.subproj/IFImageRenderer.h: Renamed statusOfCache to
  9568. patternColorLoadStatus for clarity.
  9569. * WebCoreSupport.subproj/IFImageRenderer.m:
  9570. (-[IFImageRenderer copyWithZone:]): Add FIXME.
  9571. (-[IFImageRenderer tileInRect:fromPoint:]): Add optimization for the
  9572. case where a single draw of the image will cover the entire area to be
  9573. tiled. Also add comments and make other small improvements.
  9574. 2002-06-28 Richard Williamson <rjw@apple.com>
  9575. Use float character measurement to determine selection
  9576. region. Necessary to ensure accuracy of selection
  9577. region. First step towards weaning khtml off int
  9578. measurements.
  9579. * WebCoreSupport.subproj/IFImageRenderer.m:
  9580. (-[IFImageRenderer tileInRect:fromPoint:]):
  9581. Cleaned up use of loadStatus.
  9582. * WebCoreSupport.subproj/IFTextRenderer.m:
  9583. (-[IFTextRenderer slowFloatWidthForCharacters:stringLength:fromCharacterPostion:numberOfCharacters:applyRounding:]):
  9584. (-[IFTextRenderer floatWidthForCharacters:stringLength:characterPosition:]):
  9585. (-[IFTextRenderer floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:applyRounding:attemptFontSubstitution:]):
  9586. 2002-06-28 Chris Blumenberg <cblu@apple.com>
  9587. * WebView.subproj/IFMainURLHandleClient.h:
  9588. * WebView.subproj/IFMainURLHandleClient.mm:
  9589. (-[IFMainURLHandleClient downloadHandler]): added
  9590. (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]): removed [downloadHandler cancel]
  9591. * WebView.subproj/IFWebDataSource.mm:
  9592. (-[IFWebDataSource stopLoading]): call [downloadHandler cancel] here so clean up is done immediately.
  9593. 2002-06-27 Richard Williamson <rjw@apple.com>
  9594. Fixed tiling of progressively loaded images.
  9595. * WebCoreSupport.subproj/IFImageRenderer.h:
  9596. * WebCoreSupport.subproj/IFImageRenderer.m:
  9597. (-[IFImageRenderer initWithSize:]):
  9598. (-[IFImageRenderer incrementalLoadWithBytes:length:complete:]):
  9599. (-[IFImageRenderer loadStatus]):
  9600. (-[IFImageRenderer tileInRect:fromPoint:]):
  9601. 2002-06-27 Richard Williamson <rjw@apple.com>
  9602. * WebCoreSupport.subproj/IFImageRenderer.h:
  9603. * WebCoreSupport.subproj/IFImageRenderer.m:
  9604. (-[IFImageRenderer incrementalLoadWithBytes:length:complete:]):
  9605. (-[IFImageRenderer loadStatus]):
  9606. (-[IFImageRenderer tileInRect:fromPoint:]):
  9607. 2002-06-27 Richard Williamson <rjw@apple.com>
  9608. * WebCoreSupport.subproj/IFTextRenderer.m:
  9609. (-[IFTextRenderer floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:applyRounding:attemptFontSubstitution:]):
  9610. Fixed uninitialized variable warning. Compile being too aggressive,
  9611. broke deployment build.
  9612. 2002-06-27 Chris Blumenberg <cblu@apple.com>
  9613. Fixed plug-in positioning.
  9614. * Plugins.subproj/IFPluginView.mm:
  9615. (-[IFPluginView
  9616. initWithFrame:plugin:url:baseURL:mime:arguments:]): added some logging.
  9617. (-[IFPluginView setWindow]): Use the window's content view as the
  9618. guide for the port's coordinates. Also added a workaround for Java.
  9619. 2002-06-27 Darin Adler <darin@apple.com>
  9620. Fixed DOM tree viewer.
  9621. * WebView.subproj/IFDOMNode.mm: (-[IFDOMNode initWithDOMNode:DOM::]):
  9622. A typo got in here somehow, leading to an infinite loop.
  9623. 2002-06-27 Darin Adler <darin@apple.com>
  9624. - fixed 2973212 -- bad arg string != nil in _IF_URLWithString
  9625. * WebView.subproj/IFWebDataSourcePrivate.mm:
  9626. (-[IFWebDataSource _startLoading:]): Get rid of essentially-dead code that
  9627. computed but did not use a URL. Also order operations so that we first
  9628. set the flag to say that we're loading, then tell the location change
  9629. handler, and only then ask for the actual I/O to being.
  9630. * WebView.subproj/IFBaseLocationChangeHandler.h: Removed.
  9631. * WebView.subproj/IFBaseLocationChangeHandler.m: Removed.
  9632. === Alexander-10 ===
  9633. 2002-06-27 Richard Williamson <rjw@apple.com>
  9634. Method name changes in preparation for fixing
  9635. TextSlave::checkSelectionPoint(). Stubbed
  9636. only, no support for new parameters yet.
  9637. * Misc.subproj/IFStringTruncator.m:
  9638. (+[IFStringTruncator centerTruncateString:toWidth:withFont:]):
  9639. * WebCoreSupport.subproj/IFTextRenderer.h:
  9640. * WebCoreSupport.subproj/IFTextRenderer.m:
  9641. (-[IFTextRenderer slowFloatWidthForCharacters:stringLength:fromCharacterPostion:numberOfCharacters:applyRounding:]):
  9642. (-[IFTextRenderer floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:]):
  9643. (-[IFTextRenderer floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:applyRounding:attemptFontSubstitution:]):
  9644. (-[IFTextRenderer widthForCharacters:length:]):
  9645. (-[IFTextRenderer widthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:]):
  9646. 2002-06-27 Richard Williamson <rjw@apple.com>
  9647. Removed old methods and references.
  9648. * WebCoreSupport.subproj/IFTextRenderer.m:
  9649. (-[IFTextRenderer drawString:atPoint:withColor:]):
  9650. (-[IFTextRenderer slowDrawCharacters:length:fromCharacterPosition:toCharacterPosition:atPoint:withTextColor:backgroundColor:attemptFontSubstitution:]):
  9651. (-[IFTextRenderer _drawCharacters:length:fromCharacterPosition:toCharacterPosition:atPoint:withTextColor:backgroundColor:]):
  9652. Fixed final fragment rendering glitch.
  9653. 2002-06-27 Darin Adler <darin@apple.com>
  9654. * WebCoreSupport.subproj/IFWebCoreViewFactory.m:
  9655. (-[IFWebCoreViewFactory viewForJavaAppletWithFrame:baseURL:parameters:]):
  9656. Pass baseURL as a separate parameter.
  9657. * WebView.subproj/IFBaseLocationChangeHandler.m: Fix a typo. I think this
  9658. file might be unneeded, but I won't delete it until I hear from Chris.
  9659. 2002-06-27 Richard Williamson <rjw@apple.com>
  9660. Fix selection in 'slow' code path (non-base characters and font substitution).
  9661. * WebCoreSupport.subproj/IFTextRenderer.m:
  9662. (-[IFTextRenderer drawGlyphs:numGlyphs:fromGlyphPosition:toGlyphPosition:atPoint:withTextColor:backgroundColor:]):
  9663. (-[IFTextRenderer slowDrawCharacters:length:fromCharacterPosition:toCharacterPosition:atPoint:withTextColor:backgroundColor:attemptFontSubstitution:]):
  9664. 2002-06-27 Richard Williamson <rjw@apple.com>
  9665. Implemented auto scrolling.
  9666. * WebView.subproj/IFHTMLView.mm:
  9667. (-[IFHTMLView mouseDragged:]):
  9668. 2002-06-27 Richard Williamson <rjw@apple.com>
  9669. Implement selectAll.
  9670. * WebView.subproj/IFHTMLView.mm:
  9671. (-[IFHTMLView selectAll:]):
  9672. 2002-06-27 Maciej Stachowiak <mjs@apple.com>
  9673. WebKit part of fixes for JavaScript cookie bugs:
  9674. 2943749 - JavaScript navigator.cookieEnabled property is always "true"
  9675. 2856039 - JavaScript document.cookies property is not implemented
  9676. Thereby also fixing:
  9677. 2944378 - Trying to log into my Yahoo web mail account sent
  9678. Alexander into a loop
  9679. * WebCoreSupport.subproj/IFCookieAdapter.h: Added.
  9680. * WebCoreSupport.subproj/IFCookieAdapter.m: Added.
  9681. (+[IFCookieAdapter createSharedAdapter]): Set up an instance of
  9682. IFCookieAdapter as the WebCoreCookieAdapter shared instance.
  9683. (-[IFCookieAdapter cookiesEnabled]): Implement in terms of
  9684. WebFoundation stuff.
  9685. (-[IFCookieAdapter cookiesForURL:]): Likewise.
  9686. (-[IFCookieAdapter setCookies:forURL:]): Likewise.
  9687. * WebKit.pbproj/project.pbxproj: Add new files to build.
  9688. * WebView.subproj/IFWebView.mm:
  9689. (-[IFWebView initWithFrame:]): Hook up the cookie adapter just
  9690. like the various factory classes.
  9691. 2002-06-27 Chris Blumenberg <cblu@apple.com>
  9692. Support for Java.
  9693. * Plugins.subproj/IFPluginView.mm:
  9694. (-[IFPluginView initWithFrame:plugin:url:baseURL:mime:arguments:]): set DOCBASE argument
  9695. * WebCoreSupport.subproj/IFWebCoreViewFactory.m:
  9696. (-[IFWebCoreViewFactory viewForJavaAppletWithFrame:andArguments:]): renamed
  9697. 2002-06-26 Richard Williamson <rjw@apple.com>
  9698. Many improvements to selection. More Cocoa like,
  9699. normalized all text drawing code paths for selected
  9700. and unselected cases.
  9701. Still need to work on:
  9702. 1. 'slow' drawing cases, i.e. runs with non-base characters
  9703. or runs requiring font substitution.
  9704. 2. Select All menu item.
  9705. 3. Auto scrolling.
  9706. * WebCoreSupport.subproj/IFTextRenderer.m:
  9707. (-[IFTextRenderer drawString:atPoint:withColor:]):
  9708. (-[IFTextRenderer drawGlyphs:numGlyphs:fromGlyphPosition:toGlyphPosition:atPoint:withTextColor:backgroundColor:]):
  9709. (-[IFTextRenderer slowDrawCharacters:length:fromCharacterPosition:toCharacterPosition:atPoint:withTextColor:backgroundColor:attemptFontSubstitution:]):
  9710. (-[IFTextRenderer _drawCharacters:length:fromCharacterPosition:toCharacterPosition:atPoint:withTextColor:backgroundColor:]):
  9711. (-[IFTextRenderer drawCharacters:length:atPoint:withTextColor:backgroundColor:]):
  9712. (-[IFTextRenderer drawCharacters:length:atPoint:withTextColor:]):
  9713. (-[IFTextRenderer drawCharacters:stringLength:fromCharacterPosition:toCharacterPosition:atPoint:withTextColor:backgroundColor:]):
  9714. 2002-06-26 Darin Adler <darin@apple.com>
  9715. - fixed 2969280 -- if trailing / not specified for site, relative URLs are
  9716. incorrectly expanded
  9717. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  9718. (-[IFWebCoreBridge receivedData:withDataSource:]): Update the URL for the
  9719. case where we've already been redirected before we receive any data.
  9720. 2002-06-26 Darin Adler <darin@apple.com>
  9721. - fixed 2971532 -- crash with null KHTMLView at gramicci.com
  9722. * WebView.subproj/IFHTMLView.mm:
  9723. (-[IFHTMLView reapplyStyles]): Handle widget == 0 case.
  9724. (-[IFHTMLView layout]): Handle widget == 0 case.
  9725. Fixed a crash I have seen many times where a data source tries
  9726. to use its parent to locate the controller after its parent is
  9727. deallocated.
  9728. * WebView.subproj/IFWebDataSourcePrivate.mm:
  9729. (-[IFWebDataSourcePrivate dealloc]): Use _parentDataSourceWillBeDeallocated
  9730. instead of _setController:nil.
  9731. * WebView.subproj/IFWebFramePrivate.h: Add _parentDataSourceWillBeDeallocated.
  9732. * WebView.subproj/IFWebFramePrivate.mm:
  9733. (-[IFWebFrame _parentDataSourceWillBeDeallocated]): Does both
  9734. a _setController:nil, and a _setParent:nil on both data sources.
  9735. 2002-06-26 John Sullivan <sullivan@apple.com>
  9736. - fixed 2971024 -- wrong item is bookmarked
  9737. -[IFWebDataSource redirectedURL] was returning the URL of a
  9738. sub-page resource.
  9739. * WebCoreSupport.subproj/IFResourceURLHandleClient.m:
  9740. (-[IFResourceURLHandleClient IFURLHandle:didRedirectToURL:]):
  9741. Removed evil call to _setFinalURL here. It had no right to live.
  9742. 2002-06-26 Darin Adler <darin@apple.com>
  9743. * WebCoreSupport.subproj/IFImageRendererFactory.m:
  9744. (-[IFImageRendererFactory imageRenderer]): Fix NSBitmapImageRep leak.
  9745. 2002-06-26 Chris Blumenberg <cblu@apple.com>
  9746. - added "complete" to to progress methods to indicate last progress message
  9747. * Plugins.subproj/IFPluginView.mm:
  9748. (-[IFPluginView setWindow]): added a draw test
  9749. * WebView.subproj/IFWebController.h:
  9750. * WebView.subproj/IFWebControllerPrivate.mm:
  9751. (-[IFWebController _receivedProgress:forResourceHandle:fromDataSource:complete:]):
  9752. (-[IFWebController _mainReceivedProgress:forResourceHandle:fromDataSource:complete:]):
  9753. 2002-06-26 Richard Williamson <rjw@apple.com>
  9754. Fixed recursion problems. +[NSFont findFontLike:forString:withRange:inLanguage:]
  9755. will alternate between suggested fonts with bogus answers. The work
  9756. around involves adding an explicit flag indicating whether or not
  9757. font substitution should be attempted.
  9758. * Misc.subproj/IFStringTruncator.m:
  9759. (+[IFStringTruncator centerTruncateString:toWidth:withFont:]):
  9760. * WebCoreSupport.subproj/IFTextRenderer.h:
  9761. * WebCoreSupport.subproj/IFTextRenderer.m:
  9762. (-[IFTextRenderer slowDrawCharacters:length:atPoint:withColor:attemptFontSubstitution:]):
  9763. (-[IFTextRenderer drawCharacters:length:atPoint:withColor:]):
  9764. (-[IFTextRenderer floatWidthForCharacters:length:applyRounding:attemptFontSubstitution:]):
  9765. (-[IFTextRenderer widthForCharacters:length:]):
  9766. 2002-06-26 Darin Adler <darin@apple.com>
  9767. * WebView.subproj/IFHTMLView.mm:
  9768. (-[IFHTMLView validateUserInterfaceItem:]): Switch to this instead
  9769. of validateMenuItem: so that a Copy toolbar button would work.
  9770. 2002-06-25 Richard Williamson <rjw@apple.com>
  9771. Disable the copy menu item when IFHTMLView has is key
  9772. and has no selection.
  9773. * WebView.subproj/IFHTMLView.mm:
  9774. (-[IFHTMLView validateMenuItem:]):
  9775. Disable menu if selection is empty.
  9776. (-[IFHTMLView copy:]):
  9777. Factored code that gets the bridge.
  9778. * WebView.subproj/IFHTMLViewPrivate.h:
  9779. Added _bridge.
  9780. * WebView.subproj/IFHTMLViewPrivate.mm:
  9781. (-[IFHTMLView _bridge]):
  9782. We need to access the bridge from the view
  9783. to get the part's selection.
  9784. 2002-06-25 Chris Blumenberg <cblu@apple.com>
  9785. Remove downloaded file if cancelled.
  9786. * Misc.subproj/IFDownloadHandler.mm:
  9787. (-[IFDownloadHandler cancel]):
  9788. 2002-06-25 Richard Williamson <rjw@apple.com>
  9789. Support for rudimentary plain text 'copy'.
  9790. * WebCoreSupport.subproj/IFImageRenderer.m:
  9791. (-[IFImageRenderer incrementalLoadWithBytes:length:complete:]):
  9792. * WebView.subproj/IFHTMLView.mm:
  9793. (-[IFHTMLView copy:]):
  9794. * WebView.subproj/IFWebViewPrivate.h:
  9795. * WebView.subproj/IFWebViewPrivate.mm:
  9796. (-[IFWebView _controller]):
  9797. 2002-06-25 Richard Williamson <rjw@apple.com>
  9798. Enabled progressive image loading code.
  9799. * WebCoreSupport.subproj/IFImageRenderer.h:
  9800. * WebCoreSupport.subproj/IFImageRenderer.m:
  9801. (-[IFImageRenderer initWithSize:]):
  9802. (-[IFImageRenderer incrementalLoadWithBytes:length:complete:]):
  9803. * WebCoreSupport.subproj/IFImageRendererFactory.m:
  9804. (-[IFImageRendererFactory imageRenderer]):
  9805. 2002-06-25 Richard Williamson <rjw@apple.com>
  9806. Extended our text measurement rounding work-around for integer-float
  9807. mismatch to round on word boundaries as well as spaces.
  9808. * WebCoreSupport.subproj/IFTextRenderer.m:
  9809. (-[IFTextRenderer drawGlyphs:numGlyphs:atPoint:withColor:]):
  9810. (-[IFTextRenderer slowFloatWidthForCharacters:length:applyRounding:]):
  9811. (-[IFTextRenderer floatWidthForCharacters:length:applyRounding:]):
  9812. 2002-06-25 Darin Adler <darin@apple.com>
  9813. * WebCoreSupport.subproj/IFResourceURLHandleClient.m:
  9814. (-[IFResourceURLHandleClient IFURLHandleResourceDidCancelLoading:]):
  9815. (-[IFResourceURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
  9816. (-[IFResourceURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  9817. Don't remove the URL handle from the data source until we've finished the
  9818. loading process in KDE code. This may fix 2968527.
  9819. * WebCoreSupport.subproj/IFTextRenderer.m: Keep around commented printfs so
  9820. I can do the "dump all strings as they are rendered" again.
  9821. * WebKit.pbproj/project.pbxproj: Re-add -Wmissing-format-attribute.
  9822. 2002-06-25 Darin Adler <darin@apple.com>
  9823. * WebCoreSupport.subproj/IFImageRenderer.m:
  9824. (-[IFImageRenderer tileInRect:fromPoint:]): Remove stray NSLog.
  9825. 2002-06-25 Darin Adler <darin@apple.com>
  9826. - fixed 2968298 -- IFImageRenderer crash at download.com
  9827. * WebCoreSupport.subproj/IFImageRenderer.m:
  9828. (-[IFImageRenderer initWithSize:]): Override this instead of [init].
  9829. This is the designated initializer and all the others call this.
  9830. (-[IFImageRenderer copyWithZone:]): Override to nil out fields that
  9831. can't be shared by the copy.
  9832. Fix leaks.
  9833. * History.subproj/IFURIEntry.m:
  9834. (-[IFURIEntry initWithURL:title:image:]): Use copy instead of retain
  9835. in case we are passed a mutable string.
  9836. (-[IFURIEntry dealloc]): Release _displayTitle. Fixes a leak.
  9837. (-[IFURIEntry setTitle:]): Use copy instead of retain in case we are
  9838. passed a mutable string.
  9839. (-[IFURIEntry setDisplayTitle:]): Use copy instead of retain in case
  9840. we are passed a mutable string.
  9841. (-[IFURIEntry initFromDictionaryRepresentation:]): Lose the extra
  9842. retain for _lastVisitedDate. Fixes a leak.
  9843. 2002-06-24 Darin Adler <darin@apple.com>
  9844. * Panels.subproj/IFStandardPanels.m:
  9845. (-[IFStandardPanels didStopLoadingURL:inWindow:]): Fix a leak caused
  9846. by calling the wrong method. This was calling objectForKey: instead of
  9847. removeObjectForKey:.
  9848. 2002-06-24 Richard Williamson <rjw@apple.com>
  9849. Changed our usage of +[NSFont findFontLike:forString:withRange:inLanguage:]
  9850. after talking with Aki. We were erroneously passing a complete
  9851. string rather than a character cluster. Fixed 2964793.
  9852. * WebCoreSupport.subproj/IFTextRenderer.m:
  9853. (findLengthOfCharacterCluster):
  9854. (-[IFTextRenderer slowPackGlyphsForCharacters:numCharacters:glyphBuffer:numGlyphs:]):
  9855. (-[IFTextRenderer drawGlyphs:numGlyphs:atPoint:withColor:]):
  9856. (-[IFTextRenderer slowDrawCharacters:length:atPoint:withColor:]):
  9857. (-[IFTextRenderer _drawCharacters:length:atPoint:withColor:]):
  9858. (-[IFTextRenderer drawCharacters:length:atPoint:withColor:]):
  9859. (-[IFTextRenderer floatWidthForCharacters:length:applyRounding:]):
  9860. 2002-06-24 Darin Adler <darin@apple.com>
  9861. * WebView.subproj/IFWebFramePrivate.mm:
  9862. (-[IFWebFrame _transitionProvisionalToCommitted]): Take ownership before
  9863. doing the setWidget. The other way the widget was getting deleted.
  9864. 2002-06-24 Chris Blumenberg <cblu@apple.com>
  9865. * Plugins.subproj/IFPlugin.h:
  9866. * Plugins.subproj/IFPlugin.m:
  9867. (-[IFPlugin initWithPath:]): Close resource files when done.
  9868. (-[IFPlugin load]): Remove Java plug-in workaround, load as mach-o
  9869. * Plugins.subproj/IFPluginView.h:
  9870. * Plugins.subproj/IFPluginView.mm:
  9871. (-[IFPluginView initWithFrame:plugin:url:baseURL:mime:arguments:]): take NSURLs
  9872. (-[IFPluginView dealloc]): release baseURL
  9873. * WebCoreSupport.subproj/IFWebCoreViewFactory.m:
  9874. (-[IFWebCoreViewFactory viewForPluginWithURL:serviceType:arguments:baseURL:]): take NSURLs
  9875. (-[IFWebCoreViewFactory viewForJavaAppletWithArguments:]):
  9876. 2002-06-24 Darin Adler <darin@apple.com>
  9877. Remove some unused stuff. Other minor cleanup.
  9878. * WebView.subproj/IFDynamicScrollBarsView.h: Remove breakRecursionCycle,
  9879. don't declare updateScrollers or resetCursorRects.
  9880. * WebView.subproj/IFDynamicScrollBarsView.m:
  9881. (-[IFDynamicScrollBarsView updateScrollers]): Make this work even for a view
  9882. that doesn't allow scrolling, turning off both scrollers in that case.
  9883. (-[IFDynamicScrollBarsView reflectScrolledClipView:]): Call updateScrollers
  9884. unconditionally, letting it decide what to do, rather than looking at
  9885. allowsScrolling. Also, no need to use a boolean to break the recursion cycle,
  9886. now that updateScrollers does no work if none is needed.
  9887. (-[IFDynamicScrollBarsView setCursor:]): Do nothing if the cursor is not
  9888. changing. Also handle arrowCursor case here.
  9889. (-[IFDynamicScrollBarsView resetCursorRects]): Call discardCursorRects so
  9890. the old rects won't keep accumulating.
  9891. (-[IFDynamicScrollBarsView setAllowsScrolling:]): Always call updateScrollers,
  9892. not just when turning scrolling off.
  9893. * WebView.subproj/IFHTMLView.mm:
  9894. (-[IFHTMLView initWithFrame:]): Remove unneeded NSWindowWillCloseNotification
  9895. and isFlipped field.
  9896. (-[IFHTMLView removeNotifications]): Moved here from NSWindowWillCloseNotification.
  9897. (-[IFHTMLView viewWillMoveToWindow:]): Remove all the notifications when the
  9898. view is removed from the window.
  9899. (-[IFHTMLView setNeedsLayout:]): Call setNeedsDisplay in the YES case, so the
  9900. callers don't all have to.
  9901. (-[IFHTMLView isFlipped]): Just return YES. No need to store it.
  9902. (-[IFHTMLView windowResized:]): Add a FIXME, since this is not the way we want
  9903. to handle view resizing for the long run.
  9904. * WebView.subproj/IFHTMLViewPrivate.h: Remove isFlipped.
  9905. 2002-06-24 Darin Adler <darin@apple.com>
  9906. Fix the last of the "leak the world" problems. The KHTMLView was leaking
  9907. in IFHTMLView.
  9908. * WebView.subproj/IFHTMLView.mm:
  9909. (-[IFHTMLView dealloc]): Call _reset instead of _stopPlugins, so we get rid
  9910. of the widget too.
  9911. (-[IFHTMLView viewWillMoveToWindow:]): Use _reset now instead of the old
  9912. _stopPlugins; also check that the window isn't already nil so we don't do a
  9913. reset as part of our first install.
  9914. (-[IFHTMLView provisionalDataSourceCommitted:]): Use the new widgetOwned
  9915. flag to tell if the widget should be deleted instead of deciding based on
  9916. whether the dataSource is the main document.
  9917. * WebView.subproj/IFHTMLViewPrivate.h: Add a widgetOwned boolean and a
  9918. private _takeOwnershipOfWidget method. Combine _resetWidget and _stopPlugins
  9919. into a single _reset call. Remove _removeSubviews.
  9920. * WebView.subproj/IFHTMLViewPrivate.mm:
  9921. (-[IFHTMLView _reset]): New name for the combination of _resetWidget and
  9922. _stopPlugins. Now it decides whether to delete the widget based on the
  9923. widget owned flag, so it is safe to call even for non-main-document views.
  9924. (-[IFHTMLView _takeOwnershipOfWidget]): Sets widgetOwned to NO.
  9925. * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame reset]): Use _resetWidget
  9926. under its new name _reset.
  9927. * WebView.subproj/IFWebFramePrivate.mm:
  9928. (-[IFWebFrame _transitionProvisionalToCommitted]): Don't bother doing
  9929. explicit _stopPlugins and _removeSubviews. It's now the view's own responsibility
  9930. to do this in viewWillMoveToWindow:. Call _takeOwnershipOfWidget after attaching
  9931. the widget to the RenderPart.
  9932. * WebView.subproj/IFImageView.m: (-[IFImageView viewWillMoveToWindow:]): Added.
  9933. Break the reference cycle by stopping animated IFImageRenderer here instead of
  9934. waiting for dealloc.
  9935. * Plugins.subproj/IFPluginView.mm: (-[IFPluginView setWindow]): Fix a warning
  9936. by changing the printf format string to match the parameter type.
  9937. * Misc.subproj/WebKitDebug.h: Re-add the __format__ attribute, now that Radar
  9938. 2920557 is fixed.
  9939. 2002-06-23 Darin Adler <darin@apple.com>
  9940. * WebCoreSupport.subproj/IFImageRenderer.m: (-[IFImageRenderer nextFrame:]):
  9941. Use hasAlpha instead of isOpaque because the latter does not work (Radar 2966937).
  9942. 2002-06-21 Darin Adler <darin@apple.com>
  9943. * WebCoreSupport.subproj/IFImageRenderer.m:
  9944. (-[IFImageRenderer nextFrame:]): Add back the higher-speed case where
  9945. we draw directly for opaque animated images.
  9946. 2002-06-21 Darin Adler <darin@apple.com>
  9947. Cache the patterns we make for tiled images for added speed.
  9948. * WebCoreSupport.subproj/IFImageRenderer.h: Removed declarations of
  9949. methods inherited from WebCoreImageRenderer. Added patternColor field.
  9950. * WebCoreSupport.subproj/IFImageRenderer.m:
  9951. (-[IFImageRenderer dealloc]): Release patternColor.
  9952. (-[IFImageRenderer beginAnimationInRect:fromRect:]): Get the view with
  9953. [NSView focusView] rather than taking a parameter that's used only for
  9954. the animating case.
  9955. (-[IFImageRenderer tileInRect:fromPoint:]): New. Caches the pattern in
  9956. the patternColor field.
  9957. * WebView.subproj/IFImageView.m: (-[IFImageView drawRect:]): No need to
  9958. pass view to image renderer any more.
  9959. 2002-06-21 Darin Adler <darin@apple.com>
  9960. Fix rendering of non-opaque animated images.
  9961. * WebCoreSupport.subproj/IFImageRenderer.m:
  9962. (-[IFImageRenderer nextFrame:]): Use [NSView displayRect:] instead of
  9963. drawing explicitly so that views behind us get a chance to draw too.
  9964. This is less efficient than just drawing for opaque images, but NSImage
  9965. doesn't offer a way to find out if the image is opaque. Also, this changes
  9966. things a bit because beginAnimationInView gets called again, so we don't
  9967. have to reschedule the timer.
  9968. 2002-06-20 Richard Williamson <rjw@apple.com>
  9969. * WebCoreSupport.subproj/IFImageRenderer.m:
  9970. (-[IFImageRenderer frameDuration]):
  9971. Added minimum 1/60th second duration per frame.
  9972. * WebView.subproj/IFDynamicScrollBarsView.m:
  9973. (-[IFDynamicScrollBarsView updateScrollers]):
  9974. Only display scrollview if scrollers changed.
  9975. * WebView.subproj/IFWebFramePrivate.mm:
  9976. (-[IFWebFrame _setState:]):
  9977. Explicity turn on copiesOnScroll. This may cause problems w/
  9978. plugins. Need to verify once plugins are no longer crashing.
  9979. 2002-06-20 Darin Adler <darin@apple.com>
  9980. Fix for leak where sub-frame IFHTMLViews would not call _stopPlugins.
  9981. * Plugins.subproj/IFPluginView.mm:
  9982. (-[IFPluginView viewWillMoveToWindow:]):
  9983. * WebView.subproj/IFHTMLView.mm:
  9984. (-[IFHTMLView viewWillMoveToWindow:]):
  9985. Use this viewWillMoveToWindow instead of removeFromSuperview; it's a more
  9986. reliable way to handle cases where the view is removed from the view hierarchy.
  9987. Fix for IFWebFrame -> IFWebDataSource -> LoadProgressMonitor -> IFWebFrame
  9988. reference cycle.
  9989. * WebView.subproj/IFLocationChangeHandler.h: Add dataSource parameters for the
  9990. methods that don't have them so this can be "delegate" style.
  9991. * WebView.subproj/IFWebController.h: Pass a dataSource instead of a frame
  9992. when asking for a location change handler.
  9993. * WebView.subproj/IFMainURLHandleClient.mm:
  9994. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  9995. Pass dataSource for locationChangeDone.
  9996. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _startLoading:]):
  9997. Pass dataSource for locationChangeStarted.
  9998. * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame setProvisionalDataSource:]):
  9999. Pass a dataSource instead of a frame when asking for a location change handler.
  10000. * WebView.subproj/IFWebFramePrivate.mm:
  10001. (-[IFWebFrame _transitionProvisionalToCommitted]): Pass dataSource for
  10002. locationChangeCommitted.
  10003. (-[IFWebFrame _isLoadComplete]): Pass dataSource for locationChangeDone.
  10004. * force-clean-timestamp: Give this mechanism a try. I'm not sure
  10005. we really need a clean build right now.
  10006. * WebView.subproj/IFWebDataSource.mm: Simplify.
  10007. 2002-06-20 Kenneth Kocienda <kocienda@apple.com>
  10008. A more complete fix for this bug:
  10009. Radar 2942728 (Link to Yahoo! Finance stocks page fails, says URL is "not a valid location")
  10010. I added a new +(NSURL)_IF_URLWithString: method to IFNSURLExtensions.
  10011. This is now the suggested way to create a URL from a string.
  10012. * History.subproj/IFURIEntry.m:
  10013. (-[IFURIEntry initFromDictionaryRepresentation:])
  10014. * History.subproj/IFURLsWithTitles.m:
  10015. (+[IFURLsWithTitles URLsFromPasteboard:])
  10016. * History.subproj/IFWebHistoryPrivate.m:
  10017. (-[IFWebHistoryPrivate updateURL:title:displayTitle:forURL:])
  10018. * Plugins.subproj/IFNullPluginView.mm:
  10019. (-[IFNullPluginView initWithFrame:mimeType:arguments:])
  10020. * Plugins.subproj/IFPluginView.mm:
  10021. (-[IFPluginView initWithFrame:plugin:url:mime:arguments:])
  10022. (-[IFPluginView loadURL:inTarget:withNotifyData:andHandleAttributes:])
  10023. * WebCoreSupport.subproj/IFWebCoreViewFactory.m:
  10024. (-[IFWebCoreViewFactory viewForPluginWithURL:serviceType:arguments:baseURL:])
  10025. * WebKit.pbproj/project.pbxproj:
  10026. * WebView.subproj/IFWebDataSource.h:
  10027. * WebView.subproj/IFWebDataSourcePrivate.mm:
  10028. (-[IFWebDataSource _startLoading:])
  10029. * WebView.subproj/IFWebView.mm:
  10030. (-[IFWebView performDragOperation:])
  10031. === Alexander-9 ===
  10032. 2002-06-19 Richard Williamson <rjw@apple.com>
  10033. Break image renderer reference cycle. When a view is removed from the view
  10034. hierarchy active image renderers are told to stop animating,
  10035. which will, in turn, cause them to release their view. We leverage
  10036. the existing _stopPlugins mechanism.
  10037. * WebCoreSupport.subproj/IFImageRenderer.h:
  10038. * WebCoreSupport.subproj/IFImageRenderer.m:
  10039. (+[IFImageRenderer stopAnimationsInView:]):
  10040. (-[IFImageRenderer beginAnimationInView:inRect:fromRect:]):
  10041. (-[IFImageRenderer frameView]):
  10042. (-[IFImageRenderer stopAnimation]):
  10043. * WebView.subproj/IFHTMLViewPrivate.mm:
  10044. (-[IFHTMLView _stopPlugins]):
  10045. 2002-06-19 John Sullivan <sullivan@apple.com>
  10046. - fixed 2960677 -- attempt to insert nil key; content policy set twice on particular page.
  10047. The problem here was a bad URL not being propogated through the error-handling machinery
  10048. correctly because the url handle was nil, but used to get its string.
  10049. * WebCoreSupport.subproj/IFResourceURLHandleClient.m:
  10050. (+[IFResourceURLHandleClient startLoadingResource:withURL:dataSource:]):
  10051. * WebView.subproj/IFWebControllerPrivate.mm: Use IFError init method that takes
  10052. failingURL.
  10053. (-[IFWebController _receivedProgress:forResourceHandle:fromDataSource:complete:]):
  10054. (-[IFWebController _receivedError:forResourceHandle:partialProgress:fromDataSource:]):
  10055. Check [error failingURL] when resource handle is nil.
  10056. 2002-06-19 Darin Adler <darin@apple.com>
  10057. Fixed a storage leak and made some other changes to go along with
  10058. corresponding WebCore changes.
  10059. * WebCoreSupport.subproj/IFResourceURLHandleClient.m:
  10060. (-[IFResourceURLHandleClient didStartLoadingWithURL:]): Added.
  10061. (-[IFResourceURLHandleClient didStopLoading]): Added.
  10062. (-[IFResourceURLHandleClient dealloc]):
  10063. (-[IFResourceURLHandleClient IFURLHandleResourceDidBeginLoading:]):
  10064. (-[IFResourceURLHandleClient IFURLHandleResourceDidCancelLoading:]):
  10065. (-[IFResourceURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
  10066. (-[IFResourceURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  10067. (-[IFResourceURLHandleClient IFURLHandle:didRedirectToURL:]):
  10068. Use didStartLoadingWithURL and didStopLoading to cure problems where the
  10069. handle would be left in the data sources list of loading handles.
  10070. * WebView.subproj/IFDynamicScrollBarsView.h: Changed to conform to the
  10071. WebCoreFrameView protocol.
  10072. * Misc.subproj/WebKitDebug.h: Cloned improved assert code from WebFoundation.
  10073. * WebView.subproj/IFDynamicScrollBarsView.m: Fixed comment.
  10074. 2002-06-19 Chris Blumenberg <cblu@apple.com>
  10075. Call setWindow in layout so that plug-in content is drawn without
  10076. needing to resize.
  10077. * Plugins.subproj/IFPluginView.mm:
  10078. (-[IFPluginView layout]):
  10079. (-[IFPluginView viewHasMoved:]):
  10080. 2002-06-19 Kenneth Kocienda <kocienda@apple.com>
  10081. I just played alchemical voodoo games with the linker to
  10082. make all our frameworks and Alexander prebound.
  10083. * WebKit.pbproj/project.pbxproj
  10084. 2002-06-18 Chris Blumenberg <cblu@apple.com>
  10085. Fix for 2961733 - Progress of plug-in files not shown in activity window
  10086. Plugin classed must call _IF_superviewWithName: not _IF_parentWebView
  10087. * Plugins.subproj/IFNullPluginView.mm:
  10088. (-[IFNullPluginView drawRect:]):
  10089. * Plugins.subproj/IFPluginStream.mm: minor cleanup
  10090. (-[IFPluginStream IFURLHandle:resourceDataDidBecomeAvailable:]):
  10091. (-[IFPluginStream IFURLHandleResourceDidFinishLoading:data:]):
  10092. (-[IFPluginStream IFURLHandleResourceDidCancelLoading:]):
  10093. (-[IFPluginStream IFURLHandle:resourceDidFailLoadingWithResult:]):
  10094. (-[IFPluginStream IFURLHandle:didRedirectToURL:]):
  10095. * Plugins.subproj/IFPluginView.mm:
  10096. (-[IFPluginView start]):
  10097. (-[IFPluginView layout]):
  10098. 2002-06-18 Chris Blumenberg <cblu@apple.com>
  10099. Enabled the viewing of plug-in content inline
  10100. (aka direct links to plugin media). Made IFPluginView a
  10101. IFDocumentView and IFPluginStream a IFDocumentRespresentation.
  10102. Renamed content policy API's to include the data source.
  10103. * Plugins.subproj/IFPluginDatabase.h:
  10104. * Plugins.subproj/IFPluginDatabase.m:
  10105. (+[IFPluginDatabase installedPlugins]): registers plugins as IFDocument*
  10106. * Plugins.subproj/IFPluginStream.h:
  10107. * Plugins.subproj/IFPluginStream.mm:
  10108. (-[IFPluginStream init]): added for IFDocumentRepresentation
  10109. (-[IFPluginStream initWithURL:pluginPointer:notifyData:attributes:]): removed load initiliazatoin
  10110. (-[IFPluginStream dealloc]):
  10111. (-[IFPluginStream startLoad]): added
  10112. (-[IFPluginStream stop]):
  10113. (-[IFPluginStream receivedData:]): added as the base implementation
  10114. (-[IFPluginStream receivedError]): added as the base implementation
  10115. (-[IFPluginStream finishedLoadingWithData:]): added as the base implementation
  10116. (-[IFPluginStream receivedData:withDataSource:]): added for IFDocumentRepresentation
  10117. (-[IFPluginStream receivedError:withDataSource:]): added for IFDocumentRepresentation
  10118. (-[IFPluginStream finishedLoadingWithDataSource:]): added for IFDocumentRepresentation
  10119. (-[IFPluginStream IFURLHandleResourceDidBeginLoading:]):
  10120. (-[IFPluginStream IFURLHandle:resourceDataDidBecomeAvailable:]): call receivedData
  10121. (-[IFPluginStream IFURLHandleResourceDidFinishLoading:data:]): call finishedLoadingWithData
  10122. (-[IFPluginStream IFURLHandleResourceDidCancelLoading:]): call receivedError
  10123. (-[IFPluginStream IFURLHandle:resourceDidFailLoadingWithResult:]): call receivedError
  10124. (-[IFPluginStream IFURLHandle:didRedirectToURL:]):
  10125. * Plugins.subproj/IFPluginView.h:
  10126. * Plugins.subproj/IFPluginView.mm:
  10127. (-[IFPluginView initWithFrame:plugin:url:mime:arguments:]): removed special-case code for NP_FULL mose
  10128. (-[IFPluginView start]):
  10129. (-[IFPluginView initWithFrame:]): added for IFDocumentView
  10130. (-[IFPluginView provisionalDataSourceChanged:]): added for IFDocumentView
  10131. (-[IFPluginView provisionalDataSourceCommitted:]): added for IFDocumentView
  10132. (-[IFPluginView dataSourceUpdated:]): added for IFDocumentView
  10133. (-[IFPluginView layout]): added for IFDocumentView
  10134. (-[IFPluginView removeFromSuperview]): call stop
  10135. (-[IFPluginView loadURL:inTarget:withNotifyData:andHandleAttributes:]):
  10136. (-[IFPluginView pluginInstance]): added
  10137. * WebCoreSupport.subproj/IFWebCoreViewFactory.m:
  10138. (-[IFWebCoreViewFactory viewForPluginWithURL:serviceType:arguments:baseURL:]): call new init method
  10139. (-[IFWebCoreViewFactory viewForJavaAppletWithArguments:]): call new init method
  10140. * WebKit.pbproj/project.pbxproj:
  10141. * WebView.subproj/IFLocationChangeHandler.h: content policy method name changes
  10142. * WebView.subproj/IFMainURLHandleClient.mm:
  10143. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]): content policy method name changes
  10144. * WebView.subproj/IFWebController.h:
  10145. * WebView.subproj/IFWebController.mm:
  10146. (-[IFWebController haveContentPolicy:andPath:forDataSource:]): content policy method name changes
  10147. * WebView.subproj/IFWebDataSourcePrivate.h:
  10148. 2002-06-18 Kenneth Kocienda <kocienda@apple.com>
  10149. Fix for this bug:
  10150. Radar 2928483 (activity viewer does not show all the pieces of a web page when the page is cached)
  10151. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  10152. (-[IFWebCoreBridge objectLoadedFromCache:size:]): New method that sends the appropriate progress indication.
  10153. 2002-06-17 Richard Williamson <rjw@apple.com>
  10154. Fixed window.open regression.
  10155. Partial fix to targeting frame of new name.
  10156. * WebCoreSupport.subproj/IFWebCoreBridge.h:
  10157. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  10158. (-[IFWebCoreBridge openNewWindowWithURL:]):
  10159. Return the newly created bridge.
  10160. (-[IFWebCoreBridge receivedData:withDataSource:]):
  10161. Use setDataSource: method
  10162. (-[IFWebCoreBridge startLoadingResource:withURL:]):
  10163. No change.
  10164. (-[IFWebCoreBridge setDataSource:]):
  10165. New method.
  10166. * WebView.subproj/IFHTMLView.mm:
  10167. (-[IFHTMLView mouseMovedNotification:]):
  10168. Selection support.
  10169. (-[IFHTMLView mouseDragged:]):
  10170. Selection support.
  10171. * WebView.subproj/IFWebController.mm:
  10172. (-[IFWebController haveContentPolicy:andPath:forLocationChangeHandler:]):
  10173. Only change representation if it hasn't been pre-bound, or if it's
  10174. class changed.
  10175. * WebView.subproj/IFWebFrame.mm:
  10176. (-[IFWebFrame initWithName:webView:provisionalDataSource:controller:]):
  10177. More hackery to support window.open.
  10178. 2002-06-17 Darin Adler <darin@apple.com>
  10179. Fixed many of the reasons that we were leaking the world. But we still leak
  10180. KHTMLPart objects, so there must be more problems.
  10181. * WebCoreSupport.subproj/IFResourceURLHandleClient.m:
  10182. (+[IFResourceURLHandleClient startLoadingResource:withURL:dataSource:]):
  10183. Add missing autorelease. Without this, we leak the world.
  10184. (-[IFResourceURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  10185. Weaken assert. It was firing before.
  10186. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  10187. (-[IFWebCoreBridge receivedData:withDataSource:]): Don't retain the
  10188. dataSource any more. Without this, we leak the world.
  10189. * WebView.subproj/IFWebControllerPrivate.mm:
  10190. (-[IFWebControllerPrivate dealloc]): Release the policy handler too.
  10191. Without this, we leak the world.
  10192. * WebView.subproj/IFWebDataSourcePrivate.mm:
  10193. (-[IFWebDataSourcePrivate dealloc]): Release resourceData, representation,
  10194. downloadPath, encoding, and contentType. Without this, we leak the world.
  10195. * WebView.subproj/IFWebFrame.mm:
  10196. (-[IFWebFrame initWithName:webView:provisionalDataSource:controller:]):
  10197. Release the dummy data source after setting it up so it doesn't leak.
  10198. * WebView.subproj/IFHTMLViewPrivate.mm:
  10199. (-[IFHTMLViewPrivate dealloc]): Don't release the controller, we didn't retain it.
  10200. (-[IFHTMLView _resetWidget]): Delete the provisional widget too.
  10201. * WebView.subproj/IFWebDataSourcePrivate.h: Remove unused "children" array.
  10202. * WebCoreSupport.subproj/IFImageRenderer.m: Fix comment.
  10203. * WebView.subproj/IFHTMLView.mm: Fix comments.
  10204. 2002-06-17 Richard Williamson <rjw@apple.com>
  10205. Fixed call to renamed progress method.
  10206. * Plugins.subproj/IFPluginStream.mm:
  10207. 2002-06-17 Chris Blumenberg <cblu@apple.com>
  10208. * WebView.subproj/IFWebDataSource.h:
  10209. * WebView.subproj/IFWebDataSource.mm:
  10210. (-[IFWebDataSource contentType]): no changes
  10211. (-[IFWebDataSource fileType]): added. Returns extension based on MIME.
  10212. 2002-06-17 Richard Williamson <rjw@apple.com>
  10213. Added explicit complete check for resources, rather
  10214. than depend on bytesSoFar == totalToLoad.
  10215. * WebCoreSupport.subproj/IFResourceURLHandleClient.m:
  10216. (-[IFResourceURLHandleClient receivedProgressWithHandle:complete:]):
  10217. (-[IFResourceURLHandleClient IFURLHandleResourceDidBeginLoading:]):
  10218. (-[IFResourceURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  10219. (-[IFResourceURLHandleClient IFURLHandleResourceDidCancelLoading:]):
  10220. (-[IFResourceURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
  10221. * WebView.subproj/IFWebControllerPrivate.h:
  10222. * WebView.subproj/IFWebControllerPrivate.mm:
  10223. (-[IFWebController _receivedProgress:forResourceHandle:fromDataSource:complete:]):
  10224. 2002-06-17 Chris Blumenberg <cblu@apple.com>
  10225. Fix for 2939881. No more overwritting of one's files.
  10226. * Misc.subproj/IFDownloadHandler.mm:
  10227. (-[IFDownloadHandler receivedData:]):
  10228. (-[IFDownloadHandler finishedLoading]):
  10229. 2002-06-17 Richard Williamson <rjw@apple.com>
  10230. Fixed IFImageViews not drawing correctly.
  10231. Changed compeletion to explicity use IFURLHandleResourceDidFinishLoading, rather
  10232. than depend on bytesSoFar == totalToLoad.
  10233. * WebView.subproj/IFMainURLHandleClient.mm:
  10234. (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]):
  10235. (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
  10236. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  10237. * WebView.subproj/IFWebControllerPrivate.h:
  10238. * WebView.subproj/IFWebControllerPrivate.mm:
  10239. (-[IFWebController _mainReceivedProgress:forResourceHandle:fromDataSource:complete:]):
  10240. 2002-06-16 Darin Adler <darin@apple.com>
  10241. * WebCoreSupport.subproj/IFWebCoreFrame.m: (-[IFWebCoreFrame bridge]): Added.
  10242. 2002-06-16 Darin Adler <darin@apple.com>
  10243. Add a separate WebCoreFrame alongside WebCoreBridge to facilitate
  10244. handling of frames with no HTML content in them. This probably fixes
  10245. frames named "_blank".
  10246. * WebCoreSupport.subproj/IFResourceURLHandleClient.m:
  10247. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  10248. (-[IFWebCoreBridge frame]): Added.
  10249. (-[IFWebCoreBridge parent]): Changed name from parentFrame, to emphasize that this gives a WebCoreBridge.
  10250. (-[IFWebCoreBridge childFrames]): Return IFWebCoreFrame objects.
  10251. (-[IFWebCoreBridge childFrameNamed:]): Return IFWebCoreFrame object.
  10252. (-[IFWebCoreBridge descendantFrameNamed:]): Return IFWebCoreFrame object.
  10253. (-[IFWebCoreBridge createChildFrameNamed:withURL:renderPart:khtml::allowsScrolling:marginWidth:marginHeight:]):
  10254. Use the loadURL operation in IFWebCoreFrame.
  10255. (-[IFWebCoreBridge mainFrame]): Return IFWebCoreFrame object.
  10256. (-[IFWebCoreBridge frameNamed:]): Return IFWebCoreFrame object.
  10257. * WebCoreSupport.subproj/IFWebCoreFrame.h: Added.
  10258. * WebCoreSupport.subproj/IFWebCoreFrame.m: Added.
  10259. * WebKit.pbproj/project.pbxproj: Update for added files.
  10260. * WebView.subproj/IFHTMLViewPrivate.h: Made this includable from plain Objective C.
  10261. * WebView.subproj/IFWebFrame.mm:
  10262. (-[IFWebFrame initWithName:webView:provisionalDataSource:controller:]): Create the IFWebCoreFrame.
  10263. * WebView.subproj/IFWebFramePrivate.h: Add _bridgeFrame method for getting IFWebCoreFrame.
  10264. * WebView.subproj/IFWebFramePrivate.mm:
  10265. (-[IFWebFramePrivate dealloc]): Release the IFWebCoreFrame.
  10266. (-[IFWebFrame _bridgeFrame]): Added.
  10267. 2002-06-16 Darin Adler <darin@apple.com>
  10268. Moved the IFURLHandleClient subclass here from WebCore, so it can some day be merged
  10269. with the one for the frames themselves; this one is for resources.
  10270. * WebCoreSupport.subproj/IFResourceURLHandleClient.h: Added.
  10271. * WebCoreSupport.subproj/IFResourceURLHandleClient.m: Added.
  10272. * WebKit.pbproj/project.pbxproj: Added IFResourceURLHandleClient.h and .m.
  10273. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  10274. (-[IFWebCoreBridge startLoadingResource:withURL:]): Added.
  10275. Removed all the old methods, with their guts moved into IFResourceURLHandleClient.
  10276. 2002-06-15 Darin Adler <darin@apple.com>
  10277. Update for frame-related changes in WebCore.
  10278. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  10279. (-[IFWebFrame _bridge]): Look at provisional data source first.
  10280. (-[IFWebCoreBridge dealloc]): Release the data source.
  10281. (-[IFWebCoreBridge parentFrame]): Renamed.
  10282. (-[IFWebCoreBridge childFrames]): Renamed.
  10283. (-[IFWebCoreBridge childFrameNamed:]): Added.
  10284. (-[IFWebCoreBridge descendantFrameNamed:]): Added.
  10285. (-[IFWebCoreBridge didFinishLoadingWithHandle:]): Don't call _didStopLoading twice
  10286. when we finish loading.
  10287. Also changed controller getters to call [dataSource controller] and got rid of the
  10288. [IFWebCoreBridge controller] method.
  10289. 2002-06-15 Richard Williamson <rjw@apple.com>
  10290. * Misc.subproj/IFNSViewExtras.h:
  10291. * Misc.subproj/IFNSViewExtras.m:
  10292. (-[NSView _IF_superviewWithName:]):
  10293. (-[NSView _IF_parentWebView]):
  10294. Replaced use of _IF_superviewWithName w/ safer _IF_parentWebView.
  10295. * Plugins.subproj/IFNullPluginView.mm:
  10296. (-[IFNullPluginView drawRect:]):
  10297. Replaced use of _IF_superviewWithName w/ safer _IF_parentWebView.
  10298. * Plugins.subproj/IFPluginStream.mm:
  10299. (-[IFPluginStream IFURLHandle:resourceDataDidBecomeAvailable:]):
  10300. (-[IFPluginStream IFURLHandleResourceDidFinishLoading:data:]):
  10301. (-[IFPluginStream IFURLHandleResourceDidCancelLoading:]):
  10302. (-[IFPluginStream IFURLHandle:resourceDidFailLoadingWithResult:]):
  10303. Call _receiveProgress instead of directly calling handler.
  10304. * Plugins.subproj/IFPluginView.mm:
  10305. (-[IFPluginView start]):
  10306. Replaced use of _IF_superviewWithName w/ safer _IF_parentWebView.
  10307. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  10308. (-[IFWebCoreBridge loadURL:attributes:flags:inFrame:withParent:]):
  10309. Handle changing top frame correctly. Parent may be nil.
  10310. (-[IFWebCoreBridge didFinishLoadingWithHandle:]):
  10311. Added non-terminal error case.
  10312. * WebView.subproj/IFHTMLView.mm:
  10313. (-[IFHTMLView provisionalDataSourceCommitted:]):
  10314. Replaced use of _IF_superviewWithName w/ safer _IF_parentWebView.
  10315. * WebView.subproj/IFMainURLHandleClient.mm:
  10316. * WebView.subproj/IFWebControllerPrivate.mm:
  10317. Comment changes.
  10318. 2002-06-15 Darin Adler <darin@apple.com>
  10319. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  10320. Added a lot of assertions that I had used while debugging.
  10321. (-[IFWebCoreBridge didRedirectWithHandle:fromURL:]):
  10322. Commented out the line of code that calls [serverRedirectTo:forDataSource:].
  10323. Our old code was sending this to the web controller (that was a bug).
  10324. But if we send it to the location change handler, then we confuse Alexander.
  10325. We may return to this later, uncomment it, and change the interface so the
  10326. client can tell what is being redirected. We'll need to do that if we want
  10327. the activity window to show redirected URLs at the time of the redirect.
  10328. 2002-06-15 Richard Williamson <rjw@apple.com>
  10329. Fixed _bridge not accounting for provisional data source,
  10330. broke access to window.frames during load.
  10331. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  10332. (-[IFWebFrame _bridge]):
  10333. (-[IFWebCoreBridge children]):
  10334. * WebView.subproj/IFWebFramePrivate.mm:
  10335. (-[IFWebFrame _isLoadComplete]):
  10336. 2002-06-15 Darin Adler <darin@apple.com>
  10337. * WebView.subproj/IFHTMLView.mm:
  10338. (-[IFHTMLView provisionalDataSourceChanged:]): Don't turn negative numbers into
  10339. 0 for margins. This was a mistake.
  10340. 2002-06-15 Darin Adler <darin@apple.com>
  10341. - fixed 2942808 -- remove all calls to WebKit from WebCore
  10342. Update to use the WebCore bridge for more things, reducing
  10343. dependencies in both directions. Besides using the bridge for all the
  10344. remaining WebCore to WebKit calls, almost no WebKit code deals with
  10345. KHTMLPart directly any more, instead the other side of the bridge handles it.
  10346. * Plugins.subproj/IFPluginStream.mm:
  10347. (-[IFPluginStream IFURLHandleResourceDidBeginLoading:]): Remove unneeded casts.
  10348. (-[IFPluginStream IFURLHandle:resourceDataDidBecomeAvailable:]):
  10349. (-[IFPluginStream IFURLHandleResourceDidFinishLoading:data:]):
  10350. (-[IFPluginStream IFURLHandleResourceDidCancelLoading:]):
  10351. (-[IFPluginStream IFURLHandle:resourceDidFailLoadingWithResult:]):
  10352. (-[IFPluginStream IFURLHandle:didRedirectToURL:]):
  10353. Use the new IFProgress methods to simplify code.
  10354. * WebCoreSupport.subproj/IFWebCoreBridge.h: Use the new WebCoreBridge protocol
  10355. so we get a compiler error if we forget to implement anything. Add a method for
  10356. IFWebDataSource that gets the WebCoreBridge if it has an IFHTMLRepresentation,
  10357. and nil otherwise.
  10358. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  10359. (-[IFWebDataSource _bridge]): Add; does checking so that it returns
  10360. nil if the representation is not an IFHTMLRepresentation. This is now used
  10361. almost everywhere so we don't have to do so much type casting.
  10362. (-[IFWebCoreBridge loadURL:attributes:flags:inFrame:withParent:]): Remove a
  10363. stray use of [IFWebCoreBridge dataSource] so we can remove it.
  10364. (-[IFWebCoreBridge receivedData:withDataSource:]): Use the
  10365. new [WebCoreBridge openURL:] and [WebCoreBridge addData:] methods from the
  10366. other side of the bridge so we don't have to deal with the KHTMLPart directly.
  10367. (-[IFWebCoreBridge addHandle:]): Added.
  10368. (-[IFWebCoreBridge removeHandle:]): Added.
  10369. (-[IFWebCoreBridge didStartLoadingWithHandle:]): Added.
  10370. (-[IFWebCoreBridge receivedProgressWithHandle:]): Added.
  10371. (-[IFWebCoreBridge didFinishLoadingWithHandle:]): Added.
  10372. (-[IFWebCoreBridge didCancelLoadingWithHandle:]): Added.
  10373. (-[IFWebCoreBridge didFailBeforeLoadingWithError:]): Added.
  10374. (-[IFWebCoreBridge didFailToLoadWithHandle:error:]): Added.
  10375. (-[IFWebCoreBridge didRedirectWithHandle:fromURL:]): Added.
  10376. * WebView.subproj/IFHTMLRepresentation.h: Remove unneeded declarations.
  10377. * WebView.subproj/IFHTMLRepresentation.mm: Remove [IFHTMLRepresentation part].
  10378. * WebView.subproj/IFHTMLRepresentationPrivate.h: Remove [IFHTMLRepresentation part].
  10379. * WebView.subproj/IFHTMLView.mm: (-[IFHTMLView provisionalDataSourceChanged:]): Use the bridge.
  10380. * WebView.subproj/IFHTMLViewPrivate.mm: Remove a bunch of unused stuff that was
  10381. there for the render and document tree viewers. I had removed it once before but
  10382. it got re-added as a side effect of the reorganization process.
  10383. * WebView.subproj/IFLoadProgress.h: Remove the unused IFLoadType -- we can add
  10384. it back if we find that it's needed. It didn't do much good to have it here
  10385. and only partly implemented, and I don't think it's needed. Added some convenient
  10386. interfaces for creating IFLoadProgress objects.
  10387. * WebView.subproj/IFLoadProgress.mm: Get rid of WCSetIFLoadProgressMakeFunc stuff.
  10388. (-[IFLoadProgress init]): Added.
  10389. (-[IFLoadProgress initWithBytesSoFar:totalToLoad:]): Remove type part.
  10390. (-[IFLoadProgress initWithURLHandle:]): Added.
  10391. (+[IFLoadProgress progress]): Added.
  10392. (+[IFLoadProgress progressWithBytesSoFar:totalToLoad:]): Added.
  10393. (+[IFLoadProgress progressWithURLHandle:]): Added.
  10394. * WebView.subproj/IFMainURLHandleClient.mm:
  10395. (-[IFMainURLHandleClient dealloc]): Add more workaround for 2954901.
  10396. (-[IFMainURLHandleClient IFURLHandleResourceDidBeginLoading:]):
  10397. (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]):
  10398. (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
  10399. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  10400. (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  10401. (-[IFMainURLHandleClient IFURLHandle:didRedirectToURL:]):
  10402. Remove unneeded type casts and simplify by using new IFLoadProgress methods.
  10403. Also simplify access to _bridge by using [IFWebDataSource _bridge].
  10404. * WebView.subproj/IFWebControllerPrivate.mm:
  10405. * WebView.subproj/IFWebFrame.mm:
  10406. Remove unneeded include of KHTMLPart header.
  10407. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource documentTextFromDOM]):
  10408. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _stopLoading]):
  10409. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _isLoadComplete]):
  10410. Use bridge.
  10411. 2002-06-15 Maciej Stachowiak <mjs@apple.com>
  10412. Made Development build mode mean what Unoptimized used to mean. Removed Unoptimized build mode.
  10413. Added a Mixed build mode which does what Deployment used to. All this to fix:
  10414. Radar 2955367 - Change default build style to "Unoptimized"
  10415. * WebKit.pbproj/project.pbxproj:
  10416. 2002-06-15 Maciej Stachowiak <mjs@apple.com>
  10417. Added temporary workardound for Radar 2954901 by making the assertion more lenient.
  10418. * WebView.subproj/IFMainURLHandleClient.mm:
  10419. (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]):
  10420. 2002-06-14 Richard Williamson <rjw@apple.com>
  10421. Removed redundant private _isDocumentHTML method.
  10422. * WebView.subproj/IFMainURLHandleClient.mm:
  10423. (-[IFMainURLHandleClient IFURLHandle:didRedirectToURL:]):
  10424. * WebView.subproj/IFWebDataSourcePrivate.h:
  10425. * WebView.subproj/IFWebDataSourcePrivate.mm:
  10426. (-[IFWebDataSource _stopLoading]):
  10427. (-[IFWebDataSource _addError:forResource:]):
  10428. * WebView.subproj/IFWebFramePrivate.mm:
  10429. (-[IFWebFrame _isLoadComplete]):
  10430. 2002-06-14 Richard Williamson <rjw@apple.com>
  10431. Added handlers to IFWebController. Should eventually be possible to use
  10432. IFWebController w/o subclassing.
  10433. Changed IFResourceProgressHandler to pass back resource handle instead of
  10434. string description. This will address the needs descibed in 2954160.
  10435. Fixed many incorrect references to datasource reps.
  10436. * Plugins.subproj/IFNullPluginView.mm:
  10437. (-[IFNullPluginView drawRect:]):
  10438. * Plugins.subproj/IFPluginStream.mm:
  10439. (-[IFPluginStream IFURLHandle:resourceDataDidBecomeAvailable:]):
  10440. (-[IFPluginStream IFURLHandleResourceDidFinishLoading:data:]):
  10441. (-[IFPluginStream IFURLHandleResourceDidCancelLoading:]):
  10442. (-[IFPluginStream IFURLHandle:resourceDidFailLoadingWithResult:]):
  10443. * WebCoreSupport.subproj/IFWebCoreBridge.mm:
  10444. (-[IFWebDataSource _bridge]):
  10445. (-[IFWebCoreBridge createNewFrameNamed:withURL:renderPart:khtml::allowsScrolling:marginWidth:marginHeight:]):
  10446. * WebView.subproj/IFDocument.h:
  10447. * WebView.subproj/IFHTMLRepresentation.h:
  10448. * WebView.subproj/IFHTMLRepresentationPrivate.h:
  10449. * WebView.subproj/IFHTMLView.mm:
  10450. (-[IFHTMLView provisionalDataSourceChanged:]):
  10451. (-[IFHTMLView viewWillStartLiveResize]):
  10452. (-[IFHTMLView viewDidEndLiveResize]):
  10453. * WebView.subproj/IFImageView.m:
  10454. * WebView.subproj/IFMainURLHandleClient.mm:
  10455. (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]):
  10456. (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
  10457. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  10458. (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  10459. (-[IFMainURLHandleClient IFURLHandle:didRedirectToURL:]):
  10460. * WebView.subproj/IFWebController.h:
  10461. * WebView.subproj/IFWebController.mm:
  10462. (-[IFWebController createFrameNamed:for:inParent:allowsScrolling:]):
  10463. (-[IFWebController setResourceProgressHandler:]):
  10464. (-[IFWebController resourceProgressHandler]):
  10465. (-[IFWebController setPolicyHandler:]):
  10466. (-[IFWebController policyHandler]):
  10467. (+[IFWebController defaultURLPolicyForURL:]):
  10468. * WebView.subproj/IFWebControllerPrivate.h:
  10469. * WebView.subproj/IFWebControllerPrivate.mm:
  10470. (-[IFWebControllerPrivate dealloc]):
  10471. (-[IFWebController _receivedProgress:forResourceHandle:fromDataSource:]):
  10472. (-[IFWebController _mainReceivedProgress:forResourceHandle:fromDataSource:]):
  10473. (-[IFWebController _receivedError:forResourceHandle:partialProgress:fromDataSource:]):
  10474. (-[IFWebController _mainReceivedError:forResourceHandle:partialProgress:fromDataSource:]):
  10475. * WebView.subproj/IFWebDataSource.h:
  10476. * WebView.subproj/IFWebDataSource.mm:
  10477. (-[IFWebDataSource representation]):
  10478. (-[IFWebDataSource isDocumentHTML]):
  10479. (-[IFWebDataSource documentTextFromDOM]):
  10480. * WebView.subproj/IFWebDataSourcePrivate.h:
  10481. * WebView.subproj/IFWebDataSourcePrivate.mm:
  10482. (-[IFWebDataSourcePrivate dealloc]):
  10483. (-[IFWebDataSource _setRepresentation:]):
  10484. (-[IFWebDataSource _stopLoading]):
  10485. (-[IFWebDataSource _isDocumentHTML]):
  10486. * WebView.subproj/IFWebFrame.mm:
  10487. (-[IFWebFrame setProvisionalDataSource:]):
  10488. * WebView.subproj/IFWebFramePrivate.mm:
  10489. (-[IFWebFrame _isLoadComplete]):
  10490. 2002-06-14 Darin Adler <darin@apple.com>
  10491. * Panels.subproj/IFStandardPanels.m: Use the real PTHREAD_ONCE_INIT,
  10492. remove the workaround for 2905545.
  10493. * IFWebCoreBridge.h: Moved into WebCoreSupport.subproj.
  10494. * IFWebCoreBridge.mm: Moved into WebCoreSupport.subproj.
  10495. * WebCoreSupport.subproj/IFWebCoreBridge.h: Moved from top level.
  10496. * WebCoreSupport.subproj/IFWebCoreBridge.mm: Moved from top level.
  10497. * WebKit.pbproj/project.pbxproj: Update for new file locations.
  10498. Also pass -no-c++filt so we get mangled names (more useful for .exp files),
  10499. and remove PFE_FILE_C_DIALECTS.
  10500. 2002-06-14 Chris Blumenberg <cblu@apple.com>
  10501. * WebView.subproj/IFMainURLHandleClient.mm:
  10502. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  10503. If content type is the default type and there is no extension, assume HTML.
  10504. (-[IFMainURLHandleClient IFURLHandle:didRedirectToURL:]):
  10505. * WebView.subproj/IFWebDataSource.h:
  10506. * WebView.subproj/IFWebDataSource.mm: Made isDocumentHTML public
  10507. (-[IFWebDataSource isDocumentHTML]):
  10508. (-[IFWebDataSource documentSource]):
  10509. (-[IFWebDataSource documentTextFromDOM]):
  10510. * WebView.subproj/IFWebDataSourcePrivate.h:
  10511. * WebView.subproj/IFWebDataSourcePrivate.mm:
  10512. (-[IFWebDataSource _stopLoading]):
  10513. (-[IFWebDataSource _addError:forResource:]):
  10514. * WebView.subproj/IFWebFramePrivate.mm:
  10515. (-[IFWebFrame _isLoadComplete]):
  10516. 2002-06-14 Darin Adler <darin@apple.com>
  10517. * Panels.subproj/IFStandardPanels.m: Fix what I broke last time.
  10518. 2002-06-14 Darin Adler <darin@apple.com>
  10519. * Panels.subproj/IFStandardPanels.m:
  10520. (-[IFStandardPanelsPrivate frontmostWindowLoadingURL:]): Change to call webView
  10521. instead of view. Not sure why anyone was able to compile this.
  10522. * Plugins.subproj/IFNullPluginView.mm: Remove include of obsolete WCPluginWidget.h.
  10523. * WebView.subproj/IFHTMLRepresentation.mm: (-[IFHTMLRepresentation part]):
  10524. Call part instead of KHTMLPart. Not sure why anyone was able to compile this.
  10525. 2002-06-14 Darin Adler <darin@apple.com>
  10526. Add the new bridge class that connects us to WebCore in a nicer way.
  10527. Started to use it for some things. More to come.
  10528. * WebKit.pbproj/project.pbxproj:
  10529. * IFWebCoreBridge.h: Added.
  10530. * IFWebCoreBridge.mm: Added.
  10531. * Misc.subproj/IFDownloadHandler.mm:
  10532. (-[IFDownloadHandler initWithDataSource:]): Call [super init].
  10533. (-[IFDownloadHandler dealloc]): Call [super dealloc].
  10534. * Plugins.subproj/IFPluginNullEventSender.m:
  10535. (-[IFPluginNullEventSender initializeWithNPP:functionPointer:window:]): Call [super init].
  10536. (-[IFPluginNullEventSender dealloc]): Call [super dealloc].
  10537. * WebView.subproj/IFDOMNode.mm: (-[IFDOMNode dealloc]): Call [super dealloc].
  10538. * WebView.subproj/IFImageView.m: (-[IFImageView dealloc]): Call [super dealloc].
  10539. * WebView.subproj/IFRenderNode.mm: (-[IFRenderNode dealloc]): Call [super dealloc].
  10540. * WebView.subproj/IFHTMLRepresentation.h: Moved variables into a private structure so
  10541. this class can be made public.
  10542. * WebView.subproj/IFHTMLRepresentationPrivate.h: Added. Has _bridge method.
  10543. * WebView.subproj/IFHTMLRepresentation.mm:
  10544. (-[IFHTMLRepresentation init]): Call [super init]. Also use the new private structure,
  10545. and allocate the IFWebCoreBridge.
  10546. (-[IFHTMLRepresentation dealloc]): Release the private structure and the IFWebCoreBridge.
  10547. Also, call [super dealloc].
  10548. (-[IFHTMLRepresentation _bridge]): Private method to get to the bridge.
  10549. (-[IFHTMLRepresentation receivedData:withDataSource:]): Use IFWebCoreBridge.
  10550. * WebView.subproj/IFWebViewPrivate.h: Add _setMarginWidth and _setMarginHeight.
  10551. * WebView.subproj/IFWebDataSourcePrivate.h: Tweak.
  10552. * WebView.subproj/IFWebDataSource.mm: Tweak.
  10553. * History.subproj/IFWebHistoryPrivate.m: Tweak.
  10554. 2002-06-14 Richard Williamson <rjw@apple.com>
  10555. Lots of frame related cleanup. Added attempt to get
  10556. nested scrollbars to work correctly with window's resize
  10557. corner. Still not quite right.
  10558. Name change [IFWebFrame view] -> [IFWebFrame webView].
  10559. * WebView.subproj/IFDynamicScrollBarsView.m:
  10560. (-[IFDynamicScrollBarsView updateScrollers]):
  10561. * WebView.subproj/IFHTMLView.mm:
  10562. (-[IFHTMLView provisionalDataSourceChanged:]):
  10563. (-[IFHTMLView viewDidEndLiveResize]):
  10564. * WebView.subproj/IFMainURLHandleClient.mm:
  10565. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  10566. * WebView.subproj/IFWebController.h:
  10567. * WebView.subproj/IFWebController.mm:
  10568. (-[IFWebController initWithView:provisionalDataSource:]):
  10569. (-[IFWebController createFrameNamed:for:inParent:inScrollView:]):
  10570. (-[IFWebController _frameForView:fromFrame:]):
  10571. (-[IFWebController frameForView:]):
  10572. (-[IFWebController haveContentPolicy:andPath:forLocationChangeHandler:]):
  10573. * WebView.subproj/IFWebControllerPrivate.mm:
  10574. (-[IFWebControllerPrivate _clearControllerReferences:]):
  10575. * WebView.subproj/IFWebFrame.h:
  10576. * WebView.subproj/IFWebFrame.mm:
  10577. (-[IFWebFrame init]):
  10578. (-[IFWebFrame initWithName:webView:provisionalDataSource:controller:]):
  10579. (-[IFWebFrame setWebView:]):
  10580. (-[IFWebFrame webView]):
  10581. (-[IFWebFrame setProvisionalDataSource:]):
  10582. (-[IFWebFrame reset]):
  10583. * WebView.subproj/IFWebFramePrivate.h:
  10584. * WebView.subproj/IFWebFramePrivate.mm:
  10585. (-[IFWebFramePrivate dealloc]):
  10586. (-[IFWebFramePrivate setWebView:]):
  10587. (-[IFWebFrame _timedLayout:]):
  10588. (-[IFWebFrame _transitionProvisionalToCommitted]):
  10589. (-[IFWebFrame _setState:]):
  10590. (-[IFWebFrame _isLoadComplete]):
  10591. 2002-06-14 Richard Williamson <rjw@apple.com>
  10592. * WebView.subproj/IFHTMLView.mm:
  10593. (-[IFHTMLView initWithFrame:]):
  10594. Added notification so we can intelligently add/remove
  10595. mouse move observation when the window becomes/resigns
  10596. main. Also added window close observation so we can
  10597. clean up other observers.
  10598. (-[IFHTMLView viewWillStartLiveResize]):\
  10599. Backed out removal of scroll bars during resize.
  10600. (-[IFHTMLView viewDidEndLiveResize]):
  10601. Backed out removal of scroll bars during resize.
  10602. (-[IFHTMLView windowWillClose:]):
  10603. Clean up observers.
  10604. (-[IFHTMLView windowDidBecomeMain:]):
  10605. Add mouse move observer.
  10606. (-[IFHTMLView windowDidResignMain:]):
  10607. Remove mouse move observer.
  10608. (-[IFHTMLView mouseMovedNotification:]):
  10609. Only pay attention to mouse moves for this window.
  10610. * WebView.subproj/IFImageView.m:
  10611. (-[IFImageView layout]):
  10612. Removed unnecessary scroll view setDrawBackground calls.
  10613. * WebView.subproj/IFWebFramePrivate.mm:
  10614. (-[IFWebFrame _setState:]):
  10615. Added calls to scroll view setDrawBackground when the view
  10616. rect is valid.
  10617. 2002-06-14 Chris Blumenberg <cblu@apple.com>
  10618. Enabled displaying of text, images and RTF
  10619. Fixed drag & drop
  10620. 2002-06-13 John Sullivan <sullivan@apple.com>
  10621. Various changes to better support the pasteboard.
  10622. * Bookmarks.subproj/IFBookmark.h,
  10623. * Bookmarks.subproj/IFBookmark.m:
  10624. (+[IFBookmark bookmarkOfType:]): New method.
  10625. * Bookmarks.subproj/IFBookmarkLeaf.m:
  10626. (-[IFBookmarkLeaf init]): start out with a non-nil _entry
  10627. (-[IFBookmarkLeaf setTitle:]): added assert
  10628. (-[IFBookmarkLeaf setURLString:]): added assert
  10629. * History.subproj/IFURLsWithTitles.h,
  10630. * History.subproj/IFURLsWithTitles.m:
  10631. (+[IFURLsWithTitles arrayWithIFURLsWithTitlesPboardType]),
  10632. (+[IFURLsWithTitles writeURLs:andTitles:toPasteboard:]),
  10633. (+[IFURLsWithTitles titlesFromPasteboard:]),
  10634. (+[IFURLsWithTitles URLsFromPasteboard:]):
  10635. New file with methods for reading/writing pasteboard entry representing
  10636. a list of URLs with associated titles. Used by Bookmarks window and
  10637. History window in Alexander.
  10638. * History.subproj/IFWebHistoryPrivate.m:
  10639. (-[IFWebHistoryPrivate removeEntryForURLString:]): refactored to turn a
  10640. WEBKITDEBUG into a more-appropriate WEBKIT_ASSERT.
  10641. * WebKit.pbproj/project.pbxproj: Updated for new files.
  10642. 2002-06-13 Kenneth Kocienda <kocienda@apple.com>
  10643. Fixed typo in ChangeLog comment.
  10644. 2002-06-13 Kenneth Kocienda <kocienda@apple.com>
  10645. Fixed uninitialized variable that broke the build.
  10646. * WebView.subproj/IFMainURLHandleClient.mm:
  10647. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:])
  10648. 2002-06-13 Richard Williamson <rjw@apple.com>
  10649. Lots of cleanup. Fixed most regressions.
  10650. Added removal of scrollbars during resizing,
  10651. not sure if it's the correct behavior, but it makes resizing
  10652. much smoother. Let's see what people think.
  10653. * WebView.subproj/IFDynamicScrollBarsView.h:
  10654. * WebView.subproj/IFDynamicScrollBarsView.m:
  10655. (-[IFDynamicScrollBarsView initWithFrame:]):
  10656. (-[IFDynamicScrollBarsView reflectScrolledClipView:]):
  10657. (-[IFDynamicScrollBarsView updateScrollers]):
  10658. (-[IFDynamicScrollBarsView setCursor:]):
  10659. (-[IFDynamicScrollBarsView setAllowsScrolling:]):
  10660. (-[IFDynamicScrollBarsView allowsScrolling]):
  10661. * WebView.subproj/IFHTMLView.mm:
  10662. (-[IFHTMLView provisionalDataSourceChanged:]):
  10663. (-[IFHTMLView provisionalDataSourceCommitted:]):
  10664. (-[IFHTMLView viewWillStartLiveResize]):
  10665. (-[IFHTMLView viewDidEndLiveResize]):
  10666. * WebView.subproj/IFHTMLViewPrivate.h:
  10667. * WebView.subproj/IFHTMLViewPrivate.mm:
  10668. (-[IFHTMLViewPrivate dealloc]):
  10669. (-[IFHTMLView _provisionalWidget]):
  10670. * WebView.subproj/IFWebFramePrivate.mm:
  10671. (-[IFWebFrame _timedLayout:]):
  10672. (-[IFWebFrame _isLoadComplete]):
  10673. * WebView.subproj/IFWebView.h:
  10674. * WebView.subproj/IFWebView.mm:
  10675. (-[IFWebView initWithFrame:]):
  10676. (-[IFWebView setAllowsScrolling:]):
  10677. (-[IFWebView allowsScrolling]):
  10678. (-[IFWebView frameScrollView]):
  10679. (-[IFWebView documentView]):
  10680. (+[IFWebView createViewForMIMEType:]):
  10681. (-[IFWebView isOpaque]):
  10682. (-[IFWebView drawRect:]):
  10683. * WebView.subproj/IFWebViewPrivate.h:
  10684. * WebView.subproj/IFWebViewPrivate.mm:
  10685. (-[IFWebViewPrivate dealloc]):
  10686. (-[IFWebView _setDocumentView:]):
  10687. 2002-06-13 Chris Blumenberg <cblu@apple.com>
  10688. Removed MIME.subproj. Moved IFDownloadHandler to Misc.
  10689. * MIME.subproj/IFDownloadHandler.h: Removed.
  10690. * MIME.subproj/IFDownloadHandler.mm: Removed.
  10691. * Misc.subproj/IFDownloadHandler.h: Added.
  10692. * Misc.subproj/IFDownloadHandler.mm: Added.
  10693. (-[IFDownloadHandler initWithDataSource:]):
  10694. (-[IFDownloadHandler dealloc]):
  10695. (-[IFDownloadHandler receivedData:isComplete:]):
  10696. (-[IFDownloadHandler cancel]):
  10697. * WebKit.pbproj/project.pbxproj:
  10698. 2002-06-13 Chris Blumenberg <cblu@apple.com>
  10699. Fixed downloads.
  10700. Now write out download files as data comes in.
  10701. Removed useless lproj's.
  10702. * Dutch.lproj/InfoPlist.strings: Removed.
  10703. * Dutch.lproj/Localizable.strings: Removed.
  10704. * French.lproj/InfoPlist.strings: Removed.
  10705. * French.lproj/Localizable.strings: Removed.
  10706. * German.lproj/InfoPlist.strings: Removed.
  10707. * German.lproj/Localizable.strings: Removed.
  10708. * Italian.lproj/InfoPlist.strings: Removed.
  10709. * Italian.lproj/Localizable.strings: Removed.
  10710. * Japanese.lproj/InfoPlist.strings: Removed.
  10711. * Japanese.lproj/Localizable.strings: Removed.
  10712. * MIME.subproj/IFDownloadHandler.h:
  10713. * MIME.subproj/IFDownloadHandler.mm:
  10714. (-[IFDownloadHandler dealloc]):
  10715. (-[IFDownloadHandler receivedData:isComplete:]): added
  10716. (-[IFDownloadHandler cancel]): added
  10717. * Spanish.lproj/InfoPlist.strings: Removed.
  10718. * Spanish.lproj/Localizable.strings: Removed.
  10719. * WebKit.pbproj/project.pbxproj:
  10720. * WebView.subproj/IFMainURLHandleClient.h:
  10721. * WebView.subproj/IFMainURLHandleClient.mm:
  10722. (-[IFMainURLHandleClient initWithDataSource:]): removed unused BOOL
  10723. (-[IFMainURLHandleClient dealloc]):
  10724. (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]):
  10725. (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
  10726. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  10727. (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  10728. 2002-06-12 Chris Blumenberg <cblu@apple.com>
  10729. Couldn't run ChangeLog because it hung with the massize diffs, so here's
  10730. a hand-made one.
  10731. Changes to support inline views.
  10732. Modified Files:
  10733. WebKit/ChangeLog WebKit/Plugins.subproj/IFNullPluginView.mm
  10734. WebKit/Plugins.subproj/IFPluginDatabase.h
  10735. WebKit/Plugins.subproj/IFPluginDatabase.m
  10736. WebKit/Plugins.subproj/IFPluginView.mm
  10737. WebKit/WebCoreSupport.subproj/IFImageRenderer.h
  10738. WebKit/WebCoreSupport.subproj/IFWebCoreViewFactory.m
  10739. WebKit/WebKit.pbproj/project.pbxproj
  10740. WebKit/WebView.subproj/IFDOMNode.mm
  10741. WebKit/WebView.subproj/IFDynamicScrollBarsView.m
  10742. WebKit/WebView.subproj/IFMainURLHandleClient.h
  10743. WebKit/WebView.subproj/IFMainURLHandleClient.mm
  10744. WebKit/WebView.subproj/IFRenderNode.mm
  10745. WebKit/WebView.subproj/IFWebController.h
  10746. WebKit/WebView.subproj/IFWebController.mm
  10747. WebKit/WebView.subproj/IFWebControllerPrivate.h
  10748. WebKit/WebView.subproj/IFWebControllerPrivate.mm
  10749. WebKit/WebView.subproj/IFWebDataSource.h
  10750. WebKit/WebView.subproj/IFWebDataSource.mm
  10751. WebKit/WebView.subproj/IFWebDataSourcePrivate.h
  10752. WebKit/WebView.subproj/IFWebDataSourcePrivate.mm
  10753. WebKit/WebView.subproj/IFWebFrame.mm
  10754. WebKit/WebView.subproj/IFWebFramePrivate.h
  10755. WebKit/WebView.subproj/IFWebFramePrivate.mm
  10756. WebKit/WebView.subproj/IFWebView.h
  10757. WebKit/WebView.subproj/IFWebView.mm
  10758. WebKit/WebView.subproj/IFWebViewPrivate.h
  10759. WebKit/WebView.subproj/IFWebViewPrivate.mm
  10760. Added Files:
  10761. WebKit/Misc.subproj/IFNSViewExtras.h
  10762. WebKit/Misc.subproj/IFNSViewExtras.m
  10763. WebKit/WebView.subproj/IFDocument.h
  10764. WebKit/WebView.subproj/IFHTMLRepresentation.h
  10765. WebKit/WebView.subproj/IFHTMLRepresentation.mm
  10766. WebKit/WebView.subproj/IFHTMLView.h
  10767. WebKit/WebView.subproj/IFHTMLView.mm
  10768. WebKit/WebView.subproj/IFHTMLViewPrivate.h
  10769. WebKit/WebView.subproj/IFHTMLViewPrivate.mm
  10770. WebKit/WebView.subproj/IFImageRepresentation.h
  10771. WebKit/WebView.subproj/IFImageRepresentation.m
  10772. WebKit/WebView.subproj/IFImageView.h
  10773. WebKit/WebView.subproj/IFImageView.m
  10774. WebKit/WebView.subproj/IFTextRepresentation.h
  10775. WebKit/WebView.subproj/IFTextRepresentation.m
  10776. WebKit/WebView.subproj/IFTextView.h
  10777. WebKit/WebView.subproj/IFTextView.m
  10778. Removed Files:
  10779. WebKit/MIME.subproj/IFContentHandler.h
  10780. WebKit/MIME.subproj/IFContentHandler.m
  10781. WebKit/MIME.subproj/IFMIMEHandler.h
  10782. WebKit/MIME.subproj/IFMIMEHandler.m
  10783. 2002-06-12 Kenneth Kocienda <kocienda@apple.com>
  10784. * Misc.subproj/WebKitDebug.h: Made assertion failure console message bolder and easier to see.
  10785. 2002-06-11 Darin Adler <darin@apple.com>
  10786. * WebView.subproj/IFMainURLHandleClient.mm:
  10787. Add lots of assertions that allowed me to find the "leak the world" bug that Ken
  10788. fixed in WebFoundation. These are a good idea anyway.
  10789. * Plugins.subproj/IFPluginStream.mm:
  10790. (-[IFPluginStream initWithURL:pluginPointer:notifyData:attributes:]): Use cStringLength
  10791. to get the length for the cString rather than assuming that length will be right.
  10792. (-[IFPluginStream IFURLHandle:didRedirectToURL:]): Add a FIXME.
  10793. 2002-06-11 John Sullivan <sullivan@apple.com>
  10794. Made methods that convert bookmarks to and from
  10795. property-list-compatible dictionaries public so they
  10796. can be used in the Bookmarks window for cut/paste.
  10797. * Bookmarks.subproj/IFBookmark.h:
  10798. * Bookmarks.subproj/IFBookmark.m:
  10799. (+[IFBookmark bookmarkFromDictionaryRepresentation:withGroup:]): New method
  10800. (-[IFBookmark initFromDictionaryRepresentation:withGroup:]):
  10801. (-[IFBookmark dictionaryRepresentation]):
  10802. * Bookmarks.subproj/IFBookmarkGroup.m:
  10803. (-[IFBookmarkGroup _loadBookmarkGroupGuts]):
  10804. (-[IFBookmarkGroup _saveBookmarkGroupGuts]):
  10805. * Bookmarks.subproj/IFBookmarkLeaf.m:
  10806. (-[IFBookmarkLeaf initFromDictionaryRepresentation:withGroup:]):
  10807. (-[IFBookmarkLeaf dictionaryRepresentation]):
  10808. * Bookmarks.subproj/IFBookmarkList.m:
  10809. (-[IFBookmarkList initFromDictionaryRepresentation:withGroup:]):
  10810. (-[IFBookmarkList dictionaryRepresentation]):
  10811. * Bookmarks.subproj/IFBookmarkSeparator.m:
  10812. (-[IFBookmarkSeparator initFromDictionaryRepresentation:withGroup:]):
  10813. (-[IFBookmarkSeparator dictionaryRepresentation]):
  10814. * Bookmarks.subproj/IFBookmark_Private.h: Removed leading underscores from
  10815. _initFromDictionaryRepresentation and _dictionaryRepresentation, and made
  10816. them public.
  10817. 2002-06-11 Darin Adler <darin@apple.com>
  10818. * WebView.subproj/IFDOMNode.h: Added.
  10819. * WebView.subproj/IFDOMNode.mm: Added.
  10820. * WebView.subproj/IFRenderNode.h: Added.
  10821. * WebView.subproj/IFRenderNode.mm: Added.
  10822. These contain all the interesting bits of the code for the render
  10823. and DOM tree viewers, mostly moved here from WebBrowser.
  10824. * WebView.subproj/IFWebViewPrivate.mm: Remove the methods in here that
  10825. aren't declared in the header and are only used for the render and DOM
  10826. tree viewers.
  10827. * WebKit.pbproj/project.pbxproj: Add new files.
  10828. 2002-06-10 Darin Adler <darin@apple.com>
  10829. * Makefile.am: Do a clean before building if the force-clean-timestamp file is
  10830. newer than the previous-clean-timestamp. Edit force-clean-timestamp (doesn't
  10831. matter what you change as long as you change it) to force a clean build in WebKit.
  10832. * force-clean-timestamp: Added.
  10833. * .cvsignore: Ignore previous-clean-timestamp.
  10834. 2002-06-10 Darin Adler <darin@apple.com>
  10835. * WebCoreSupport.subproj/IFTextRenderer.h: Remove the flavor of
  10836. floatWidthForCharacters without the applyRounding boolean.
  10837. * WebCoreSupport.subproj/IFTextRenderer.m:
  10838. (-[IFTextRenderer drawCharacters:length:atPoint:withColor:]): Remove logic about
  10839. characters in the 0x7F-0xA0 range, since it's already handled by the time we get
  10840. around to drawing.
  10841. (-[IFTextRenderer floatWidthForCharacters:length:applyRounding:]): Pass in the
  10842. applyRounding boolean when calling through to slowFloatWidthForCharacters.
  10843. Move logic about characters in the 0x7F-0xA0 range from here into
  10844. [extendCharacterToGlyphMapToInclude:].
  10845. (-[IFTextRenderer widthForCharacters:length:]): Call the version of
  10846. floatWidthForCharacters that takes the applyRounding parameter; this was the only
  10847. client of the flavor that didn't take the parameter.
  10848. (-[IFTextRenderer extendCharacterToGlyphMapToInclude:]): Add the logic about
  10849. characters in the 0x7F-0xA0 range into here.
  10850. 2002-06-10 Richard Williamson <rjw@apple.com>
  10851. Tweaks to rounding code.
  10852. Added Cocoa-exact width measurement emulation flag to support IFStringTruncator.
  10853. Remove code that was already conditionally excluded calls to support
  10854. non-specified advance drawing (we now depend on tweaked advances).
  10855. * Misc.subproj/IFStringTruncator.m:
  10856. (+[IFStringTruncator centerTruncateString:toWidth:withFont:]):
  10857. * WebCoreSupport.subproj/IFTextRenderer.h:
  10858. * WebCoreSupport.subproj/IFTextRenderer.m:
  10859. (-[IFTextRenderer initWithFont:]):
  10860. (-[IFTextRenderer drawCharacters:length:atPoint:withColor:]):
  10861. (-[IFTextRenderer slowFloatWidthForCharacters:length:applyRounding:]):
  10862. (-[IFTextRenderer slowFloatWidthForCharacters:length:]):
  10863. (-[IFTextRenderer floatWidthForCharacters:length:applyRounding:]):
  10864. (-[IFTextRenderer floatWidthForCharacters:length:]):
  10865. (-[IFTextRenderer extendCharacterToGlyphMapToInclude:]):
  10866. 2002-06-10 Darin Adler <darin@apple.com>
  10867. * WebCoreSupport.subproj/IFCachedTextRenderer.m: Removed.
  10868. 2002-06-10 John Sullivan <sullivan@apple.com>
  10869. Fixed leaks in History mechanism, found by overriding
  10870. release, retain, autorelease, and dealloc and watching
  10871. the spam fly.
  10872. * History.subproj/IFWebHistoryPrivate.m:
  10873. (-[IFWebHistoryPrivate addEntry:]): Make autoreleased array for
  10874. entries on a given date.
  10875. (-[IFWebHistoryPrivate _loadHistoryGuts:]): autorelease entries
  10876. as they are generated from data on disk.
  10877. 2002-06-10 Darin Adler <darin@apple.com>
  10878. * WebCoreSupport.subproj/IFTextRenderer.m:
  10879. (-[IFTextRenderer drawCharacters:length:atPoint:withColor:]):
  10880. Fix a typo where I left the S off of DRAW_WITHOUT_ADVANCES.
  10881. 2002-06-10 Richard Williamson <rjw@apple.com>
  10882. 90% solution to round-off problem. khtml breaks measures text on space
  10883. boundaries during layout. It assumes integer measurement, CG uses float
  10884. measurements. Some common fonts have non-integer space width. So,
  10885. differences in between drawing advances and measurement of space characters
  10886. can easily accumulate enough to be visually apparent. We may still accumulate
  10887. differences across words, although it's much less visible than for spaces.
  10888. As a next step we can fudge the advances of words to force
  10889. integer widths, although I think, given how khtml work, just accounting for
  10890. consistency in measuring and drawing spaces may be sufficient.
  10891. Many sites that looked flaky before now render correctly.
  10892. * WebCoreSupport.subproj/IFTextRenderer.m:
  10893. (-[IFTextRenderer drawCharacters:length:atPoint:withColor:]):
  10894. Force rounding of advance for space characters.
  10895. (-[IFTextRenderer floatWidthForCharacters:length:]):
  10896. Force rounding of measurement for space characters.
  10897. 2002-06-09 John Sullivan <sullivan@apple.com>
  10898. WebKit part of fix for 2949646 (Can't drag & drop bookmarks
  10899. into auto-expanded folder). To get this to work right, I gave
  10900. each bookmark a unique (per-session) identifier.
  10901. While working on this, I found and fixed some leaks of bookmarks.
  10902. * Bookmarks.subproj/IFBookmark.h:
  10903. New -[identifier] method and _identifier ivar.
  10904. * Bookmarks.subproj/IFBookmark.m:
  10905. (+[IFBookmark _generateUniqueIdentifier]):
  10906. (-[IFBookmark init]):
  10907. (-[IFBookmark dealloc]):
  10908. Remember unique identifier in each bookmark as it is created;
  10909. delete when dealloc'd.
  10910. (-[IFBookmark identifier]): Return unique identifier.
  10911. (-[IFBookmark _setParent:]): Don't retain parent, to avoid
  10912. circular ownership.
  10913. (-[IFBookmark _setGroup:]): Tell coming and going group.
  10914. * Bookmarks.subproj/IFBookmarkGroup.h:
  10915. New +[bookmarkForIdentifier] method and _bookmarksByID ivar.
  10916. * Bookmarks.subproj/IFBookmarkGroup_Private.h:
  10917. Declarations of _removedBookmark: and _addedBookmark:
  10918. * Bookmarks.subproj/IFBookmarkGroup.m:
  10919. (-[IFBookmarkGroup initWithFile:]): alloc _bookmarksByID.
  10920. (-[IFBookmarkGroup dealloc]): release _bookmarksByID.
  10921. (-[IFBookmarkGroup _setTopBookmark:]): Don't bail out early;
  10922. would now cause leak.
  10923. (-[IFBookmarkGroup _removedBookmark:]): New method, removes
  10924. bookmark from _bookmarksByID.
  10925. (-[IFBookmarkGroup _addedBookmark:]): New method, adds bookmark to
  10926. _bookmarksByID.
  10927. (-[IFBookmarkGroup bookmarkForIdentifier:]): Looks up bookmark from
  10928. _bookmarksByID dictionary.
  10929. (-[IFBookmarkGroup _loadBookmarkGroupGuts]): autorelease newTopbookmark;
  10930. this had been leaking.
  10931. * Bookmarks.subproj/IFBookmarkList.m:
  10932. (-[IFBookmarkList _initFromDictionaryRepresentation:withGroup:]):
  10933. autorelease children before adding them to parent; this had been leaking.
  10934. 2002-06-09 Darin Adler <darin@apple.com>
  10935. * WebCoreSupport.subproj/IFTextRenderer.m:
  10936. (-[IFTextRenderer drawCharacters:length:atPoint:withColor:]):
  10937. Fixed a possible uninitialized variable problem that the compiler and Don caught.
  10938. 2002-06-09 Darin Adler <darin@apple.com>
  10939. * WebCoreSupport.subproj/IFTextRenderer.m:
  10940. (-[IFTextRenderer drawCharacters:length:atPoint:withColor:]):
  10941. Add code to handle drawing when are more than LOCAL_GLYPH_BUFFER_SIZE advances.
  10942. I ran into this loading <http://jersey.apple.com/data/20020606-074404M0.html>.
  10943. Also fix handling of advances for the obscure case where we hit a non-base character,
  10944. slowPackGlyphsForCharacters fails, and substituteFontforCharacters returns nil.
  10945. 2002-06-07 Darin Adler <darin@apple.com>
  10946. * Makefile.am: Use new shared "embed.am" file so we don't need four copies of
  10947. the embedding rules for WebFoundation, JavaScriptCore, WebCore, and WebKit.
  10948. 2002-06-07 Darin Adler <darin@apple.com>
  10949. * MIME.subproj/IFContentHandler.m: (-[IFContentHandler HTMLDocument]):
  10950. Fix a warning that shows up with the new C++ compiler (not sure why it
  10951. is not showing up with the old one).
  10952. 2002-06-07 Chris Blumenberg <cblu@apple.com>
  10953. Allow plug-ins to make a NPP_*URLNotify request when
  10954. the target is _self, _top, _parent or _current. This goes
  10955. against the plug-in documentation, but mimics IE.
  10956. Need for iTools.
  10957. * Plugins.subproj/IFPluginView.mm:
  10958. (-[IFPluginView loadURL:inTarget:withNotifyData:andHandleAttributes:]):
  10959. 2002-06-07 Darin Adler <darin@apple.com>
  10960. * WebKit.pbproj/project.pbxproj: Don't use any warning flags for C that won't work
  10961. for C++, because PFE uses the C warning flags on a C++ compile.
  10962. 2002-06-07 Chris Blumenberg <cblu@apple.com>
  10963. Made IFWebController a class.
  10964. Fixed all places where IFWebController was referred to as a protocol.
  10965. Renamed IFBaseWebController files to IFWebController.
  10966. IFWebController.h replaces IFWebBaseController.h.
  10967. Added support for IEPL plug-ins.
  10968. * Panels.subproj/IFStandardPanels.m:
  10969. (-[IFStandardPanels _didStartLoadingURL:inController:]):
  10970. (-[IFStandardPanels _didStopLoadingURL:inController:]):
  10971. * Panels.subproj/IFStandardPanelsPrivate.h:
  10972. * Plugins.subproj/IFNullPluginView.mm:
  10973. (-[IFNullPluginView drawRect:]):
  10974. * Plugins.subproj/IFPlugin.h:
  10975. * Plugins.subproj/IFPlugin.m:
  10976. (-[IFPlugin _getPluginInfoForResourceFile:]):
  10977. (-[IFPlugin initWithPath:]):
  10978. (-[IFPlugin load]):
  10979. (-[IFPlugin description]):
  10980. * Plugins.subproj/IFPluginStream.mm:
  10981. (-[IFPluginStream IFURLHandleResourceDidBeginLoading:]):
  10982. (-[IFPluginStream IFURLHandleResourceDidFinishLoading:data:]):
  10983. (-[IFPluginStream IFURLHandleResourceDidCancelLoading:]):
  10984. (-[IFPluginStream IFURLHandle:resourceDidFailLoadingWithResult:]):
  10985. (-[IFPluginStream IFURLHandle:didRedirectToURL:]):
  10986. * Plugins.subproj/IFPluginView.h:
  10987. * Plugins.subproj/IFPluginView.mm:
  10988. (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
  10989. (-[IFPluginView webController]):
  10990. * WebKit.pbproj/project.pbxproj:
  10991. * WebView.subproj/IFBaseWebController.h: Removed.
  10992. * WebView.subproj/IFBaseWebController.mm: Removed.
  10993. * WebView.subproj/IFBaseWebControllerPrivate.h: Removed.
  10994. * WebView.subproj/IFBaseWebControllerPrivate.mm: Removed.
  10995. * WebView.subproj/IFMainURLHandleClient.mm:
  10996. (-[IFMainURLHandleClient IFURLHandleResourceDidBeginLoading:]):
  10997. (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]):
  10998. (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
  10999. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  11000. (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  11001. (-[IFMainURLHandleClient IFURLHandle:didRedirectToURL:]):
  11002. * WebView.subproj/IFWebController.h:
  11003. * WebView.subproj/IFWebController.mm: Added.
  11004. (-[IFWebController init]):
  11005. (-[IFWebController initWithView:provisionalDataSource:]):
  11006. (-[IFWebController dealloc]):
  11007. (-[IFWebController setDirectsAllLinksToSystemBrowser:]):
  11008. (-[IFWebController directsAllLinksToSystemBrowser]):
  11009. (-[IFWebController createFrameNamed:for:inParent:inScrollView:]):
  11010. (-[IFWebController setStatusText:forDataSource:]):
  11011. (-[IFWebController statusTextForDataSource:]):
  11012. (-[IFWebController openNewWindowWithURL:]):
  11013. (-[IFWebController receivedProgress:forResource:fromDataSource:]):
  11014. (-[IFWebController receivedError:forResource:partialProgress:fromDataSource:]):
  11015. (-[IFWebController provideLocationChangeHandlerForFrame:]):
  11016. (-[IFWebController receivedPageTitle:forDataSource:]):
  11017. (-[IFWebController serverRedirectTo:forDataSource:]):
  11018. (-[IFWebController _frameForDataSource:fromFrame:]):
  11019. (-[IFWebController frameForDataSource:]):
  11020. (-[IFWebController _frameForView:fromFrame:]):
  11021. (-[IFWebController frameForView:]):
  11022. (-[IFWebController frameNamed:]):
  11023. (-[IFWebController mainFrame]):
  11024. (-[IFWebController pluginNotFoundForMIMEType:pluginPageURL:]):
  11025. (-[IFWebController provideLocationChangeHandlerForFrame:andURL:]):
  11026. (-[IFWebController URLPolicyForURL:]):
  11027. (-[IFWebController unableToImplementURLPolicyForURL:error:]):
  11028. (-[IFWebController haveContentPolicy:andPath:forLocationChangeHandler:]):
  11029. (-[IFWebController stopAnimatedImages]):
  11030. (-[IFWebController startAnimatedImages]):
  11031. (-[IFWebController stopAnimatedImageLooping]):
  11032. (-[IFWebController startAnimatedImageLooping]):
  11033. * WebView.subproj/IFWebControllerPrivate.h: Added.
  11034. * WebView.subproj/IFWebControllerPrivate.mm: Added.
  11035. (-[IFWebControllerPrivate init]):
  11036. (-[IFWebControllerPrivate _clearControllerReferences:]):
  11037. (-[IFWebControllerPrivate dealloc]):
  11038. (-[IFWebController _receivedProgress:forResource:fromDataSource:]):
  11039. (-[IFWebController _mainReceivedProgress:forResource:fromDataSource:]):
  11040. (-[IFWebController _receivedError:forResource:partialProgress:fromDataSource:]):
  11041. (-[IFWebController _mainReceivedError:forResource:partialProgress:fromDataSource:]):
  11042. (-[IFWebController _didStartLoading:]):
  11043. (-[IFWebController _didStopLoading:]):
  11044. * WebView.subproj/IFWebDataSource.h:
  11045. * WebView.subproj/IFWebDataSource.mm:
  11046. (-[IFWebDataSource controller]):
  11047. * WebView.subproj/IFWebDataSourcePrivate.h:
  11048. * WebView.subproj/IFWebDataSourcePrivate.mm:
  11049. (-[IFWebDataSource _setController:]):
  11050. * WebView.subproj/IFWebFrame.h:
  11051. * WebView.subproj/IFWebFrame.mm:
  11052. (-[IFWebFrame initWithName:view:provisionalDataSource:controller:]):
  11053. (-[IFWebFrame controller]):
  11054. (-[IFWebFrame setController:]):
  11055. (-[IFWebFrame frameNamed:]):
  11056. * WebView.subproj/IFWebFramePrivate.h:
  11057. * WebView.subproj/IFWebFramePrivate.mm:
  11058. (-[IFWebFramePrivate setController:]):
  11059. (-[IFWebFrame _setController:]):
  11060. * WebView.subproj/IFWebView.h:
  11061. * WebView.subproj/IFWebView.mm:
  11062. (-[IFWebView controller]):
  11063. * WebView.subproj/IFWebViewPrivate.h:
  11064. * WebView.subproj/IFWebViewPrivate.mm:
  11065. (-[IFWebView _setController:]):
  11066. === Alexander-8 ===
  11067. 2002-06-06 Darin Adler <darin@apple.com>
  11068. * WebKit.pbproj/project.pbxproj: Update warning flags for compatibility
  11069. with new C++.
  11070. * WebCoreSupport.subproj/IFTextRenderer.m: (FillStyleWithAttributes):
  11071. Remove workaround we copied from AppKit, because it's a workaround for
  11072. a bug that was fixed in Puma.
  11073. 2002-06-06 Chris Blumenberg <cblu@apple.com>
  11074. Added support for key codes and other encodings.
  11075. Send activate to make Java happy.
  11076. * Plugins.subproj/IFPluginView.mm:
  11077. (-[IFPluginView keyMessageForEvent:]): added
  11078. (-[IFPluginView keyUp:]): use above.
  11079. (-[IFPluginView keyDown:]): use above.
  11080. (-[IFPluginView windowBecameKey:]): send activate.
  11081. (-[IFPluginView windowResignedKey:]): send activate.
  11082. 2002-06-06 John Sullivan <sullivan@apple.com>
  11083. * Bookmarks.subproj/IFBookmarkList.m:
  11084. (-[IFBookmarkList removeChild:]):
  11085. (-[IFBookmarkList insertChild:atIndex:]):
  11086. * ChangeLog:
  11087. 2002-06-06 John Sullivan <sullivan@apple.com>
  11088. * Bookmarks.subproj/IFBookmarkList.m:
  11089. (-[IFBookmarkList removeChild:]): Added assert.
  11090. (-[IFBookmarkList insertChild:atIndex:]): Set the group of
  11091. the new child, and added assert.
  11092. 2002-06-06 Darin Adler <darin@apple.com>
  11093. * MIME.subproj/IFContentHandler.m:
  11094. (-[IFContentHandler initWithURL:MIMEType:MIMEHandlerType:]): Add call to
  11095. [super init].
  11096. (-[IFContentHandler useTemplate:withGlobal:]): New helper function.
  11097. Also got rid of <title> from templates, since there's no need for us to
  11098. provide a fake title if it's just the URL.
  11099. (-[IFContentHandler HTMLDocument]): Reduce use of copied and pasted code.
  11100. (-[IFContentHandler dealloc]): Add call to [super dealloc].
  11101. * Resources/image_document_template.html: Remove <title>.
  11102. * Resources/plugin_document_template.html: Remove <title>.
  11103. * Resources/text_document_template.html: Remove <title>.
  11104. * WebView.subproj/IFMainURLHandleClient.mm:
  11105. (-[IFMainURLHandleClient processData:isComplete:allDataReceived:]):
  11106. Remove some unneeded type casts.
  11107. 2002-06-05 Maciej Stachowiak <mjs@apple.com>
  11108. Fixed Radar 2936155 - crash in IFAuthenticationPanel
  11109. * Panels.subproj/IFAuthenticationPanel.m:
  11110. (-[IFAuthenticationPanel runAsSheetOnWindow:withRequest:]): Add
  11111. some assertions.
  11112. (-[IFAuthenticationPanel sheetDidEnd:returnCode:contextInfo:]):
  11113. Avoid referencing instance variables after performing a selector
  11114. that might release this object. Also, add some assertions.
  11115. * Panels.subproj/IFPanelAuthenticationHandler.m:
  11116. (-[IFPanelAuthenticationHandler startAuthentication:]): Tweak
  11117. whitespace.
  11118. 2002-06-05 Richard Williamson <rjw@apple.com>
  11119. Fixed snafu in recursion over frame tree.
  11120. * WebView.subproj/IFWebFrame.mm:
  11121. (+[IFWebFrame _frameNamed:fromFrame:]):
  11122. (-[IFWebFrame frameNamed:]):
  11123. 2002-06-05 Richard Williamson <rjw@apple.com>
  11124. Normalized frame naming. (We still don't support cross
  11125. window name lookups.)
  11126. * WebView.subproj/IFBaseWebController.mm:
  11127. (-[IFBaseWebController frameNamed:]):
  11128. * WebView.subproj/IFWebFrame.mm:
  11129. (-[IFWebFrame frameNamed:]):
  11130. 2002-06-04 Chris Blumenberg <cblu@apple.com>
  11131. * MIME.subproj/IFDownloadHandler.mm: Use public methods
  11132. * WebView.subproj/IFWebDataSource.h: Made downloadPath public
  11133. * WebView.subproj/IFWebDataSource.mm:
  11134. (-[IFWebDataSource downloadPath]):
  11135. * WebView.subproj/IFWebDataSourcePrivate.h:
  11136. * WebView.subproj/IFWebDataSourcePrivate.mm:
  11137. 2002-06-04 Richard Williamson <rjw@apple.com>
  11138. More exclusion for pre 6C48.
  11139. * ChangeLog:
  11140. * WebCoreSupport.subproj/IFImageRenderer.m:
  11141. (-[IFImageRenderer incrementalLoadWithBytes:length:complete:]):
  11142. * WebCoreSupport.subproj/IFImageRendererFactory.m:
  11143. (-[IFImageRendererFactory imageRenderer]):
  11144. 2002-06-04 Richard Williamson <rjw@apple.com>
  11145. Oops, excluded even more code for < 6C48.
  11146. * WebCoreSupport.subproj/IFImageRenderer.m:
  11147. (-[IFImageRenderer incrementalLoadWithBytes:length:complete:]):
  11148. 2002-06-04 Kenneth Kocienda <kocienda@apple.com>
  11149. * Misc.subproj/WebKitDebug.h: Added a line of stderr output into
  11150. the assertion failure code so that we have some idea of what happened.
  11151. 2002-06-04 Richard Williamson <rjw@apple.com>
  11152. Excluded call to new API until everyone has moved to >= 6C48.
  11153. * WebCoreSupport.subproj/IFImageRenderer.m:
  11154. (-[IFImageRenderer incrementalLoadWithBytes:length:complete:]):
  11155. 2002-06-04 Richard Williamson <rjw@apple.com>
  11156. Changes to support progressive image loading. Currently disabled
  11157. until 2945218 is fixed.
  11158. * WebCoreSupport.subproj/IFImageRenderer.h:
  11159. * WebCoreSupport.subproj/IFImageRenderer.m:
  11160. * WebCoreSupport.subproj/IFImageRendererFactory.m:
  11161. 2002-06-04 Darin Adler <darin@apple.com>
  11162. - fixed 2932862 -- exception -[NSCFArray getObjects:range:]: index (137)
  11163. beyond bounds (10)
  11164. * WebView.subproj/IFWebViewPrivate.mm:
  11165. (-[IFWebView _stopPlugins]):
  11166. (-[IFWebView _removeSubviews]):
  11167. Make a copy of the subviews list so that changes to the list don't screw
  11168. up the iterating logic.
  11169. 2002-06-04 John Sullivan <sullivan@apple.com>
  11170. Made changes here while working on Undo for removing history entries.
  11171. * History.subproj/IFWebHistory.h:
  11172. New methods addEntries: and removeEntries:, deleted method
  11173. removeEntriesForDay: (use removeEntries: instead).
  11174. * History.subproj/IFWebHistory.m:
  11175. (-[IFWebHistory addEntries:]),
  11176. (-[IFWebHistory removeEntries:]): New methods, each takes an array of
  11177. entries. Useful for doing multiple things at a time to minimize
  11178. notifications.
  11179. (-[IFWebHistory removeEntriesForDay:]): deleted this now-unnecessary method.
  11180. * History.subproj/IFWebHistoryPrivate.h:
  11181. * History.subproj/IFWebHistoryPrivate.m:
  11182. (-[IFWebHistoryPrivate removeEntries:]):
  11183. (-[IFWebHistoryPrivate removeAllEntries]):
  11184. (-[IFWebHistoryPrivate addEntries:]): Private implementations for the
  11185. public changes.
  11186. 2002-06-04 Darin Adler <darin@apple.com>
  11187. - fixed 2943513 -- move StringTruncator into WebKit from WebBrowser so we
  11188. don't need text measuring API exported
  11189. * WebKit.pbproj/project.pbxproj: No longer export the text renderer headers
  11190. as Private.
  11191. 2002-06-04 Darin Adler <darin@apple.com>
  11192. * WebKit.pbproj/project.pbxproj: Exported IFStringTruncator.h as Private.
  11193. 2002-06-04 Darin Adler <darin@apple.com>
  11194. Moved the string truncator class here from WebBrowser so we don't have to
  11195. export our text machinery.
  11196. * WebKit.pbproj/project.pbxproj:
  11197. * Misc.subproj/IFStringTruncator.h: Added.
  11198. * Misc.subproj/IFStringTruncator.m: Added.
  11199. 2002-06-03 Darin Adler <darin@apple.com>
  11200. * WebCoreSupport.subproj/IFImageRenderer.m:
  11201. (-[IFImageRenderer beginAnimationInView:inRect:fromRect:]): Remove the "fix"
  11202. for the nonexistent storage leak. Richard showed me the error of my ways.
  11203. 2002-06-03 John Sullivan <sullivan@apple.com>
  11204. Richard told me which line to change to fix 2944237
  11205. (Stop item in View menu enabled on startup if you have
  11206. no home page.)
  11207. * WebView.subproj/IFWebDataSource.mm:
  11208. (-[IFWebDataSource isLoading]):
  11209. Don't return YES if !_private->loading.
  11210. 2002-06-01 Darin Adler <darin@apple.com>
  11211. * WebCoreSupport.subproj/IFImageRenderer.m:
  11212. (-[IFImageRenderer beginAnimationInView:inRect:fromRect:]):
  11213. Remove an assert I added, since it is firing, and instead fixed the storage leak
  11214. that inspired me to put the assert in.
  11215. 2002-05-31 Darin Adler <darin@apple.com>
  11216. * WebView.subproj/IFWebViewPrivate.mm: Add include to prepare for change to WebCore
  11217. that will make it required.
  11218. 2002-05-31 Darin Adler <darin@apple.com>
  11219. * WebCoreSupport.subproj/IFImageRenderer.h: Fixed the line endings (they were
  11220. Macintosh CRs instead of Unix LFs). Also made all the methods be private for
  11221. now since there's no need to have them be public.
  11222. * WebCoreSupport.subproj/IFImageRenderer.m: Fixed the line endings (they were
  11223. Macintosh CRs instead of Unix LFs). Some minor code tweaks too sharing a bit
  11224. more code.
  11225. * WebCoreSupport.subproj/IFImageRendererFactory.m:
  11226. (-[IFImageRendererFactory imageRendererWithSize:]): Return an IFImageRenderer
  11227. rather than just an NSImage, since an NSImage does not satisfy WebCoreImageRenderer.
  11228. 2002-05-31 Darin Adler <darin@apple.com>
  11229. * Misc.subproj/WebKitDebug.h: Use displayableString in DEBUG_OBJECT
  11230. for nicer logging.
  11231. * WebView.subproj/IFWebView.mm:
  11232. (-[IFWebView keyDown:]):
  11233. (-[IFWebView keyUp:]):
  11234. Use DEBUG_OBJECT so we don't get exceptions when the key characters
  11235. are not simple ASCII characters.
  11236. 2002-05-30 Richard Williamson <rjw@apple.com>
  11237. API and comment cleanup.
  11238. * WebView.subproj/IFWebFrame.h:
  11239. * WebView.subproj/IFWebFrame.mm:
  11240. (-[IFWebFrame setProvisionalDataSource:]):
  11241. 2002-05-30 Maciej Stachowiak <mjs@apple.com>
  11242. WebKit parts of fixes for:
  11243. Radar 2926169 - no support for window.open
  11244. Radar 2890469 - Preference to prevent JavaScript from automatically
  11245. opening new windows doesn't work
  11246. Radar 2938569 - link cursor does not appear on some pages
  11247. * WebView.subproj/IFWebController.h:
  11248. Added openNewWindowWithURL: method for the benefit of JavaScript.
  11249. * WebView.subproj/IFBaseWebController.mm:
  11250. (-[IFBaseWebController openNewWindowWithURL:]): No-op default
  11251. implementation.
  11252. * WebView.subproj/IFDynamicScrollBarsView.h:
  11253. * WebView.subproj/IFDynamicScrollBarsView.m:
  11254. (-[IFDynamicScrollBarsView setCursor:]): Fix cursor handling.
  11255. (-[IFDynamicScrollBarsView resetCursorRects]): Likewise.
  11256. * WebView.subproj/IFWebView.mm:
  11257. (-[IFWebView mouseMovedNotification:]): Likewise.
  11258. (-[IFWebView setCursor:]): Likewise.
  11259. * WebView.subproj/IFPreferences.h:
  11260. * WebView.subproj/IFPreferences.mm:
  11261. (-[IFPreferences javaScriptEnabled]): Renamed from jScriptEnabled.
  11262. (-[IFPreferences setJavaScriptEnabled:]): Renamed from setJScriptEnabled.
  11263. (-[IFPreferences javaScriptCanOpenWindowsAutomatically]): New method.
  11264. (-[IFPreferences setJavaScriptCanOpenWindowsAutomatically:]): Likewise.
  11265. * WebView.subproj/IFWebFrame.mm:
  11266. (-[IFWebFrame initWithName:view:provisionalDataSource:controller:]): Create
  11267. a dummy provisional data source if none is provided, so we always have a part
  11268. for the frame.
  11269. 2002-05-30 Darin Adler <darin@apple.com>
  11270. Use methods in KWQKHTMLPartImpl that were moved there from KHTMLPart.
  11271. * WebView.subproj/IFMainURLHandleClient.mm:
  11272. (-[IFMainURLHandleClient IFURLHandle:didRedirectToURL:]):
  11273. (-[IFMainURLHandleClient processData:isComplete:allDataReceived:]):
  11274. * WebView.subproj/IFWebDataSource.mm:
  11275. (-[IFWebDataSource documentText]):
  11276. * WebView.subproj/IFWebDataSourcePrivate.mm:
  11277. (-[IFWebDataSource _setController:]):
  11278. * WebView.subproj/IFWebFramePrivate.mm:
  11279. (-[IFWebFrame _isLoadComplete]):
  11280. * WebView.subproj/IFWebView.mm:
  11281. (-[IFWebView provisionalDataSourceChanged:]):
  11282. 2002-05-30 Chris Blumenberg <cblu@apple.com>
  11283. Use NSWorkspace methods instead of Launch Services and Finder functions.
  11284. * MIME.subproj/IFDownloadHandler.h:
  11285. * MIME.subproj/IFDownloadHandler.mm:
  11286. * WebView.subproj/IFWebFrame.mm:
  11287. (-[IFWebFrame setProvisionalDataSource:]):
  11288. 2002-05-30 Richard Williamson <rjw@apple.com>
  11289. Added 'canDraw' check to ensure that we can render
  11290. an image frame.
  11291. * WebCoreSupport.subproj/IFImageRenderer.m:
  11292. === Alexander-7 ===
  11293. 2002-05-29 Richard Williamson <rjw@apple.com>
  11294. Changes to support animated image rendering.
  11295. Moved image rendering into webkit.
  11296. Still need to implement preferences stubs and
  11297. start/stop stubs.
  11298. * WebCoreSupport.subproj/IFImageRenderer.h: Added.
  11299. * WebCoreSupport.subproj/IFImageRenderer.m: Added.
  11300. * WebCoreSupport.subproj/IFImageRendererFactory.h: Added.
  11301. * WebCoreSupport.subproj/IFImageRendererFactory.m: Added.
  11302. (+[IFImageRendererFactory createSharedFactory]):
  11303. (+[IFImageRendererFactory sharedFactory]):
  11304. (-[IFImageRendererFactory imageRendererWithBytes:length:]):
  11305. (-[IFImageRendererFactory imageRendererWithSize:]):
  11306. * WebKit.pbproj/project.pbxproj:
  11307. * WebView.subproj/IFBaseWebController.mm:
  11308. (-[IFBaseWebController stopAnimatedImages]):
  11309. (-[IFBaseWebController startAnimatedImages]):
  11310. (-[IFBaseWebController stopAnimatedImageLooping]):
  11311. (-[IFBaseWebController startAnimatedImageLooping]):
  11312. * WebView.subproj/IFPreferences.h:
  11313. * WebView.subproj/IFPreferences.mm:
  11314. (+[IFPreferences load]):
  11315. (-[IFPreferences _resourceTimedLayoutEnabled]):
  11316. (-[IFPreferences allowAnimatedImages]):
  11317. (-[IFPreferences allowAnimatedImageLooping]):
  11318. (-[IFPreferences setAllowAnimatedImageLooping:]):
  11319. * WebView.subproj/IFWebController.h:
  11320. * WebView.subproj/IFWebView.mm:
  11321. (-[IFWebView initWithFrame:]):
  11322. 2002-05-29 Richard Williamson <rjw@apple.com>
  11323. API stubs for image animation.
  11324. * WebKit.pbproj/project.pbxproj:
  11325. * WebView.subproj/IFBaseWebController.mm:
  11326. (-[IFBaseWebController stopAnimatedImages]):
  11327. (-[IFBaseWebController startAnimatedImages]):
  11328. (-[IFBaseWebController stopAnimatedImageLooping]):
  11329. (-[IFBaseWebController startAnimatedImageLooping]):
  11330. * WebView.subproj/IFPreferences.h:
  11331. * WebView.subproj/IFPreferences.mm:
  11332. (+[IFPreferences load]):
  11333. (-[IFPreferences _resourceTimedLayoutEnabled]):
  11334. (-[IFPreferences allowAnimatedImages]):
  11335. (-[IFPreferences allowAnimatedImageLooping]):
  11336. (-[IFPreferences setAllowAnimatedImageLooping:]):
  11337. * WebView.subproj/IFWebController.h:
  11338. 2002-05-29 John Sullivan <sullivan@apple.com>
  11339. Removed acceptsFirstMouse override, this fixes at least:
  11340. 2930713 -- clicking on an empty part of window to bring it to front
  11341. takes focus away from page address field
  11342. 2938028 -- Link cursor doesn't appear when browser window not
  11343. frontmost, but clicks activate links
  11344. * WebView.subproj/IFWebView.mm:
  11345. 2002-05-28 John Sullivan <sullivan@apple.com>
  11346. Made -[IFBookmark group] and -[IFBookmark parent] public
  11347. methods, and renamed them to not use leading underscores,
  11348. as part of support for revealing a particular bookmark in
  11349. the Bookmarks window.
  11350. * Bookmarks.subproj/IFBookmark_Private.h:
  11351. removed _group and _parent.
  11352. * Bookmarks.subproj/IFBookmark.h:
  11353. added group and parent.
  11354. * Bookmarks.subproj/IFBookmark.m:
  11355. (-[IFBookmark parent]):
  11356. (-[IFBookmark group]):
  11357. * Bookmarks.subproj/IFBookmarkGroup.m:
  11358. (-[IFBookmarkGroup removeBookmark:]):
  11359. (-[IFBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:image:URLString:type:]):
  11360. * Bookmarks.subproj/IFBookmarkLeaf.m:
  11361. (-[IFBookmarkLeaf copyWithZone:]):
  11362. (-[IFBookmarkLeaf setTitle:]):
  11363. (-[IFBookmarkLeaf setImage:]):
  11364. (-[IFBookmarkLeaf setURLString:]):
  11365. * Bookmarks.subproj/IFBookmarkList.m:
  11366. (-[IFBookmarkList copyWithZone:]):
  11367. (-[IFBookmarkList setTitle:]):
  11368. (-[IFBookmarkList setImage:]):
  11369. (-[IFBookmarkList removeChild:]):
  11370. (-[IFBookmarkList insertChild:atIndex:]):
  11371. (-[IFBookmarkList _setGroup:]):
  11372. * Bookmarks.subproj/IFBookmarkSeparator.m:
  11373. (-[IFBookmarkSeparator copyWithZone:]):
  11374. Fixed up all references to _group and _parent to now refer to
  11375. group and parent.
  11376. 2002-05-28 Richard Williamson <rjw@apple.com>
  11377. Backed out band-aid add to fixed malformed resources URLs.
  11378. * WebView.subproj/IFWebDataSourcePrivate.mm:
  11379. (-[IFWebDataSource _addURLHandle:]):
  11380. 2002-05-28 Chris Blumenberg <cblu@apple.com>
  11381. Added support for creating a new window from a plug-in (2938004)
  11382. * Plugins.subproj/IFPluginView.mm:
  11383. (-[IFPluginView loadURL:inTarget:withNotifyData:andHandleAttributes:]):
  11384. 2002-05-28 Chris Blumenberg <cblu@apple.com>
  11385. * Plugins.subproj/IFPluginDatabase.h:
  11386. * Plugins.subproj/IFPluginDatabase.m:
  11387. (-[IFPluginDatabase pluginForMimeType:]): renamed
  11388. (-[IFPluginDatabase pluginForExtension:]): renamed
  11389. (-[IFPluginDatabase pluginForFilename:]): renamed
  11390. (findPlugins):
  11391. * WebCoreSupport.subproj/IFWebCoreViewFactory.m: support for above renamed
  11392. (-[IFWebCoreViewFactory viewForPluginWithURL:serviceType:arguments:baseURL:]):
  11393. (-[IFWebCoreViewFactory viewForJavaAppletWithArguments:]):
  11394. * WebView.subproj/IFWebDataSourcePrivate.mm:
  11395. (-[IFWebDataSource _addURLHandle:]): fix for a nil handle being added to an array
  11396. 2002-05-28 Darin Adler <darin@apple.com>
  11397. * WebCoreSupport.subproj/IFTextRenderer.m:
  11398. (hasMissingGlyphs): Use recordSize instead of assuming records are sizeof(ATSLayoutRecord).
  11399. (-[IFTextRenderer convertCharacters:length:toGlyphs:]): Free buffer after calling
  11400. ATSUConvertCharToGlyphs; old code was using buffer after freeing it.
  11401. (-[IFTextRenderer widthForString:]): Handle case where string is longer than
  11402. LOCAL_GLYPH_BUFFER_SIZE.
  11403. (-[IFTextRenderer slowPackGlyphsForCharacters:numCharacters:glyphBuffer:numGlyphs:]):
  11404. (-[IFTextRenderer drawString:atPoint:withColor:]): Use recordSize instead of assuming records
  11405. are sizeof(ATSLayoutRecord).
  11406. (-[IFTextRenderer slowFloatWidthForCharacters:length:]): Use recordSize instead of assuming
  11407. records are sizeof(ATSLayoutRecord).
  11408. (-[IFTextRenderer floatWidthForCharacters:length:]): Remove extra rounding. The caller that
  11409. converts the width to an integer already does the rounding.
  11410. (-[IFTextRenderer extendCharacterToGlyphMapToInclude:]): Fix off by one error that caused us
  11411. to include one extra character in each glyph map block. Also use recordSize instead of assuming
  11412. records are sizeof(ATSLayoutRecord).
  11413. 2002-05-27 John Sullivan <sullivan@apple.com>
  11414. Part of fix for 2922772 -- page title & location field don't
  11415. show redirected URLs.
  11416. * WebView.subproj/IFWebDataSource.mm:
  11417. (-[IFWebDataSource wasRedirected]): Fixed this method, now that
  11418. we have a client that relies on it. Its logic was backwards, and
  11419. it didn't handle the null _finalURL case.
  11420. 2002-05-26 Maciej Stachowiak <mjs@apple.com>
  11421. Fixed Radar 936147 - debug output in console "keyUp: NSEvent: type=KeyUp"
  11422. * WebView.subproj/IFWebView.mm:
  11423. (-[IFWebView keyDown:]): Turned NSLog into WEBKITDEBUGLEVEL.
  11424. (-[IFWebView keyUp:]): Likewise.
  11425. 2002-05-26 Maciej Stachowiak <mjs@apple.com>
  11426. WebKit part of fix for:
  11427. Radar 2884085 - add support for changing cursor over links
  11428. Also, fix handling of mouseMoved events.
  11429. * WebView.subproj/IFWebView.mm:
  11430. (-[IFWebView mouseMovedNotification:]): Clip mouseMoved events to
  11431. the view rect, otherwise mouseover effects might happen for
  11432. elements past the edge of the window.
  11433. (-[IFWebView setCursor:]): Implement.
  11434. (-[IFWebView resetCursorRects]): Implement.
  11435. * WebView.subproj/IFWebViewPrivate.h:
  11436. * WebView.subproj/IFWebViewPrivate.mm:
  11437. (-[IFWebViewPrivate dealloc]): Added NSCursor *cursor field.
  11438. 2002-05-25 Maciej Stachowiak <mjs@apple.com>
  11439. * WebKit.pbproj/project.pbxproj: Link against WebCore.framework,
  11440. not libwebcore.dylib.
  11441. === 0.3 ===
  11442. 2002-05-24 Shelley A Sheridan <sheridan@apple.com>
  11443. * ChangeLog:
  11444. === Alexander-6 ===
  11445. 2002-05-23 Maciej Stachowiak <mjs@apple.com>
  11446. WebKit part of the fix for:
  11447. Radar 2896391 - command-click should open link in new window
  11448. * WebView.subproj/IFBaseWebController.mm:
  11449. (-[IFBaseWebController openNewWindowWithURL:]): Default
  11450. implementation silently does nothing.
  11451. * WebView.subproj/IFWebController.h: Add openNewWindowWithURL:
  11452. method.
  11453. * WebView.subproj/IFWebView.mm:
  11454. (-[IFWebView _addModifiers:toState:]): Split out modifier key
  11455. handling to here. Treat Command as Meta.
  11456. (-[IFWebView mouseUp:]): Use new method to set key modifiers for
  11457. mouse events.
  11458. (-[IFWebView mouseDown:]): Use new method to set key modifiers for
  11459. mouse events.
  11460. (-[IFWebView keyDown:]): Use new shared code for key modifiers.
  11461. (-[IFWebView keyUp:]): Use new shared code for key modifiers.
  11462. 2002-05-23 Kenneth Kocienda <kocienda@apple.com>
  11463. Fixes for these bugs:
  11464. Radar 2883631 (need to implement support for META HTTP_EQUIV=REFRESH)
  11465. Radar 2935472 (Non-standard html pages don't always get decoded)
  11466. * WebView.subproj/IFMainURLHandleClient.h:
  11467. * WebView.subproj/IFMainURLHandleClient.mm:
  11468. (-[IFMainURLHandleClient setContentPolicy:]): Updated method to use new processData interface.
  11469. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]): Senses when all data has been received for a load.
  11470. (-[IFMainURLHandleClient processData:isComplete:allDataReceived:]): Modified interface to add a flag
  11471. for when all data for a load has been received.
  11472. 2002-05-23 Shelley A Sheridan <sheridan@apple.com>
  11473. * ChangeLog:
  11474. === Alexander-5 ===
  11475. 2002-05-23 Maciej Stachowiak <mjs@apple.com>
  11476. Move authentication panel to WebKit and make it a sheet, fixing:
  11477. Radar 2876445 - Authentication panel should be a sheet
  11478. Radar 2876449 - The Alexander authentication panel should be moved
  11479. to WebKit for use as a standard one
  11480. * Panels.subproj/English.lproj/IFAuthenticationPanel.nib: Added.
  11481. * Panels.subproj/IFAuthenticationPanel.h: Added.
  11482. * Panels.subproj/IFAuthenticationPanel.m: Added.
  11483. * Panels.subproj/IFPanelAuthenticationHandler.h: Added.
  11484. * Panels.subproj/IFPanelAuthenticationHandler.m: Added.
  11485. * Panels.subproj/IFStandardPanels.h: Added.
  11486. * Panels.subproj/IFStandardPanels.m: Added.
  11487. * Panels.subproj/IFStandardPanelsPrivate.h: Added.
  11488. * WebKit.pbproj/project.pbxproj: Add new files to build.
  11489. * Plugins.subproj/IFPluginStream.mm:
  11490. (-[IFPluginStream IFURLHandleResourceDidBeginLoading:]): Notify of
  11491. load start.
  11492. (-[IFPluginStream IFURLHandleResourceDidFinishLoading:data:]): Notify
  11493. of load end.
  11494. (-[IFPluginStream IFURLHandleResourceDidCancelLoading:]): Likewise.
  11495. (-[IFPluginStream IFURLHandle:resourceDidFailLoadingWithResult:]): Likewise.
  11496. (-[IFPluginStream IFURLHandle:didRedirectToURL:]): Notify that old
  11497. URL is no longer loading, but new one is.
  11498. * WebView.subproj/IFBaseWebControllerPrivate.h:
  11499. * WebView.subproj/IFBaseWebControllerPrivate.mm:
  11500. (-[IFBaseWebController _didStartLoading:]): New private method
  11501. used to track what URLs are loading on behalf of this controller.
  11502. (-[IFBaseWebController _didStopLoading:]): Likewise.
  11503. * WebView.subproj/IFMainURLHandleClient.mm:
  11504. (-[IFMainURLHandleClient IFURLHandleResourceDidBeginLoading:]): Notify
  11505. of load start.
  11506. (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]): Notify
  11507. of load end.
  11508. (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]): Likewise.
  11509. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]): Likewise.
  11510. (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]): Likewise.
  11511. (-[IFMainURLHandleClient IFURLHandle:didRedirectToURL:]): Notify of
  11512. load end and start.
  11513. 2002-05-22 Chris Blumenberg <cblu@apple.com>
  11514. Fixed download data source leaks when downloads are cancelled.
  11515. * WebView.subproj/IFBaseWebControllerPrivate.mm:
  11516. (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
  11517. * WebView.subproj/IFMainURLHandleClient.mm:
  11518. (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]):
  11519. (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  11520. 2002-05-22 Chris Blumenberg <cblu@apple.com>
  11521. Removed activate events as this was causing problems
  11522. for the QT plug-in.
  11523. * Plugins.subproj/IFPluginView.mm:
  11524. (-[IFPluginView windowBecameKey:]):
  11525. (-[IFPluginView windowResignedKey:]):
  11526. 2002-05-22 Chris Blumenberg <cblu@apple.com>
  11527. Fixed crasher caused by not retaining.
  11528. Fixed targeting bug.
  11529. * Plugins.subproj/IFPluginView.mm:
  11530. (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
  11531. (-[IFPluginView getURLNotify:target:notifyData:]):
  11532. (-[IFPluginView getURL:target:]):
  11533. (-[IFPluginView postURLNotify:target:len:buf:file:notifyData:]):
  11534. (-[IFPluginView postURL:target:len:buf:file:]):
  11535. 2002-05-22 Richard J. Williamson <rjw@apple.com>
  11536. Changed semantics of isLoading to only return YES if
  11537. the datasource is loading resources related to the intial
  11538. load. Other resources loaded later by JS will not be
  11539. accounted for by isLoading.
  11540. * WebView.subproj/IFWebDataSource.mm:
  11541. (-[IFWebDataSource isLoading]):
  11542. 2002-05-22 Chris Blumenberg <cblu@apple.com>
  11543. - Removed obsolete MIME/download related code.
  11544. - Minor clean-ups.
  11545. - Made WebKit support all text MIME types.
  11546. - Now send NPP_URLNotify when pages requested by plug-ins are loaded.
  11547. - Simplified NPP_Get/NPP_Post code.
  11548. * MIME.subproj/IFContentHandler.h:
  11549. * MIME.subproj/IFContentHandler.m:
  11550. * MIME.subproj/IFDownloadHandler.mm:
  11551. * MIME.subproj/IFMIMEDatabase.h: Removed.
  11552. * MIME.subproj/IFMIMEDatabase.m: Removed.
  11553. * MIME.subproj/IFMIMEHandler.h:
  11554. * MIME.subproj/IFMIMEHandler.m:
  11555. (+[IFMIMEHandler MIMEHandlerTypeForMIMEType:]):
  11556. (+[IFMIMEHandler canShowMIMEType:]):
  11557. * Plugins.subproj/IFPluginView.h:
  11558. * Plugins.subproj/IFPluginView.mm:
  11559. (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
  11560. (-[IFPluginView dealloc]):
  11561. (-[IFPluginView frameStateChanged:]):
  11562. (-[IFPluginView loadURL:inTarget:withNotifyData:andHandleAttributes:]):
  11563. (-[IFPluginView getURLNotify:target:notifyData:]):
  11564. (-[IFPluginView getURL:target:]):
  11565. (-[IFPluginView postURLNotify:target:len:buf:file:notifyData:]):
  11566. (-[IFPluginView postURL:target:len:buf:file:]):
  11567. (-[IFPluginView invalidateRect:]):
  11568. (-[IFPluginView invalidateRegion:]):
  11569. (-[IFPluginView forceRedraw]):
  11570. * WebKit.pbproj/project.pbxproj:
  11571. * WebView.subproj/IFMainURLHandleClient.h:
  11572. * WebView.subproj/IFMainURLHandleClient.mm:
  11573. (-[IFMainURLHandleClient dealloc]):
  11574. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  11575. (-[IFMainURLHandleClient processData:isComplete:]):
  11576. * WebView.subproj/IFWebFramePrivate.h:
  11577. * WebView.subproj/IFWebFramePrivate.mm:
  11578. (-[IFWebFrame _setState:]):
  11579. 2002-05-21 Richard J. Williamson <rjw@apple.com>
  11580. Fixed baseline regression. Obvious of sites that have tables w/ backgrounds,
  11581. i.e. www.slashdot.org.
  11582. * WebCoreSupport.subproj/IFTextRenderer.m:
  11583. (-[IFTextRenderer drawCharacters:length:atPoint:withColor:]):
  11584. (-[IFTextRenderer drawUnderlineForString:atPoint:withColor:]):
  11585. 2002-05-21 Richard J. Williamson <rjw@apple.com>
  11586. Changes to support additional DHTML events.
  11587. * WebView.subproj/IFWebView.mm:
  11588. (-[IFWebView keyDown:]):
  11589. (-[IFWebView keyUp:]):
  11590. * WebView.subproj/IFWebViewPrivate.mm:
  11591. (+[IFWebView _nodeHTML:DOM::]):
  11592. 2002-05-21 Chris Blumenberg <cblu@apple.com>
  11593. Content policy can now be sent at a later time to avoid blocking.
  11594. * WebView.subproj/IFMainURLHandleClient.h:
  11595. * WebView.subproj/IFMainURLHandleClient.mm:
  11596. (-[IFMainURLHandleClient initWithDataSource:part:]):
  11597. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  11598. 2002-05-21 Chris Blumenberg <cblu@apple.com>
  11599. Move the tracking rect after the view has moved.
  11600. * Plugins.subproj/IFPluginView.mm:
  11601. (-[IFPluginView viewHasMoved:]):
  11602. Fixed logging.
  11603. * Plugins.subproj/npapi.m:
  11604. (NPN_UserAgent):
  11605. (NPN_MemAlloc):
  11606. (NPN_MemFree):
  11607. (NPN_MemFlush):
  11608. (NPN_ReloadPlugins):
  11609. 2002-05-21 Kenneth Kocienda <kocienda@apple.com>
  11610. Merged these four include files into the precompiled header.
  11611. These are used for the enhanced assertion/debuggin support I
  11612. added yesterday.
  11613. <signal.h>
  11614. <sys/types.h>
  11615. <sys/time.h>
  11616. <sys/resource.h>
  11617. * WebKitPrefix.h
  11618. 2002-05-20 Chris Blumenberg <cblu@apple.com>
  11619. Added support for plug-ins to send URL requests to certain targets.
  11620. Added frameNamed to IFWebFrame.
  11621. * Plugins.subproj/IFPluginView.mm:
  11622. (-[IFPluginView getURLNotify:target:notifyData:]):
  11623. (-[IFPluginView postURLNotify:target:len:buf:file:notifyData:]):
  11624. * WebView.subproj/IFWebFrame.h:
  11625. * WebView.subproj/IFWebFrame.mm:
  11626. (-[IFWebFrame frameNamed:]):
  11627. 2002-05-20 Kenneth Kocienda <kocienda@apple.com>
  11628. * Misc.subproj/WebKitDebug.h: Now includes <sys/time.h> to prevent possible
  11629. build breakage in the inclusion of <sys/resource.h>
  11630. 2002-05-20 Kenneth Kocienda <kocienda@apple.com>
  11631. Changed assertion failure code to send a SIGQUIT instead
  11632. of raising an NSException.
  11633. * Misc.subproj/WebKitDebug.h
  11634. 2002-05-20 Chris Blumenberg <cblu@apple.com>
  11635. A whole lot of plug-in clean-up.
  11636. Moved the following functions from npapi to IFPlugin.
  11637. * Plugins.subproj/IFPlugin.m:
  11638. (functionPointerForTVector):
  11639. (tVectorForFunctionPointer):
  11640. Only supply mouse coords when active.
  11641. * Plugins.subproj/IFPluginNullEventSender.h:
  11642. * Plugins.subproj/IFPluginNullEventSender.m:
  11643. (-[IFPluginNullEventSender initializeWithNPP:functionPointer:window:]):
  11644. (-[IFPluginNullEventSender dealloc]):
  11645. (-[IFPluginNullEventSender sendNullEvents]):
  11646. Minor clean-ups
  11647. * Plugins.subproj/IFPluginStream.mm:
  11648. (-[IFPluginStream dealloc]):
  11649. (-[IFPluginStream IFURLHandleResourceDidFinishLoading:data:]):
  11650. (-[IFPluginStream IFURLHandleResourceDidCancelLoading:]):
  11651. (-[IFPluginStream IFURLHandle:resourceDidFailLoadingWithResult:]):
  11652. Removed the isMouseDown flag from the following functions
  11653. as it was unnecessary.
  11654. Cleaned up logging.
  11655. * Plugins.subproj/IFPluginView.mm:
  11656. (-[IFPluginView modifiersForEvent:]):
  11657. (-[IFPluginView getCarbonEvent:withEvent:]):
  11658. (-[IFPluginView sendUpdateEvent]):
  11659. (-[IFPluginView becomeFirstResponder]):
  11660. (-[IFPluginView resignFirstResponder]):
  11661. (-[IFPluginView mouseDown:]):
  11662. (-[IFPluginView mouseUp:]):
  11663. (-[IFPluginView mouseExited:]):
  11664. (-[IFPluginView setWindow]):
  11665. (-[IFPluginView start]):
  11666. (-[IFPluginView stop]):
  11667. URLForString now uses _IF_looksLikeAbsoluteURL.
  11668. (-[IFPluginView URLForString:]):
  11669. Implemented the following:
  11670. (-[IFPluginView invalidateRect:]):
  11671. (-[IFPluginView invalidateRegion:]):
  11672. (-[IFPluginView forceRedraw]):
  11673. Put implementation of GetValue SetValue in npapi.
  11674. * Plugins.subproj/npapi.h:
  11675. * Plugins.subproj/npapi.m:
  11676. (NPN_GetValue):
  11677. (NPN_SetValue):
  11678. Added drag & drop support.
  11679. * WebView.subproj/IFWebView.mm:
  11680. (-[IFWebView initWithFrame:]):
  11681. (-[IFWebView setCanDragFrom:]):
  11682. (-[IFWebView canDragFrom]):
  11683. (-[IFWebView setCanDragTo:]):
  11684. (-[IFWebView canDragTo]):
  11685. (-[IFWebView draggingEntered:]):
  11686. (-[IFWebView prepareForDragOperation:]):
  11687. (-[IFWebView performDragOperation:]):
  11688. * WebView.subproj/IFWebViewPrivate.h:
  11689. * WebView.subproj/IFWebViewPrivate.mm:
  11690. (-[IFWebViewPrivate dealloc]):
  11691. 2002-05-20 John Sullivan <sullivan@apple.com>
  11692. Support for bookmark separators
  11693. * Bookmarks.subproj/IFBookmark.h: Update comments and replace
  11694. isLeaf with bookmarkType.
  11695. * Bookmarks.subproj/IFBookmark.m:
  11696. (-[IFBookmark bookmarkType]): New method, replaces isLeaf.
  11697. (-[IFBookmark title]):
  11698. (-[IFBookmark setTitle:]):
  11699. (-[IFBookmark image]):
  11700. (-[IFBookmark setImage:]):
  11701. (-[IFBookmark setURLString:]):
  11702. (-[IFBookmark children]):
  11703. (-[IFBookmark numberOfChildren]):
  11704. (-[IFBookmark _numberOfDescendants]):
  11705. (-[IFBookmark insertChild:atIndex:]):
  11706. (-[IFBookmark removeChild:]):
  11707. Update callers of isLeaf, and don't require concrete implementations
  11708. of some methods for some types.
  11709. * Bookmarks.subproj/IFBookmarkLeaf.m:
  11710. (-[IFBookmarkLeaf bookmarkType]): return IFBookmarkTypeLeaf
  11711. (-[IFBookmarkLeaf _dictionaryRepresentation]): set value for bookmark type.
  11712. * Bookmarks.subproj/IFBookmarkList.m:
  11713. (-[IFBookmarkList _initFromDictionaryRepresentation:withGroup:]):
  11714. Handle separator case.
  11715. (-[IFBookmarkList _dictionaryRepresentation]): set value for bookmark type
  11716. (-[IFBookmarkList bookmarkType]): return IFBookmarkTypeList
  11717. * Bookmarks.subproj/IFBookmarkSeparator.h: Added.
  11718. * Bookmarks.subproj/IFBookmarkSeparator.m: Added.
  11719. (-[IFBookmarkSeparator initWithGroup:]): Simple init method.
  11720. (-[IFBookmarkSeparator _initFromDictionaryRepresentation:withGroup:]): Just calls
  11721. initWithGroup.
  11722. (-[IFBookmarkSeparator _dictionaryRepresentation]): set value for bookmark type
  11723. (-[IFBookmarkSeparator bookmarkType]): return IFBookmarkTypeSeparator
  11724. (-[IFBookmarkSeparator copyWithZone:]): calls initWithGroup
  11725. * Bookmarks.subproj/IFBookmark_Private.h: Added key/value #defines for dictionary
  11726. representation.
  11727. * Bookmarks.subproj/IFBookmarkGroup.h:
  11728. * Bookmarks.subproj/IFBookmarkGroup.m:
  11729. (-[IFBookmarkGroup _setTopBookmark:]):
  11730. (-[IFBookmarkGroup _bookmarkChildrenDidChange:]):
  11731. (-[IFBookmarkGroup addNewBookmarkToBookmark:withTitle:image:URLString:type:]):
  11732. Update callers of isLeaf to use bookmarkType instead.
  11733. (-[IFBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:image:URLString:type:]):
  11734. if type is IFBookmarkTypeSeparator, instantiate an IFBookmarkSeparator
  11735. * WebKit.pbproj/project.pbxproj: Updated for new files.
  11736. 2002-05-17 Chris Blumenberg <cblu@apple.com>
  11737. - Made IFPluginStream the URL handle client instead of IFPluginView.
  11738. - Added support for NPP_PostURL and NPP_PostNotify.
  11739. - Possible fix for 2928558.
  11740. * Plugins.subproj/IFPluginStream.h:
  11741. * Plugins.subproj/IFPluginView.h:
  11742. * Plugins.subproj/IFPluginView.mm:
  11743. (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):NSURL for url
  11744. instead of NSString
  11745. (-[IFPluginView dealloc]):
  11746. (-[IFPluginView setWindow]):
  11747. (-[IFPluginView start]):
  11748. (-[IFPluginView stop]):
  11749. (-[IFPluginView webDataSource]):Accessor for IFPluginStream.
  11750. (-[IFPluginView webController]):Accessor for IFPluginStream.
  11751. (-[IFPluginView URLForString:]):
  11752. (-[IFPluginView getURLNotify:target:notifyData:]):
  11753. (-[IFPluginView postURLNotify:target:len:buf:file:notifyData:]):
  11754. (-[IFPluginView postURL:target:len:buf:file:]):
  11755. (-[IFPluginView destroyStream:reason:]):
  11756. (-[IFPluginView status:]):
  11757. (-[IFPluginView NPP_NewStream]): Accessor for IFPluginStream.
  11758. (-[IFPluginView NPP_WriteReady]):Accessor for IFPluginStream.
  11759. (-[IFPluginView NPP_Write]): Accessor for IFPluginStream.
  11760. (-[IFPluginView NPP_StreamAsFile]): Accessor for IFPluginStream.
  11761. (-[IFPluginView NPP_DestroyStream]): Accessor for IFPluginStream.
  11762. (-[IFPluginView NPP_URLNotify]): Accessor for IFPluginStream.
  11763. * WebCoreSupport.subproj/IFWebCoreViewFactory.m: Use new IFPluginView init method
  11764. (-[IFWebCoreViewFactory viewForPluginWithURL:serviceType:arguments:baseURL:]):
  11765. * WebKit.pbproj/project.pbxproj:
  11766. 2002-05-16 Richard J. Williamson <rjw@apple.com>
  11767. Fixed 2925638. Don't send last progress message from resourceDataDidBecomeAvailable,
  11768. it is sent from IFURLHandleResourceDidFinishLoading, avoiding duplication.
  11769. * WebView.subproj/IFMainURLHandleClient.mm:
  11770. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  11771. 2002-05-16 Richard J. Williamson <rjw@apple.com>
  11772. Fix to fix for 0x7f to 0xa0. I was being overly aggressive about
  11773. finding substitute glyphs.
  11774. * WebCoreSupport.subproj/IFTextRenderer.m:
  11775. (-[IFTextRenderer drawCharacters:length:atPoint:withColor:]):
  11776. (-[IFTextRenderer floatWidthForCharacters:length:]):
  11777. 2002-05-16 Darin Adler <darin@apple.com>
  11778. * Plugins.subproj/IFPluginView.mm:
  11779. (-[IFPluginView IFURLHandleResourceDidFinishLoading:data:]):
  11780. Use this new getCarbonPath function rather than hardcoding assumptions
  11781. about "/tmp" being ":private:tmp".
  11782. (getCarbonPath): New.
  11783. 2002-05-16 Darin Adler <darin@apple.com>
  11784. * Plugins.subproj/IFPluginView.mm: (-[IFPluginView mouseUp:]):
  11785. Fixed log statement so development builds work again.
  11786. 2002-05-16 Darin Adler <darin@apple.com>
  11787. * Plugins.subproj/IFPluginView.mm: (-[IFPluginView mouseUp:]):
  11788. Remove unused variable that breaks optimized builds.
  11789. 2002-05-15 Darin Adler <darin@apple.com>
  11790. Another quick events cleanup pass.
  11791. * Plugins.subproj/IFPluginNullEventSender.m:
  11792. (-[IFPluginNullEventSender sendNullEvents]): Use [IFPluginView getCarbonEvent:].
  11793. * Plugins.subproj/IFPluginView.h: Make almost all methods private.
  11794. * Plugins.subproj/IFPluginView.mm:
  11795. (+[IFPluginView getCarbonEvent:]): New.
  11796. (-[IFPluginView getCarbonEvent:]): New, calls class method.
  11797. (-[IFPluginView modifiersForEvent:isMouseDown:]): Reversed sense of btnState.
  11798. This flag is set if the mouse is up, not if the mouse is down.
  11799. (-[IFPluginView getCarbonEvent:withEvent:isMouseDown:]): New.
  11800. (-[IFPluginView getCarbonEvent:withEvent:]): New.
  11801. (-[IFPluginView sendActivateEvent:]): Now takes parameter for activate vs.
  11802. deactivate and uses [getCarbonEvent:].
  11803. (-[IFPluginView sendUpdateEvent]): Uses [getCarbonEvent:].
  11804. (-[IFPluginView becomeFirstResponder]): Uses [getCarbonEvent:].
  11805. (-[IFPluginView resignFirstResponder]): Uses [getCarbonEvent:].
  11806. (-[IFPluginView mouseDown:]): Uses [getCarbonEvent:withEvent:isMouseDown:].
  11807. (-[IFPluginView mouseUp:]): Uses [getCarbonEvent:withEvent:isMouseDown:].
  11808. (-[IFPluginView mouseEntered:]): Uses [getCarbonEvent:withEvent:].
  11809. (-[IFPluginView mouseExited:]): Uses [getCarbonEvent:withEvent:].
  11810. (-[IFPluginView keyUp:]): Uses [getCarbonEvent:withEvent:].
  11811. (-[IFPluginView keyDown:]): Uses [getCarbonEvent:withEvent:].
  11812. (-[IFPluginView start]): Call [sendActivateEvent:YES].
  11813. (-[IFPluginView windowBecameKey:]): Call [sendActivateEvent:YES].
  11814. (-[IFPluginView windowResignedKey:]): Call [sendActivateEvent:NO].
  11815. 2002-05-15 Richard J. Williamson <rjw@apple.com>
  11816. Fixed problem dealing w/ characters in range 0x7f - 0xa0.
  11817. * WebCoreSupport.subproj/IFTextRenderer.m:
  11818. (setGlyphForCharacter):
  11819. (-[IFTextRenderer drawCharacters:length:atPoint:withColor:]):
  11820. (-[IFTextRenderer floatWidthForCharacters:length:]):
  11821. 2002-05-15 Chris Blumenberg <cblu@apple.com>
  11822. Fixed Flash mouse-down, mouse-over Flash bug.
  11823. Added support for modifiers (control-click etc) (2884451).
  11824. A lot of events clean-up.
  11825. * Plugins.subproj/IFPluginNullEventSender.m:
  11826. (-[IFPluginNullEventSender sendNullEvents]):
  11827. * Plugins.subproj/IFPluginView.h:
  11828. * Plugins.subproj/IFPluginView.mm:
  11829. (newCString):
  11830. (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
  11831. (-[IFPluginView start]):
  11832. (-[IFPluginView drawRect:]):
  11833. (-[IFPluginView isFlipped]):
  11834. (-[IFPluginView currentModifiers]):
  11835. (-[IFPluginView modifiersForEvent:isMouseDown:]):
  11836. (-[IFPluginView sendActivateEvent]):
  11837. (-[IFPluginView sendUpdateEvent]):
  11838. (-[IFPluginView becomeFirstResponder]):
  11839. (-[IFPluginView resignFirstResponder]):
  11840. (-[IFPluginView mouseDown:]):
  11841. (-[IFPluginView mouseUp:]):
  11842. (-[IFPluginView mouseEntered:]):
  11843. (-[IFPluginView mouseExited:]):
  11844. (-[IFPluginView keyUp:]):
  11845. (-[IFPluginView keyDown:]):
  11846. (-[IFPluginView windowBecameKey:]):
  11847. (-[IFPluginView windowResignedKey:]):
  11848. Case-sensitivity issue with an include.
  11849. * WebView.subproj/IFWebView.mm:
  11850. 2002-05-15 Darin Adler <darin@apple.com>
  11851. * Makefile.am:
  11852. Use all-am and clean-am instead of all and clean because it's better and
  11853. to make "make check" at the top level work right.
  11854. 2002-05-14 John Sullivan <sullivan@apple.com>
  11855. Work to support copying bookmarks, needed for drag & drop
  11856. in Bookmarks window.
  11857. * Bookmarks.subproj/IFBookmark.h: Make IFBookmark conform to NSCopying.
  11858. * Bookmarks.subproj/IFBookmark.m:
  11859. (-[IFBookmark copyWithZone:]): insist that subclasses implement this.
  11860. * Bookmarks.subproj/IFBookmarkGroup.h:
  11861. * Bookmarks.subproj/IFBookmarkGroup.m:
  11862. (-[IFBookmarkGroup insertBookmark:atIndex:ofBookmark:]):
  11863. Removed this unnecessary method.
  11864. * Bookmarks.subproj/IFBookmarkLeaf.m:
  11865. (-[IFBookmarkLeaf copyWithZone:]): New method.
  11866. * Bookmarks.subproj/IFBookmarkList.m:
  11867. (-[IFBookmarkList copyWithZone:]): New method.
  11868. 2002-05-14 Richard J. Williamson <rjw@apple.com>
  11869. Fixed exception in log code.
  11870. * WebCoreSupport.subproj/IFTextRenderer.m:
  11871. (-[IFTextRenderer floatWidthForCharacters:length:]):
  11872. 2002-05-14 Richard J. Williamson <rjw@apple.com>
  11873. Fixed 2926153, not getting correct messages after cancel.
  11874. Fixed leak of mouse events (Darin wanted this ASAP).
  11875. * WebView.subproj/IFBaseWebControllerPrivate.mm:
  11876. (-[IFBaseWebController _receivedProgress:forResource:fromDataSource:]):
  11877. (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
  11878. * WebView.subproj/IFLocationChangeHandler.h:
  11879. * WebView.subproj/IFWebView.mm:
  11880. (-[IFWebView initWithFrame:]):
  11881. (-[IFWebView layout]):
  11882. (-[IFWebView mouseUp:]):
  11883. (-[IFWebView mouseDown:]):
  11884. (-[IFWebView mouseMovedNotification:]):
  11885. 2002-05-14 Chris Blumenberg <cblu@apple.com>
  11886. Removed retain of the URL handle. This was causing everything to leak.
  11887. * WebView.subproj/IFMainURLHandleClient.h:
  11888. * WebView.subproj/IFMainURLHandleClient.mm:
  11889. (-[IFMainURLHandleClient initWithDataSource:part:]):
  11890. (-[IFMainURLHandleClient dealloc]):
  11891. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  11892. (-[IFMainURLHandleClient IFURLHandle:didRedirectToURL:]):
  11893. (-[IFMainURLHandleClient processData:isComplete:]):
  11894. 2002-05-14 Darin Adler <darin@apple.com>
  11895. * WebView.subproj/IFWebView.mm: (-[IFWebView initWithFrame:]):
  11896. Remove code that makes us the first responder. That's up to the higher levels,
  11897. not the web view.
  11898. 2002-05-14 John Sullivan <sullivan@apple.com>
  11899. * History.subproj/IFURIEntry.h:
  11900. Oops, deleted the prototype for setLastVisitedDate
  11901. accidentally, which made Jersey sad.
  11902. 2002-05-14 John Sullivan <sullivan@apple.com>
  11903. Fixed 2919027 -- Need to remove unused code in WebKit/History.subproj
  11904. * History.subproj/IFAttributedURL.h: Removed.
  11905. * History.subproj/IFBackForwardList.h: Removed large #ifdef.
  11906. * History.subproj/IFURIEntry.h,
  11907. * History.subproj/IFURIEntry.m: Removed all mention of unused
  11908. fields comment, creationDate, modificationDate
  11909. * WebKit.pbproj/project.pbxproj: Updated for removed file.
  11910. 2002-05-13 Chris Blumenberg <cblu@apple.com>
  11911. Added support for setting the content policy on the location change handler
  11912. and data source at any time instead of depending on an immediate response.
  11913. * WebView.subproj/IFBaseWebController.mm:
  11914. (-[IFBaseWebController haveContentPolicy:andPath:forLocationChangeHandler:]):
  11915. * WebView.subproj/IFMainURLHandleClient.h:
  11916. * WebView.subproj/IFMainURLHandleClient.mm:
  11917. (-[IFMainURLHandleClient initWithDataSource:part:]):
  11918. (-[IFMainURLHandleClient dealloc]):
  11919. (-[IFMainURLHandleClient setContentPolicy:]):
  11920. (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
  11921. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  11922. (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  11923. (-[IFMainURLHandleClient IFURLHandle:didRedirectToURL:]):
  11924. (-[IFMainURLHandleClient processData:isComplete:]):
  11925. * WebView.subproj/IFWebController.h:
  11926. * WebView.subproj/IFWebDataSourcePrivate.mm:
  11927. (-[IFWebDataSource _setContentPolicy:]):
  11928. * WebView.subproj/IFWebFrame.mm:
  11929. (-[IFWebFrame setProvisionalDataSource:]):
  11930. 2002-05-13 Maciej Stachowiak <mjs@apple.com>
  11931. * WebKitPrefix.h: Gratuitous change to make the prefix file
  11932. rebuild.
  11933. 2002-05-13 Chris Blumenberg <cblu@apple.com>
  11934. * WebView.subproj/IFBaseWebController.mm:
  11935. (-[IFBaseWebController URLPolicyForURL:]):
  11936. Use [IFURLHandle canInitWithURL] instead of hard-coded URL schemes.
  11937. * WebView.subproj/IFBaseWebControllerPrivate.mm:
  11938. (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
  11939. * WebView.subproj/IFMainURLHandleClient.mm:
  11940. (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
  11941. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  11942. * WebView.subproj/IFWebDataSourcePrivate.h:
  11943. * WebView.subproj/IFWebDataSourcePrivate.mm:
  11944. (-[IFWebDataSourcePrivate init]):
  11945. (-[IFWebDataSource _setDownloadPath:]):
  11946. Removed _contentPolicy as contentPolicy is public.
  11947. Initialize contentPolicy in [IFWebDataSourcePrivate init].
  11948. 2002-05-10 Richard J. Williamson <rjw@apple.com>
  11949. Logging changes.
  11950. * WebCoreSupport.subproj/IFTextRenderer.m:
  11951. * WebView.subproj/IFWebDataSource.mm:
  11952. (-[IFWebDataSource isLoading]):
  11953. * WebView.subproj/IFWebFramePrivate.mm:
  11954. (-[IFWebFrame _isLoadComplete]):
  11955. 2002-05-10 Chris Blumenberg <cblu@apple.com>
  11956. Added support for non-html non-file URL data sources.
  11957. Added the init methods below. Removed initWithHandle.
  11958. * WebView.subproj/IFWebDataSource.h:
  11959. * WebView.subproj/IFWebDataSource.mm:
  11960. (IFWebDataSourceMake):
  11961. (-[IFWebDataSource initWithURL:]):
  11962. (-[IFWebDataSource initWithURL:attributes:]):
  11963. (-[IFWebDataSource startLoading:]):
  11964. 2002-05-10 Darin Adler <darin@apple.com>
  11965. * WebCoreSupport.subproj/IFTextRenderer.h: Moved most of the
  11966. stuff from here into the .m file so this header can be included
  11967. by clients. Also added floatWidthForCharacters:length:.
  11968. * WebCoreSupport.subproj/IFTextRenderer.m:
  11969. (freeWidthMap): Check for NULL.
  11970. (freeGlyphMap): Check for NULL.
  11971. (-[IFTextRenderer slowFloatWidthForCharacters:length:]): Renamed,
  11972. and made it return the float.
  11973. (-[IFTextRenderer floatWidthForCharacters:length:]): Renamed, and
  11974. made it return the float.
  11975. (-[IFTextRenderer widthForCharacters:length:]): Do rounding here.
  11976. * WebCoreSupport.subproj/IFTextRendererFactory.h:
  11977. * WebCoreSupport.subproj/IFTextRendererFactory.m:
  11978. Make the interface slightly easier to use by using the specific types.
  11979. * WebKit.pbproj/project.pbxproj: Exported the headers.
  11980. 2002-05-10 Kenneth Kocienda <kocienda@apple.com>
  11981. Fixed build breakage caused by my previous checkin.
  11982. * WebView.subproj/IFMainURLHandleClient.mm:
  11983. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:])
  11984. 2002-05-10 John Sullivan <sullivan@apple.com>
  11985. Fixed 2922756 (@ image in History window is a little too tall)
  11986. Fixed 2923790 (bookmark folders need folder icons)
  11987. * Resources/bookmark_folder.tiff: New image (small folder, copied from elsewhere)
  11988. * Resources/url_icon.tiff: Shrunk this one a little bit.
  11989. * Bookmarks.subproj/IFBookmarkList.m:
  11990. (-[IFBookmarkList image]): Return the default image if no custom image is set.
  11991. * History.subproj/IFURIEntry.m:
  11992. (-[IFURIEntry image]): If the default image's file isn't found, don't try
  11993. to create an NSImage, because it will come out horribly broken and evil if
  11994. you do (I ran into this while adding the bookmark folder image; most of Alexander's
  11995. menus did not appear at all because the bookmark folder image was using a bogus
  11996. NSImage).
  11997. * WebKit.pbproj/project.pbxproj: Updated for new files.
  11998. 2002-05-10 Kenneth Kocienda <kocienda@apple.com>
  11999. Reviewed by: Maciej Stachowiak
  12000. This code was modified to use the new interface and features of IFError.
  12001. These features and changes are described in these four bug reports:
  12002. Radar 2923998 (Change IFError private data into a pointer to a private data object)
  12003. Radar 2924002 (IFError should include an error domain)
  12004. Radar 2924013 (IFError initialization is not threadsafe)
  12005. Radar 2924280 (IFError should contain a new field which tells whether the error is terminal)
  12006. * Plugins.subproj/IFPluginView.mm:
  12007. (-[IFPluginView IFURLHandle:resourceDidFailLoadingWithResult:]):
  12008. * WebView.subproj/IFBaseWebControllerPrivate.mm:
  12009. (-[IFBaseWebController _receivedProgress:forResource:fromDataSource:]):
  12010. (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
  12011. * WebView.subproj/IFMainURLHandleClient.mm:
  12012. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  12013. 2002-05-09 Richard J. Williamson <rjw@apple.com>
  12014. Tuned implementation more. Cleaned up and factored code.
  12015. * WebCoreSupport.subproj/IFTextRenderer.h:
  12016. * WebCoreSupport.subproj/IFTextRenderer.m:
  12017. (-[IFTextRenderer substituteFontForString:]):
  12018. (-[IFTextRenderer substituteFontForCharacters:length:]):
  12019. (-[IFTextRenderer initWithFont:]):
  12020. (-[IFTextRenderer dealloc]):
  12021. (-[IFTextRenderer slowPackGlyphsForCharacters:numCharacters:glyphBuffer:numGlyphs:]):
  12022. (-[IFTextRenderer drawString:atPoint:withColor:]):
  12023. (-[IFTextRenderer drawCharacters:length:atPoint:withColor:]):
  12024. (-[IFTextRenderer drawUnderlineForString:atPoint:withColor:]):
  12025. (-[IFTextRenderer slowWidthForCharacters:length:]):
  12026. (-[IFTextRenderer widthForCharacters:length:]):
  12027. (-[IFTextRenderer extendGlyphToWidthMapToInclude:]):
  12028. 2002-05-09 John Sullivan <sullivan@apple.com>
  12029. * Bookmarks.subproj/IFBookmarkGroup.h:
  12030. * Bookmarks.subproj/IFBookmarkGroup.m:
  12031. (-[IFBookmarkGroup addNewBookmarkToBookmark:withTitle:image:URLString:isLeaf:]):
  12032. (-[IFBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:image:URLString:isLeaf:]):
  12033. Gave these two methods return values of the new bookmark created, to make callers'
  12034. lives easier.
  12035. === Alexander-3 ===
  12036. 2002-05-08 Richard J. Williamson <rjw@apple.com>
  12037. Added optimizations for text rendering.
  12038. * WebCoreSupport.subproj/IFTextRenderer.h:
  12039. * WebCoreSupport.subproj/IFTextRenderer.m:
  12040. (freeWidthMap):
  12041. (freeGlyphMap):
  12042. (glyphForCharacter):
  12043. (widthForGlyph):
  12044. (widthForCharacter):
  12045. (-[IFTextRenderer substituteFontForCharacters:length:]):
  12046. (-[IFTextRenderer convertCharacters:length:glyphs:]):
  12047. (-[IFTextRenderer dealloc]):
  12048. (-[IFTextRenderer drawString:atPoint:withColor:]):
  12049. (-[IFTextRenderer drawUnderlineForString:atPoint:withColor:]):
  12050. (-[IFTextRenderer widthForCharacters:length:]):
  12051. (-[IFTextRenderer extendCharacterToGlyphMapToInclude:]):
  12052. (-[IFTextRenderer extendGlyphToWidthMapToInclude:]):
  12053. 2002-05-08 Darin Adler <darin@apple.com>
  12054. * Misc.subproj/IFCache.h: Add more JavaScript object statistics.
  12055. * Misc.subproj/IFCache.mm:
  12056. (+[IFCache javaScriptInterpretersCount]): New.
  12057. (+[IFCache javaScriptNoGCAllowedObjectsCount]): New.
  12058. (+[IFCache javaScriptReferencedObjectsCount]): New.
  12059. * WebKit.pbproj/project.pbxproj: Rearranged two files, dunno why.
  12060. 2002-05-08 Chris Blumenberg <cblu@apple.com>
  12061. Cleaned up mach-o plug-in support.
  12062. Changed the init method in IFPlugin to initWithPath.
  12063. * Plugins.subproj/IFPlugin.h:
  12064. * Plugins.subproj/IFPlugin.m:
  12065. (-[IFPlugin initWithPath:]):
  12066. (-[IFPlugin load]):
  12067. * Plugins.subproj/IFPluginDatabase.m:
  12068. (findPlugins):
  12069. 2002-05-08 Darin Adler <darin@apple.com>
  12070. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _setTitle:]):
  12071. Use _IF_stringByTrimmingWhitespace.
  12072. 2002-05-07 Richard J. Williamson <rjw@apple.com>
  12073. First pass at font substitution. Find a substitute font to
  12074. use when the specified font doesn't have glyphs for the characters that
  12075. need to be drawn.
  12076. Works correctly but hasn't been optimized yet, VERY slow.
  12077. Will optimize this evening and tomorrow. Try www.yahoo.co.jp,
  12078. it will take a long time to render be eventually will draw correctly.
  12079. * WebCoreSupport.subproj/IFTextRenderer.h:
  12080. * WebCoreSupport.subproj/IFTextRenderer.m:
  12081. (hasMissingGlyphs):
  12082. (+[IFTextRenderer initialize]):
  12083. (-[IFTextRenderer convertCharacters:length:glyphs:]):
  12084. (-[IFTextRenderer initializeCaches]):
  12085. (-[IFTextRenderer drawString:atPoint:withColor:]):
  12086. (-[IFTextRenderer drawUnderlineForString:atPoint:withColor:]):
  12087. (-[IFTextRenderer widthForCharacters:length:]):
  12088. 2002-05-07 Darin Adler <darin@apple.com>
  12089. Oops. These files don't belong at the top level.
  12090. * IFWebCoreViewFactory.h: Removed.
  12091. * IFWebCoreViewFactory.m: Removed.
  12092. * WebCoreSupport.subproj/IFWebCoreViewFactory.h: Added.
  12093. * WebCoreSupport.subproj/IFWebCoreViewFactory.m: Added.
  12094. * WebKit.pbproj/project.pbxproj:
  12095. 2002-05-07 Darin Adler <darin@apple.com>
  12096. Move more plugin code here from WebCore.
  12097. * IFWebCoreViewFactory.h: Added.
  12098. * IFWebCoreViewFactory.m: Added.
  12099. * Plugins.subproj/IFPlugin.h: Moved from WebCore.
  12100. * Plugins.subproj/IFPlugin.m: Moved from WebCore.
  12101. * Plugins.subproj/IFPluginDatabase.h: Moved from WebCore.
  12102. * Plugins.subproj/IFPluginDatabase.m: Moved from WebCore.
  12103. * Plugins.subproj/npapi.h: Moved from WebCore.
  12104. * Plugins.subproj/npapi.m: Moved from WebCore.
  12105. * WebKit.pbproj/project.pbxproj: Source file names changed
  12106. * MIME.subproj/IFMIMEDatabase.m:
  12107. * MIME.subproj/IFMIMEHandler.m:
  12108. * Plugins.subproj/IFPluginView.h:
  12109. * Plugins.subproj/IFPluginView.mm:
  12110. Updated for WC -> IF name change.
  12111. * WebCoreSupport.subproj/IFCachedTextRenderer.h: Renamed to IFTextRenderer.
  12112. * WebCoreSupport.subproj/IFCachedTextRenderer.m: Renamed to IFTextRenderer.
  12113. * WebCoreSupport.subproj/IFCachedTextRendererFactory.h: Renamed to IFTextRendererFactory.
  12114. * WebCoreSupport.subproj/IFCachedTextRendererFactory.m: Renamed to IFTextRendererFactory.
  12115. * WebCoreSupport.subproj/IFTextRenderer.h: Renamed from IFCachedTextRenderer.
  12116. * WebCoreSupport.subproj/IFTextRenderer.m: Renamed from IFCachedTextRenderer.
  12117. * WebCoreSupport.subproj/IFTextRendererFactory.h: Renamed from IFCachedTextRendererFactory.
  12118. * WebCoreSupport.subproj/IFTextRendererFactory.m: Renamed from IFCachedTextRendererFactory.
  12119. Renamed to take "Cached" out of the name now that the simpler name is
  12120. available.
  12121. * WebView.subproj/IFWebView.mm:
  12122. (-[IFWebView initWithFrame:]): Create shared IFWebCoreViewFactory.
  12123. (-[IFWebView delayLayout:]): Use WEBKITDEBUG, not KWQDEBUG.
  12124. (-[IFWebView notificationReceived:]): Use WEBKITDEBUG, not KWQDEBUG.
  12125. 2002-05-07 Darin Adler <darin@apple.com>
  12126. Use isEqualToString: instead of isEqual: more consistently. But only for strings.
  12127. * WebCoreSupport.subproj/IFCachedTextRendererFactory.m:
  12128. (-[IFFontCacheKey isEqual:]):
  12129. * WebView.subproj/IFBaseWebController.mm:
  12130. (-[IFBaseWebController _frameNamed:fromFrame:]):
  12131. 2002-05-06 John Sullivan <sullivan@apple.com>
  12132. Some improvements to the bookmark changed notifications.
  12133. * Bookmarks.subproj/IFBookmarkGroup.h:
  12134. * Bookmarks.subproj/IFBookmarkGroup.m:
  12135. (-[IFBookmarkGroup _sendChangeNotificationForBookmark:childrenChanged:]):
  12136. (-[IFBookmarkGroup _setTopBookmark:]):
  12137. (-[IFBookmarkGroup _bookmarkDidChange:]):
  12138. (-[IFBookmarkGroup _bookmarkChildrenDidChange:]):
  12139. Send bookmark that changed and whether its children changed as part of
  12140. change notifications, so clients can choose to do less unnecessary work.
  12141. * Bookmarks.subproj/IFBookmarkLeaf.m:
  12142. (-[IFBookmarkLeaf setTitle:]): Check for the no-change case
  12143. and bail out without sending notification when you find it.
  12144. 2002-05-06 Darin Adler <darin@apple.com>
  12145. * WebKitPrefix.h: Added.
  12146. * WebKit.pbproj/project.pbxproj: Use PFE precompiling.
  12147. Also switch from xNDEBUG to NDEBUG.
  12148. * Misc.subproj/WebKitDebug.h: Get rid of format attribute because of bug
  12149. 2920557. Switch from xNDEBUG to NDEBUG.
  12150. * Misc.subproj/WebKitDebug.m:
  12151. Add undef to work around PFE problem with inline functions, Radar 2920554.
  12152. * Plugins.subproj/IFPluginView.mm: Changed how we work around the bug in
  12153. the CGS defines.
  12154. * WebCoreSupport.subproj/IFCachedTextRenderer.h: Change include of the
  12155. private QD header to use the form that works with more-normal way of
  12156. getting at the private bits of frameworks.
  12157. * WebCoreSupport.subproj/IFCachedTextRenderer.m: Use the header
  12158. <CoreGraphics/CoreGraphicsPrivate.h> instead of <CoreGraphics/CGFontPrivate.h>.
  12159. * Misc.subproj/IFCache.mm:
  12160. * WebView.subproj/IFLoadProgress.mm:
  12161. * WebView.subproj/IFWebFrame.mm:
  12162. * WebView.subproj/IFWebFramePrivate.mm:
  12163. * WebView.subproj/IFWebView.mm:
  12164. Changed includes to imports.
  12165. 2002-05-06 Chris Blumenberg <cblu@apple.com>
  12166. Made start and stop work cleaner.
  12167. Now observe defaults changes so that plug-ins
  12168. are disabled or enabled immediately (2871725).
  12169. * Plugins.subproj/IFPluginNullEventSender.m:
  12170. (-[IFPluginNullEventSender sendNullEvents]):
  12171. * Plugins.subproj/IFPluginView.h:
  12172. * Plugins.subproj/IFPluginView.mm:
  12173. (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
  12174. (-[IFPluginView start]):
  12175. (-[IFPluginView stop]):
  12176. (-[IFPluginView drawRect:]):
  12177. (-[IFPluginView windowWillClose:]):
  12178. (-[IFPluginView defaultsHaveChanged:]):
  12179. 2002-05-06 Richard J. Williamson <rjw@apple.com>
  12180. Fixed width measurement regression. We lost the final ROUND_TO_INT
  12181. in the width measurement funtion after the move from WebCore.
  12182. * WebCoreSupport.subproj/IFCachedTextRenderer.m:
  12183. (-[IFCachedTextRenderer widthForCharacters:length:]):
  12184. 2002-05-06 Richard J. Williamson <rjw@apple.com>
  12185. Changes to support dhtml.
  12186. * WebView.subproj/IFWebView.mm:
  12187. 2002-05-06 John Sullivan <sullivan@apple.com>
  12188. * Resources/url_icon.tiff: New bookmarks/history icon, looks
  12189. more like the springy @ sign as seen from above, less like text.
  12190. 2002-05-03 John Sullivan <sullivan@apple.com>
  12191. Along with small corresponding WebBrowser change,
  12192. fixed 2919172 (Bookmarks aren't saved between sessions).
  12193. * Bookmarks.subproj/IFBookmark_Private.h: Declarations for new private methods.
  12194. * Bookmarks.subproj/IFBookmark.m:
  12195. (-[IFBookmark _numberOfDescendants]): New private method, counts deep; used
  12196. only for debugging messages at this time.
  12197. (-[IFBookmark _initFromDictionaryRepresentation:withGroup:]):
  12198. (-[IFBookmark _dictionaryRepresentation]): New private methods used to save/load
  12199. bookmarks. Stub implementations; subclasses must implement.
  12200. * Bookmarks.subproj/IFBookmarkLeaf.m:
  12201. (-[IFBookmarkLeaf _initFromDictionaryRepresentation:withGroup:]):
  12202. (-[IFBookmarkLeaf _dictionaryRepresentation]): New methods.
  12203. * Bookmarks.subproj/IFBookmarkList.m:
  12204. (-[IFBookmarkList _initFromDictionaryRepresentation:withGroup:]):
  12205. (-[IFBookmarkList _dictionaryRepresentation]):
  12206. (-[IFBookmarkList _numberOfDescendants]):
  12207. New methods.
  12208. (-[IFBookmarkList _setGroup:]): Recurse on children.
  12209. * Bookmarks.subproj/IFBookmarkGroup.h: New _loading instance variable.
  12210. * Bookmarks.subproj/IFBookmarkGroup.m:
  12211. (-[IFBookmarkGroup _setTopBookmark:]): Renamed from _resetTopBookmark,
  12212. now has potentially non-nil argument.
  12213. (-[IFBookmarkGroup initWithFile:]),
  12214. (-[IFBookmarkGroup removeBookmark:]): Updated for name change.
  12215. (-[IFBookmarkGroup _sendBookmarkGroupChangedNotification]):
  12216. Don't send notifications while loading bookmarks from disk.
  12217. (-[IFBookmarkGroup _loadBookmarkGroupGuts]),
  12218. (-[IFBookmarkGroup loadBookmarkGroup]),
  12219. (-[IFBookmarkGroup _saveBookmarkGroupGuts]),
  12220. (-[IFBookmarkGroup saveBookmarkGroup]): New methods, load/save bookmarks
  12221. and report timings.
  12222. * History.subproj/IFURIEntry.m:
  12223. (-[IFURIEntry dictionaryRepresentation]),
  12224. (-[IFURIEntry initFromDictionaryRepresentation:]): Handle nil URL
  12225. case, which bookmarks run into.
  12226. * WebKit.pbproj/project.pbxproj: version wars
  12227. 2002-05-03 Darin Adler <darin@apple.com>
  12228. * WebCoreSupport.subproj/IFCachedTextRenderer.m: Remove some of the unused code.
  12229. I was going to wait and let Richard do it next week, but I was unable to control
  12230. my urge to hack on it.
  12231. 2002-05-03 Darin Adler <darin@apple.com>
  12232. * Resources/url_icon.tiff: Improved icon. Could be better.
  12233. 2002-05-03 Darin Adler <darin@apple.com>
  12234. * Misc.subproj/WebKitDebug.h: Add WEBKIT_LOG_MEMUSAGE, WEBKIT_LOG_FONTCACHE, and
  12235. WEBKIT_LOG_FONTCACHECHARMISS for font code moved here from WebCore.
  12236. * Resources/url_icon.tiff: New URL icon?
  12237. * WebCoreSupport.subproj/IFCachedTextRenderer.h: Added.
  12238. * WebCoreSupport.subproj/IFCachedTextRenderer.m: Added.
  12239. * WebCoreSupport.subproj/IFCachedTextRendererFactory.h: Added.
  12240. * WebCoreSupport.subproj/IFCachedTextRendererFactory.m: Added.
  12241. This has code moved here from WebCore.
  12242. * WebKit.pbproj/project.pbxproj: Add the new source files.
  12243. * Bookmarks.subproj/IFBookmarkLeaf.m:
  12244. (-[IFBookmarkLeaf setURLString:]): Use copy instead of initWithString.
  12245. * Bookmarks.subproj/IFBookmarkList.m:
  12246. (-[IFBookmarkList initWithTitle:image:group:]): Use copy instead of stringWithString.
  12247. (-[IFBookmarkList setTitle:]): Use copy instead of stringWithString.
  12248. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _setTitle:]):
  12249. Use mutableCopy instead of stringWithString.
  12250. * WebView.subproj/IFWebView.mm: (-[IFWebView initWithFrame:]): Use copy instead
  12251. of stringWithString.
  12252. 2002-05-02 John Sullivan <sullivan@apple.com>
  12253. Changed API such that mutating methods can now be called on bookmark objects,
  12254. which in turn tell their group that they have changed (so the group can send
  12255. out notifications).
  12256. * Bookmarks.subproj/IFBookmark.h:
  12257. * Bookmarks.subproj/IFBookmark.m:
  12258. (-[IFBookmark setTitle:]):
  12259. (-[IFBookmark setImage:]):
  12260. (-[IFBookmark setURLString:]):
  12261. (-[IFBookmark insertChild:atIndex:]):
  12262. (-[IFBookmark removeChild:]):
  12263. (-[IFBookmark _parent]):
  12264. (-[IFBookmark _group]):
  12265. * Bookmarks.subproj/IFBookmarkGroup.h:
  12266. * Bookmarks.subproj/IFBookmarkGroup.m:
  12267. (-[IFBookmarkGroup _resetTopBookmark]):
  12268. (-[IFBookmarkGroup _bookmarkDidChange:]):
  12269. (-[IFBookmarkGroup _bookmarkChildrenDidChange:]):
  12270. (-[IFBookmarkGroup removeBookmark:]):
  12271. (-[IFBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:image:URLString:isLeaf:]):
  12272. * Bookmarks.subproj/IFBookmarkLeaf.m:
  12273. (-[IFBookmarkLeaf setTitle:]):
  12274. (-[IFBookmarkLeaf setImage:]):
  12275. (-[IFBookmarkLeaf setURLString:]):
  12276. * Bookmarks.subproj/IFBookmarkList.m:
  12277. (-[IFBookmarkList setTitle:]):
  12278. (-[IFBookmarkList setImage:]):
  12279. (-[IFBookmarkList removeChild:]):
  12280. (-[IFBookmarkList insertChild:atIndex:]):
  12281. * Bookmarks.subproj/IFBookmark_Private.h:
  12282. Made _parent and _group private; made setTitle, setImage, setURLString,
  12283. insertChild:atIndex:, and removeChild: public.
  12284. * Bookmarks.subproj/IFBookmarkGroup_Private.h: Added.
  12285. * WebKit.pbproj/project.pbxproj: Changed for new file.
  12286. 2002-05-02 John Sullivan <sullivan@apple.com>
  12287. Implemented removing the root node bookmark (i.e.,
  12288. removing all bookmarks with one call).
  12289. * Bookmarks.subproj/IFBookmarkGroup.m:
  12290. (-[IFBookmarkGroup _resetTopBookmark]): New method, releases
  12291. old topBookmark and creates new one.
  12292. (-[IFBookmarkGroup initWithFile:]): Call _resetTopBookmark.
  12293. (-[IFBookmarkGroup removeBookmark:]): If the bookmark being
  12294. removed is the top one, call _resetTopBookmark.
  12295. 2002-05-02 John Sullivan <sullivan@apple.com>
  12296. Some more implementation of bookmarks code, enough to support
  12297. adding bookmarks to the Bookmarks menu (but not yet enough to
  12298. support persistent bookmarks).
  12299. * Bookmarks.subproj/IFBookmark_Private.h:
  12300. * Bookmarks.subproj/IFBookmark.h:
  12301. * Bookmarks.subproj/IFBookmark.m:
  12302. (-[IFBookmark numberOfChildren]): New public method, stub implementation.
  12303. (-[IFBookmark _removeChild:]): New private method, stub implementation.
  12304. * Bookmarks.subproj/IFBookmarkGroup.h:
  12305. * Bookmarks.subproj/IFBookmarkGroup.m:
  12306. (-[IFBookmarkGroup _sendBookmarkGroupChangedNotification]):
  12307. (-[IFBookmarkGroup removeBookmark:]):
  12308. (-[IFBookmarkGroup addNewBookmarkToBookmark:withTitle:image:URLString:isLeaf:]):
  12309. (-[IFBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:image:URLString:isLeaf:]):
  12310. (-[IFBookmarkGroup updateBookmark:title:image:URLString:]):
  12311. Changed "URL" to "URLString" in several places, added a "with"
  12312. to some parameter names; added addNewBookmarkToBookmark public
  12313. method; added notification that's sent when bookmarks are added or removed.
  12314. * Bookmarks.subproj/IFBookmarkLeaf.h:
  12315. * Bookmarks.subproj/IFBookmarkLeaf.m:
  12316. (-[IFBookmarkLeaf initWithURLString:title:image:group:]):
  12317. Added image parameter.
  12318. * Bookmarks.subproj/IFBookmarkList.m:
  12319. (-[IFBookmarkList numberOfChildren]): New method.
  12320. (-[IFBookmarkList _removeChild:]): Implemented.
  12321. 2002-04-30 John Sullivan <sullivan@apple.com>
  12322. Added initial set of files/API and some of the code for
  12323. bookmarks support. Nobody calls it yet, but it compiles.
  12324. I wanted to get this in before I ran into project file
  12325. merge conflicts.
  12326. * Bookmarks.subproj/IFBookmark.h: Added.
  12327. * Bookmarks.subproj/IFBookmark_Private.h: Added.
  12328. * Bookmarks.subproj/IFBookmark.m: Added.
  12329. (-[IFBookmark dealloc]):
  12330. (-[IFBookmark title]):
  12331. (-[IFBookmark _setTitle:]):
  12332. (-[IFBookmark image]):
  12333. (-[IFBookmark _setImage:]):
  12334. (-[IFBookmark isLeaf]):
  12335. (-[IFBookmark URLString]):
  12336. (-[IFBookmark _setURLString:]):
  12337. (-[IFBookmark children]):
  12338. (-[IFBookmark _insertChild:atIndex:]):
  12339. (-[IFBookmark parent]):
  12340. (-[IFBookmark _setParent:]):
  12341. (-[IFBookmark group]):
  12342. (-[IFBookmark _setGroup:]):
  12343. * Bookmarks.subproj/IFBookmarkGroup.h: Added.
  12344. * Bookmarks.subproj/IFBookmarkGroup.m: Added.
  12345. (+[IFBookmarkGroup bookmarkGroupWithFile:]):
  12346. (-[IFBookmarkGroup initWithFile:]):
  12347. (-[IFBookmarkGroup dealloc]):
  12348. (-[IFBookmarkGroup topBookmark]):
  12349. (-[IFBookmarkGroup insertBookmark:atIndex:ofBookmark:]):
  12350. (-[IFBookmarkGroup removeBookmark:]):
  12351. (-[IFBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:title:image:URL:isLeaf:]):
  12352. (-[IFBookmarkGroup updateBookmark:title:image:URL:]):
  12353. (-[IFBookmarkGroup file]):
  12354. (-[IFBookmarkGroup loadBookmarkGroup]):
  12355. (-[IFBookmarkGroup saveBookmarkGroup]):
  12356. * Bookmarks.subproj/IFBookmarkLeaf.h: Added.
  12357. * Bookmarks.subproj/IFBookmarkLeaf.m: Added.
  12358. (-[IFBookmarkLeaf dealloc]):
  12359. (-[IFBookmarkLeaf title]):
  12360. (-[IFBookmarkLeaf _setTitle:]):
  12361. (-[IFBookmarkLeaf image]):
  12362. (-[IFBookmarkLeaf _setImage:]):
  12363. (-[IFBookmarkLeaf isLeaf]):
  12364. (-[IFBookmarkLeaf URLString]):
  12365. (-[IFBookmarkLeaf _setURLString:]):
  12366. * Bookmarks.subproj/IFBookmarkList.h: Added.
  12367. * Bookmarks.subproj/IFBookmarkList.m: Added.
  12368. (-[IFBookmarkList initWithTitle:image:group:]):
  12369. (-[IFBookmarkList dealloc]):
  12370. (-[IFBookmarkList title]):
  12371. (-[IFBookmarkList _setTitle:]):
  12372. (-[IFBookmarkList image]):
  12373. (-[IFBookmarkList _setImage:]):
  12374. (-[IFBookmarkList isLeaf]):
  12375. (-[IFBookmarkList children]):
  12376. (-[IFBookmarkList _insertChild:atIndex:]):
  12377. * WebKit.pbproj/project.pbxproj: Updated for new files.
  12378. 2002-04-29 Richard Williamson <rjw@apple.com>
  12379. Fix to 2915688. I wasn't checking if the main document error had an error, only
  12380. the resource errors.
  12381. * WebView.subproj/IFWebFramePrivate.mm:
  12382. (-[IFWebFrame _isLoadComplete]):
  12383. 2002-04-29 Richard Williamson <rjw@apple.com>
  12384. Restored file, line, and function to log messages.
  12385. * Misc.subproj/WebKitDebug.m:
  12386. (WebKitLog):
  12387. 2002-04-25 Darin Adler <darin@apple.com>
  12388. * History.subproj/IFWebHistoryPrivate.m:
  12389. (-[IFWebHistoryPrivate _loadHistoryGuts:]): Use NSDictionary instead
  12390. of NSObject to avoid a cast.
  12391. * WebView.subproj/IFLocationChangeHandler.h: Add NSObject as a required
  12392. protocol so we can retain and release.
  12393. * WebView.subproj/IFWebController.h: Add NSObject as a required protocol
  12394. so we can retain and release.
  12395. * WebView.subproj/IFWebDataSourcePrivate.mm:
  12396. (-[IFWebDataSourcePrivate dealloc]):
  12397. (-[IFWebDataSource _setLoading:]):
  12398. (-[IFWebDataSource _setController:]):
  12399. (-[IFWebDataSource _setLocationChangeHandler:]):
  12400. * WebView.subproj/IFWebViewPrivate.mm:
  12401. (-[IFWebViewPrivate dealloc]):
  12402. Removed NSObject * casts that were used to work around the problem fixed above.
  12403. 2002-04-25 Chris Blumenberg <set EMAIL_ADDRESS environment variable>
  12404. * MIME.subproj/IFDownloadHandler.h:
  12405. * MIME.subproj/IFDownloadHandler.mm:
  12406. (+[IFDownloadHandler launchURL:]):
  12407. Added the above method as a way to universally launch an URL
  12408. within WebKit
  12409. * WebView.subproj/IFBaseWebController.mm:
  12410. (-[IFBaseWebController URLPolicyForURL:]):
  12411. We handle http, https and file URL's
  12412. * WebView.subproj/IFWebDataSource.mm:
  12413. (-[IFWebDataSource initWithURL:]):
  12414. (-[IFWebDataSource startLoading:]):
  12415. The IFURLHandle is now lazilly allocated.
  12416. * WebView.subproj/IFWebFrame.mm:
  12417. (-[IFWebFrame setProvisionalDataSource:]):
  12418. We only load a data source if the URL policy is IFURLPolicyUseContentPolicy
  12419. 2002-04-25 Richard Williamson <rjw@apple.com>
  12420. Fixed problem with errors potentially being reported on
  12421. wrong data source by moving collected errors from frame
  12422. to datasource.
  12423. Little changes in preparation for events.
  12424. * WebView.subproj/IFBaseWebControllerPrivate.mm:
  12425. (-[IFBaseWebController _receivedProgress:forResource:fromDataSource:]):
  12426. (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
  12427. (-[IFBaseWebController _receivedError:forResource:partialProgress:fromDataSource:]):
  12428. (-[IFBaseWebController _mainReceivedError:forResource:partialProgress:fromDataSource:]):
  12429. * WebView.subproj/IFWebDataSource.h:
  12430. * WebView.subproj/IFWebDataSource.mm:
  12431. (-[IFWebDataSource errors]):
  12432. (-[IFWebDataSource mainDocumentError]):
  12433. * WebView.subproj/IFWebDataSourcePrivate.h:
  12434. * WebView.subproj/IFWebDataSourcePrivate.mm:
  12435. (-[IFWebDataSourcePrivate dealloc]):
  12436. (-[IFWebDataSource _startLoading:]):
  12437. (-[IFWebDataSource _setMainDocumentError:]):
  12438. (-[IFWebDataSource _clearErrors]):
  12439. (-[IFWebDataSource _addError:forResource:]):
  12440. * WebView.subproj/IFWebFrame.h:
  12441. * WebView.subproj/IFWebFrame.mm:
  12442. (-[IFWebFrame reload:]):
  12443. (-[IFWebFrame reset]):
  12444. * WebView.subproj/IFWebFramePrivate.h:
  12445. * WebView.subproj/IFWebFramePrivate.mm:
  12446. (-[IFWebFramePrivate dealloc]):
  12447. (-[IFWebFrame _isLoadComplete]):
  12448. (-[IFWebFrame _checkLoadComplete]):
  12449. * WebView.subproj/IFWebView.mm:
  12450. (-[IFWebView acceptsFirstResponder]):
  12451. (-[IFWebView layout]):
  12452. (-[IFWebView drawRect:]):
  12453. 2002-04-25 Darin Adler <darin@apple.com>
  12454. Rework plugin code to prepare to move more of here from WebCore.
  12455. * Plugins.subproj/IFPluginView.mm:
  12456. (IFPluginViewCreate): New. Does all the work of creating an NSView
  12457. for a plug-in, including stuff previously done in WebCore.
  12458. (IFJavaAppletViewCreate): Same as above, for Java applets.
  12459. (+[IFPluginView load]): Set up the function pointers using the new
  12460. improved WebCore API.
  12461. * Plugins.subproj/IFNullPluginView.mm:
  12462. (-[IFNullPluginView load]): Remove this setup because now there's
  12463. no separate call to set up a null plug-in.
  12464. 2002-04-25 John Sullivan <sullivan@apple.com>
  12465. Fixed 2911915 (Exception in -[IFWebView mouseMoved])
  12466. * WebView.subproj/IFWebView.mm:
  12467. (-[IFWebView mouseDown:]): Changed "mouseUp" to "mouseDown"
  12468. in exception message.
  12469. (-[IFWebView mouseMoved:]): Removed bogus event-type checking
  12470. that caused this method to (always?) throw an exception when
  12471. invoked.
  12472. 2002-04-24 Chris Blumenberg <cblu@apple.com>
  12473. Renamed [IFWebDataSource frame] to [IFWebDataSource webFrame]
  12474. * WebView.subproj/IFBaseWebControllerPrivate.mm:
  12475. (-[IFBaseWebController _receivedProgress:forResource:fromDataSource:]):
  12476. (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
  12477. (-[IFBaseWebController _receivedError:forResource:partialProgress:fromDataSource:]):
  12478. (-[IFBaseWebController _mainReceivedError:forResource:partialProgress:fromDataSource:]):
  12479. * WebView.subproj/IFMainURLHandleClient.mm:
  12480. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  12481. * WebView.subproj/IFWebDataSource.h:
  12482. * WebView.subproj/IFWebDataSource.mm:
  12483. (-[IFWebDataSource webFrame]):
  12484. (-[IFWebDataSource frameName]):
  12485. (-[IFWebDataSource isLoading]):
  12486. * WebView.subproj/IFWebDataSourcePrivate.mm:
  12487. (-[IFWebDataSource _startLoading:]):
  12488. (-[IFWebDataSource _setTitle:]):
  12489. 2002-04-24 Richard Williamson <rjw@apple.com>
  12490. Changed ordering of messages so activity viewer doesn't get -1 bytesSoFar
  12491. for cancelled messages.
  12492. * WebView.subproj/IFBaseWebControllerPrivate.mm:
  12493. (-[IFBaseWebController _receivedProgress:forResource:fromDataSource:]):
  12494. (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
  12495. === Alexander 0.3c2 (v1) ===
  12496. 2002-04-23 Chris Blumenberg <cblu@apple.com>
  12497. * WebKit.pbproj/project.pbxproj:
  12498. Took IFDownloadHandler.h out of the public headers.
  12499. * WebView.subproj/IFLocationChangeHandler.h:
  12500. Removed deprecated methods.
  12501. * WebView.subproj/IFWebFrame.mm:
  12502. (-[IFWebFrame setProvisionalDataSource:]):
  12503. Don't call locationChangeStarted anymore.
  12504. 2002-04-23 Chris Blumenberg <cblu@apple.com>
  12505. * MIME.subproj/IFDownloadHandler.h:
  12506. * MIME.subproj/IFDownloadHandler.m: Removed.
  12507. * MIME.subproj/IFDownloadHandler.mm: Added.
  12508. (-[IFDownloadHandler initWithDataSource:]):
  12509. (-[IFDownloadHandler dealloc]):
  12510. * MIME.subproj/IFDownloadHandlerPrivate.h: Removed.
  12511. * MIME.subproj/IFDownloadHandlerPrivate.m: Removed.
  12512. Made IFDownloadHandler a private class that retains the data source
  12513. and saves the data to disk.
  12514. * WebKit.pbproj/project.pbxproj:
  12515. Removed IFDownloadHandlerPrivate
  12516. * WebView.subproj/IFBaseWebControllerPrivate.mm:
  12517. (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
  12518. Only send locationChangeCommitted if its shown inline.
  12519. * WebView.subproj/IFMainURLHandleClient.mm:
  12520. (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
  12521. Save data with IFDownloadHandler
  12522. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  12523. If its a download, set the provisionalDataSource on the frame to nil.
  12524. * WebView.subproj/IFWebDataSource.h:
  12525. * WebView.subproj/IFWebDataSource.mm:
  12526. (-[IFWebDataSource webFrame]):
  12527. (-[IFWebDataSource pageTitle]):
  12528. (-[IFWebDataSource contentPolicy]):
  12529. Added some accessor methods. Spelling fix pageTitle.
  12530. 2002-04-23 Kenneth Kocienda <kocienda@apple.com>
  12531. Reviewed by: Darin Adler
  12532. Fix for Radar 2908403 (Fix names in WebFoundation extensions code)
  12533. Extensions code in WebFoundation now is in its own namespace.
  12534. Where we have added categories to existing Foundation and AppKit
  12535. classes, the categories begin with the IF prefix. All method names
  12536. begin with the _IF_ prefix.
  12537. This file here was changed to use the new names.
  12538. * History.subproj/IFWebHistoryPrivate.m:
  12539. (-[IFWebHistoryPrivate findIndex:forDay:]):
  12540. (-[IFWebHistoryPrivate arrayRepresentation]):
  12541. (-[IFWebHistoryPrivate _loadHistoryGuts:]):
  12542. 2002-04-22 Chris Blumenberg <cblu@apple.com>
  12543. * WebView.subproj/IFMainURLHandleClient.mm:
  12544. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  12545. Send an IFError when we're asked to show content we can't handle.
  12546. * WebView.subproj/IFWebDataSourcePrivate.mm:
  12547. Cleaning
  12548. 2002-04-22 Chris Blumenberg <cblu@apple.com>
  12549. * WebKit.pbproj/project.pbxproj:
  12550. * WebView.subproj/IFBaseWebController.mm:
  12551. (-[IFBaseWebController haveContentPolicy:andPath:forLocationChangeHandler:]):
  12552. * WebView.subproj/IFWebDataSourcePrivate.h:
  12553. * WebView.subproj/IFWebDataSourcePrivate.mm:
  12554. Fixed frames which I broke in the previous commit. We now set the content policy
  12555. on all child frames instead of just the main frame.
  12556. 2002-04-22 Chris Blumenberg <cblu@apple.com>
  12557. * MIME.subproj/IFMIMEHandler.h:
  12558. * MIME.subproj/IFMIMEHandler.m:
  12559. (+[IFMIMEHandler showableMIMETypes]):
  12560. (+[IFMIMEHandler saveFileWithPath:andData:]):
  12561. (+[IFMIMEHandler saveAndOpenFileWithPath:andData:]):
  12562. Added the above factory methods.
  12563. * WebView.subproj/IFBaseWebController.mm:
  12564. (-[IFBaseWebController haveContentPolicy:andPath:forLocationChangeHandler:]):
  12565. Save the content policy and download path on the datasource.
  12566. * WebView.subproj/IFMainURLHandleClient.mm:
  12567. (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]):
  12568. (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
  12569. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  12570. (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  12571. Made IFMainURLHandleClient use our new content policy API rather than
  12572. IFDownloadHandler.
  12573. * WebView.subproj/IFWebController.h:
  12574. Removed some deprecated methods.
  12575. * WebView.subproj/IFWebDataSourcePrivate.h:
  12576. * WebView.subproj/IFWebDataSourcePrivate.mm:
  12577. (-[IFWebDataSource _downloadPath]):
  12578. (-[IFWebDataSource _setDownloadPath:]):
  12579. (-[IFWebDataSource _contentPolicy]):
  12580. (-[IFWebDataSource _setContentPolicy:]):
  12581. Added the above methods.
  12582. 2002-04-22 Darin Adler <darin@apple.com>
  12583. * Plugins.subproj/IFPluginView.mm:
  12584. (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
  12585. Fix the fix. It was bumping argsCount even when not putting an
  12586. argument into the array.
  12587. 2002-04-21 Maciej Stachowiak <mjs@apple.com>
  12588. Fix a plugins memory trasher that was making Alexander crash on
  12589. the abcnews.com test page in cvs-torture-test:
  12590. * Plugins.subproj/IFPluginView.mm:
  12591. (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
  12592. Use a new maxArguments variable to size the argument and value
  12593. arrays - with the old code argsCount would end up twice the size
  12594. it should be, and the arguments would all get written past the end
  12595. of the argument array.
  12596. 2002-04-19 Kenneth Kocienda <kocienda@apple.com>
  12597. Changes to support submission of forms using HTTP POST.
  12598. These changes move us over to using the new WebKit interface for creating
  12599. WebDataSource instances, one that passes a handle rather than just a URL,
  12600. enabling the specific request method to be communicated to WebFoundation.
  12601. This fixes:
  12602. Radar 2903602 (IFWebDataSource API must passes attributes and flags to IFURLHandle)
  12603. * WebKit.pbproj/project.pbxproj:
  12604. * WebView.subproj/IFWebDataSource.h:
  12605. * WebView.subproj/IFWebDataSource.mm: (IFWebDataSourceMake), (-[IFWebDataSource
  12606. initWithURL:]), (-[IFWebDataSource initWithHandle:]):
  12607. * WebView.subproj/IFWebDataSourcePrivate.h:
  12608. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _startLoading:]):
  12609. 2002-04-19 Richard Williamson <rjw@apple.com>
  12610. Updated comments to reflect new API.
  12611. * WebView.subproj/IFLocationChangeHandler.h:
  12612. 2002-04-19 Darin Adler <darin@apple.com>
  12613. * Plugins.subproj/IFPluginView.h: Re-add the attributes and values arrays,
  12614. since they need to live the life of the plugin.
  12615. * Plugins.subproj/IFPluginView.mm: (newCString): New function to make a C++
  12616. new-allocated C string from an NSString.
  12617. (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]): Move code
  12618. to allocate the arrays back here.
  12619. (-[IFPluginView dealloc]): Deallocate the arrays and their contents.
  12620. (-[IFPluginView start]): Simplify now that it does no work.
  12621. 2002-04-18 Chris Blumenberg <cblu@apple.com>
  12622. Made stop and start to work better. Fixed a bug darin made.
  12623. * Plugins.subproj/IFPluginView.h:
  12624. * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
  12625. initWithFrame:plugin:url:mime:arguments:mode:]), (-[IFPluginView setWindow]),
  12626. (-[IFPluginView start]), (-[IFPluginView stop]):
  12627. 2002-04-18 Richard Williamson <rjw@apple.com>
  12628. Fixed typo.
  12629. * WebView.subproj/IFBaseLocationChangeHandler.m: (-[IFBaseLocationChangeHandler
  12630. requestContentPolicyForMIMEType:]):
  12631. * WebView.subproj/IFLocationChangeHandler.h:
  12632. 2002-04-18 Richard Williamson <rjw@apple.com>
  12633. New API stubs for content policy.
  12634. * WebView.subproj/IFBaseLocationChangeHandler.h: Added.
  12635. * WebView.subproj/IFBaseLocationChangeHandler.m: Added.
  12636. (+[IFBaseLocationChangeHandler setGlobalContentPolicy:forMIMEType:]),
  12637. (+[IFBaseLocationChangeHandler globaContentPolicyForContentType:]),
  12638. (+[IFBaseLocationChangeHandler globalContentPolicies]),
  12639. (+[IFBaseLocationChangeHandler suggestedFileanemForURL:andContentType:]),
  12640. (+[IFBaseLocationChangeHandler suggestedDirectoryForURL:andContentType:]),
  12641. (+[IFBaseLocationChangeHandler extensionForURL:]), (-[IFBaseLocationChangeHandler
  12642. extension]), (-[IFBaseLocationChangeHandler locationWillChangeTo:]),
  12643. (-[IFBaseLocationChangeHandler locationChangeStarted]),
  12644. (-[IFBaseLocationChangeHandler locationChangeCommitted]),
  12645. (-[IFBaseLocationChangeHandler locationChangeDone:]),
  12646. (-[IFBaseLocationChangeHandler receivedPageTitle:forDataSource:]),
  12647. (-[IFBaseLocationChangeHandler serverRedirectTo:forDataSource:]),
  12648. (-[IFBaseLocationChangeHandler downloadingWithHandler:]),
  12649. (-[IFBaseLocationChangeHandler requestContentPolicyForContentMIMEType:]),
  12650. (-[IFBaseLocationChangeHandler unableToImplementContentPolicy:]):
  12651. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  12652. receivedError:forDownloadHandler:partialProgress:]), (-[IFBaseWebController
  12653. provideLocationChangeHandlerForFrame:andURL:]), (-[IFBaseWebController
  12654. URLPolicyForURL:]), (-[IFBaseWebController
  12655. unableToImplementURLPolicyForURL:error:]), (-[IFBaseWebController
  12656. haveContentPolicy:andPath:forLocationChangeHandler:]):
  12657. * WebView.subproj/IFLocationChangeHandler.h:
  12658. * WebView.subproj/IFWebController.h:
  12659. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _setState:]):
  12660. 2002-04-18 Darin Adler <darin@apple.com>
  12661. * WebKit.pbproj/project.pbxproj: Oops. Take out -Wstrict-prototypes, put back
  12662. -Wmissing-prototypes.
  12663. 2002-04-18 Darin Adler <darin@apple.com>
  12664. * WebKit.pbproj/project.pbxproj: Take out -Wmissing-prototypes
  12665. because system headers are triggering it when we don't have
  12666. precompiled headers on.
  12667. 2002-04-18 Darin Adler <darin@apple.com>
  12668. Fixes for compiling with gcc3 and more warnings.
  12669. * WebKit.pbproj/project.pbxproj: Turn on gcc3 and the same set of warnings
  12670. as in the rest of Labyrinth (see top level ChangeLog for details).
  12671. * Plugins.subproj/IFPluginView.mm:
  12672. Avoid warnings about malloc by not using it.
  12673. (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]): Keep the arguments
  12674. dictionary around instead of keeping the C format version of it around. Also don't
  12675. bother keeping the C string form of the MIME type around, and simplify some other
  12676. stuff in here.
  12677. (-[IFPluginView dealloc]): Corresponding changes since we keep a different set of things.
  12678. (-[IFPluginView newStream:mimeType:notifyData:]): Use [mimeType cString].
  12679. (-[IFPluginView start]): Build the lists of attributes and values in here. Do it using
  12680. [NSString cString] for simplicity and don't keep the lists around after we're done with
  12681. them.
  12682. (-[IFPluginView IFURLHandleResourceDidFinishLoading:data:]): Use [filenameClassic cString].
  12683. * WebView.subproj/IFMainURLHandleClient.mm:
  12684. (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]),
  12685. (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]),
  12686. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]),
  12687. (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  12688. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate dealloc]),
  12689. (-[IFWebDataSource _setLoading:]), (-[IFWebDataSource _setController:]),
  12690. (-[IFWebDataSource _setLocationChangeHandler:]):
  12691. * WebView.subproj/IFWebView.mm: (-[IFWebView provisionalDataSourceChanged:]),
  12692. (-[IFWebView mouseUp:]), (-[IFWebView mouseDown:]):
  12693. Add type casts required by pickier gcc3.
  12694. * WebView.subproj/IFWebViewPrivate.mm: (-[IFWebViewPrivate dealloc]):
  12695. Add type cast required by pickier gcc3.
  12696. (-[IFWebView _stopPlugins]): Use local variable to work around Radar 2905835.
  12697. 2002-04-18 Chris Blumenberg <cblu@apple.com>
  12698. Moved plugin instance creation to the start method in IFPluginView.
  12699. * Plugins.subproj/IFPluginView.h:
  12700. * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
  12701. initWithFrame:plugin:url:mime:arguments:mode:]), (-[IFPluginView dealloc]),
  12702. (-[IFPluginView newStream:mimeType:notifyData:]), (-[IFPluginView start]),
  12703. (-[IFPluginView stop]), (-[IFPluginView drawRect:]), (-[IFPluginView
  12704. windowBecameKey:]), (-[IFPluginView windowResignedKey:]), (-[IFPluginView
  12705. IFURLHandle:resourceDataDidBecomeAvailable:]), (-[IFPluginView
  12706. IFURLHandleResourceDidFinishLoading:data:]):
  12707. 2002-04-17 Darin Adler <darin@apple.com>
  12708. * WebKit.pbproj/project.pbxproj: Update header search paths to find
  12709. WebCore in the new location and eliminate WebCore/include.
  12710. 2002-04-17 Chris Blumenberg <cblu@apple.com>
  12711. Added a debug bit mask for plugins and downloads.
  12712. * MIME.subproj/IFDownloadHandlerPrivate.m: (-[IFDownloadHandlerPrivate
  12713. _openFile]), (-[IFDownloadHandlerPrivate _saveFile]), (-[IFDownloadHandler
  12714. _initWithURLHandle:mimeHandler:]):
  12715. * Misc.subproj/WebKitDebug.h:
  12716. * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
  12717. initWithFrame:plugin:url:mime:arguments:mode:]), (-[IFPluginView setWindow]),
  12718. (-[IFPluginView newStream:mimeType:notifyData:]), (-[IFPluginView stop]),
  12719. (-[IFPluginView sendUpdateEvent]), (-[IFPluginView becomeFirstResponder]),
  12720. (-[IFPluginView resignFirstResponder]), (-[IFPluginView mouseDown:]),
  12721. (-[IFPluginView mouseUp:]), (-[IFPluginView mouseEntered:]), (-[IFPluginView
  12722. mouseExited:]), (-[IFPluginView keyUp:]), (-[IFPluginView keyDown:]),
  12723. (-[IFPluginView IFURLHandle:resourceDataDidBecomeAvailable:]), (-[IFPluginView
  12724. IFURLHandleResourceDidFinishLoading:data:]), (-[IFPluginView
  12725. getURLNotify:target:notifyData:]), (-[IFPluginView getURL:target:]),
  12726. (-[IFPluginView postURLNotify:target:len:buf:file:notifyData:]), (-[IFPluginView
  12727. postURL:target:len:buf:file:]), (-[IFPluginView newStream:target:stream:]),
  12728. (-[IFPluginView write:len:buffer:]), (-[IFPluginView destroyStream:reason:]),
  12729. (-[IFPluginView status:]), (-[IFPluginView getValue:value:]), (-[IFPluginView
  12730. setValue:value:]), (-[IFPluginView invalidateRect:]), (-[IFPluginView
  12731. invalidateRegion:]), (-[IFPluginView forceRedraw]):
  12732. * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
  12733. IFURLHandle:resourceDataDidBecomeAvailable:]):
  12734. 2002-04-17 Darin Adler <darin@apple.com>
  12735. * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]):
  12736. Changed another Georgia that I missed to Times New Roman.
  12737. 2002-04-16 Darin Adler <darin@apple.com>
  12738. * WebView.subproj/IFWebDataSource.mm:
  12739. * WebView.subproj/IFWebDataSourcePrivate.mm:
  12740. Touch these files to try to make Jersey build again.
  12741. 2002-04-16 Darin Adler <darin@apple.com>
  12742. * WebView.subproj/IFBaseWebControllerPrivate.mm: Include khtml_part.h instead
  12743. of KWQKHTMLPart.h.
  12744. * WebView.subproj/IFWebFrame.mm: Include khtml_part.h instead of KWQKHTMLPart.h.
  12745. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource documentTextFromDOM]):
  12746. Remove an unneeded cast and an extra retain/autorelease.
  12747. 2002-04-16 Darin Adler <darin@apple.com>
  12748. * WebView.subproj/IFWebFrame.h:
  12749. * WebView.subproj/IFWebFrame.mm:
  12750. * WebView.subproj/IFWebFramePrivate.h:
  12751. Change view/setView back to be id, rather than IFWebView.
  12752. In the future, the view may be some other kind of object.
  12753. 2002-04-16 John Sullivan <sullivan@apple.com>
  12754. Fixed bug Chris noticed where Alexander wasn't putting up
  12755. an error sheet on failed page visits.
  12756. * WebView.subproj/IFWebFramePrivate.mm:
  12757. (-[IFWebFrame _isLoadComplete]): Don't set provisionalDataSource
  12758. to nil until after sending it locationChangeDone.
  12759. 2002-04-16 Darin Adler <darin@apple.com>
  12760. * WebView.subproj/IFBaseWebController.mm: Remove special release handling because
  12761. data sources now retain the controller as long as they are loading.
  12762. * WebView.subproj/IFWebDataSource.mm: Remove special release handling because
  12763. data sources now retain themselves as long as they are loading.
  12764. * WebView.subproj/IFWebFrame.mm: Remove special release handling, because
  12765. data sources now retain the controller as long as they are loading, and the
  12766. controller retains the frame.
  12767. * WebView.subproj/IFWebDataSourcePrivate.h: Add a "loading" boolean.
  12768. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _setLoading:]):
  12769. Change the "loading" state, retaining or releasing this object and the controller
  12770. as necessary.
  12771. (-[IFWebDataSource _updateLoading]): Update the loading state; called when
  12772. some part of loading is done to see if it's all done.
  12773. (-[IFWebDataSource _setController:]): Retain the new controller and release the
  12774. old controller when loading.
  12775. (-[IFWebDataSource _setPrimaryLoadComplete:]): Call _updateLoading.
  12776. (-[IFWebDataSource _startLoading:]): Call _setLoading:YES.
  12777. (-[IFWebDataSource _addURLHandle:]): Call _setLoading:YES.
  12778. (-[IFWebDataSource _removeURLHandle:]): Call _updateLoading.
  12779. * WebView.subproj/IFWebFrame.h: Use the real type, IFWebView, for setView and view.
  12780. * WebView.subproj/IFWebFramePrivate.h: Formatting tweak.
  12781. * WebKit.pbproj/project.pbxproj: Version wars.
  12782. 2002-04-16 John Sullivan <sullivan@apple.com>
  12783. * WebView.subproj/IFWebViewPrivate.mm:
  12784. (-[IFWebView _setController:]): removed a mistaken
  12785. retain/release pair here for Darin.
  12786. 2002-04-16 Darin Adler <darin@apple.com>
  12787. Change default font to "Times New Roman 11" rather than
  12788. "Georgia 12" to be more like Macintosh Internet Explorer.
  12789. * WebView.subproj/IFPreferences.mm:
  12790. A little simplifying of private pointers.
  12791. * MIME.subproj/IFDownloadHandler.h:
  12792. * MIME.subproj/IFDownloadHandler.m:
  12793. 2002-04-16 Darin Adler <darin@apple.com>
  12794. A little simplifying of private pointers.
  12795. * MIME.subproj/IFDownloadHandler.m:
  12796. * MIME.subproj/IFDownloadHandlerPrivate.m:
  12797. * WebView.subproj/IFBaseWebController.mm:
  12798. * WebView.subproj/IFWebDataSource.h:
  12799. * WebView.subproj/IFWebDataSource.mm:
  12800. * WebView.subproj/IFWebDataSourcePrivate.mm:
  12801. * WebView.subproj/IFWebFrame.h:
  12802. * WebView.subproj/IFWebFrame.mm:
  12803. * WebView.subproj/IFWebFramePrivate.mm:
  12804. * WebView.subproj/IFWebView.h:
  12805. * WebView.subproj/IFWebView.mm:
  12806. * WebView.subproj/IFWebViewPrivate.h:
  12807. * WebView.subproj/IFWebViewPrivate.mm:
  12808. 2002-04-16 Darin Adler <darin@apple.com>
  12809. Change headers so they don't include so much.
  12810. Also change IF_LOAD_TYPE to IFLoadType.
  12811. * History.subproj/IFBackForwardList.h:
  12812. * History.subproj/IFBackForwardList.m:
  12813. * History.subproj/IFURIEntry.h:
  12814. * History.subproj/IFURIList.h:
  12815. * History.subproj/IFURIList.m:
  12816. * History.subproj/IFWebHistory.h:
  12817. * History.subproj/IFWebHistoryPrivate.h:
  12818. * History.subproj/IFWebHistoryPrivate.m:
  12819. * MIME.subproj/IFContentHandler.h:
  12820. * MIME.subproj/IFDownloadHandler.h:
  12821. * MIME.subproj/IFDownloadHandlerPrivate.h:
  12822. * MIME.subproj/IFDownloadHandlerPrivate.m:
  12823. * MIME.subproj/IFMIMEDatabase.h:
  12824. * MIME.subproj/IFMIMEDatabase.m:
  12825. * Misc.subproj/IFException.h:
  12826. * Plugins.subproj/IFNullPluginView.mm:
  12827. * Plugins.subproj/IFPluginView.h:
  12828. * Plugins.subproj/IFPluginView.mm:
  12829. * WebKit.pbproj/project.pbxproj:
  12830. * WebView.subproj/IFBaseWebController.h:
  12831. * WebView.subproj/IFBaseWebController.mm:
  12832. * WebView.subproj/IFBaseWebControllerPrivate.h:
  12833. * WebView.subproj/IFBaseWebControllerPrivate.mm:
  12834. * WebView.subproj/IFLoadProgress.h:
  12835. * WebView.subproj/IFLoadProgress.mm:
  12836. * WebView.subproj/IFLocationChangeHandler.h:
  12837. * WebView.subproj/IFMainURLHandleClient.h:
  12838. * WebView.subproj/IFMainURLHandleClient.mm:
  12839. * WebView.subproj/IFPreferences.h:
  12840. * WebView.subproj/IFPreferencesPrivate.h:
  12841. * WebView.subproj/IFWebController.h:
  12842. * WebView.subproj/IFWebDataSource.h:
  12843. * WebView.subproj/IFWebDataSource.mm:
  12844. * WebView.subproj/IFWebDataSourcePrivate.h:
  12845. * WebView.subproj/IFWebDataSourcePrivate.mm:
  12846. * WebView.subproj/IFWebFrame.h:
  12847. * WebView.subproj/IFWebFrame.mm:
  12848. * WebView.subproj/IFWebFramePrivate.h:
  12849. * WebView.subproj/IFWebFramePrivate.mm:
  12850. * WebView.subproj/IFWebView.h:
  12851. * WebView.subproj/IFWebView.mm:
  12852. * WebView.subproj/IFWebViewPrivate.h:
  12853. * WebView.subproj/IFWebViewPrivate.mm:
  12854. 2002-04-16 Kenneth Kocienda <kocienda@apple.com>
  12855. Moved IFError class from WebKit to WebFoundation.
  12856. Updated includes due to this change.
  12857. Updated URL handle client interface to pass an IFError in
  12858. an error callback rather than a plain int. The URL client was
  12859. modified due to this change.
  12860. * Misc.subproj/IFError.h: Removed.
  12861. * Misc.subproj/IFError.m: Removed.
  12862. * Plugins.subproj/IFPluginView.mm:
  12863. * WebKit.pbproj/project.pbxproj:
  12864. * WebView.subproj/IFBaseWebControllerPrivate.mm:
  12865. * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
  12866. IFURLHandle:resourceDidFailLoadingWithResult:]):
  12867. * WebView.subproj/IFWebFramePrivate.mm:
  12868. 2002-04-15 Darin Adler <darin@apple.com>
  12869. * WebView.subproj/IFPreferences.h:
  12870. * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]): Remove the old
  12871. WebKitFontSizes preference.
  12872. (-[IFPreferences mediumFontSize]), (-[IFPreferences setMediumFontSize:]): New.
  12873. * WebView.subproj/IFWebView.mm: (-[IFWebView reapplyStyles]): Call
  12874. updateStyleSelector() instead of recalcStyle().
  12875. 2002-04-15 Darin Adler <darin@apple.com>
  12876. Merged changes from previous merge branch.
  12877. 2002-03-25 Darin Adler <darin@apple.com>
  12878. * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]):
  12879. Add WebKitMediumFontSizePreferenceKey.
  12880. 2002-04-15 John Sullivan <sullivan@apple.com>
  12881. * Plugins.subproj/IFNullPluginView.mm: (-[IFNullPluginView drawRect:]):
  12882. Moved a line of code to prevent pluginNotFound message from being
  12883. sent twice.
  12884. 2002-04-15 Richard Williamson <rjw@apple.com>
  12885. Changes to IFLocationChangeHandler.
  12886. Experimental allocator code, not to be used, not thread safe.!
  12887. * Misc.subproj/WebKitDebug.h:
  12888. * Misc.subproj/WebKitDebug.m: (if_check_zone), (_debugAllocate),
  12889. (_debugAllocatorInitialize), (printDebugMallocCounters), (if_cf_retain),
  12890. (if_cf_release), (if_cf_alloc), (if_cf_realloc), (if_cf_dealloc),
  12891. (if_cf_preferredSize), (setupDebugMalloc), (clearDebugMalloc),
  12892. (resetDebugMallocCounters), (public_mALLOc), (public_fREe), (public_rEALLOc),
  12893. (public_mEMALIGn), (public_vALLOc), (public_pVALLOc), (public_cALLOc),
  12894. (public_iCALLOc), (public_iCOMALLOc), (public_cFREe), (public_mTRIm),
  12895. (public_mUSABLe), (public_mSTATs), (public_mALLINFo), (public_mALLOPt),
  12896. (do_check_malloc_state), (mALLINFo), (mSTATs), (if_size), (if_valloc),
  12897. (if_malloc), (if_realloc), (if_calloc), (if_free):
  12898. * WebKit.pbproj/project.pbxproj:
  12899. * WebView.subproj/IFBaseWebController.h:
  12900. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  12901. provideLocationChangeHandlerForFrame:]):
  12902. * WebView.subproj/IFLocationChangeHandler.h: Added.
  12903. * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
  12904. IFURLHandle:resourceDataDidBecomeAvailable:]), (-[IFMainURLHandleClient
  12905. IFURLHandle:didRedirectToURL:]):
  12906. * WebView.subproj/IFWebController.h:
  12907. * WebView.subproj/IFWebDataSource.mm: (+[IFWebDataSource load]):
  12908. * WebView.subproj/IFWebDataSourcePrivate.h:
  12909. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate dealloc]),
  12910. (-[IFWebDataSource _startLoading:]), (-[IFWebDataSource _setTitle:]),
  12911. (-[IFWebDataSource _locationChangeHandler]), (-[IFWebDataSource
  12912. _setLocationChangeHandler:]):
  12913. * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame setProvisionalDataSource:]):
  12914. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame
  12915. _transitionProvisionalToCommitted]), (-[IFWebFrame _isLoadComplete]):
  12916. 2002-04-15 Chris Blumenberg <set EMAIL_ADDRESS environment variable>
  12917. * MIME.subproj/IFContentHandler.m: (-[IFContentHandler HTMLDocument]):
  12918. Made sure I didn't unnecessarily allocate html document strings
  12919. * MIME.subproj/IFDownloadHandler.h:
  12920. * MIME.subproj/IFDownloadHandler.m: (-[IFDownloadHandler suggestedFilename]),
  12921. (-[IFDownloadHandler openAfterDownload:]):
  12922. Added the mentioned API's
  12923. * MIME.subproj/IFDownloadHandlerPrivate.h:
  12924. * MIME.subproj/IFDownloadHandlerPrivate.m: (-[IFDownloadHandlerPrivate init]),
  12925. (-[IFDownloadHandlerPrivate dealloc]), (-[IFDownloadHandlerPrivate
  12926. _suggestedFilename]), (-[IFDownloadHandlerPrivate _cancelDownload]),
  12927. (-[IFDownloadHandlerPrivate _storeAtPath:]), (-[IFDownloadHandlerPrivate
  12928. _finishedDownload]), (-[IFDownloadHandlerPrivate _openAfterDownload:]),
  12929. (-[IFDownloadHandlerPrivate _openFile]), (-[IFDownloadHandlerPrivate _saveFile]),
  12930. (-[IFDownloadHandler _initWithURLHandle:mimeHandler:]):
  12931. Cleaned up and added a lot error checking code to IFDownloadHandlerPrivate
  12932. * Plugins.subproj/IFNullPluginView.mm: (-[IFNullPluginView
  12933. initWithFrame:mimeType:arguments:]), (-[IFNullPluginView drawRect:]):
  12934. Made sure I didn't unnecessarily allocate images
  12935. * Resources/plugin_document_template.html:
  12936. Plugins now have 100% of the window
  12937. 2002-04-12 Chris Blumenberg <cblu@apple.com>
  12938. Fixed build failure. Forgot to make IFDownloadHandler.h
  12939. a public header.
  12940. * WebKit.pbproj/project.pbxproj:
  12941. 2002-04-12 Chris Blumenberg <cblu@apple.com>
  12942. First implementation of IFDownloadHandler and IFDownloadHandlerPrivate.
  12943. 2002-04-11 Chris Blumenberg <cblu@apple.com>
  12944. Added support for non-html content. Non-html content is embedded in a
  12945. contrived HTML document.
  12946. * English.lproj/IFError.strings:
  12947. * MIME.subproj/IFContentHandler.h: Added.
  12948. * MIME.subproj/IFContentHandler.m: Added.
  12949. (-[IFContentHandler initWithMIMEHandler:URL:]), (-[IFContentHandler
  12950. HTMLDocument]), (-[IFContentHandler dealloc]):
  12951. * MIME.subproj/IFMIMEDatabase.h:
  12952. * MIME.subproj/IFMIMEDatabase.m: (-[IFMIMEDatabase MIMEHandlerForMIMEType:]),
  12953. (setMimeHandlers):
  12954. * MIME.subproj/IFMIMEHandler.h:
  12955. * MIME.subproj/IFMIMEHandler.m: (-[IFMIMEHandler
  12956. initWithMIMEType:handlerType:handlerName:]), (-[IFMIMEHandler description]):
  12957. * Misc.subproj/IFError.h:
  12958. * Misc.subproj/IFError.m: (+[IFError initialize]):
  12959. * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
  12960. initWithFrame:plugin:url:mime:arguments:mode:]), (-[IFPluginView dealloc]),
  12961. (-[IFPluginView stop]):
  12962. * Resources/plugin_document_template.html: Added.
  12963. * Resources/text_document_template.html: Added.
  12964. * WebKit.pbproj/project.pbxproj:
  12965. * WebView.subproj/IFMainURLHandleClient.h:
  12966. * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
  12967. initWithDataSource:part:]), (-[IFMainURLHandleClient dealloc]),
  12968. (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]),
  12969. (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
  12970. 2002-04-10 Chris Blumenberg <cblu@apple.com>
  12971. Cleaned up stream deallocations.
  12972. * Plugins.subproj/IFPluginStream.h:
  12973. * Plugins.subproj/IFPluginStream.m: (-[IFPluginStream
  12974. initWithURL:mimeType:notifyData:]), (-[IFPluginStream incrementOffset:]),
  12975. (-[IFPluginStream dealloc]):
  12976. * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
  12977. newStream:mimeType:notifyData:]), (-[IFPluginView
  12978. IFURLHandleResourceDidCancelLoading:]), (-[IFPluginView
  12979. IFURLHandle:resourceDidFailLoadingWithResult:]):
  12980. 2002-04-10 John Sullivan <sullivan@apple.com>
  12981. Fixed 2891396 -- window fills with garbage if you resize or hide/show toolbar
  12982. before loading first page
  12983. * WebView.subproj/IFWebView.mm: (-[IFWebView drawRect:]):
  12984. Made webview fill rect with white if there's no widget.
  12985. 2002-04-09 Chris Blumenberg <cblu@apple.com>
  12986. * Plugins.subproj/IFPluginView.h:
  12987. * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
  12988. initWithFrame:plugin:url:mime:arguments:mode:]), (-[IFPluginView setWindow]),
  12989. (-[IFPluginView newStream:mimeType:notifyData:]), (-[IFPluginView start]),
  12990. (-[IFPluginView stop]), (-[IFPluginView dealloc]), (-[IFPluginView
  12991. findSuperview:]), (-[IFPluginView sendUpdateEvent]), (-[IFPluginView drawRect:]),
  12992. (-[IFPluginView isFlipped]), (-[IFPluginView viewHasMoved:]), (-[IFPluginView
  12993. windowBecameKey:]), (-[IFPluginView windowResignedKey:]), (-[IFPluginView
  12994. windowWillClose:]), (-[IFPluginView IFURLHandleResourceDidBeginLoading:]),
  12995. (-[IFPluginView IFURLHandle:resourceDataDidBecomeAvailable:]), (-[IFPluginView
  12996. IFURLHandleResourceDidFinishLoading:data:]), (-[IFPluginView
  12997. IFURLHandleResourceDidCancelLoading:]), (-[IFPluginView
  12998. IFURLHandle:resourceDidFailLoadingWithResult:]), (-[IFPluginView
  12999. IFURLHandle:didRedirectToURL:]), (-[IFPluginView forceRedraw]), (IFPluginMake),
  13000. (+[IFPluginView load]):
  13001. * WebKit.pbproj/project.pbxproj:
  13002. * WebView.subproj/IFLoadProgress.h:
  13003. Cleaned up the IFPluginView code. Moved a lot of things around.
  13004. Added support for plug-in file download progress.
  13005. 2002-04-08 Chris Blumenberg <cblu@apple.com>
  13006. * Plugins.subproj/IFPluginView.h:
  13007. * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
  13008. initWithFrame:plugin:url:mime:arguments:mode:]), (-[IFPluginView drawRect:]),
  13009. (-[IFPluginView newStream:mimeType:notifyData:]), (-[IFPluginView
  13010. getURLNotify:target:notifyData:]):
  13011. Support new stream requests from plug-ins that are relative URL's.
  13012. 2002-04-08 Darin Adler <darin@apple.com>
  13013. * WebKit.pbproj/project.pbxproj: Re-added -Wno-format-y2k.
  13014. 2002-04-08 Richard Williamson <rjw@apple.com>
  13015. Added logs for Shelley to note start and completion of document load.
  13016. -WebKitLogLevel 0x1000. Also, as a bonus, note time to load.
  13017. * Misc.subproj/WebKitDebug.h:
  13018. * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame startLoading]):
  13019. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _setState:]):
  13020. 2002-04-08 Chris Blumenberg <cblu@apple.com>
  13021. * Plugins.subproj/IFNullPluginView.h:
  13022. * Plugins.subproj/IFNullPluginView.mm: (-[IFNullPluginView
  13023. initWithFrame:mimeType:arguments:]), (-[IFNullPluginView drawRect:]):
  13024. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  13025. pluginNotFoundForMIMEType:pluginPageURL:]):
  13026. * WebView.subproj/IFWebController.h:
  13027. Added pluginNotFoundForMIMEType: pluginPageURL: to WebKit. This gets called
  13028. by IFNullPluginView when a plug-in for a certain mime type is requested but
  13029. not installed.
  13030. 2002-04-08 Richard Williamson <rjw@apple.com>
  13031. Added frameForView:
  13032. Cleaned up out-of-date comments.
  13033. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  13034. _frameForView:fromFrame:]), (-[IFBaseWebController frameForView:]):
  13035. * WebView.subproj/IFWebController.h:
  13036. 2002-04-05 Chris Blumenberg <cblu@apple.com>
  13037. * Plugins.subproj/IFNullPluginView.mm: (+[IFNullPluginView load]):
  13038. Enabled the below.
  13039. 2002-04-05 Chris Blumenberg <cblu@apple.com>
  13040. * Plugins.subproj/IFNullPluginView.h: Added.
  13041. * Plugins.subproj/IFNullPluginView.mm: Added.
  13042. (-[IFNullPluginView initWithFrame:mimeType:arguments:]), (-[IFNullPluginView
  13043. findSuperview:]), (-[IFNullPluginView drawRect:]):
  13044. * Resources/nullplugin.tiff: Added.
  13045. * WebKit.pbproj/project.pbxproj:
  13046. An IFNullPluginView is now created when no plug-in for a requested
  13047. mime type is found. IFNullPluginView displays a null plug-in icon
  13048. and will eventually report this error to the WebController.
  13049. 2002-04-05 Richard Williamson <rjw@apple.com>
  13050. Back out some changes to lazily dealloc frame.
  13051. * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame release]):
  13052. 2002-04-05 Richard Williamson <rjw@apple.com>
  13053. New method on controller to find a frame of a particular name
  13054. anywhere in the frame hierarchy.
  13055. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  13056. initWithView:provisionalDataSource:]), (-[IFBaseWebController
  13057. _frameNamed:fromFrame:]), (-[IFBaseWebController frameNamed:]):
  13058. * WebView.subproj/IFWebController.h:
  13059. 2002-04-05 Darin Adler <darin@apple.com>
  13060. * WebView.subproj/IFMainURLHandleClient.mm:
  13061. (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  13062. Use contentLengthReceived rather than getting the length of
  13063. availableResourceData to determine how much data has arrived.
  13064. 2002-04-05 Richard Williamson <rjw@apple.com>
  13065. Implemented the same lazily deallocation scheme on frame as in controller
  13066. and data source.
  13067. * WebView.subproj/IFWebFrame.mm: (-[_IFFrameHolder initWithObject:]),
  13068. (-[_IFFrameHolder _checkReadyToDealloc:]), (-[IFWebFrame release]):
  13069. 2002-04-04 Richard Williamson <rjw@apple.com>
  13070. Clear controller references from data source and view, as well as
  13071. frame.
  13072. * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebControllerPrivate
  13073. _clearControllerReferences:]):
  13074. 2002-04-04 Richard Williamson <rjw@apple.com>
  13075. Lazily dealloc controller and data source ONLY after all loads
  13076. have completed.
  13077. * WebView.subproj/IFBaseWebController.mm: (-[_IFControllerHolder
  13078. initWithController:]), (-[_IFControllerHolder _checkReadyToDealloc:]),
  13079. (-[IFBaseWebController dealloc]), (-[IFBaseWebController release]):
  13080. * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebControllerPrivate
  13081. _clearControllerReferences:]), (-[IFBaseWebControllerPrivate dealloc]):
  13082. * WebView.subproj/IFWebDataSource.mm: (-[_IFDataSourceHolder
  13083. initWithDataSource:]), (-[_IFDataSourceHolder _checkReadyToDealloc:]),
  13084. (-[IFWebDataSource release]):
  13085. 2002-04-04 Kenneth Kocienda <kocienda@apple.com>
  13086. Hack to handle displaying image URLs. The trick is to sense when
  13087. the main URL is an image type and wrap the URL in a small generated
  13088. HTML document and hand that off to the engine to display.
  13089. Works like a charm! :)
  13090. There may be some longer-term issues, but for now, this lets us
  13091. do something we could not before. It also lets us handle some iframes
  13092. that contain only image URLs.
  13093. * Resources/image_document_template.html: Added.
  13094. * WebKit.pbproj/project.pbxproj:
  13095. * WebView.subproj/IFMainURLHandleClient.h:
  13096. * WebView.subproj/IFMainURLHandleClient.mm: (loadImageDocumentTemplate),
  13097. (-[IFMainURLHandleClient initWithDataSource:part:]), (-[IFMainURLHandleClient
  13098. IFURLHandle:resourceDataDidBecomeAvailable:]):
  13099. 2002-04-04 Chris Blumenberg <cblu@apple.com>
  13100. * English.lproj/IFError.strings:
  13101. * Misc.subproj/IFError.h:
  13102. * Misc.subproj/IFError.m: (+[IFError initialize]):
  13103. * WebKit.pbproj/project.pbxproj:
  13104. * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
  13105. IFURLHandle:resourceDataDidBecomeAvailable:]):
  13106. Added the IFNonHTMLContentNotSupportedError to IFError.
  13107. 2002-04-04 Richard Williamson <rjw@apple.com>
  13108. Tuned and re-enabled resource layouts.
  13109. * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]):
  13110. * WebView.subproj/IFWebFramePrivate.h:
  13111. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _scheduleLayout:]),
  13112. (-[IFWebFrame _timedLayout:]):
  13113. 2002-04-04 Darin Adler <darin@apple.com>
  13114. * WebKit.pbproj/project.pbxproj: Add an Unoptimized build
  13115. style: exactly like Development except without the -O.
  13116. 2002-04-03 Richard Williamson <rjw@apple.com>
  13117. Changed name of finalURL to redirectedURL.
  13118. Disabled layout after resource load. It appears to really slow us down.
  13119. * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]):
  13120. * WebView.subproj/IFWebController.h:
  13121. * WebView.subproj/IFWebDataSource.h:
  13122. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource redirectedURL]),
  13123. (-[IFWebDataSource wasRedirected]):
  13124. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _isLoadComplete]):
  13125. 2002-04-03 Richard Williamson <rjw@apple.com>
  13126. Added support for finalURL and wasRedirected to datasource.
  13127. Added additional layouts on resource loads.
  13128. Added more implementations of frame related methods in data source.
  13129. * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
  13130. IFURLHandle:didRedirectToURL:]):
  13131. * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]), (-[IFPreferences
  13132. _resourceTimedLayoutDelay]), (-[IFPreferences _resourceTimedLayoutEnabled]):
  13133. * WebView.subproj/IFPreferencesPrivate.h:
  13134. * WebView.subproj/IFWebDataSource.h:
  13135. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource frameNames]),
  13136. (-[IFWebDataSource findDataSourceForFrameNamed:]), (-[IFWebDataSource
  13137. frameExists:]), (-[IFWebDataSource finalURL]), (-[IFWebDataSource
  13138. wasRedirected]):
  13139. * WebView.subproj/IFWebDataSourcePrivate.h:
  13140. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate dealloc]),
  13141. (-[IFWebDataSource _setTitle:]), (-[IFWebDataSource _setFinalURL:]):
  13142. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _scheduleLayout:]),
  13143. (-[IFWebFrame _transitionProvisionalToLayoutAcceptable]), (-[IFWebFrame
  13144. _isLoadComplete]):
  13145. 2002-04-03 Kenneth Kocienda <kocienda@apple.com>
  13146. Updated debugging log messages to use new varargs macros.
  13147. * History.subproj/IFWebHistoryPrivate.m: (-[IFWebHistoryPrivate
  13148. removeEntryForURLString:]), (-[IFWebHistoryPrivate _loadHistoryGuts:]),
  13149. (-[IFWebHistoryPrivate loadHistory]), (-[IFWebHistoryPrivate _saveHistoryGuts:]),
  13150. (-[IFWebHistoryPrivate saveHistory]):
  13151. * Misc.subproj/WebKitDebug.h:
  13152. * Misc.subproj/WebKitDebug.m: (timestamp), (WebKitLog):
  13153. * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
  13154. initWithFrame:plugin:url:mime:arguments:mode:]), (-[IFPluginView setWindow]),
  13155. (-[IFPluginView newStream:mimeType:notifyData:]), (-[IFPluginView
  13156. IFURLHandle:resourceDataDidBecomeAvailable:]), (-[IFPluginView
  13157. IFURLHandleResourceDidFinishLoading:data:]), (-[IFPluginView
  13158. becomeFirstResponder]), (-[IFPluginView resignFirstResponder]), (-[IFPluginView
  13159. sendUpdateEvent]), (-[IFPluginView mouseDown:]), (-[IFPluginView mouseUp:]),
  13160. (-[IFPluginView mouseEntered:]), (-[IFPluginView mouseExited:]), (-[IFPluginView
  13161. keyUp:]), (-[IFPluginView keyDown:]), (-[IFPluginView
  13162. getURLNotify:target:notifyData:]), (-[IFPluginView getURL:target:]),
  13163. (-[IFPluginView status:]), (-[IFPluginView stop]):
  13164. * WebKit.pbproj/project.pbxproj:
  13165. * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebController
  13166. _receivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
  13167. _mainReceivedProgress:forResource:fromDataSource:]):
  13168. * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
  13169. IFURLHandleResourceDidBeginLoading:]), (-[IFMainURLHandleClient
  13170. IFURLHandleResourceDidCancelLoading:]), (-[IFMainURLHandleClient
  13171. IFURLHandleResourceDidFinishLoading:data:]), (-[IFMainURLHandleClient
  13172. IFURLHandle:resourceDataDidBecomeAvailable:]), (-[IFMainURLHandleClient
  13173. IFURLHandle:resourceDidFailLoadingWithResult:]), (-[IFMainURLHandleClient
  13174. IFURLHandle:didRedirectToURL:]):
  13175. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource isLoading]):
  13176. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _stopLoading]):
  13177. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame
  13178. _transitionProvisionalToLayoutAcceptable]), (-[IFWebFrame _timedLayout:]),
  13179. (-[IFWebFrame _setState:]), (-[IFWebFrame _isLoadComplete]):
  13180. * WebView.subproj/IFWebView.mm: (-[IFWebView reapplyStyles]), (-[IFWebView
  13181. layout]), (-[IFWebView setNeedsDisplay:]), (-[IFWebView setNeedsLayout:]),
  13182. (-[IFWebView setNeedsToApplyStyles:]), (-[IFWebView drawRect:]):
  13183. 2002-04-02 Darin Adler <darin@apple.com>
  13184. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _setTitle:]):
  13185. Update title if the page is already in the committed state.
  13186. 2002-04-02 Darin Adler <darin@apple.com>
  13187. * WebKit.pbproj/project.pbxproj: Fix flags as I did in WebFoundation.
  13188. * Misc.subproj/WebKitDebug.h: Turn off logging when xNDEBUG is defined.
  13189. Remove unused stuff. Add checking for printf parameters.
  13190. * Misc.subproj/WebKitDebug.m: Remove unused variants.
  13191. * Plugins.subproj/IFPluginView.mm: Change to use WebKit logging, not
  13192. WebCore logging.
  13193. * WebView.subproj/IFMainURLHandleClient.mm:
  13194. * WebView.subproj/IFWebView.mm:
  13195. Fix types in log statements caught by the compiler.
  13196. 2002-04-02 Chris Blumenberg <cblu@apple.com>
  13197. * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
  13198. IFURLHandleResourceDidCancelLoading:]), (-[IFPluginView
  13199. IFURLHandle:resourceDidFailLoadingWithResult:]), (-[IFPluginView
  13200. IFURLHandle:didRedirectToURL:]):
  13201. Added support for the above callbacks.
  13202. * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
  13203. IFURLHandle:resourceDataDidBecomeAvailable:]):
  13204. Return an error if non-html is requested.
  13205. 2002-04-02 Richard Williamson <rjw@apple.com>
  13206. More relaxed about invalid states.
  13207. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame
  13208. _transitionProvisionalToLayoutAcceptable]):
  13209. 2002-04-02 Darin Adler <darin@apple.com>
  13210. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _setTitle:]):
  13211. Fix a leak I introduced here by copying the string in a better way.
  13212. 2002-04-01 Richard Williamson <rjw@apple.com>
  13213. Cleaned up lots of potentially stale references to controller.
  13214. * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebControllerPrivate
  13215. dealloc]):
  13216. * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
  13217. initWithDataSource:part:]), (-[IFMainURLHandleClient dealloc]):
  13218. * WebView.subproj/IFWebDataSource.h:
  13219. * WebView.subproj/IFWebDataSource.mm:
  13220. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate dealloc]),
  13221. (-[IFWebDataSource _setPrimaryLoadComplete:]), (-[IFWebDataSource _setTitle:]):
  13222. * WebView.subproj/IFWebFramePrivate.h:
  13223. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFramePrivate dealloc]),
  13224. (-[IFWebFramePrivate setDataSource:]), (-[IFWebFramePrivate
  13225. setProvisionalDataSource:]), (-[IFWebFrame _setController:]), (-[IFWebFrame
  13226. _transitionProvisionalToCommitted]), (-[IFWebFrame _timedLayout:]), (-[IFWebFrame
  13227. _setState:]):
  13228. 2002-04-01 Richard Williamson <rjw@apple.com>
  13229. Logging changes.
  13230. Changes to support correct i/frame behavior.
  13231. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  13232. createFrameNamed:for:inParent:inScrollView:]):
  13233. * WebView.subproj/IFWebController.h:
  13234. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _timedLayout:]):
  13235. * WebView.subproj/IFWebViewPrivate.mm: (-[IFWebViewPrivate dealloc]),
  13236. (-[IFWebView _setupScrollers]):
  13237. 2002-04-01 John Sullivan <sullivan@apple.com>
  13238. Added method for updating url, title, and/or displayTitle
  13239. on existing entry.
  13240. * History.subproj/IFWebHistory.h:
  13241. * History.subproj/IFWebHistory.m:
  13242. (-[IFWebHistory updateURL:title:displayTitle:forURL:]):
  13243. Calls through to IFWebHistoryPrivate.
  13244. * History.subproj/IFWebHistoryPrivate.h:
  13245. * History.subproj/IFWebHistoryPrivate.m:
  13246. (-[IFWebHistoryPrivate _entryForURLString:]): Broke this out
  13247. from containsURL.
  13248. (-[IFWebHistoryPrivate containsURL:]): Call broken-out method.
  13249. (-[IFWebHistoryPrivate updateURL:title:displayTitle:forURL:]):
  13250. Find existing entry (if any), change its attributes.
  13251. 2002-04-01 Darin Adler <darin@apple.com>
  13252. * Misc.subproj/IFError.h: Add the failing URL to IFError.
  13253. * Misc.subproj/IFError.m: (-[IFError initWithErrorCode:]): Call through
  13254. with nil for the URL.
  13255. (-[IFError initWithErrorCode:failingURL:]): Retain the passed URL.
  13256. (-[IFError dealloc]): Autorelease the URL.
  13257. (-[IFError failingURL]): Return the URL.
  13258. (-[IFError description]): Include the URL in the description.
  13259. * WebView.subproj/IFBaseWebControllerPrivate.mm:
  13260. (-[IFBaseWebController _receivedProgress:forResource:fromDataSource:]),
  13261. (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
  13262. Put the URL into the IFError.
  13263. * WebView.subproj/IFMainURLHandleClient.mm:
  13264. (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
  13265. Put the URL into the IFError.
  13266. 2002-04-01 Richard Williamson <rjw@apple.com>
  13267. Added more logging to show time of layouts.
  13268. * WebView.subproj/IFWebFramePrivate.h:
  13269. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame
  13270. _transitionProvisionalToLayoutAcceptable]), (-[IFWebFrame _timedLayout:]),
  13271. (-[IFWebFrame _isLoadComplete]):
  13272. * WebView.subproj/IFWebView.mm: (-[IFWebView reapplyStyles]), (-[IFWebView
  13273. layout]):
  13274. 2002-04-01 Darin Adler <darin@apple.com>
  13275. Added operations for JavaScript objects. Not sure if this was the best
  13276. place for them, but it should be OK for now.
  13277. * Misc.subproj/IFCache.h:
  13278. * Misc.subproj/IFCache.mm: (+[IFCache setDisabled:]), (+[IFCache
  13279. javaScriptObjectsCount]), (+[IFCache garbageCollectJavaScriptObjects]):
  13280. * WebKit.pbproj/project.pbxproj:
  13281. 2002-03-30 Richard Williamson <rjw@apple.com>
  13282. Corrected comments describing the new 'acceptable to layout' state
  13283. transition.
  13284. * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebController
  13285. _mainReceivedProgress:forResource:fromDataSource:]):
  13286. 2002-03-30 Darin Adler <darin@apple.com>
  13287. * WebView.subproj/IFBaseWebController.mm:
  13288. (-[IFBaseWebController receivedPageTitle:forDataSource:]):
  13289. Remove the exception from here. This is really a "do nothing,
  13290. subclasses override me" method.
  13291. * WebView.subproj/IFWebDataSource.mm:
  13292. (-[IFWebDataSource pageTitle]): Implement.
  13293. * WebView.subproj/IFWebDataSourcePrivate.h: Add pageTitle
  13294. and [IFWebDataSource _setTitle].
  13295. * WebView.subproj/IFWebDataSourcePrivate.mm:
  13296. (-[IFWebDataSourcePrivate dealloc]): autorelease pageTitle.
  13297. (-[IFWebDataSource _setTitle:]): Update the title, trimming
  13298. whitespace and using nil, rather than empty string, to mean
  13299. no title at all. Call [receivedPageTitle: forDataSource:]
  13300. as necessary too.
  13301. * WebView.subproj/IFMainURLHandleClient.mm: Did a gratuitious
  13302. whitespace edit to force this file to recompile so everyone
  13303. doesn't have to "make clean".
  13304. 2002-03-30 Richard Williamson <rjw@apple.com>
  13305. Added support for scrolling to anchor points.
  13306. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _isLoadComplete]):
  13307. 2002-03-30 Maciej Stachowiak <mjs@apple.com>
  13308. * WebKit.pbproj/project.pbxproj: Link against
  13309. JavaScriptCore.framework instead of the defunct
  13310. libJavaScriptCore.dylib.
  13311. 2002-03-29 Richard Williamson <rjw@apple.com>
  13312. Fixes for cancelling. Still need to think about a better
  13313. solution than putting data sources in stopped mode.
  13314. * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebController
  13315. _receivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
  13316. _mainReceivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
  13317. _receivedError:forResource:partialProgress:fromDataSource:]),
  13318. (-[IFBaseWebController
  13319. _mainReceivedError:forResource:partialProgress:fromDataSource:]):
  13320. * WebView.subproj/IFWebDataSourcePrivate.h:
  13321. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _startLoading:]),
  13322. (-[IFWebDataSource _isStopping]), (-[IFWebDataSource _stopLoading]):
  13323. * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame setProvisionalDataSource:]):
  13324. 2002-03-29 Richard Williamson <rjw@apple.com>
  13325. Hooked up redirect. Now we see many more ads. :(
  13326. Fixed cancel of main handle for document.
  13327. Moved stop before start from frame to data source.
  13328. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  13329. locationChangeDone:forFrame:]), (-[IFBaseWebController
  13330. serverRedirectTo:forDataSource:]):
  13331. * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
  13332. IFURLHandleResourceDidCancelLoading:]), (-[IFMainURLHandleClient
  13333. IFURLHandleResourceDidFinishLoading:data:]), (-[IFMainURLHandleClient
  13334. IFURLHandle:resourceDidFailLoadingWithResult:]), (-[IFMainURLHandleClient
  13335. IFURLHandle:didRedirectToURL:]):
  13336. * WebView.subproj/IFWebDataSourcePrivate.h:
  13337. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate dealloc]),
  13338. (-[IFWebDataSource _startLoading:]), (-[IFWebDataSource _stopLoading]):
  13339. * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame startLoading]):
  13340. 2002-03-29 Richard Williamson <rjw@apple.com>
  13341. Added stopLoading to startLoading to cancel any pending loads before
  13342. new loads start. This doesn't work yet because of loader bugs, but will
  13343. once those are fixed.
  13344. Adding logging for redirects.
  13345. * Misc.subproj/WebKitDebug.h:
  13346. * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
  13347. IFURLHandle:didRedirectToURL:]):
  13348. * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame startLoading]):
  13349. 2002-03-29 Darin Adler <darin@apple.com>
  13350. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFramePrivate dealloc]): Deref the
  13351. renderFramePart, and autorelease the provisionalDataSource.
  13352. (-[IFWebFramePrivate setRenderFramePart:]): Ref renderFramePart while we hold it.
  13353. 2002-03-28 Richard Williamson <rjw@apple.com>
  13354. Increased size default for initial layout.
  13355. * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]):
  13356. 2002-03-28 Richard Williamson <rjw@apple.com>
  13357. Fixed big leak of any document that had a frame or iframe.
  13358. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource retain]):
  13359. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate dealloc]),
  13360. (-[IFWebDataSource _setParent:]):
  13361. 2002-03-28 Richard Williamson <rjw@apple.com>
  13362. Modified the initial layout policy.
  13363. * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebController
  13364. _receivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
  13365. _mainReceivedProgress:forResource:fromDataSource:]):
  13366. * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]), (-[IFPreferences
  13367. _initialTimedLayoutDelay]), (-[IFPreferences _initialTimedLayoutSize]):
  13368. * WebView.subproj/IFPreferencesPrivate.h:
  13369. * WebView.subproj/IFWebFramePrivate.h:
  13370. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame
  13371. _transitionProvisionalToLayoutAcceptable]), (-[IFWebFrame
  13372. _transitionProvisionalToCommitted]), (-[IFWebFrame _initialLayout:]),
  13373. (-[IFWebFrame _isLoadComplete]):
  13374. 2002-03-28 Darin Adler <darin@apple.com>
  13375. New private interface for getting at the cache.
  13376. * Misc.subproj/IFCache.h: New.
  13377. * Misc.subproj/IFCache.mm: New.
  13378. * WebKit.pbproj/project.pbxproj: Added IFCache files.
  13379. 2002-03-28 Darin Adler <darin@apple.com>
  13380. * WebView.subproj/IFBaseWebController.mm:
  13381. (-[IFBaseWebController locationChangeDone:forFrame:]): Remove log of errors
  13382. loading now that we have the activity viewer.
  13383. 2002-03-28 Richard Williamson <rjw@apple.com>
  13384. Modified the initial layout policy. We now try to layout as close
  13385. as possible to WebKitInitialTimedLayoutDelay seconds after the
  13386. load was started, not after the provisional-to-committed transition.
  13387. If the time to the provisional-to-committed transition exceeds
  13388. WebKitInitialTimedLayoutDelay we layout immediately.
  13389. * WebView.subproj/IFWebDataSourcePrivate.h:
  13390. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _startLoading:]),
  13391. (-[IFWebDataSource _recursiveStopLoading]), (-[IFWebDataSource
  13392. _loadingStartedTime]):
  13393. * WebView.subproj/IFWebFramePrivate.h:
  13394. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame
  13395. _transitionProvisionalToCommitted]), (-[IFWebFrame _initialLayout:]):
  13396. 2002-03-28 John Sullivan <sullivan@apple.com>
  13397. * History.subproj/IFWebHistoryPrivate.m:
  13398. (-[IFWebHistoryPrivate _loadHistoryGuts:]):
  13399. Made this more robust about bad data from the disk file. I
  13400. don't know how bad data could get into the disk file in normal
  13401. use, but it seems to have happened to Richard.
  13402. 2002-03-27 Richard Williamson <rjw@apple.com>
  13403. Added initial-layout-after-delay-if-not-layed-out-yet feature.
  13404. * Misc.subproj/WebKitDebug.h:
  13405. * WebKit.pbproj/project.pbxproj:
  13406. * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebController
  13407. _mainReceivedProgress:forResource:fromDataSource:]):
  13408. * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]), (-[IFPreferences
  13409. setPluginsEnabled:]), (-[IFPreferences _initialTimedLayoutDelay]),
  13410. (-[IFPreferences _initialTimedLayoutEnabled]):
  13411. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame
  13412. _transitionProvisionalToCommitted]), (-[IFWebFrame _initialLayout:]),
  13413. (-[IFWebFrame _state]):
  13414. 2002-03-27 Kenneth Kocienda <kocienda@apple.com>
  13415. Changed loadProgress->bytesSoFar to use [sender contentLengthReceived]
  13416. instead of the size of the chunk that was delivered in the callback.
  13417. This makes the activity window data more correct than it was.
  13418. * WebView.subproj/IFMainURLHandleClient.mm: (-[IFMainURLHandleClient
  13419. IFURLHandle:resourceDataDidBecomeAvailable:]):
  13420. 2002-03-27 Chris Blumenberg <cblu@apple.com>
  13421. Now setting the modifier bit for the activate and cursor events.
  13422. * Plugins.subproj/IFPluginView.h:
  13423. * Plugins.subproj/IFPluginView.mm: (-[IFPluginView drawRect:]), (-[IFPluginView
  13424. windowBecameKey:]), (-[IFPluginView windowResignedKey:]), (-[IFPluginView
  13425. mouseEntered:]), (-[IFPluginView mouseExited:]):
  13426. 2002-03-27 Darin Adler <darin@apple.com>
  13427. * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]): Switch back
  13428. to serif font, since using Luicida Grande was exposing some font bugs.
  13429. 2002-03-26 Maciej Stachowiak <mjs@apple.com>
  13430. * WebKit.pbproj/project.pbxproj: Fixed to build with standalone
  13431. libJavaScriptCore.dylib.
  13432. 2002-03-26 Kenneth Kocienda <kocienda@apple.com>
  13433. Changes to help the transition to the new build system which unifies
  13434. our development build setting with the settings we use to ship
  13435. releases.
  13436. * Makefile.am:
  13437. * WebKit.pbproj/kocienda.pbxuser:
  13438. * WebKit.pbproj/project.pbxproj:
  13439. 2002-03-26 Richard Williamson <rjw@apple.com>
  13440. Try to ensure that display needed bits are correctly set.
  13441. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _isLoadComplete]):
  13442. 2002-03-26 Darin Adler <darin@apple.com>
  13443. * Misc.subproj/IFError.m: (+[IFError initialize]): Fix a typo where
  13444. we said "unvailable".
  13445. * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]): Change
  13446. the default sans-serif font to "Lucida Grande" to match the OS X
  13447. system font, and also make that the defalt standard font.
  13448. 2002-03-26 John Sullivan <sullivan@apple.com>
  13449. * WebKit.pbproj/project.pbxproj:
  13450. Marked IFProgress.h Public.
  13451. 2002-03-25 John Sullivan <sullivan@apple.com>
  13452. Broke IFLoadProgress out into its own file, and added
  13453. an init method and getters, without which this class
  13454. is useless in Objective-C files (but strangely usable
  13455. in Objective-C++ files, see radar 2887253).
  13456. * WebView.subproj/IFWebController.h:
  13457. * WebView.subproj/IFBaseWebController.mm:
  13458. Took IFLoadProgress declaration and implementation out of here.
  13459. * WebView.subproj/IFLoadProgress.h,
  13460. * WebView.subproj/IFLoadProgress.mm:
  13461. Moved IFLoadProgress declaration and implementation to here;
  13462. added -[IFLoadProgress initWithBytesSoFar:totalToLoad:type:]
  13463. and getters for each field.
  13464. * WebKit.pbproj/project.pbxproj: Updated for new files
  13465. 2002-03-25 Richard Williamson <rjw@apple.com>
  13466. Tweaks to force layout of frames and iframes.
  13467. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _isLoadComplete]):
  13468. 2002-03-25 Maciej Stachowiak <mjs@apple.com>
  13469. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource
  13470. _startLoading:]): Just create an IFURLHandle, since it now creates
  13471. the proper concrete subclass automagically.
  13472. 2002-03-25 Chris Blumenberg <cblu@apple.com>
  13473. * MIME.subproj/IFMIMEDatabase.m: (+[IFMIMEDatabase sharedMIMEDatabase]),
  13474. (-[IFMIMEDatabase MIMEHandlerForMIMEType:]), (setMimeHandlers):
  13475. * MIME.subproj/IFMIMEHandler.h:
  13476. * MIME.subproj/IFMIMEHandler.m: (-[IFMIMEHandler
  13477. initWithMIMEType:handlerType:handlerName:]), (-[IFMIMEHandler MIMEType]),
  13478. (-[IFMIMEHandler MIMESupertype]), (-[IFMIMEHandler MIMESubtype]),
  13479. (-[IFMIMEHandler handlerName]), (-[IFMIMEHandler handlerType]), (-[IFMIMEHandler
  13480. description]):
  13481. Initial implementations of the above.
  13482. 2002-03-25 Richard Williamson <rjw@apple.com>
  13483. Added private API to allow browser to access the DOM tree.
  13484. * WebView.subproj/IFWebViewPrivate.mm: (-[IFWebView DOM::]), (+[IFWebView
  13485. _nodeName:DOM::]), (+[IFWebView _nodeValue:DOM::]), (+[IFWebView
  13486. _nodeHTML:DOM::]):
  13487. 2002-03-25 Richard Williamson <rjw@apple.com>
  13488. Added private API to allow browser to access the render tree.
  13489. * WebView.subproj/IFWebViewPrivate.mm:
  13490. 2002-03-24 Richard Williamson <rjw@apple.com>
  13491. Changed data source to create IFURLHandle of the appropriate class.
  13492. The prevented us from getting the response headers correctly.
  13493. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _startLoading:]):
  13494. 2002-03-24 Richard Williamson <rjw@apple.com>
  13495. Removed erroneous comments.
  13496. * WebView.subproj/IFWebView.mm: (-[IFWebView dataSourceChanged:]), (-[IFWebView
  13497. reapplyStyles]):
  13498. 2002-03-22 Chris Blumenberg <cblu@apple.com>
  13499. * MIME.subproj/IFMIMEDatabase.h:
  13500. Added a list of mime type that WebKit will be capable of handling
  13501. 2002-03-22 Chris Blumenberg <cblu@apple.com>
  13502. * WebKit.pbproj/project.pbxproj:
  13503. Added the MIME clases to WebKit.
  13504. 2002-03-22 John Sullivan <sullivan@apple.com>
  13505. * WebView.subproj/IFWebView.mm: (-[IFWebView reapplyStyles]):
  13506. Removed stale FIXME.
  13507. 2002-03-22 Richard Williamson <rjw@apple.com>
  13508. Fixed reapplyStyles to use new KDE3 recalcStyle function.
  13509. * WebView.subproj/IFWebView.mm: (-[IFWebView reapplyStyles])
  13510. 2002-03-21 John Sullivan <sullivan@apple.com>
  13511. * WebView.subproj/IFWebView.mm: (-[IFWebView reapplyStyles]):
  13512. Commented out call to applyChanges that no longer exists.
  13513. This was breaking the build. Live font changes are
  13514. temporarily broken again.
  13515. 2002-03-21 Richard Williamson <rjw@apple.com>
  13516. Added setNeedsToApplyStyles: and reapplyStyles. This is for dynamic preferences
  13517. refresh support.
  13518. * WebView.subproj/IFWebView.h:
  13519. * WebView.subproj/IFWebView.mm: (-[IFWebView reapplyStyles]), (-[IFWebView
  13520. layout]), (-[IFWebView setNeedsToApplyStyles:]), (-[IFWebView drawRect:]):
  13521. * WebView.subproj/IFWebViewPrivate.h:
  13522. 2002-03-21 John Sullivan <sullivan@apple.com>
  13523. Cleaned up defaults registration and use. The class
  13524. IFPreferences now registers the defaults at load time, early
  13525. enough that Alexander doesn't have to register them separately
  13526. as it had been. Also, all the defaults currently in use now
  13527. have accessor cover methods, which Alexander will use
  13528. exclusively.
  13529. * WebView.subproj/IFPreferences.mm:
  13530. New file, registers defaults and implements cover methods.
  13531. * WebView.subproj/IFPreferences.h:
  13532. This file existed but wasn't being used (contents #ifdeffed out).
  13533. Now it declares the cover methods, but still has an #ifdeffed
  13534. section for possible future stuff.
  13535. * WebKit.pbproj/project.pbxproj: Updated for new file.
  13536. * WebView.subproj/IFWebDataSource.mm:
  13537. (+[IFWebDataSource initialize]): removed defaults-registration
  13538. from here.
  13539. 2002-03-20 Maciej Stachowiak <mjs@apple.com>
  13540. Merged the following changes from LABYRINTH_KDE_3_MERGE branch:
  13541. 2002-03-20 Maciej Stachowiak <mjs@apple.com>
  13542. Merged accumlated changes from HEAD, up to
  13543. MERGED_TO_KDE_3_MERGE_BRANCH tag.
  13544. 2002-03-19 Maciej Stachowiak <mjs@apple.com>
  13545. * WebView.subproj/IFWebView.mm: (-[IFWebView layout]):
  13546. layout() no longer takes an argument.
  13547. 2002-03-20 John Sullivan <sullivan@apple.com>
  13548. Added displayTitle field to IFURIEntry. This is intended to hold the string
  13549. used in menu items, window titles, etc. Alexander uses this to cache the
  13550. center-truncated title for pages with very long titles.
  13551. * History.subproj/IFURIEntry.h:
  13552. * History.subproj/IFURIEntry.m: (-[IFURIEntry setDisplayTitle:]), (-[IFURIEntry
  13553. dictionaryRepresentation]), (-[IFURIEntry initFromDictionaryRepresentation:]):
  13554. 2002-03-19 Richard Williamson <rjw@apple.com>
  13555. Fixed IFWebView leak.
  13556. * WebView.subproj/IFWebView.mm: (-[IFWebView provisionalDataSourceChanged:]):
  13557. 2002-03-18 John Sullivan <sullivan@apple.com>
  13558. Imposed age limit on history items saved to/loaded from disk.
  13559. Sped up history loading by reversing list before processing entries.
  13560. * History.subproj/IFWebHistoryPrivate.m:
  13561. (+[IFWebHistoryPrivate initialize]): Register default for age limit.
  13562. (-[IFWebHistoryPrivate _ageLimitDate]): New convenience method, returns a date older
  13563. than any history entry that should be stored/loaded.
  13564. (-[IFWebHistoryPrivate arrayRepresentation]): skip too-old dates.
  13565. (-[IFWebHistoryPrivate _loadHistoryGuts:]), (-[IFWebHistoryPrivate _saveHistoryGuts:]):
  13566. Broke into separate methods to make timing wrapper less messy. Respect age limit.
  13567. Report number of items saved/loaded in timing message.
  13568. (-[IFWebHistoryPrivate loadHistory]), (-[IFWebHistoryPrivate saveHistory]):
  13569. use broken-out _guts methods.
  13570. * WebKit.pbproj/project.pbxproj: version wars
  13571. 2002-03-16 Richard Williamson <rjw@apple.com>
  13572. Fixed scroll bar flash. Add provisional view to go along with
  13573. provisional widget.
  13574. * WebView.subproj/IFWebView.mm: (-[IFWebView provisionalDataSourceChanged:]),
  13575. (-[IFWebView dataSourceChanged:]):
  13576. 2002-03-16 Richard Williamson <rjw@apple.com>
  13577. Fixed error handling. Fixed most frame loading problems.
  13578. Cleaned up frame state machine.
  13579. Moved IFMainURLHandleClient from WebCore.
  13580. * Misc.subproj/IFError.m: (-[IFError description]):
  13581. * WebKit.pbproj/project.pbxproj:
  13582. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  13583. receivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
  13584. receivedError:forResource:partialProgress:fromDataSource:]),
  13585. (-[IFBaseWebController locationChangeDone:forFrame:]):
  13586. * WebView.subproj/IFBaseWebControllerPrivate.h:
  13587. * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebController
  13588. _receivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
  13589. _mainReceivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
  13590. _receivedError:forResource:partialProgress:fromDataSource:]),
  13591. (-[IFBaseWebController
  13592. _mainReceivedError:forResource:partialProgress:fromDataSource:]):
  13593. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource startLoading:]),
  13594. (-[IFWebDataSource isLoading]):
  13595. * WebView.subproj/IFWebDataSourcePrivate.h:
  13596. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate init]),
  13597. (-[IFWebDataSourcePrivate dealloc]), (-[IFWebDataSource
  13598. _setPrimaryLoadComplete:]), (-[IFWebDataSource _startLoading:]),
  13599. (-[IFWebDataSource _stopLoading]):
  13600. * WebView.subproj/IFWebFrame.h:
  13601. * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame setProvisionalDataSource:]),
  13602. (-[IFWebFrame startLoading]), (-[IFWebFrame reload:]), (-[IFWebFrame errors]),
  13603. (-[IFWebFrame mainDocumentError]):
  13604. * WebView.subproj/IFWebFramePrivate.h:
  13605. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFramePrivate dealloc]),
  13606. (-[IFWebFrame _transitionProvisionalToCommitted]), (-[IFWebFrame _setState:]),
  13607. (-[IFWebFrame _addError:forResource:]), (-[IFWebFrame _isLoadComplete]),
  13608. (+[IFWebFrame _recursiveCheckCompleteFromFrame:]), (-[IFWebFrame
  13609. _checkLoadCompleteResource:error:isMainDocument:]), (-[IFWebFrame
  13610. _setMainDocumentError:]), (-[IFWebFrame _clearErrors]):
  13611. * WebView.subproj/IFWebView.mm:
  13612. * WebView.subproj/IFMainURLHandleClient.h: added
  13613. * WebView.subproj/IFMainURLHandleClient.mm: added
  13614. 2002-03-15 John Sullivan <sullivan@apple.com>
  13615. Impose default-based limit (1000 by default) on number of history items
  13616. saved/loaded. Also instrumented timing for saving/loading history.
  13617. * History.subproj/IFWebHistoryPrivate.m:
  13618. (+[IFWebHistoryPrivate initialize]): register default for WebKitHistoryItemLimit.
  13619. (-[IFWebHistoryPrivate arrayRepresentation]): respect limit
  13620. (-[IFWebHistoryPrivate loadHistory]): respect limit, time the load.
  13621. (-[IFWebHistoryPrivate saveHistory]): time the save.
  13622. * WebKit.pbproj/project.pbxproj: version wars
  13623. 2002-03-15 John Sullivan <sullivan@apple.com>
  13624. Fixed bug where history entry images weren't showing up, except by historical
  13625. accident in some cases.
  13626. Made IFWebHistory no longer be a singleton class; made the file location
  13627. be passed in at init time.
  13628. * History.subproj/IFURIEntry.m: (-[IFURIEntry image]): Get the default image
  13629. a way that works with frameworks; only get the default image once.
  13630. * History.subproj/IFWebHistory.h:
  13631. * History.subproj/IFWebHistory.m:
  13632. (+[IFWebHistory webHistoryWithFile:]): New convenience constructor that returns
  13633. a new IFWebHistory object with a particular disk file.
  13634. (-[IFWebHistory initWithFile:]): New init method for specifying a disk file.
  13635. (-[IFWebHistory file]): New accessor for file path.
  13636. (-[IFWebHistory loadHistory]),
  13637. (-[IFWebHistory saveHistory]): Use file accessor.
  13638. Also removed the methods that were computing a file path to use.
  13639. * History.subproj/IFWebHistoryPrivate.h:
  13640. * History.subproj/IFWebHistoryPrivate.m:
  13641. (-[IFWebHistoryPrivate initWithFile:]),
  13642. (-[IFWebHistoryPrivate dealloc]), (-[IFWebHistoryPrivate file]),
  13643. (-[IFWebHistoryPrivate loadHistory]), (-[IFWebHistoryPrivate saveHistory]):
  13644. Guts of implementation for file-manipulation stuff.
  13645. * Resources/url_icon.tiff: ran tiffUtil to premultiply the alpha channel. This
  13646. was spewing error messages that I didn't notice before because they only
  13647. happen on Puma and I was on Jaguar.
  13648. * WebKit.pbproj/project.pbxproj: not sure what change I made, maybe version wars.
  13649. 2002-03-14 John Sullivan <sullivan@apple.com>
  13650. Made history store its data in ~/Library/Application Support/<app name>/History.plist
  13651. * History.subproj/IFWebHistoryPrivate.m:
  13652. (GetRefPath), (FindFolderPath): Functions copied from NSSavePanel.m for using
  13653. FindFolder in a POSIX sort of way. Ken plans to put some version of this in
  13654. IFNSFileManagerExtensions eventually, which I'll switch to later.
  13655. (-[IFWebHistoryPrivate historyFilePath]): Construct the path using FindFolderPath
  13656. and the file name.
  13657. (-[IFWebHistoryPrivate loadHistory]),
  13658. (-[IFWebHistoryPrivate saveHistory]): failure case debug messages are now more specific.
  13659. 2002-03-13 Richard Williamson <rjw@apple.com>
  13660. Added support to stop plugins in removeFromSuperview.
  13661. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _checkLoadComplete:]):
  13662. * WebView.subproj/IFWebView.mm: (-[IFWebView dealloc]), (-[IFWebView
  13663. removeFromSuperview]), (-[IFWebView removeFromSuperviewWithoutNeedingDisplay]):
  13664. 2002-03-13 Richard Williamson <rjw@apple.com>
  13665. Fixed open window w/ no open windows crasher.
  13666. * ChangeLog:
  13667. * WebView.subproj/IFBaseWebController.mm: (-[IFObjectHolder dealloc]):
  13668. * WebView.subproj/IFWebView.mm: (-[IFWebView dealloc]), (-[IFWebView layout]):
  13669. 2002-03-13 Richard Williamson <rjw@apple.com>
  13670. * ChangeLog:
  13671. * WebView.subproj/IFBaseWebController.mm: (-[IFObjectHolder dealloc]):
  13672. * WebView.subproj/IFWebView.mm: (-[IFWebView initWithFrame:]), (-[IFWebView
  13673. dealloc]), (-[IFWebView provisionalDataSourceChanged:]), (-[IFWebView
  13674. dataSourceChanged:]), (-[IFWebView layout]), (-[IFWebView isOpaque]),
  13675. (-[IFWebView setNeedsDisplay:]), (-[IFWebView setNeedsLayout:]), (-[IFWebView
  13676. drawRect:]), (-[IFWebView setFrame:]), (-[IFWebView windowResized:]),
  13677. (-[IFWebView mouseDragged:]):
  13678. 2002-03-12 Richard Williamson <rjw@apple.com>
  13679. * WebView.subproj/IFWebView.mm: (-[IFWebView initWithFrame:]), (-[IFWebView
  13680. provisionalDataSourceChanged:]), (-[IFWebView dataSourceChanged:]), (-[IFWebView
  13681. layout]), (-[IFWebView isOpaque]), (-[IFWebView setNeedsDisplay:]), (-[IFWebView
  13682. setNeedsLayout:]), (-[IFWebView drawRect:]), (-[IFWebView setFrame:]),
  13683. (-[IFWebView windowResized:]), (-[IFWebView mouseDragged:]):
  13684. 2002-03-12 John Sullivan <sullivan@apple.com>
  13685. Added support for persistent history. Following in the grand footsteps of
  13686. Ken, it currently stores data in /tmp/alexander.history
  13687. * Resources/url_icon.tiff: default IFURIEntry image, moved here from WebBrowser.
  13688. * WebKit.pbproj/project.pbxproj: Updated to add image file.
  13689. * History.subproj/IFURIEntry.m:
  13690. (-[IFURIEntry image]):
  13691. If there's no explicit image, return the default one.
  13692. (-[IFURIEntry dictionaryRepresentation]): return a representation suitable
  13693. for saving to an xml file.
  13694. (-[IFURIEntry initFromDictionaryRepresentation:]): init given the representation
  13695. returned from dictionaryRepresentation.
  13696. * History.subproj/IFWebHistory.h:
  13697. * History.subproj/IFWebHistory.m: (-[IFWebHistory saveHistory]):
  13698. Added saveHistory call.
  13699. * History.subproj/IFWebHistoryPrivate.h: added saveHistory call.
  13700. * History.subproj/IFWebHistoryPrivate.m:
  13701. (-[IFWebHistoryPrivate arrayRepresentation]): return a representation suitable for
  13702. saving to an xml file.
  13703. (-[IFWebHistoryPrivate historyFilePath]): return location of history on disk.
  13704. (-[IFWebHistoryPrivate loadHistory]): read history from disk.
  13705. (-[IFWebHistoryPrivate saveHistory]): write history to disk.
  13706. (-[IFWebHistoryPrivate init]): call loadHistory
  13707. (-[IFWebHistoryPrivate removeEntryForURLString:]): changed NSLog to WEBKITDEBUG
  13708. 2002-03-11 Richard Williamson <rjw@apple.com>
  13709. Fixed call back ordering problems when an error occurs.
  13710. More twiddling with scroll bars.
  13711. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  13712. createFrameNamed:for:inParent:]):
  13713. * WebView.subproj/IFDynamicScrollBarsView.h:
  13714. * WebView.subproj/IFDynamicScrollBarsView.m: (-[IFDynamicScrollBarsView
  13715. reflectScrolledClipView:]):
  13716. * WebView.subproj/IFWebFrame.h:
  13717. * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame startLoading]), (-[IFWebFrame
  13718. reload:]), (-[IFWebFrame reset]), (-[IFWebFrame lastError]):
  13719. * WebView.subproj/IFWebFramePrivate.h:
  13720. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFramePrivate dealloc]),
  13721. (-[IFWebFrame _checkLoadComplete:]), (-[IFWebFrame _setLastError:]):
  13722. 2002-03-08 Richard Williamson <rjw@apple.com>
  13723. Fixed scroll bar recursion problems.
  13724. Took a long time to find a stupid typo bug in [IFBaseWebController _frameForDataSource:fromFrame:]
  13725. that overwrote an input parameter that should been a local variable. This caused a crash the
  13726. second time a page that contained an iframe was loaded.
  13727. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  13728. createFrameNamed:for:inParent:]), (-[IFBaseWebController
  13729. _frameForDataSource:fromFrame:]):
  13730. * WebView.subproj/IFDynamicScrollBarsView.m: (-[IFDynamicScrollBarsView
  13731. reflectScrolledClipView:]):
  13732. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _checkLoadComplete:]):
  13733. * WebView.subproj/IFWebView.mm: (-[IFWebView layout]):
  13734. * WebView.subproj/IFWebViewPrivate.h:
  13735. * WebView.subproj/IFWebViewPrivate.mm: (-[IFWebView _setFrameScrollView:]),
  13736. (-[IFWebView _frameScrollView]), (-[IFWebView _setupScrollers]):
  13737. 2002-03-07 John Sullivan <sullivan@apple.com>
  13738. * Misc.subproj/IFError.m: (-[IFError errorDescription]):
  13739. Removed a line of debugging spam. Oops!
  13740. 2002-03-07 Richard Williamson <rjw@apple.com>
  13741. Fixed occasional scroll bar problem in iframes.
  13742. Fixed occasional problem removing scroll bar on main page.
  13743. * WebView.subproj/IFDynamicScrollBarsView.m: (-[IFDynamicScrollBarsView
  13744. reflectScrolledClipView:]):
  13745. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _checkLoadComplete:]):
  13746. * WebView.subproj/IFWebView.mm: (-[IFWebView drawRect:]):
  13747. 2002-03-07 John Sullivan <sullivan@apple.com>
  13748. First pass at adding error strings to IFError. They are
  13749. properly localized, but they don't include any parameters,
  13750. and the strings haven't been made user-friendly.
  13751. * Misc.subproj/IFError.m:
  13752. (+[IFError initialize]): New method, set up a dictionary
  13753. mapping error code to localized error string.
  13754. (-[IFError errorDescription]): Read string from dictionary.
  13755. * English.lproj/IFError.strings: New file, auto-generated
  13756. by the genstrings tool.
  13757. * WebKit.pbproj/project.pbxproj: Removed stray -F /symroots.
  13758. This shouldn't have been in there since symroots location is
  13759. no longer hardwired.
  13760. 2002-03-07 John Sullivan <sullivan@apple.com>
  13761. Defined more symbolic debug-level constants; specified ranges for use by
  13762. different software levels (core/kit/client==browser) to enable easier
  13763. isolation of debug messages.
  13764. * Misc.subproj/WebKitDebug.h: #defined new debug levels for existing uses;
  13765. renamed a couple.
  13766. * Misc.subproj/WebKitDebug.m: (WebKitLog), (WebKitDebug): Updated for
  13767. renamed debug levels.
  13768. * WebView.subproj/IFBaseWebController.mm:
  13769. (-[IFBaseWebController receivedProgress:forResource:fromDataSource:]):
  13770. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _stopLoading]):
  13771. * WebView.subproj/IFWebView.mm: (-[IFWebView layout]),
  13772. (-[IFWebView setNeedsDisplay:]), (-[IFWebView setNeedsLayout:]), (-[IFWebView drawRect:]),
  13773. (-[IFWebView mouseDragged:]):
  13774. * WebView.subproj/IFWebViewPrivate.mm: (-[IFWebView _resetView]):
  13775. Changed numeric debug levels to symbolic ones.
  13776. * WebKit.pbproj/project.pbxproj: Jaguar/Puma version war.
  13777. 2002-03-06 Richard Williamson <rjw@apple.com>
  13778. Lots of little changes to improve drawing, and dynamic scroll bar
  13779. layout. We now have NO flash between pages, however, I still need
  13780. to add a transition timeout. As currently implemented the page will not
  13781. transition until the document is read.
  13782. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  13783. locationChangeDone:forFrame:]):
  13784. * WebView.subproj/IFDynamicScrollBarsView.m: (-[IFDynamicScrollBarsView
  13785. reflectScrolledClipView:]):
  13786. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame
  13787. _transitionProvisionalToCommitted]), (-[IFWebFrame _checkLoadComplete:]):
  13788. * WebView.subproj/IFWebView.mm: (-[IFWebView initWithFrame:]), (-[IFWebView
  13789. dataSourceChanged:]), (-[IFWebView layout]), (-[IFWebView isOpaque]),
  13790. (-[IFWebView setNeedsDisplay:]), (-[IFWebView setNeedsLayout:]), (-[IFWebView
  13791. drawRect:]), (-[IFWebView setFrame:]):
  13792. * WebView.subproj/IFWebViewPrivate.h:
  13793. * WebView.subproj/IFWebViewPrivate.mm: (-[IFWebView _stopPlugins]), (-[IFWebView
  13794. _removeSubviews]):
  13795. 2002-03-06 John Sullivan <sullivan@apple.com>
  13796. * Misc.subproj/IFError.h: Removed stray but evil import.
  13797. 2002-03-06 Maciej Stachowiak <mjs@apple.com>
  13798. * WebKit.pbproj/project.pbxproj: Turn on -Werror.
  13799. 2002-03-05 Richard Williamson <rjw@apple.com>
  13800. Streamlined layout and drawing. We now do the minimum amount of drawing and
  13801. layout.
  13802. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _checkLoadComplete:]):
  13803. * WebView.subproj/IFWebView.mm: (-[IFWebView initWithFrame:]), (-[IFWebView
  13804. layout]), (-[IFWebView setNeedsDisplay:]), (-[IFWebView setNeedsLayout:]),
  13805. (-[IFWebView drawRect:]), (-[IFWebView setFrame:]), (-[IFWebView
  13806. windowResized:]):
  13807. 2002-03-05 John Sullivan <sullivan@apple.com>
  13808. * WebView.subproj/IFWebDataSource.mm: (+[IFWebDataSource initialize]):
  13809. Tweak default font sizes so they match what algorithm used in Alexander
  13810. returns.
  13811. 2002-03-05 Richard Williamson <rjw@apple.com>
  13812. Pass errors correctly to browser.
  13813. Removed old notification code.
  13814. Added support for IFError.
  13815. Lots of little cleanups.
  13816. Improved IFWebFrame state handling.
  13817. * Misc.subproj/IFError.h:
  13818. * Misc.subproj/IFError.m: (IFErrorMake), (+[IFError load]), (-[IFError
  13819. initWithErrorCode:]), (-[IFError errorCode]), (-[IFError errorDescription]):
  13820. * WebKit.pbproj/project.pbxproj:
  13821. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  13822. receivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
  13823. receivedError:forResource:partialProgress:fromDataSource:]):
  13824. * WebView.subproj/IFBaseWebControllerPrivate.h:
  13825. * WebView.subproj/IFBaseWebControllerPrivate.mm:
  13826. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource isLoading]):
  13827. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource
  13828. _startLoading:initiatedByUserEvent:]):
  13829. * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame
  13830. initWithName:view:provisionalDataSource:controller:]), (-[IFWebFrame
  13831. setProvisionalDataSource:]):
  13832. * WebView.subproj/IFWebFramePrivate.h:
  13833. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame
  13834. _transitionProvisionalToCommitted]), (-[IFWebFrame _state]), (-[IFWebFrame
  13835. _setState:]), (-[IFWebFrame _checkLoadComplete:]):
  13836. 2002-03-05 John Sullivan <sullivan@apple.com>
  13837. * WebView.subproj/IFWebDataSource.mm: (+[IFWebDataSource initialize]):
  13838. Changed default font sizes to match scheme used in Alexander. There are
  13839. some serious wackinesses with KDE engine font size handling; if and when
  13840. we address those we might revisit these default sizes.
  13841. 2002-03-05 Maciej Stachowiak <mjs@apple.com>
  13842. Removed references to IFAuthenticationHandler, since that protocol
  13843. now lives in WebFoundation and it's no longer quite appropriate to
  13844. include as part of a controller.
  13845. * WebView.subproj/IFBaseWebController.mm:
  13846. * WebView.subproj/IFWebController.h:
  13847. 2002-03-04 Richard Williamson <rjw@apple.com>
  13848. Changes to support 'provisional' data sources.
  13849. API changes to IFBaseWebController, removed redundant methods.
  13850. * Misc.subproj/WebKitDebug.h:
  13851. * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
  13852. getURLNotify:target:notifyData:]):
  13853. * WebView.subproj/IFBaseWebController.h:
  13854. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController init]),
  13855. (-[IFBaseWebController initWithView:provisionalDataSource:]),
  13856. (-[IFBaseWebController createFrameNamed:for:inParent:]), (-[IFBaseWebController
  13857. receivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
  13858. receivedError:forResource:partialProgress:fromDataSource:]),
  13859. (-[IFBaseWebController locationChangeCommittedForFrame:]), (-[IFBaseWebController
  13860. _frameForDataSource:fromFrame:]), (-[IFBaseWebController mainFrame]):
  13861. * WebView.subproj/IFBaseWebControllerPrivate.h:
  13862. * WebView.subproj/IFBaseWebControllerPrivate.mm:
  13863. * WebView.subproj/IFWebController.h:
  13864. * WebView.subproj/IFWebDataSource.mm: (IFWebDataSourceMake), (+[IFWebDataSource
  13865. load]):
  13866. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource
  13867. _startLoading:initiatedByUserEvent:]):
  13868. * WebView.subproj/IFWebFrame.h:
  13869. * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame init]), (-[IFWebFrame
  13870. initWithName:view:provisionalDataSource:controller:]), (-[IFWebFrame
  13871. setProvisionalDataSource:]), (-[IFWebFrame startLoading]), (-[IFWebFrame
  13872. stopLoading]), (-[IFWebFrame reload:]):
  13873. * WebView.subproj/IFWebFramePrivate.h:
  13874. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFrame _setDataSource:]),
  13875. (-[IFWebFrame _transitionProvisionalToCommitted]):
  13876. * WebView.subproj/IFWebView.h:
  13877. * WebView.subproj/IFWebView.mm: (-[IFWebView provisionalDataSourceChanged:]),
  13878. (-[IFWebView dataSourceChanged:]):
  13879. * WebView.subproj/IFWebViewPrivate.h:
  13880. * WebView.subproj/IFWebViewPrivate.mm: (-[IFWebView _provisionalWidget]):
  13881. 2002-03-04 John Sullivan <sullivan@apple.com>
  13882. Changed default fonts.
  13883. * WebView.subproj/IFWebDataSource.mm:
  13884. (+[IFWebDataSource initialize]): Changed default fonts to ones
  13885. that actually exist (this was listing "Times-Roman" where it
  13886. meant either "Times" or "Times New Roman"). I'm about to check
  13887. in working font preferences, so it won't matter too much if you
  13888. don't like the defaults (although we should of course make sure
  13889. that the defaults are sensible, which I think they are).
  13890. 2002-03-04 John Sullivan <sullivan@apple.com>
  13891. * WebView.subproj/IFWebDataSource.mm: (+[IFWebDataSource initialize]):
  13892. Reverted default fonts to what they were before I accidentally
  13893. checked in some debugging changes.
  13894. 2002-03-01 Richard Williamson <rjw@apple.com>
  13895. Fixed a potentially large leak in frames. View associated w/
  13896. frame was not being released.
  13897. Added scaffolding for correct frame by frame load complete check.
  13898. Moved private IFWebBaseController method implementations to
  13899. IFWebBaseControllerPrivate.mm.
  13900. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  13901. createFrameNamed:for:inParent:]), (-[IFBaseWebController
  13902. receivedProgress:forResource:fromDataSource:]), (-[IFBaseWebController
  13903. receivedError:forResource:partialProgress:fromDataSource:]):
  13904. * WebView.subproj/IFBaseWebControllerPrivate.h:
  13905. * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebControllerPrivate
  13906. dealloc]), (-[IFBaseWebController _changeLocationTo:forFrame:parent:]),
  13907. (-[IFBaseWebController _changeFrame:dataSource:]), (-[IFBaseWebController
  13908. _checkLoadCompleteForDataSource:]):
  13909. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate init]):
  13910. * WebView.subproj/IFWebView.mm: (-[IFWebView dataSourceChanged:]):
  13911. 2002-02-27 Kenneth Kocienda <kocienda@apple.com>
  13912. I have changed the way that WebCore is glued to WebFoundation and WebKit.
  13913. If you used or relied upon any code in the following files, you should
  13914. now use the IF* equivalents straight up.
  13915. - Labyrinth/WebCore/include/WCBackForwardList.h
  13916. - Labyrinth/WebCore/include/WCURICache.h
  13917. - Labyrinth/WebCore/include/WCURICacheData.h
  13918. - Labyrinth/WebCore/include/WCURIEntry.h
  13919. - Labyrinth/WebCore/include/WCURIEntry.h
  13920. All changes in this commit are related to making dependant code work with the new convention.
  13921. * History.subproj/IFURIEntry.h:
  13922. * History.subproj/IFURIEntry.m:
  13923. * Plugins.subproj/IFPluginView.mm: (-[IFPluginView
  13924. newStream:mimeType:notifyData:]), (-[IFPluginView
  13925. IFURLHandle:resourceDataDidBecomeAvailable:]), (-[IFPluginView
  13926. IFURLHandleResourceDidFinishLoading:data:]), (-[IFPluginView
  13927. IFURLHandleResourceDidBeginLoading:]), (-[IFPluginView
  13928. IFURLHandleResourceDidCancelLoading:]), (-[IFPluginView
  13929. IFURLHandle:resourceDidFailLoadingWithResult:]):
  13930. * WebKit.pbproj/kocienda.pbxuser:
  13931. * WebKit.pbproj/project.pbxproj:
  13932. 2002-02-26 John Sullivan <sullivan@apple.com>
  13933. * History.subproj/IFURIEntry.m: (-[IFURIEntry dealloc]):
  13934. Added missing dealloc method that 'leaks' found.
  13935. * History.subproj/IFURIList.m: (-[IFURIList dealloc]):
  13936. Added missing [super dealloc] call that 'leaks' found.
  13937. 2002-02-22 Maciej Stachowiak <mjs@apple.com>
  13938. Fix prebinding:
  13939. * WebKit.pbproj/project.pbxproj: Set first segment address
  13940. 0x4000000 to avoid colliding with apps or our other frameworks.
  13941. Set up some hacks to avoid link-time dependency on
  13942. WebKit. Prebinding is incompatible with - undefined suppress, so
  13943. we can't have WebCore depend on symbols provided by WebKit any
  13944. more:
  13945. * Plugins.subproj/IFPluginView.mm: (IFPluginMake), (+[IFPluginView load]),
  13946. (startupVolumeName):
  13947. * WebView.subproj/IFBaseWebController.mm: (IFLoadProgressMake), (+[IFLoadProgress
  13948. load]):
  13949. 2002-02-22 John Sullivan <sullivan@apple.com>
  13950. Updated for modified NSCalendarDate extensions API.
  13951. * History.subproj/IFWebHistoryPrivate.m:
  13952. (-[IFWebHistoryPrivate findIndex:forDay:]): use compareDate: instead of
  13953. daysSinceDate:, which no longer exists.
  13954. 2002-02-22 Richard Williamson <rjw@apple.com>
  13955. Added data: to IFURLHandleResourceDidFinishLoading:
  13956. * WebView.subproj/IFWebDataSource.h:
  13957. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource isLoading]):
  13958. 2002-02-22 Richard Williamson <rjw@apple.com>
  13959. Implemented missing getter for provisionalDataSource.
  13960. * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame provisionalDataSource]):
  13961. * WebView.subproj/IFWebFramePrivate.h:
  13962. 2002-02-22 Richard Williamson <rjw@apple.com>
  13963. Normalized code paths for setMainDataSource on controller and setDataSource on frame.
  13964. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  13965. setMainView:andMainDataSource:]), (-[IFBaseWebController
  13966. createFrameNamed:for:inParent:]), (-[IFBaseWebController
  13967. _changeFrame:dataSource:]):
  13968. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource
  13969. _setController:]):
  13970. * WebView.subproj/IFWebFrame.h:
  13971. * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame init]), (-[IFWebFrame
  13972. initWithName:view:dataSource:controller:]), (-[IFWebFrame setView:]),
  13973. (-[IFWebFrame controller]), (-[IFWebFrame setController:]), (-[IFWebFrame
  13974. setDataSource:]), (-[IFWebFrame reset]):
  13975. * WebView.subproj/IFWebFramePrivate.h:
  13976. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFramePrivate setController:]),
  13977. (-[IFWebFrame _setRenderFramePart:]), (-[IFWebFrame _renderFramePart]),
  13978. (-[IFWebFrame _setDataSource:]):
  13979. 2002-02-21 Richard Williamson <rjw@apple.com>
  13980. Stop mostly working.
  13981. * WebView.subproj/IFBaseWebController.h:
  13982. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  13983. _frameForDataSource:fromFrame:]), (-[IFBaseWebController frameForDataSource:]):
  13984. * WebView.subproj/IFWebController.h:
  13985. * WebView.subproj/IFWebDataSource.h:
  13986. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource frame]),
  13987. (-[IFWebDataSource frameName]), (-[IFWebDataSource stopLoading]):
  13988. * WebView.subproj/IFWebDataSourcePrivate.h:
  13989. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate dealloc]),
  13990. (-[IFWebDataSource _addURLHandle:]), (-[IFWebDataSource _removeURLHandle:]),
  13991. (-[IFWebDataSource _stopLoading]), (-[IFWebDataSource
  13992. _recursiveStopLoadingfromDataSource:]):
  13993. * WebView.subproj/IFWebFrame.mm: (-[IFWebFrame setDataSource:]):
  13994. 2002-02-20 Richard Williamson <rjw@apple.com>
  13995. Some groundwork to bring WebFoundation callbacks up to
  13996. WebKit.
  13997. * WebView.subproj/IFBaseWebController.mm: (-[IFLoadProgress init]),
  13998. (-[IFBaseWebController receivedProgress:forResource:fromDataSource:]),
  13999. (-[IFBaseWebController
  14000. receivedError:forResource:partialProgress:fromDataSource:]),
  14001. (-[IFBaseWebController _changeFrame:dataSource:]):
  14002. * WebView.subproj/IFWebController.h:
  14003. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource stopLoading]):
  14004. * WebView.subproj/IFWebFrame.h:
  14005. * WebView.subproj/IFWebFramePrivate.h:
  14006. * WebView.subproj/IFWebFramePrivate.mm: (-[IFWebFramePrivate
  14007. setProvisionalDataSource:]):
  14008. 2002-02-20 Maciej Stachowiak <mjs@apple.com>
  14009. * WebView.subproj/IFWebController.h: Fix my WebController screw-up.
  14010. 2002-02-19 John Sullivan <sullivan@apple.com>
  14011. Finished first cut at IFWebHistory implementation. All methods are implemented
  14012. except the string-matching ones.
  14013. * History.subproj/IFURIEntry.h:
  14014. * History.subproj/IFURIEntry.m: (-[IFURIEntry initWithURL:title:image:comment:]),
  14015. (-[IFURIEntry lastVisitedDate]), (-[IFURIEntry setModificationDate:]),
  14016. (-[IFURIEntry setLastVisitedDate:]):
  14017. Changed all NSDates to be NSCalendarDates.
  14018. * History.subproj/IFWebHistory.h:
  14019. * History.subproj/IFWebHistory.m: (-[IFWebHistory init]), (-[IFWebHistory
  14020. dealloc]), (-[IFWebHistory sendEntriesChangedNotification]), (-[IFWebHistory
  14021. addEntry:]), (-[IFWebHistory removeEntry:]), (-[IFWebHistory
  14022. removeEntriesForDay:]), (-[IFWebHistory removeAllEntries]), (-[IFWebHistory
  14023. orderedLastVisitedDays]), (-[IFWebHistory orderedEntriesLastVisitedOnDay:]),
  14024. (-[IFWebHistory entriesWithAddressContainingString:]), (-[IFWebHistory
  14025. entriesWithTitleOrAddressContainingString:]), (-[IFWebHistory containsURL:]):
  14026. Implemented all IFWebHistory methods by calling through to IFWebHistoryPrivate object.
  14027. Send a change notification each time the actual data changes. Removed all
  14028. canned-data mechanisms.
  14029. * History.subproj/IFWebHistoryPrivate.h:
  14030. * History.subproj/IFWebHistoryPrivate.m: (-[IFWebHistoryPrivate init]),
  14031. (-[IFWebHistoryPrivate dealloc]), (-[IFWebHistoryPrivate findIndex:forDay:]),
  14032. (-[IFWebHistoryPrivate insertEntry:atDateIndex:]), (-[IFWebHistoryPrivate
  14033. removeEntryForURLString:]), (-[IFWebHistoryPrivate addEntry:]),
  14034. (-[IFWebHistoryPrivate removeEntry:]), (-[IFWebHistoryPrivate
  14035. removeEntriesForDay:]), (-[IFWebHistoryPrivate removeAllEntries]),
  14036. (-[IFWebHistoryPrivate orderedLastVisitedDays]), (-[IFWebHistoryPrivate
  14037. orderedEntriesLastVisitedOnDay:]), (-[IFWebHistoryPrivate
  14038. entriesWithAddressContainingString:]), (-[IFWebHistoryPrivate
  14039. entriesWithTitleOrAddressContainingString:]), (-[IFWebHistoryPrivate
  14040. containsURL:]):
  14041. Implemented guts of history mechanism using a dictionary for URL lookup and
  14042. a sorted array of dates with entries and a sorted array of sorted arrays of
  14043. entries per date.
  14044. * WebKit.pbproj/project.pbxproj: Updated for new files
  14045. 2002-02-18 John Sullivan <sullivan@apple.com>
  14046. First piece of implementing IFWebHistory. None of the mutators do anything,
  14047. and the accessors return canned data. But at least all the temporary hackery
  14048. is hiding behind legitimate API.
  14049. * History.subproj/IFWebHistory.h:
  14050. * History.subproj/IFWebHistory.m:
  14051. (+[IFWebHistory sharedWebHistory]):
  14052. Implemented sensibly.
  14053. (-[IFWebHistory createTestEntryWithURLString:title:date:]),
  14054. (-[IFWebHistory testDataDates]), (-[IFWebHistory testData]),
  14055. Private temporary hackery to return fake data.
  14056. (-[IFWebHistory orderedLastVisitedDays]),
  14057. (-[IFWebHistory orderedEntriesLastVisitedOnDay:]):
  14058. Implemented using temporary hackery.
  14059. (-[IFWebHistory addEntry:]),
  14060. (-[IFWebHistory removeEntry:]),
  14061. (-[IFWebHistory removeAllEntries]):
  14062. Unimplemented mutator methods.
  14063. (-[IFWebHistory entriesWithAddressContainingString:]),
  14064. (-[IFWebHistory entriesWithTitleOrAddressContainingString:]),
  14065. (-[IFWebHistory containsURL:]):
  14066. Methods that we'll need eventually, currently unimplemented. We may flesh out
  14067. the API a little more before we actually implement any of these.
  14068. (-[NSCalendarDate daysSinceDate:]): Convenience method in category; will
  14069. probably move to another file soon.
  14070. * WebKit.pbproj/project.pbxproj: Updated for new files
  14071. 2002-02-18 Kenneth Kocienda <kocienda@apple.com>
  14072. Fixed breakge that came up when project file merged.
  14073. * WebKit.pbproj/project.pbxproj:
  14074. 2002-02-18 Kenneth Kocienda <kocienda@apple.com>
  14075. Changes to support building standalone Alexander with Frameworks
  14076. and libraries contained inside the app package.
  14077. * Makefile.am:
  14078. * WebKit.pbproj/kocienda.pbxuser:
  14079. * WebKit.pbproj/project.pbxproj:
  14080. 2002-02-18 Richard Williamson <rjw@apple.com>
  14081. Performance measurement.
  14082. * WebView.subproj/IFWebView.mm: (-[IFWebView layout]), (-[IFWebView drawRect:]):
  14083. 2002-02-16 Richard Williamson <rjw@apple.com>
  14084. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource controller]):
  14085. 2002-02-16 Richard Williamson <rjw@apple.com>
  14086. Reminders to change frame<->datasource ownership cycle.
  14087. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource setFrame:]),
  14088. (-[IFWebDataSource frame]):
  14089. 2002-02-13 Richard Williamson <rjw@apple.com>
  14090. Fixed cleanup. Should revisit ownership graph. Cycles may be avoidable.
  14091. * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebControllerPrivate
  14092. dealloc]):
  14093. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource setFrame:]):
  14094. * WebView.subproj/IFWebFrame.m: (-[IFWebFrame reset]):
  14095. * WebView.subproj/IFWebViewPrivate.h:
  14096. * WebView.subproj/IFWebViewPrivate.mm: (-[IFWebView _resetWidget]):
  14097. 2002-02-12 Richard Williamson <rjw@apple.com>
  14098. Made basic forms work.
  14099. * WebView.subproj/IFBaseWebController.mm:
  14100. * WebView.subproj/IFWebController.h:
  14101. * WebView.subproj/IFWebDataSource.mm: (+[IFWebDataSource initialize]),
  14102. (-[IFWebDataSource startLoading:]):
  14103. * WebView.subproj/IFWebDataSourcePrivate.h:
  14104. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource
  14105. _startLoading:initiatedByUserEvent:]):
  14106. 2002-02-11 John Sullivan <sullivan@apple.com>
  14107. Fixed bug where clicking on empty browser page would crash. This could
  14108. happen when the start page was empty, or failed to load.
  14109. * WebView.subproj/IFWebView.mm:
  14110. (-[IFWebView mouseUp:]), (-[IFWebView mouseDown:]):
  14111. Checked for nil widget before dispatching mouse events.
  14112. 2002-02-08 John Sullivan <sullivan@apple.com>
  14113. Changed back & forward to goBack and goForward and made them not return
  14114. a value (so signatures match those in WebBrowser). Added backEntry and
  14115. forwardEntry that don't alter the list. These will be needed to ask to
  14116. go to the URL at the back position without altering the back list until
  14117. the change is committed.
  14118. * History.subproj/IFBackForwardList.h:
  14119. * History.subproj/IFBackForwardList.m: (-[IFBackForwardList goBack]),
  14120. (-[IFBackForwardList backEntry]), (-[IFBackForwardList currentEntry]),
  14121. (-[IFBackForwardList forwardEntry]), (-[IFBackForwardList goForward]):
  14122. 2002-02-07 Richard Williamson <rjw@apple.com>
  14123. More changes to IFLocationChangeHandler API.
  14124. * WebView.subproj/IFBaseWebController.mm:
  14125. * WebView.subproj/IFWebController.h:
  14126. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource startLoading:]):
  14127. * WebView.subproj/IFWebDataSourcePrivate.h:
  14128. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource
  14129. _startLoading:initiatedByMouseEvent:]):
  14130. * WebView.subproj/IFWebFramePrivate.h:
  14131. 2002-02-07 Richard Williamson <rjw@apple.com>
  14132. Update IFLocationChangeHandler API. Added factored code for
  14133. URL loading.
  14134. * ChangeLog:
  14135. * WebView.subproj/IFBaseWebController.h:
  14136. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  14137. setMainView:andMainDataSource:]), (-[IFBaseWebController
  14138. _changeLocationTo:forFrame:parent:]), (-[IFBaseWebController
  14139. _changeFrame:dataSource:]), (-[IFBaseWebController
  14140. locationChangeCommittedForFrame:]):
  14141. * WebView.subproj/IFBaseWebControllerPrivate.h:
  14142. * WebView.subproj/IFWebController.h:
  14143. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource startLoading:]):
  14144. * WebView.subproj/IFWebFrame.h:
  14145. * WebView.subproj/IFWebFrame.m: (-[IFWebFrame reset]):
  14146. 2002-02-06 Richard Williamson <rjw@apple.com>
  14147. Fixed allocation problems. Implemented parent->child management
  14148. for datasource correctly.
  14149. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  14150. changeLocationTo:forFrame:]):
  14151. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource addFrame:]):
  14152. * WebView.subproj/IFWebDataSourcePrivate.h:
  14153. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource
  14154. _setController:]), (-[IFWebDataSource _part]), (-[IFWebDataSource _setParent:]):
  14155. * WebView.subproj/IFWebFrame.h:
  14156. * WebView.subproj/IFWebFrame.m: (-[IFWebFrame _setRenderFramePart:]),
  14157. (-[IFWebFrame _renderFramePart]):
  14158. * WebView.subproj/IFWebView.mm: (-[IFWebView dataSourceChanged:]):
  14159. 2002-02-05 Richard Williamson <rjw@apple.com>
  14160. Updated controller API to reflect frames.
  14161. * WebView.subproj/IFBaseWebController.h:
  14162. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  14163. initWithView:dataSource:]), (-[IFBaseWebController
  14164. setMainView:andMainDataSource:]), (-[IFBaseWebController
  14165. createFrameNamed:for:inParent:]), (-[IFBaseWebController mainFrame]),
  14166. (-[IFBaseWebController mainView]), (-[IFBaseWebController mainDataSource]),
  14167. (-[IFBaseWebController changeLocationTo:forFrame:]), (-[IFBaseWebController
  14168. locationChangeStartedForFrame:]), (-[IFBaseWebController
  14169. locationChangeInProgressForFrame:]), (-[IFBaseWebController
  14170. locationChangeDone:forFrame:]):
  14171. * WebView.subproj/IFBaseWebControllerPrivate.h:
  14172. * WebView.subproj/IFBaseWebControllerPrivate.mm: (-[IFBaseWebControllerPrivate
  14173. init]), (-[IFBaseWebControllerPrivate dealloc]):
  14174. * WebView.subproj/IFWebController.h:
  14175. * WebView.subproj/IFWebDataSource.h:
  14176. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource initWithURL:]),
  14177. (-[IFWebDataSource setFrame:]), (-[IFWebDataSource frame]), (-[IFWebDataSource
  14178. frameName]):
  14179. * WebView.subproj/IFWebDataSourcePrivate.h:
  14180. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate dealloc]),
  14181. (-[IFWebDataSource _part]):
  14182. * WebView.subproj/IFWebFrame.h:
  14183. * WebView.subproj/IFWebFrame.m: (-[IFWebFrame dealloc]), (-[IFWebFrame
  14184. dataSource]), (-[IFWebFrame setDataSource:]):
  14185. * WebView.subproj/IFWebView.h:
  14186. * WebView.subproj/IFWebView.mm: (-[IFWebView dataSourceChanged:]):
  14187. 2002-02-05 Maciej Stachowiak <mjs@apple.com>
  14188. Remove old obsolete cache code from tree and build.
  14189. * Cache.subproj/NSURICache.h:
  14190. * Cache.subproj/NSURICache.m:
  14191. * Cache.subproj/NSURICacheData.h:
  14192. * Cache.subproj/NSURICacheData.m:
  14193. * Cache.subproj/NSURILoad.h:
  14194. * Cache.subproj/NSURILoad.m:
  14195. * Cache.subproj/NSURILoadReallyPrivate.h:
  14196. * Cache.subproj/_NSURICacheQueue.h:
  14197. * Cache.subproj/_NSURICacheQueue.m:
  14198. * Misc.subproj/WebKitReallyPrivate.h:
  14199. * Misc.subproj/_NSMonitor.h:
  14200. * Misc.subproj/_NSMonitor.m:
  14201. * WebKit.pbproj/project.pbxproj:
  14202. 2002-02-05 Richard Williamson <rjw@apple.com>
  14203. Changes to support dynamic scroll bars in frames/iframes.
  14204. * WebView.subproj/IFBaseWebController.mm: (-[IFBaseWebController
  14205. createFrameNamed:for:inParent:]):
  14206. * WebView.subproj/IFWebView.mm: (-[IFWebView dataSourceChanged]):
  14207. * WebView.subproj/IFWebViewPrivate.mm: (-[IFWebView _setFrameScrollView:]):
  14208. 2002-02-04 Maciej Stachowiak <mjs@apple.com>
  14209. Rename all classes from WK prefix to IF prefix.
  14210. * Cache.subproj/IFLoadChunk.h:
  14211. * Cache.subproj/IFWebCache.h:
  14212. * Cache.subproj/IFWebCacheClient.h:
  14213. * Cache.subproj/IFWebContentType.h:
  14214. * History.subproj/IFAttributedURL.h:
  14215. * History.subproj/IFBackForwardList.h:
  14216. * History.subproj/IFBackForwardList.m: (-[IFBackForwardList init]),
  14217. (-[IFBackForwardList addEntry:]), (-[IFBackForwardList back]),
  14218. (-[IFBackForwardList currentEntry]), (-[IFBackForwardList forward]),
  14219. (-[IFBackForwardList description]):
  14220. * History.subproj/IFURIEntry.h:
  14221. * History.subproj/IFURIEntry.m: (WCCreateURIEntry), (-[IFURIEntry isEqual:]),
  14222. (-[IFURIEntry description]):
  14223. * History.subproj/IFURIList.h:
  14224. * History.subproj/IFURIList.m: (newURIListNode), (freeNode), (-[IFURIList
  14225. dealloc]), (-[IFURIList addEntry:]), (-[IFURIList removeURL:]), (-[IFURIList
  14226. removeEntry:]), (-[IFURIList entryForURL:]), (-[IFURIList entryAtIndex:]),
  14227. (-[IFURIList removeEntryAtIndex:]), (-[IFURIList removeEntriesToIndex:]):
  14228. * Misc.subproj/IFException.h:
  14229. * Misc.subproj/IFException.m:
  14230. * WebKit.pbproj/project.pbxproj:
  14231. * WebView.subproj/IFBaseWebController.h:
  14232. * WebView.subproj/IFBaseWebController.mm: (+[IFObjectHolder holderWithObject:]),
  14233. (-[IFBaseWebController init]), (-[IFBaseWebController initWithView:dataSource:]),
  14234. (-[IFBaseWebController setDirectsAllLinksToSystemBrowser:]),
  14235. (-[IFBaseWebController directsAllLinksToSystemBrowser]), (-[IFBaseWebController
  14236. setView:andDataSource:]), (-[IFBaseWebController
  14237. createFrameNamed:for:inParent:]), (-[IFBaseWebController viewForDataSource:]),
  14238. (-[IFBaseWebController dataSourceForView:]), (-[IFBaseWebController mainView]),
  14239. (-[IFBaseWebController mainDataSource]), (-[IFBaseWebController
  14240. setStatusText:forDataSource:]), (-[IFBaseWebController
  14241. statusTextForDataSource:]), (-[IFBaseWebController authenticate:]),
  14242. (-[IFBaseWebController receivedProgress:forResource:fromDataSource:]),
  14243. (-[IFBaseWebController
  14244. receivedError:forResource:partialProgress:fromDataSource:]),
  14245. (-[IFBaseWebController locationWillChangeTo:]), (-[IFBaseWebController
  14246. locationChangeStartedForDataSource:]), (-[IFBaseWebController
  14247. locationChangeInProgressForDataSource:]), (-[IFBaseWebController
  14248. locationChangeDone:forDataSource:]), (-[IFBaseWebController
  14249. receivedPageTitle:forDataSource:]), (-[IFBaseWebController
  14250. serverRedirectTo:forDataSource:]):
  14251. * WebView.subproj/IFBaseWebControllerPrivate.h:
  14252. * WebView.subproj/IFBaseWebControllerPrivate.mm:
  14253. * WebView.subproj/IFDynamicScrollBarsView.h:
  14254. * WebView.subproj/IFDynamicScrollBarsView.m:
  14255. * WebView.subproj/IFGrabBag.h:
  14256. * WebView.subproj/IFPreferences.h:
  14257. * WebView.subproj/IFWebController.h:
  14258. * WebView.subproj/IFWebDataSource.h:
  14259. * WebView.subproj/IFWebDataSource.mm: (-[IFWebDataSource _commonInitialization]),
  14260. (-[IFWebDataSource initWithURL:]), (-[IFWebDataSource frameName]),
  14261. (-[IFWebDataSource isMainDocument]), (-[IFWebDataSource parent]),
  14262. (-[IFWebDataSource children]), (-[IFWebDataSource addFrame:]), (-[IFWebDataSource
  14263. frameNamed:]), (-[IFWebDataSource frameNames]), (-[IFWebDataSource
  14264. findDataSourceForFrameNamed:]), (-[IFWebDataSource frameExists:]),
  14265. (-[IFWebDataSource openURL:inFrameNamed:]), (-[IFWebDataSource
  14266. openURL:inIFrame:]), (-[IFWebDataSource controller]), (-[IFWebDataSource
  14267. inputURL]), (-[IFWebDataSource finalURL]), (-[IFWebDataSource wasRedirected]),
  14268. (-[IFWebDataSource stopLoading]), (-[IFWebDataSource isLoading]),
  14269. (-[IFWebDataSource base]), (-[IFWebDataSource baseTarget]), (-[IFWebDataSource
  14270. encoding]), (-[IFWebDataSource setUserStyleSheetFromURL:]), (-[IFWebDataSource
  14271. setUserStyleSheetFromString:]), (-[IFWebDataSource icon]), (-[IFWebDataSource
  14272. isPageSecure]), (-[IFWebDataSource pageTitle]):
  14273. * WebView.subproj/IFWebDataSourcePrivate.h:
  14274. * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate dealloc]),
  14275. (-[IFWebDataSource _setController:]), (-[IFWebDataSource _part]),
  14276. (-[IFWebDataSource _setFrameName:]):
  14277. * WebView.subproj/IFWebFrame.h:
  14278. * WebView.subproj/IFWebFrame.m: (-[IFWebFrame initWithName:view:dataSource:]),
  14279. (-[IFWebFrame dataSource]):
  14280. * WebView.subproj/IFWebView.h:
  14281. * WebView.subproj/IFWebView.mm: (-[IFWebView initWithFrame:]), (-[IFWebView
  14282. controller]), (-[IFWebView dataSourceChanged]), (-[IFWebView layout]),
  14283. (-[IFWebView stopAnimations]), (-[IFWebView setFontSizes:]), (-[IFWebView
  14284. fontSizes]), (-[IFWebView resetFontSizes]), (-[IFWebView setStandardFont:]),
  14285. (-[IFWebView standardFont]), (-[IFWebView setFixedFont:]), (-[IFWebView
  14286. fixedFont]), (-[IFWebView setCanDragFrom:]), (-[IFWebView setCanDragTo:]),
  14287. (-[IFWebView defaultContextMenuItemsForNode:]), (-[IFWebView
  14288. setContextMenusEnabled:]), (-[IFWebView deselectText]), (-[IFWebView
  14289. searchFor:direction:caseSensitive:]), (-[IFWebView selectedText]), (-[IFWebView
  14290. setNeedsLayout:]), (-[IFWebView drawRect:]), (-[IFWebView setIsFlipped:]),
  14291. (-[IFWebView isFlipped]), (-[IFWebView mouseUp:]), (-[IFWebView mouseDown:]):
  14292. * WebView.subproj/IFWebViewPrivate.h:
  14293. * WebView.subproj/IFWebViewPrivate.mm: (-[IFWebViewPrivate dealloc]),
  14294. (-[IFWebView _setController:]), (-[IFWebView _widget]), (-[IFWebView
  14295. _setFrameScrollView:]), (-[IFWebView _frameScrollView]):
  14296. 2002-02-04 Maciej Stachowiak <mjs@apple.com>
  14297. Rename all WK files to IF (classes not renamed yet).
  14298. * Cache.subproj/IFLoadChunk.h:
  14299. * Cache.subproj/IFWebCache.h:
  14300. * Cache.subproj/IFWebCacheClient.h:
  14301. * Cache.subproj/IFWebContentType.h:
  14302. * Cache.subproj/WKLoadChunk.h:
  14303. * Cache.subproj/WKWebCache.h:
  14304. * Cache.subproj/WKWebCacheClient.h:
  14305. * Cache.subproj/WKWebContentType.h:
  14306. * History.subproj/IFAttributedURL.h:
  14307. * History.subproj/IFBackForwardList.h:
  14308. * History.subproj/IFBackForwardList.m:
  14309. * History.subproj/IFURIEntry.h:
  14310. * History.subproj/IFURIEntry.m:
  14311. * History.subproj/IFURIList.h:
  14312. * History.subproj/IFURIList.m:
  14313. * History.subproj/WKAttributedURL.h:
  14314. * History.subproj/WKBackForwardList.h:
  14315. * History.subproj/WKBackForwardList.m:
  14316. * History.subproj/WKURIEntry.h:
  14317. * History.subproj/WKURIEntry.m:
  14318. * History.subproj/WKURIList.h:
  14319. * History.subproj/WKURIList.m:
  14320. * Misc.subproj/WKException.h:
  14321. * Misc.subproj/WKException.m:
  14322. * WebKit.pbproj/project.pbxproj:
  14323. * WebView.subproj/IFBaseWebController.h:
  14324. * WebView.subproj/IFBaseWebController.mm:
  14325. * WebView.subproj/IFBaseWebControllerPrivate.h:
  14326. * WebView.subproj/IFBaseWebControllerPrivate.mm:
  14327. * WebView.subproj/IFDefaultWebController.h:
  14328. * WebView.subproj/IFDefaultWebController.mm:
  14329. * WebView.subproj/IFDefaultWebControllerPrivate.h:
  14330. * WebView.subproj/IFDefaultWebControllerPrivate.mm:
  14331. * WebView.subproj/IFDynamicScrollBarsView.m:
  14332. * WebView.subproj/IFGrabBag.h:
  14333. * WebView.subproj/IFPreferences.h:
  14334. * WebView.subproj/IFWebController.h:
  14335. * WebView.subproj/IFWebDataSource.h:
  14336. * WebView.subproj/IFWebDataSource.mm:
  14337. * WebView.subproj/IFWebDataSourcePrivate.h:
  14338. * WebView.subproj/IFWebDataSourcePrivate.mm:
  14339. * WebView.subproj/IFWebFrame.h:
  14340. * WebView.subproj/IFWebFrame.m:
  14341. * WebView.subproj/IFWebView.h:
  14342. * WebView.subproj/IFWebView.mm:
  14343. * WebView.subproj/IFWebViewPrivate.h:
  14344. * WebView.subproj/IFWebViewPrivate.mm:
  14345. * WebView.subproj/WKDefaultWebController.h:
  14346. * WebView.subproj/WKDefaultWebController.mm:
  14347. * WebView.subproj/WKDefaultWebControllerPrivate.h:
  14348. * WebView.subproj/WKDefaultWebControllerPrivate.mm:
  14349. * WebView.subproj/WKDynamicScrollBarsView.h:
  14350. * WebView.subproj/WKDynamicScrollBarsView.m:
  14351. * WebView.subproj/WKGrabBag.h:
  14352. * WebView.subproj/WKPreferences.h:
  14353. * WebView.subproj/WKWebController.h:
  14354. * WebView.subproj/WKWebDataSource.h:
  14355. * WebView.subproj/WKWebDataSource.mm:
  14356. * WebView.subproj/WKWebDataSourcePrivate.h:
  14357. * WebView.subproj/WKWebDataSourcePrivate.mm:
  14358. * WebView.subproj/WKWebFrame.h:
  14359. * WebView.subproj/WKWebFrame.m:
  14360. * WebView.subproj/WKWebView.h:
  14361. * WebView.subproj/WKWebView.mm:
  14362. * WebView.subproj/WKWebViewPrivate.h:
  14363. * WebView.subproj/WKWebViewPrivate.mm:
  14364. 2002-02-01 Richard Williamson <rjw@apple.com>
  14365. Changes for dynamic scrolling frames. Added notification of complete
  14366. load.
  14367. * WebView.subproj/WKDefaultWebController.mm: (-[WKDefaultWebController
  14368. createFrameNamed:for:inParent:]), (-[WKDefaultWebController
  14369. locationChangeDone:forDataSource:]):
  14370. * WebView.subproj/WKWebController.h:
  14371. * WebView.subproj/WKWebView.mm: (-[WKWebView dataSourceChanged]):
  14372. * WebView.subproj/WKWebViewPrivate.h:
  14373. * WebView.subproj/WKWebViewPrivate.mm: (-[WKWebViewPrivate dealloc]),
  14374. (-[WKWebView _widget]), (-[WKWebView _setFrameScrollView:]), (-[WKWebView
  14375. _frameScrollView]):
  14376. 2002-02-01 John Sullivan <sullivan@apple.com>
  14377. Added call to examine the entry at the current index in
  14378. the back/forward list without modifying the list. I needed
  14379. this to save context data (in my case, scroll position)
  14380. on the currently-viewed entry.
  14381. * History.subproj/WKBackForwardList.h:
  14382. * History.subproj/WKBackForwardList.m:
  14383. (-[WKBackForwardList currentEntry]):
  14384. Just returns the entry at the current index.
  14385. 2002-01-31 John Sullivan <sullivan@apple.com>
  14386. * History.subproj/WKURIList.m: (newURIListNode):
  14387. retain entries before adding them to list. The node-freeing
  14388. routine was releasing, but the node-adding routine wasn't
  14389. retaining. Bad asymmetry, made up for by WebViewTest not
  14390. autoreleasing. I fixed that too.
  14391. 2002-01-31 John Sullivan <sullivan@apple.com>
  14392. * WebKit.pbproj: Removed -O0, so it will now get all the same
  14393. warnings as pbxbuild gets.
  14394. 2002-01-31 Kenneth Kocienda <kocienda@apple.com>
  14395. Removed dependency on WC versions of these files
  14396. * History.subproj/WKBackForwardList.h:
  14397. * History.subproj/WKBackForwardList.m:
  14398. * History.subproj/WKURIEntry.h:
  14399. * History.subproj/WKURIEntry.m:
  14400. * WebKit.pbproj/project.pbxproj:
  14401. 2002-01-31 John Sullivan <sullivan@apple.com>
  14402. * WebKit.pbproj:
  14403. Marked WKURIList.h as a public header
  14404. 2002-01-30 Richard Williamson <rjw@apple.com>
  14405. * WebView.subproj/WKDefaultWebController.mm: (-[WKDefaultWebController
  14406. createFrameNamed:for:inParent:]):
  14407. * WebView.subproj/WKWebDataSource.mm: (-[WKWebDataSource documentTextFromDOM]):
  14408. 2002-01-30 Richard Williamson <rjw@apple.com>
  14409. Cleaned up API w/ respect to frames.
  14410. * WebView.subproj/WKDefaultWebController.h:
  14411. * WebView.subproj/WKDefaultWebController.mm: (-[WKDefaultWebController
  14412. setView:andDataSource:]), (-[WKDefaultWebController
  14413. createFrameNamed:for:inParent:]):
  14414. * WebView.subproj/WKWebController.h:
  14415. * WebView.subproj/WKWebDataSource.h:
  14416. 2002-01-30 Kenneth Kocienda <kocienda@apple.com>
  14417. Added *.lo, *.la, Icon, and .libs to .cvsignore files
  14418. * .cvsignore:
  14419. 2002-01-29 Richard Williamson <rjw@apple.com>
  14420. * ChangeLog:
  14421. * WebView.subproj/WKDefaultWebController.h:
  14422. * WebView.subproj/WKDefaultWebController.mm: (-[WKDefaultWebController
  14423. setView:andDataSource:]), (-[WKDefaultWebController dataSourceForView:]):
  14424. 2002-01-29 Richard Williamson <rjw@apple.com>
  14425. * WebView.subproj/WKDefaultWebController.mm: (-[WKDefaultWebController
  14426. setView:andDataSource:]):
  14427. 2002-01-29 Richard Williamson <rjw@apple.com>
  14428. First pass at frame code. Still needs lots of cleanup.
  14429. * WebKit.pbproj/project.pbxproj:
  14430. * WebView.subproj/WKDefaultWebController.h:
  14431. * WebView.subproj/WKDefaultWebController.mm: (-[WKDefaultWebController init]):
  14432. * WebView.subproj/WKWebDataSource.h:
  14433. * WebView.subproj/WKWebDataSource.mm: (-[WKWebDataSource dealloc]),
  14434. (-[WKWebDataSource frameName]), (-[WKWebDataSource parent]), (-[WKWebDataSource
  14435. children]), (-[WKWebDataSource addFrame:]), (-[WKWebDataSource frameNamed:]):
  14436. * WebView.subproj/WKWebDataSourcePrivate.h:
  14437. * WebView.subproj/WKWebDataSourcePrivate.mm: (-[WKWebDataSourcePrivate init]),
  14438. (-[WKWebDataSourcePrivate dealloc]), (-[WKWebDataSource _setController:]),
  14439. (-[WKWebDataSource _setFrameName:]):
  14440. * WebView.subproj/WKWebView.mm: (-[WKWebView mouseUp:]):
  14441. * WebView.subproj/WKWebViewPrivate.h:
  14442. * WebView.subproj/WKWebViewPrivate.mm: (-[WKWebViewPrivate dealloc]),
  14443. (-[WKWebView _setController:]), (-[WKWebView _widget]):
  14444. 2002-01-29 Kenneth Kocienda <kocienda@apple.com>
  14445. WebKit now links with WebFoundation
  14446. * WebKit.pbproj/kocienda.pbxuser:
  14447. * WebKit.pbproj/project.pbxproj:
  14448. 2002-01-23 Ken Kocienda <kocienda@apple.com>
  14449. Took out @executable_path hack added for Alexander demo.
  14450. This should clear up a class of crash-on-launch issues.
  14451. * WebKit.pbproj/project.pbxproj:
  14452. 2002-01-21 John Sullivan <sullivan@apple.com>
  14453. * WebView.subproj/WKWebController.h:
  14454. * WebView.subproj/WKWebView.h:
  14455. Changed WKConcreteWebController to WKDefaultWebController in a
  14456. couple of comments.
  14457. 2002-01-18 Richard Williamson <rjw@apple.com>
  14458. First pass at new view/datasource/controller API.
  14459. * Misc.subproj/WKException.h:
  14460. * Misc.subproj/WKException.m:
  14461. * WebKit.pbproj/project.pbxproj:
  14462. * WebView.subproj/WKDefaultWebController.h:
  14463. * WebView.subproj/WKDefaultWebController.mm: (+[WKObjectHolder
  14464. holderWithObject:]), (-[WKObjectHolder initWithObject:]), (-[WKObjectHolder
  14465. dealloc]), (-[WKObjectHolder copyWithZone:]), (-[WKObjectHolder hash]),
  14466. (-[WKObjectHolder object]), (-[WKObjectHolder isEqual:]),
  14467. (-[WKDefaultWebController initWithView:dataSource:]), (-[WKDefaultWebController
  14468. dealloc]), (-[WKDefaultWebController setDirectsAllLinksToSystemBrowser:]),
  14469. (-[WKDefaultWebController directsAllLinksToSystemBrowser]),
  14470. (-[WKDefaultWebController setView:andDataSource:]), (-[WKDefaultWebController
  14471. viewForDataSource:]), (-[WKDefaultWebController dataSourceForView:]),
  14472. (-[WKDefaultWebController mainView]), (-[WKDefaultWebController mainDataSource]),
  14473. (-[WKDefaultWebController createViewForDataSource:inFrameNamed:]),
  14474. (-[WKDefaultWebController createViewForDataSource:inIFrame:]),
  14475. (-[WKDefaultWebController setStatusText:forDataSource:]),
  14476. (-[WKDefaultWebController statusTextForDataSource:]), (-[WKDefaultWebController
  14477. authenticate:]), (-[WKDefaultWebController
  14478. receivedProgress:forResource:fromDataSource:]), (-[WKDefaultWebController
  14479. receivedError:forResource:partialProgress:fromDataSource:]),
  14480. (-[WKDefaultWebController locationWillChangeTo:]), (-[WKDefaultWebController
  14481. locationChangeStartedForDataSource:]), (-[WKDefaultWebController
  14482. locationChangeInProgressForDataSource:]), (-[WKDefaultWebController
  14483. locationChangeDone:forDataSource:]), (-[WKDefaultWebController
  14484. receivedPageTitle:forDataSource:]), (-[WKDefaultWebController
  14485. serverRedirectTo:forDataSource:]):
  14486. * WebView.subproj/WKDefaultWebControllerPrivate.h:
  14487. * WebView.subproj/WKDefaultWebControllerPrivate.mm:
  14488. (-[WKDefaultWebControllerPrivate init]), (-[WKDefaultWebControllerPrivate
  14489. dealloc]):
  14490. * WebView.subproj/WKWebController.h:
  14491. * WebView.subproj/WKWebController.mm:
  14492. * WebView.subproj/WKWebDataSource.h:
  14493. * WebView.subproj/WKWebDataSource.mm: (-[WKWebDataSource _commonInitialization]),
  14494. (-[WKWebDataSource initWithURL:]), (-[WKWebDataSource parent]),
  14495. (-[WKWebDataSource isMainDocument]), (-[WKWebDataSource children]),
  14496. (-[WKWebDataSource frameNames]), (-[WKWebDataSource
  14497. findDataSourceForFrameNamed:]), (-[WKWebDataSource frameExists:]),
  14498. (-[WKWebDataSource openURL:inFrameNamed:]), (-[WKWebDataSource
  14499. openURL:inIFrame:]), (-[WKWebDataSource controller]), (-[WKWebDataSource
  14500. inputURL]), (-[WKWebDataSource finalURL]), (-[WKWebDataSource wasRedirected]),
  14501. (-[WKWebDataSource startLoading:]), (-[WKWebDataSource stopLoading]),
  14502. (-[WKWebDataSource isLoading]), (-[WKWebDataSource documentText]),
  14503. (-[WKWebDataSource base]), (-[WKWebDataSource baseTarget]), (-[WKWebDataSource
  14504. encoding]), (-[WKWebDataSource setUserStyleSheetFromURL:]), (-[WKWebDataSource
  14505. setUserStyleSheetFromString:]), (-[WKWebDataSource icon]), (-[WKWebDataSource
  14506. isPageSecure]), (-[WKWebDataSource pageTitle]):
  14507. * WebView.subproj/WKWebDataSourcePrivate.h:
  14508. * WebView.subproj/WKWebDataSourcePrivate.mm: (-[WKWebDataSourcePrivate init]),
  14509. (-[WKWebDataSourcePrivate dealloc]), (-[WKWebDataSource _setController:]),
  14510. (-[WKWebDataSource _part]):
  14511. * WebView.subproj/WKWebView.h:
  14512. * WebView.subproj/WKWebView.mm: (-[WKWebView initWithFrame:]), (-[WKWebView
  14513. dealloc]), (-[WKWebView controller]), (-[WKWebView dataSourceChanged]),
  14514. (-[WKWebView layout]), (-[WKWebView stopAnimations]), (-[WKWebView
  14515. setFontSizes:]), (-[WKWebView fontSizes]), (-[WKWebView resetFontSizes]),
  14516. (-[WKWebView setStandardFont:]), (-[WKWebView standardFont]), (-[WKWebView
  14517. setFixedFont:]), (-[WKWebView fixedFont]), (-[WKWebView setCanDragFrom:]),
  14518. (-[WKWebView canDragFrom]), (-[WKWebView setCanDragTo:]), (-[WKWebView
  14519. canDragTo]), (-[WKWebView defaultContextMenuItemsForNode:]), (-[WKWebView
  14520. setContextMenusEnabled:]), (-[WKWebView deselectText]), (-[WKWebView
  14521. searchFor:direction:caseSensitive:]), (-[WKWebView selectedText]), (-[WKWebView
  14522. delayLayout:]), (-[WKWebView notificationReceived:]), (-[WKWebView
  14523. setNeedsLayout:]), (-[WKWebView drawRect:]), (-[WKWebView setIsFlipped:]),
  14524. (-[WKWebView isFlipped]), (-[WKWebView setFrame:]), (-[WKWebView mouseUp:]),
  14525. (-[WKWebView mouseDown:]), (-[WKWebView mouseDragged:]):
  14526. * WebView.subproj/WKWebViewPrivate.h:
  14527. * WebView.subproj/WKWebViewPrivate.mm: (-[WKWebViewPrivate init]),
  14528. (-[WKWebViewPrivate dealloc]), (-[WKWebView _resetView]), (-[WKWebView
  14529. _setController:]):
  14530. 2002-01-14 Maciej Stachowiak <mjs@apple.com>
  14531. Convert build system to automake
  14532. * Makefile.am: Add this
  14533. * Makefile.in: Remove this (now autogenerated)
  14534. * .cvsignore: Fix ignores
  14535. * WebKit.pbproj/project.pbxproj: Twiddle link flags
  14536. 2001-12-21 John Sullivan <sullivan@apple.com>
  14537. * .cvsignore:
  14538. * WebKit.pbproj/.cvsignore:
  14539. Added files that were showing up on my machine to .cvsignores.
  14540. 2001-12-18 Kenneth Kocienda <kocienda@apple.com>
  14541. Deleted one little word
  14542. * Documentation/WebKit-White-Paper/WebKit-White-Paper.html:
  14543. 2001-12-18 Richard Williamson <rjw@apple.com>
  14544. Restructing of headers in prepartion for implementation. Added new WK*
  14545. headers to PB project description.
  14546. * ChangeLog:
  14547. * WebKit.pbproj/project.pbxproj:
  14548. * WebView.subproj/NSWebPageDataSource.h:
  14549. * WebView.subproj/NSWebPageDataSource.mm:
  14550. * WebView.subproj/NSWebPageDataSourcePrivate.h:
  14551. * WebView.subproj/NSWebPageView.h:
  14552. * WebView.subproj/NSWebPageView.mm:
  14553. * WebView.subproj/NSWebPageViewPrivate.h:
  14554. * WebView.subproj/WKWebController.h:
  14555. * WebView.subproj/WKWebController.mm:
  14556. * WebView.subproj/WKWebDataSource.h:
  14557. * WebView.subproj/WKWebDataSource.mm: (+[WKWebDataSource initialize]):
  14558. * WebView.subproj/WKWebDataSourcePrivate.h:
  14559. * WebView.subproj/WKWebView.h:
  14560. * WebView.subproj/WKWebView.mm:
  14561. * WebView.subproj/WKWebViewPrivate.h:
  14562. 2001-12-18 Kenneth Kocienda <kocienda@apple.com>
  14563. Updated the white paper text and graphics.
  14564. * Documentation/WebKit-White-Paper/WebKit-White-Paper.html:
  14565. * Documentation/WebKit-White-Paper/images/webkit-cache-loader.jpg:
  14566. * Documentation/WebKit-White-Paper/images/webkit-classes.jpg:
  14567. 2001-12-18 Kenneth Kocienda <kocienda@apple.com>
  14568. Merged "Changes" information into individual files
  14569. * Cache.subproj/WKLoadChunk.h:
  14570. * Cache.subproj/WKWebCache.h:
  14571. * Cache.subproj/WKWebCacheClient.h:
  14572. * Cache.subproj/WKWebContentType.h:
  14573. 2001-12-17 Kenneth Kocienda <kocienda@apple.com>
  14574. Fixed small cpp glitch in WKWebCache.
  14575. Added WKAttributedURL header.
  14576. Updated WKBackForwardList with ifdef'ed out new design.
  14577. * Cache.subproj/WKWebCache.h:
  14578. * History.subproj/WKAttributedURL.h:
  14579. * History.subproj/WKBackForwardList.h:
  14580. 2001-12-17 Kenneth Kocienda <kocienda@apple.com>
  14581. Added header files by chopping up the CacheAPI.h document I have been working on.
  14582. * Cache.subproj/WKLoadChunk.h:
  14583. * Cache.subproj/WKWebCache.h:
  14584. * Cache.subproj/WKWebCacheClient.h:
  14585. * Cache.subproj/WKWebContentType.h:
  14586. 2001-12-17 Kenneth Kocienda <kocienda@apple.com>
  14587. Did some verb tense cleanup.
  14588. * Documentation/WebKit-White-Paper/WebKit-White-Paper.html:
  14589. 2001-12-17 Kenneth Kocienda <kocienda@apple.com>
  14590. Added the current draft of the WebKit white paper.
  14591. * Documentation/WebKit-White-Paper/WebKit-White-Paper.html:
  14592. * Documentation/WebKit-White-Paper/images/webkit-cache-loader.jpg:
  14593. 2001-12-14 Richard Williamson <rjw@apple.com>
  14594. Remove WKContextMenuHandler for want of a better way to describe the
  14595. not-yet-existing WKDOMNode. We can't think of any initial clients that want
  14596. to override the default behavior anyway. Put it in WKGrabBag.h for now.
  14597. * WebView.subproj/WKWebController.h:
  14598. 2001-12-14 Richard Williamson <rjw@apple.com>
  14599. Remove explicit API to get/set the selection range. This will be postponed until we
  14600. have a DOM API that allows us to express selection ranges correctly. Instead we have API
  14601. that should support searching and getting a NSAttributedString that corresponds to
  14602. the selected text.
  14603. Added the following methods:
  14604. - (void)searchFor: (NSString *)string direction: (BOOL)forward caseSensitive: (BOOL)case
  14605. - deselectText;
  14606. - (NSAttributedString *)selectedText;
  14607. * WebView.subproj/WKWebView.h:
  14608. Moved search API to WKWebView.
  14609. Moved WKPreferences to a new file, WKPreferences.h. We are still discussing
  14610. this item and it will not make it into the white paper.
  14611. Minor naming changes.
  14612. * WebView.subproj/WKDataSource.h:
  14613. 2001-12-14 Maciej Stachowiak <mjs@apple.com>
  14614. Simplified WKLocationChangeHandler and updated
  14615. WKAuthenticationHandler.
  14616. * WebView.subproj/WKWebController.h:
  14617. (WKWebDataSource): Renamed methods to be forDataSource, not
  14618. byDataSource.
  14619. (-[WKWebDataSource locationChangeInProgressForDataSource:]): Added.
  14620. (-[WKWebDataSource locationChangeDone:forDataSource:]): Added as a
  14621. collapsed version of locationChangeCancelled:,
  14622. locationChangeStopped: and locationChangeFinished:.
  14623. (WKSimpleAuthenticationResult, WKSimpleAuthenticationRequest):
  14624. made these interfaces instead of structs.
  14625. 2001-12-14 Maciej Stachowiak <mjs@apple.com>
  14626. Minor cleanups, mostly for naming consistency.
  14627. * WebView.subproj/WKWebController.h:
  14628. (WKSimpleAuthenticationRequest) name field `url', not `uri'.
  14629. (-[WKWebDataSourceErrorHandler receivedError:forDataSource:]):
  14630. renamed from `error:inDataSource:' so that it's a verb phrase.
  14631. * WebView.subproj/WKWebDataSource.h:
  14632. (-[WKWebDataSource initWithURL:]): Rename `inputUrl' argument to
  14633. `inputURL'.
  14634. (-[WKWebDataSource initWithLoader:]): Change argument type from
  14635. `WKURILoader' to `WKLoader'.
  14636. (-[WKWebDataSource wasRedirected]): Renamed from `isRedirected',
  14637. the past tense seems more appropriate here.
  14638. (-[WKWebDataSource setJavaEnabled:]): Add missing semicolon.
  14639. (-[WKWebDataSource pluginsEnabled:]): renamed from `pluginEnabled'
  14640. for consistency with `setPluginsEnabled:'.
  14641. * WebView.subproj/WKWebView.h:
  14642. (-[WKWebView fontSizes]): renamed from `fontSize' for sonsistency
  14643. with `setFontSizes:'.
  14644. (-[WKWebView setContextMenusEnabled]): renamed from
  14645. 'setEnableContextMenus:' for consistency with
  14646. `contextMenusenabled'.
  14647. 2001-12-14 Maciej Stachowiak <mjs@apple.com>
  14648. After discussion with Don, Removed all methods relating to
  14649. resolved URLs, since browsers don't actually treat aliases
  14650. specially.
  14651. * WebView.subproj/WKWebController.h: removed inputURLresolvedTo: methods.
  14652. * WebView.subproj/WKWebDataSource.h: remove resolvedURL method,
  14653. and mentions of it in comments.
  14654. 2001-12-13 Richard Williamson <rjw@apple.com>
  14655. Removed WKFrameSetHandler, placed that functionality on WKWebDataSource.
  14656. Changed WKLocationChangeHandler to add a parameter specifying the data source
  14657. that sent the message.
  14658. * WebView.subproj/WKWebController.h:
  14659. 2001-12-13 Maciej Stachowiak <mjs@apple.com>
  14660. Warning fixes and support to pass the http headers along with
  14661. cache data items
  14662. * Cache.subproj/NSURICacheData.h, Cache.subproj/NSURICacheData.m:
  14663. (+[NSURICacheData
  14664. dataWithURL:status:error:headers:data:size:notificationString:userData:],
  14665. -[NSURICacheData
  14666. initWithURL:status:error:headers:data:size:notificationString:userData:]),
  14667. -[NSURICacheData dealloc], -[NSURICacheData error],
  14668. -[NSURICacheData headers]:
  14669. NSURICacheData now carries a copy of the response headers
  14670. dictionary.
  14671. * Cache.subproj/NSURICache.m: include "WCURICache.h" to fix warnings.
  14672. (-[NSURICache requestWithURL:requestor:userData:]):
  14673. Handle headers in CacheData.
  14674. * Cache.subproj/NSURILoad.h, Cache.subproj/NSURILoad.m:
  14675. (-[NSURILoad __NSURILoadReadStreamCallback:event:data:],
  14676. -[NSURILoad headers], -[NSURILoad dealloc], -[NSURILoad done]):
  14677. An NSURILoad object now carries the response headers associated
  14678. with its connection, if any.
  14679. * History.subproj/WKBackForwardList.m: include WCBackForwardList.h
  14680. to fix warning.
  14681. * History.subproj/WKURIEntry.m: include WCURIEntry.h to fix
  14682. warning.
  14683. * Misc.subproj/WebKitDebug.h: Use (void) for C prototypes, not ().
  14684. * WebView.subproj/NSWebPageDataSource.mm: (+[NSWebPageDataSource
  14685. initialize]): Remove unused variable to fix warning.
  14686. * WebKit.pbproj/project.pbxproj: Enable many warning flags and -Werror
  14687. 2001-12-13 Maciej Stachowiak <mjs@apple.com>
  14688. * WebView.subproj/WKWebController.h: Defined initial version of
  14689. WKAuthenticationHandler interface, and associated
  14690. WKSimpleAuthenticationRequest and WKSimpleAuthenticationResult
  14691. structs.
  14692. 2001-12-13 Richard Williamson <rjw@apple.com>
  14693. Remove setBase: and setBaseTarget:
  14694. Changed return type of baseTarget to (NSString *)
  14695. Added the following two methods:
  14696. - (WKDataSource *)parent;
  14697. - (NSArry *)children;
  14698. - (BOOL)isMainDocument;
  14699. Added the following methods:
  14700. - (NSArray *)frameNames;
  14701. - (WKWebDataSource) findDataSourceForFrameNamed: (NSString *)name;
  14702. - (BOOL)frameExists: (NSString *)name;
  14703. - (void)openURL: (NSURL *)url inFrameNamed: (NSString *)frameName;
  14704. - (void)openURL: (NSURL *)url inIFrame: (id)iFrameIdentifier;
  14705. * WebView.subproj/WKWebDataSource.h:
  14706. 2001-12-12 Richard Williamson <rjw@apple.com>
  14707. Changed WKConcreteWebController to WKDefaultWebController.
  14708. Changed WKLocationChangedHandler naming, replace "loadingXXX" with
  14709. "locationChangeXXX".
  14710. Changed loadingStopped in WKLocationChangedHandler to locationChangeStopped:(WKError *).
  14711. Changed loadingCancelled in WKLocationChangedHandler to locationChangeCancelled:(WKError *).
  14712. Changed loadedPageTitle in WKLocationChangedHandler to receivedPageTitle:.
  14713. Added inputURL:(NSURL *) resolvedTo: (NSURL *) to WKLocationChangedHandler.
  14714. Added the following two methods to WKLocationChangedHandler:
  14715. - (void)inputURL: (NSURL *)inputURL resolvedTo: (NSURL *)resolvedURL;
  14716. - (void)serverRedirectTo: (NSURL *)url;
  14717. Put locationWillChangeTo: back on WKLocationChangedHandler.
  14718. Changed XXXforLocation in WKLoadHandler to XXXforResource.
  14719. Changed timeoutForLocation: in WKLoadHandler to receivedError:forResource:partialProgress:
  14720. Added the following two methods to WKDefaultWebController:
  14721. - setDirectsAllLinksToSystemBrowser: (BOOL)flag
  14722. - (BOOL)directsAllLinksToSystemBrowser;
  14723. Removed WKError. This will be described in WKError.h.
  14724. * WebView.subproj/WKWebController.h:
  14725. 2001-12-12 Richard Williamson <rjw@apple.com>
  14726. After group discussion we decided to classify API as :
  14727. Tier 1: Needed by our browser (or Sherlock).
  14728. Tier 2: Nedded by Apple internal clients (Mail, Help, PB, other TBD).
  14729. Tier 3: Third party software vendors.
  14730. Added finalURL and isRedirected.
  14731. * WebView.subproj/WKWebDataSource.h:
  14732. 2001-12-11 Chris Blumenberg <cblu@apple.com>
  14733. * ChangeLog:
  14734. * WebView.subproj/NSWebPageDataSource.mm: (+[NSWebPageDataSource initialize]):
  14735. 2001-12-11 Chris Blumenberg <cblu@apple.com>
  14736. * WebView.subproj/NSWebPageDataSource.mm: (+[NSWebPageDataSource initialize]):
  14737. 2001-12-10 John Sullivan <sullivan@apple.com>
  14738. * WebView.subproj/WKWebController.h:
  14739. * WebView.subproj/WKWebDataSource.h:
  14740. * WebView.subproj/WKWebView.h:
  14741. Fixed some typos and misspellings.
  14742. 2001-12-07 Richard Williamson <rjw@apple.com>
  14743. * WebView.subproj/NSWebPageDataSource.h:
  14744. * WebView.subproj/NSWebPageDataSourcePrivate.h:
  14745. * WebView.subproj/NSWebPageView.h:
  14746. First pass at API for WKWebView and WKWebDataSource. Note
  14747. that we have to change names from NS to WK! The new API is conditionally
  14748. excluded #ifdef READY_FOR_PRIMETIME
  14749. Added these files:
  14750. * WebView.subproj/WKWebDataSource.h:
  14751. * WebView.subproj/WKWebView.h:
  14752. * WebView.subproj/WKWebController.h:
  14753. 2001-12-06 Maciej Stachowiak <mjs@apple.com>
  14754. * Cache.subproj/NSURICacheData.m: (+[NSURICacheData
  14755. dataWithURL:status:error:data:size:notificationString:userData:]),
  14756. (-[NSURICacheData
  14757. initWithURL:status:error:data:size:notificationString:userData:]):
  14758. Remove redundant semicolons between the end of the prototype and
  14759. the open brace, because they confuse the changelog script.